Ben Brandt 3f44543019 Unify ACP and Claude Code session ids (#193)
There have been some issues for folks because the session id we returned
for ACP wasn't the same as the session id for Claude Code.

Now, we pass it through to the `--session-id` flag of the Claude Code
CLI, which means both ACP and Claude Code are always referring to the
same UUID. Yay!
2025-12-05 15:14:16 +00:00
2025-10-24 13:05:27 +02:00
2025-10-31 18:12:11 +01:00
2025-10-30 17:17:47 +01:00
2025-09-02 19:06:32 -03:00
2025-09-11 12:27:52 -04:00
2025-08-28 15:13:31 -04:00
2025-09-25 12:26:40 +00:00
2025-08-26 22:18:57 -06:00

ACP adapter for Claude Code

npm

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

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
Readme 107 MiB
Languages
TypeScript 99.2%
JavaScript 0.6%
Shell 0.2%