Fenner says Zed wanted users to bring their preferred coding agents into a consistent interface. ACP is an open source, JSON-RPC-based protocol for communication between agents and clients. He cites OpenCode and Cursor as agents with ACP mode, and says up to 40 clients support the protocol, including JetBrains and Obsidian.
Building an ACP-Compatible Agent Live
Speaker
Bennet Fenner, an engineer at Zed, demonstrates how to adapt a minimal TypeScript coding agent to Agent Client Protocol during an AI Engineer session.
Fenner starts with a minimal Anthropic-powered agent that can read and edit files through two tools. Using the TypeScript SDK, he implements initialization, session creation, prompting, and cancellation. Sessions associate a conversation with an agent instance and the working directory supplied by the client.
The first Zed run completes without showing the model's text, so Fenner adds ACP session updates for streamed Anthropic response chunks. He then adds updates to show file-tool calls and their status and results. He also routes file reads through ACP so an editor can provide unsaved buffer contents.
Fenner attempts to demonstrate file edits and diffs, but reports a connection problem and duplicated output. He then has the agent add a terminal tool using ACP APIs that let clients create and manage terminals. The tool builds and runs commands such as `sleep 5` and `ls`.
Fenner points viewers to agentclientprotocol.com and says the demo code is not production-ready and had not yet been uploaded. In response to questions, he explains that ACP diffs contain old and new text for the client to compare, and that the current connection uses standard I/O. He says remote transport work is underway.
Takeaways
- A protocol adapter can let users connect different coding agents to one client interface.
- A minimal ACP agent needs initialization, session creation, prompting, and cancellation support.
- Send session updates to display streamed text and tool progress in the client.
- Use client-provided file-system access when an editor needs to expose unsaved buffer contents.
- Treat live-coded demos as experiments; Fenner cautions that this generated example is not production-ready.
Mentioned in this talk
Search inside this talk
What was claimed 11
- works atBennet Fenner works at Zed
“I work at Zed”
YouTube Verified2 sources· Talk, Web· archived
- built
Anthropic built
Claude Code
“every major model provider building Claude Code, Codex, Gemini CLI”
YouTube Verified20 sources· Talk, GitHub, Job posting, Web· archived
- featureAgentic Commerce Protocol: Agents and clients communicate through a unified interface using JSON-RPC
“It's a JSON-RPC-based protocol. The idea is that agents and clients can talk to each other through a unified interface.”
YouTube Unverified1 source· Talk
- feature
Cursor: Has ACP mode built in
“OpenCode and Cursor have ACP mode built in”
YouTube Unverified1 source· Talk
- feature
OpenCode: Has ACP mode built in“OpenCode ... have ACP mode built in”
YouTube Unverified1 source· Talk
- feature
OpenClaw: Functions as both a client and an agent
“OpenClaw, which is both a client and an agent”
YouTube Unverified1 source· Talk
- metricAgentic Commerce Protocol: Up to 40 clients implement it
“We also have up to 40 clients that implement this”
YouTube Unverified1 source· Talk
- featureAgentic Commerce Protocol: Supports session updates, including streamed agent message chunks and tool-call updates
“Every time we get a chunk, we send what ACP calls a session update.”
YouTube Unverified1 source· Talk











