
KD Code
kd-labs.kd-codeVS Code ≥ 1.123 • MITVS Code extension for orchestrating coding agents over the Agent Client Protocol (ACP). Install Claude, Codex, OpenCode in one click and compare parallel agent runs (Best-of-N) in isolated Git worktrees.
$ code --install-extension kd-labs.kd-codeACP Registry & Agents
One-click install of Claude, Codex, and OpenCode from the ACP Registry, or wire custom local agents with MCP servers and Skills ($).
Isolated Git Worktrees
Every chat tab executes inside its own dedicated Git worktree and branch, provisioning .env/node_modules with explicit permission gates.
Best-of-N Diff & Merge
Dispatch one prompt to multiple agents/models in parallel, inspect hunks (Keep/Undo), and merge or draft a Pull Request via GitHub CLI.
git clone https://github.com/kd-labs-io/kd-code-extension && cd kd-code-extension && npm install && npm run reinstallAbout the Project
KD Code brings a disciplined AI-Native engineering workflow directly into VS Code over the open Agent Client Protocol (ACP). Instead of locking developers into a single assistant, KD Code lets you install Claude, Codex, OpenCode, and custom local agents from the ACP Registry in one click. Its core breakthrough is isolated Git Worktree execution with Best-of-N Compare: dispatch a single prompt across multiple agents, models, and effort levels in parallel worktrees, inspect side-by-side diffs per file or hunk, and seamlessly merge or draft Pull Requests.
Core Capabilities
9Agent Client Protocol (ACP): One-click install of Claude, Codex, OpenCode from the ACP Registry or custom local agents.
Isolated Git Worktrees: Run any tab or new chat in its own Git worktree and branch without polluting your working tree.
Best-of-N Parallel Compare: Send one prompt to multiple agents/models simultaneously, compare diffs side-by-side, and apply the winner.
Granular Diff Review & Checkpoints: Keep or Undo changes per file or per hunk in chat and editor, with full checkpoint restore.
Rich @Context & Image Annotation: Attach files, folders, terminals, IDE problems, and draw directly on images with pen/arrows/text.
MCP Servers, Skills ($) & Commands (/): Pass custom MCP servers, invoke skills with $, and configure workspace permission rules.
Token Cost & ACP Tracing: Track session/daily token spend via ccusage and inspect live turn latency and raw ACP protocol logs.
Machine-Scoped Security Boundary: Execution settings (custom agents, MCP, env vars) are restricted to machine scope to prevent workspace tampering.
Bilingual UI & MIT Open Source: Native English and Vietnamese interface, openly auditable at github.com/kd-labs-io/kd-code-extension.
What's New in this Version
v0.0.6- Open-source release of KD Code v0.0.6 under the MIT License at github.com/kd-labs-io/kd-code-extension
- Full Agent Client Protocol (ACP) client implementation & 1-click ACP Registry installer
- Automated Git Worktree isolation, Best-of-N parallel comparison, and GitHub CLI PR drafting
- Built-in Setup Doctor, ccusage token cost analytics, and bilingual English/Vietnamese UI