mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-10-27 04:30:59 +00:00
ea796f3cbd8916b7ff19c6082272c8736393d513
resolves #90 Tested both the `append` and `override` flows by sending: ```javascript const resp = await this.connection.newSession({ cwd: basePath, _meta: { systemPrompt: "you are an obsidian assistant agent, you should be helpful to the user when working with their notes" }, mcpServers: [] }); ``` ```javascript const resp = await this.connection.newSession({ cwd: basePath, _meta: { systemPrompt: { append: "always speak in spanish" } }, mcpServers: [] }); ``` and confirmed that in both cases those prompts are what gets sent to the agent! --------- Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
ACP adapter for Claude Code
Use Claude Code from ACP-compatible clients such as Zed!
This tool implements an ACP agent by using the official Claude Code SDK, supporting:
- Context @-mentions
- Images
- Tool calls (with permission requests)
- Following
- Edit review
- TODO lists
- Interactive (and background) terminals
- Custom Slash commands
- Client MCP servers
Learn more about the Agent Client Protocol.
How to use
Zed
The latest version of Zed can already use this adapter out of the box.
To use Claude Code, open the Agent Panel and click "New Claude Code Thread" from the + button menu in the top-right:
https://github.com/user-attachments/assets/ddce66c7-79ac-47a3-ad59-4a6a3ca74903
Read the docs on External Agent support.
Other clients
- Emacs via agent-shell.el
- marimo notebook
- Neovim
- via CodeCompanion.nvim
- via yetone/avante.nvim
Submit a PR to add yours!
Installation
Install the adapter from npm:
npm install @zed-industries/claude-code-acp
You can then use claude-code-acp as a regular ACP agent:
ANTHROPIC_API_KEY=sk-... claude-code-acp
License
Apache-2.0
Description
Pull mirror of agentclientprotocol/claude-agent-acp (Apache-2.0): the ACP bridge that lets Buzz drive Claude Code
Languages
TypeScript
99.2%
JavaScript
0.6%
Shell
0.2%