Skip to content

Repository files navigation

Comonad Agent for VS Code

A local-first, auditable coding agent inside VS Code. It runs a graph-orchestrated tool loop against the model you choose — DeepSeek by default, or any OpenAI-compatible endpoint — journals every file it writes, and asks before anything leaves the sandbox.

  • Local-first. Keys live in SecretStorage; sessions, checkpoints and logs stay on the machine that runs the agent.
  • Auditable by construction. Typed graph events, a capability gate and an audit log; every tool call carries a reconstructable decision trace (/audit <call_id>), and file writes are journaled per file, so nothing is silently overwritten.
  • Extensible as a plugin tree. The kernel, tools, model adapters and UI are plugins on one Cordis context. Turn a row off, configure it, or mount your own.
  • The agent loop is a graph. The turn's own loop, the tools it calls and the routes between them are a named Mermaid graph. Set comonad.graph to replace the shipped agent loop; plugins can register nodes and routes beside it.

Install

From a packaged VSIX

npm run package writes comonad-0.2.0.vsix. Install it with code --install-extension comonad-0.2.0.vsix, or use Extensions → … → Install from VSIX….

From source

npm install
npm run compile

Press F5 in VS Code to launch the Extension Development Host.

Set a model key — DEEPSEEK_API_KEY is enough for the default DeepSeek Flash profile — or add any OpenAI-compatible endpoint with Comonad: Configure Model Provider. Open the chat with Comonad: Open Chat (Cmd+Alt+C / Ctrl+Alt+C).

First five minutes

  1. Open the chat from the Secondary Side Bar.
  2. Ask a question, or describe a change.
  3. Approvals appear inline: Allow once, Always allow, or Deny.
  4. Shell and file changes are tool cards; click one to see the command and output.
  5. Review pending files above the composer with Keep, Undo, or Review.

Documentation

The full guide is at https://zeroDtree.github.io/comonad-vscode-extension/ (also available in 中文 at /zh/). The source lives in docs/.

Start What it covers
Chat Sessions, composer, transcript, tool cards, @ references
Safety Modes, approval policies, rules, sandboxing, secrets
Context Window budget and compaction
Checkpoints and review Journal, Keep/Undo, restore points
Orchestration Orchestrator, 14 roles, task DAG, acceptance, parallel writes
Extending Plugins, hooks, skills, subagent roles, MCP
Reference Commands, tools and settings

Development

npm run watch        # typecheck + bundle in watch mode
npm run check-types
npm run lint
npm test             # full VS Code test host
npm run package      # production bundle

To rebuild the extension and install it into VS Code:

./scripts/reinstall.sh            # build, package and install
./scripts/reinstall.sh --build-only

The docs site is VitePress:

cd docs
npm install
npm run dev

See CONTRIBUTING.md for the development setup and documentation style.

License

Comonad Agent for VS Code is licensed under AGPL-3.0-only. See LICENSE.

Third-party components and their licenses are listed in THIRD_PARTY_NOTICES.md; provenance notes are in NOTICE.

Releases

Packages

Contributors

Languages