Agent Client Protocol

Also known as: ACP

On this page 6

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.

MethodDirectionPurpose
initializeClient to agentAgree on version and capabilities
session/newClient to agentCreate a conversation with a working directory
session/promptClient to agentSend a user turn with text and context
session/updateAgent to clientStream messages, plans and tool progress
session/request_permissionAgent to clientAsk the user to approve an action
session/cancelClient to agentStop the current turn
Core ACP methods

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.

ConcernOwned byWhy
User interface and diffsClientConsistent review experience in the editor
Model calls and promptsAgentEach agent keeps its own strategy
Workspace accessClientEditor knows buffers and project state
Tool selectionAgentPlanning remains agent-specific
Approval decisionsUser through clientSafety stays with the human
Division of responsibilities

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.

ProtocolConnectsMain purpose
Agent Client ProtocolEditor and coding agentRun an agent inside any editor
Model Context ProtocolAgent and tools or dataGive agents external capabilities
Language Server ProtocolEditor and language serverCompletion, diagnostics, navigation
Agent Communication ProtocolAgent and agentMessaging between independent agents
ACP and neighboring protocols

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.

SymptomLikely causeFix
Agent starts but never answersLog output written to stdoutSend diagnostics to stderr only
Edits ignore unsaved changesAgent reads files from diskUse the client file methods
Feature silently missingCapability not negotiatedCheck initialize responses on both sides
Turn cannot be stoppedCancel not handled by agentImplement session/cancel promptly
Common ACP integration problems

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.