# ACP: The Protocol Between Your Editor and Your Coding Agent

> MCP connects an agent to tools. ACP, the Agent Client Protocol, connects an agent to the editor you drive it from. How it works, who speaks it, and the other three things called ACP.

- Published: 2026-11-29
- Tags: AI, dx, tools
- URL: https://www.woza.ink/blog/agent-client-protocol
- Written by: AI, from Samy's notes. Blockquotes starting with [!take] are Samy's own words.

Every coding agent used to ship its own front end. Claude Code had a terminal UI, Gemini CLI had a different one, and if you wanted either inside your editor, someone had to write a plugin for that exact pair: this agent, that editor. Five agents and five editors meant up to twenty-five integrations, each one breaking whenever either side changed.

The **Agent Client Protocol** (ACP) is the bet that this should be one integration per side. An agent speaks ACP once and works in every editor that speaks it; an editor speaks it once and can run any of those agents. It's the same move the Language Server Protocol made for compilers and autocomplete a decade ago, applied to agents.

---

## First, which ACP?

The acronym is crowded, and that's probably why you're unsure what the C stands for. There's no widely used "Agent *Context* Protocol": that name is a blend of ACP and MCP, the Model Context Protocol. The ACPs you'll actually run into are these:

| Name | From | What it connects | Status |
| --- | --- | --- | --- |
| **Agent Client Protocol** | Zed, August 2025 | A coding agent and the editor or app you drive it from | Active; the subject of this post |
| Agent Communication Protocol | IBM Research (BeeAI), March 2025 | Agents talking to other agents over REST | Merged into Google's A2A under the Linux Foundation in August 2025; repo archived |
| Agentic Commerce Protocol | OpenAI and Stripe, September 2025 | An agent and a merchant, for checkout | Active; closer to the [agent payments](https://www.woza.ink/blog/series/agent-payments) world |
| Model Context Protocol (MCP) | Anthropic, November 2024 | An agent and its tools and data | Not an ACP, but the one ACP is usually compared with |

From here on, ACP means the Agent Client Protocol.

---

## Where it sits next to MCP

The easiest way to place ACP is relative to MCP, because they're two sides of the same agent.

- **MCP** is how an agent reaches *out*: to a database, a browser, GitHub, your notes. The agent is the client and the tools are servers.
- **ACP** is how a human reaches *in*: the editor (the "client" in Agent Client Protocol) starts the agent, sends it prompts, shows what it's doing and asks you to approve risky steps.

So a typical setup has both. Zed or a JetBrains IDE talks ACP to Claude Code, and Claude Code talks MCP to your Postgres and your issue tracker. The two specs are designed to fit together: ACP reuses MCP's JSON shapes for content (text, images, embedded resources) wherever it can, and when the editor opens a session it hands the agent the list of MCP servers to connect to. You configure your tools once in the editor and every agent you run there gets them.

What ACP adds on top of MCP's vocabulary is the stuff a coding UI needs and a tool call doesn't: diffs, plans, terminals, permission prompts and streaming thoughts.

---

## How it works

ACP is JSON-RPC 2.0, like MCP and LSP. For a local agent, the editor launches it as a subprocess and they exchange messages over stdin and stdout. There's no port, no server and no auth to set up; the agent lives and dies with the editor window. Remote agents over HTTP or WebSocket are in the spec too, but the docs still call full support for them a work in progress.

A session goes like this:

1. **`initialize`**: both sides agree on a protocol version and announce what they can do. The editor says whether it can read and write files and run terminals; the agent says whether it can reload old sessions, which MCP transports it supports, and so on. Everything optional in the protocol hangs off these capabilities.
2. **`authenticate`**, if the agent needs you to log in.
3. **`session/new`**: the editor gives the agent a working directory (an absolute path) and its MCP servers. Every agent must support stdio MCP servers; HTTP is recommended, and SSE is there for old servers.
4. **`session/prompt`**: your message, as a list of content blocks. A block can be plain text or a whole file embedded as a resource, so the editor can attach your current selection without the agent having to go and read it.
5. While it works, the agent streams **`session/update`** notifications back. These carry most of the protocol's value:
   - `agent_message_chunk` and `agent_thought_chunk`: the reply and the reasoning, token by token
   - `tool_call` and `tool_call_update`: "editing `src/app.ts`", with the diff once it exists
   - `plan`: the agent's to-do list, which the editor can render as a checklist
   - `available_commands_update` and `current_mode_update`: the agent's slash commands and modes, so the editor can offer them in its own UI
   - newer kinds for token usage, context compaction and subagents
6. When the agent wants to do something risky, it calls **`session/request_permission`** on the editor, which shows you the approve or deny prompt. This is the part that makes an agent in your editor feel like the agent in your terminal.
7. The turn ends when `session/prompt` returns, with a stop reason: `end_turn`, `max_tokens`, `max_turn_requests`, `refusal` or `cancelled`. Hitting Stop sends **`session/cancel`**, and the agent has to wind down and answer with `cancelled`.

The direction of calls is the interesting design choice. The agent can call *back into the editor*: `fs/read_text_file`, `fs/write_text_file`, and a small `terminal/*` family (`create`, `output`, `wait_for_exit`, `kill`, `release`). Reading through the editor means the agent sees your unsaved buffer rather than a stale file on disk. Writing through it means edits land as undoable changes the editor can review, and shell commands run in a terminal you can watch. An agent that ignores these and touches the disk itself still works; it just gives the editor less to show you.

Anything not in the spec can go in a method whose name starts with `_`, so agents and editors can experiment without forking the protocol.

---

## Who speaks it

**Editors.** Zed built it and ships it as its main way of running outside agents. JetBrains joined in October 2025 and has it across its IDEs. Neovim has several clients (CodeCompanion, avante.nvim, agentic.nvim), Emacs has agent-shell, and there are clients for marimo notebooks, Obsidian, desktop and mobile apps, and chat tools. The client list on the ACP site is long, community-maintained and unvetted, so treat it as a sign of interest rather than of quality.

**Agents.** Gemini CLI was the launch partner and the first native implementation. Since then the agents page has grown past fifty entries: GitHub Copilot CLI, Goose, OpenCode, Junie, Kiro CLI, Cursor and many smaller ones. Some of the biggest agents speak ACP through an adapter rather than natively. Claude Code runs as `claude-agent-acp`, which Zed maintains on top of the Claude Agent SDK, and Codex runs through `codex-acp`. That works, but it means features arrive in the adapter some time after they arrive in the agent.

**The registry.** In January 2026 Zed and JetBrains launched the ACP Registry, a shared catalog of agents. An agent author opens one pull request against the [registry repo](https://github.com/agentclientprotocol/registry), and the agent appears in the install list of every client that reads the registry, Zed and JetBrains IDEs included. It replaced Zed's per-editor agent extensions, whose format became the registry's schema. It's the "one integration per side" promise turned into something you can click.

---

## What it's good for, and what it isn't

**It's good for choice.** Your editor and your agent become separate decisions. You can try a new agent without leaving the editor you know, or keep the agent you trust while switching editors. Competition between agents moves to the model and the loop, not to who has the best Neovim plugin.

**It's good for small teams.** Writing an agent no longer means writing a UI. Implement ACP and you get diffs, approvals, plans and history rendering in a dozen front ends for free. Same in reverse: a new editor can offer every major agent on day one.

**It doesn't make agents identical.** An agent's best features often live in its own UI first. Claude Code's skills, hooks and settings, for example, aren't ACP concepts; through an adapter you get the agent's core loop, and the rest depends on what the adapter maps. Capability negotiation means a mismatch degrades quietly instead of failing, but quietly is still a loss.

**It's local-first, for now.** Most of the ecosystem is subprocess-over-stdio. That's simple and safe, but it means the agent runs on your machine with your permissions. Cloud agents that keep running after you close the laptop are where things are heading, and that half of the spec is still settling.

**It's young.** The spec has added sessions you can resume and close, subagents, compaction and usage updates in its first year, and it will keep moving. Pin versions if you build on it.

---

## Trying it

The quickest look is Zed: open the agent panel, pick an agent from the registry, and run a prompt. The editor shows the plan, the tool calls and the diffs as the `session/update` stream comes in.

To see the raw protocol, point any ACP agent at a terminal and type JSON-RPC at it. Start with `initialize`, then `session/new` with a `cwd` and an empty `mcpServers`, then `session/prompt`, and watch the notifications scroll past. It's the fastest way to see that an "agent in your editor" is just a subprocess and a few kinds of message.

To build one, the official SDKs (TypeScript, Python, Rust and others) handle the JSON-RPC framing, and the [spec](https://agentclientprotocol.com/protocol/overview) is short enough to read in an evening. If you've ever written an MCP server, an ACP agent will feel familiar, just facing the other way.
