You can now interact with third-party agents directly within Zed. To make this possible, we created the Agent Client Protocol (ACP), and we've partnered with Google to integrate Gemini CLI as the initial reference implementation.
Because software developers rely on diverse tools in a variety of different tech stacks, we see room for multiple agents competing to solve problems in different domains. Just as the Language Server Protocol unbundled language intelligence from monolithic IDEs, our goal with the Agent Client Protocol is to enable you to switch between multiple agents without switching your editor. If you're an agent developer, we're also giving you a fast and convenient user interface inside an IDE, so you can focus on building the best possible agent rather than forking VS Code.
Gemini CLI in Zed
After shipping agentic editing earlier this year, the next big task on our roadmap was making that experience extensible. As luck would have it, that's around the time when Google decided to reach out. The Gemini CLI team was having a great experience using their agent in Zed's integrated terminal, and they wanted to explore what deeper integration could look like. As an open-source project with a ton of early traction, Gemini CLI seemed like a perfect way to drive the design of extensible agents in Zed with a concrete use case.
Command-line agents are cool because their simplicity makes them easy to run anywhere—including as a subprocess of another application. Zed was already running Gemini CLI inside our embedded terminal emulator, but we needed a more structured way of communicating than ANSI escape codes. So we defined a minimal set of JSON-RPC endpoints to relay user requests to the agent and render its responses. The result is the Agent Client Protocol, a lean framework that lets any client talk to any agent, as long as they follow the schema.
By running the same Gemini CLI as a subprocess speaking ACP, we surface the same underlying capabilities of the terminal-based experience, but tightly integrated into an environment that's purpose-built for software development. This unlocks features that are difficult to achieve outside of an editor, such as real-time edit visualization, multi-buffer reviews, and fluid navigation between code and agent interactions.
Introducing the Agent Client Protocol

ACP lets developers choose the tools that work best for their workflow. Any agent that speaks ACP can plug into a powerful UI, where the user can follow the agent around the codebase as it works, control its access to tools and MCP servers, and review all of its changes in a multi-buffer with full syntax highlighting and language server support. When you interact with third-party agents, nothing touches our servers, and we don't have access to your code. As with all Zed features and services, we never store or train on your data without your explicit consent.
The protocol is open-source under the Apache license; any agent can implement it, potentially building on Gemini CLI's implementation as a starting point. The protocol is also open for other clients to adopt, and we really hope to see uptake from other editors. That's why we worked with Oli Morris of Code Companion to bring support for ACP-compatible agents to Neovim users.
We have also updated Zed’s own in-process agent to use the same code paths as third-party agents, ensuring that any UI primitives we develop for our own agent can also be made available to external agents. Cleanly separating UI from the core of our agent has already improved our shipping velocity, and we're excited for you to try the new experience. Check out the source code, or download Zed to try it yourself.
Build with Us
We believe the best tools come from openness. Just as the Language Server Protocol opened up IDEs to specialized tools, ACP creates space for an ecosystem of agents tailored to every developer's workflow. We appreciate Google’s open approach with Gemini CLI, which made this collaboration possible, and we're committed to the same. We intend to maintain enough control over the Agent Client Protocol to continue to push it forward quickly, while also evolving and versioning it carefully to encourage an ecosystem of agents and clients to develop.
We welcome contributions and feedback on ACP. We hope to see a lot more agents in Zed. We also hope to see other editors adopt the protocol. We're excited to see how our community experiments, innovates, and builds what's next in Zed.
Looking for a better editor?
You can try Zed today on macOS or Linux. Download now!
We are hiring!
If you're passionate about the topics we cover on our blog, please consider joining our team to help us ship the future of software development.