The Agent Client Protocol (ACP) is an open standard for communication between code editors and AI coding agents, defining how an editor starts an agent, sends it user prompts, streams back its progress and lets it read files, edit code and run commands with the user’s permission. In AI for coding, a topic of artificial intelligence, ACP plays the role for agentic coding that the Language Server Protocol plays for language tooling: any compliant agent can work inside any compliant editor.
ACP was introduced in August 2025 by Zed Industries, with Google’s Gemini CLI as the first reference agent, and it is published under the Apache 2.0 license. Adapters soon connected other command-line agents, and further editors, including JetBrains IDEs and community plugins for Neovim and Emacs, announced or shipped support. It should not be confused with the separately developed Agent Communication Protocol, which shares the acronym but addresses messaging between agents.
How the Agent Client Protocol works
ACP uses JSON-RPC 2.0 messages, typically exchanged over standard input and output after the editor launches the agent as a subprocess. The editor acts as the client that owns the user interface and the workspace, while the agent owns the reasoning loop, the model calls and the tool strategy.
A session follows a predictable sequence. The client sends initialize to negotiate the protocol version and capabilities, optionally calls authenticate, opens a conversation with session/new and sends user turns with session/prompt. The agent replies with a stream of session/update notifications carrying message chunks, plans and tool-call status, and it ends the turn with a stop reason.
The table below lists the core methods and their direction.
| Method | Direction | Purpose |
|---|---|---|
initialize | Client to agent | Agree on version and capabilities |
session/new | Client to agent | Create a conversation with a working directory |
session/prompt | Client to agent | Send a user turn with text and context |
session/update | Agent to client | Stream messages, plans and tool progress |
session/request_permission | Agent to client | Ask the user to approve an action |
session/cancel | Client to agent | Stop the current turn |
Client capabilities: files, terminals and permissions
A distinctive design choice is that the editor exposes its own capabilities to the agent. Through methods such as fs/read_text_file and fs/write_text_file, the agent can read the editor’s in-memory buffers, including unsaved changes, instead of stale files on disk. Terminal methods let the agent create a command, read its output and wait for it to exit inside the editor.
Before risky operations, the agent calls session/request_permission, and the editor shows the user options such as allow once, allow always or reject. This keeps a human in the loop while the agent works autonomously between approvals. Edits are reported as structured diffs, so the editor can render reviewable changes rather than raw text.
The following table shows what each side controls.
| Concern | Owned by | Why |
|---|---|---|
| User interface and diffs | Client | Consistent review experience in the editor |
| Model calls and prompts | Agent | Each agent keeps its own strategy |
| Workspace access | Client | Editor knows buffers and project state |
| Tool selection | Agent | Planning remains agent-specific |
| Approval decisions | User through client | Safety stays with the human |
ACP compared with MCP and LSP
ACP is often discussed alongside two other protocols, and the three are complementary rather than competing. ACP even reuses MCP data types for content where possible, and a client can pass MCP server configurations to the agent when it creates a session.
| Protocol | Connects | Main purpose |
|---|---|---|
| Agent Client Protocol | Editor and coding agent | Run an agent inside any editor |
| Model Context Protocol | Agent and tools or data | Give agents external capabilities |
| Language Server Protocol | Editor and language server | Completion, diagnostics, navigation |
| Agent Communication Protocol | Agent and agent | Messaging between independent agents |
Put together, an editor speaks ACP to the agent, the agent speaks MCP to its tools, and the editor still uses LSP for language intelligence. This layering removes the need for each editor vendor to build a custom integration for every agent.
Adoption, benefits and limitations
The central benefit of ACP is decoupling agents from editors, which reduces an integration problem from many-to-many to many-to-one. Agent developers implement the protocol once, and users can switch agents without switching editors, keeping their keybindings, themes and review workflow.
- Young specification: method names and capabilities are still evolving, so implementations must track versions.
- Uneven feature coverage: some agents support terminals, session loading or plans, others do not.
- Adapter dependence: several popular agents are connected through community adapters rather than native support.
- Local process model: the default stdio transport assumes the agent runs on the same machine as the editor.
A practical recommendation is to check the capabilities returned by initialize rather than assuming features, and to keep permission prompts enabled for file writes and shell commands until an agent’s behavior is well understood.
Typical integration problems have recognizable causes. The table below maps frequent symptoms to their usual fixes.
| Symptom | Likely cause | Fix |
|---|---|---|
| Agent starts but never answers | Log output written to stdout | Send diagnostics to stderr only |
| Edits ignore unsaved changes | Agent reads files from disk | Use the client file methods |
| Feature silently missing | Capability not negotiated | Check initialize responses on both sides |
| Turn cannot be stopped | Cancel not handled by agent | Implement session/cancel promptly |
Put simply
The Agent Client Protocol is a common language between code editors and AI helpers. Before it existed, each editor had to build a special connection for each AI assistant. That was slow and wasteful.
With ACP, an assistant learns the language once. Then it can work in any editor that also speaks it. It is like a universal power plug. The editor still shows the changes and asks before anything risky happens.
In practice
A backend developer works in an editor that supports ACP and wants to try two different coding agents on the same task: adding pagination to a REST endpoint across five files. She selects the first agent from the editor’s agent panel. The editor launches it as a subprocess, opens a session in the project directory and sends her prompt.
The agent streams a short plan, reads the relevant buffers, proposes diffs and asks permission before running the test suite in the editor’s terminal. She reviews each diff in the familiar interface, then repeats the task with the second agent for comparison. Because both agents speak the same protocol, she compares them in about twenty minutes without installing extra plugins, and she keeps the version that passes all tests with the smaller change.