KD LabsKeep Development
Back to Projects
KD Code Icon
AI-Native IDE • VS Code ExtensionKD Labs (@kd-labs-io)

KD Code

ACP Protocol • Git Worktrees•v0.0.1
Agent Client Protocol (ACP) & Git Worktree Orchestration Architecture
VS Code Secondary Sidebar • Cmd+Alt+A
01. ACP Registry & Agents

One-click install of Claude, Codex, and OpenCode from the ACP Registry, or wire custom local agents with MCP servers and Skills ($).

02. Isolated Git Worktrees

Every chat tab executes inside its own dedicated Git worktree and branch, provisioning .env/node_modules with explicit permission gates.

03. 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.

Build & install from source (Requires VS Code ≥ 1.123):git clone https://github.com/kd-labs-io/kd-code-extension && cd kd-code-extension && npm install && npm run reinstall
MIT License

About 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

Agent 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

                • Open-source release of KD Code v0.0.1 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
              

Technical Specifications

Package Namekd-labs.kd-code
Version0.0.1
Download SizeOpen Source (MIT)
OS RequirementVS Code ≥ 1.123 (macOS • Linux • Windows)
Last UpdatedTháng 11, 2026
Privacy & Data Protection

All execution-critical settings (custom agents, MCP servers, environment variables, Node/ccusage paths) are strictly enforced at machine scope — preventing untrusted workspaces from injecting executable commands. Worktree setup scripts require explicit user approval whenever commands or referenced files change.