PrimeCode: GUI for OpenCode CLI in VS Code
PrimeCode is a VS Code extension that delivers a user interface for OpenCode CLI via SDK and SSE streaming. It visualizes tool calls, file changes, context, and token usage while preserving compatibility with existing sessions. Multi-session support ensures history isn’t lost across interactions.
The extension renders agent actions—bash commands, inline diffs for file edits, web requests, and MCP calls. The Changes Panel displays diff statistics, and checkpoints let you roll back to any message’s state. Subtasks isolate smaller work items with independent token tracking and model assignments.
Management & Integration Features
Agents, rules, commands, skills, and MCP servers are managed through an intuitive interface. The Provider Manager supports OpenAI-compatible proxies. Features include Prompt Improver, drag-and-drop attachments, message queuing, and live performance stats.
- Multi-sessions with switching and recovery
- Visual streaming: thinking, tool calls, results
- Checkpoints and subtasks for change control
- Custom models via OAI protocol
- Drag & drop files, request queuing
Designed for workflows similar to Cursor but open-source and free from ecosystem lock-in.
Installation & Requirements
Install the extension via .vsix from Releases with update notifications. Requires OpenCode CLI installed—PrimeCode acts as the UI layer.
Primary scenario: Windows + PowerShell. Project is in beta. Change Diff Panel (accept/reject changes) is under development—frontend ready, needs git integration and CLI session improvements.
Key Points
- Requires OpenCode CLI; won’t work without it
- Beta version, tested on Windows/PowerShell
- Multi-session with isolated context
- Checkpoints for rolling back file changes
- Supports OpenAI-compatible providers
AI-Powered Development Process
42,000 lines of TypeScript across 155 files, 128 commits—single developer. 99% of code generated by models with no prior VS Code extension experience.
Workflow & Context
Tasks are framed conceptually. The model analyzes the repo and OpenCode CLI, then suggests approaches. Child sessions enhance prompts without cluttering the main context. Rewriting is standard: 113,000 lines added, 71,000 removed (churn: 183,000). On average, each base line was rewritten over four times.
Minor bugs (type issues, edge cases, race conditions in streaming) accumulate. TypeScript and linting reduce them but don’t eliminate all issues.
Why OpenCode?
Initially planned for universal support (OpenCode, Claude Code, Codex), but protocol differences made this unfeasible solo. OpenCode covers use cases with built-in providers and full OAI compatibility.
Project Scale
After 42k lines of vibe-coding, the project transitions into structured management: architecture, debugging, and code review. Speed exceeds manual development, but requires time for review and rephrasing. Validation happens by refining the extension using itself.
— Editorial Team
No comments yet.