AI & LLMs · Guide · AI & Prompt Tools
How to Use Zed's AI Agent
Turning on the Agent Panel in Zed, configuring providers, Edit Predictions, agent mode vs ask, and Zed's collab flow.
Zed is a high-performance open-source editor written in Rust, and its Agent Panel turns it into a full AI coding workspace backed by Anthropic’s Claude models.
Advertisement
Zed started life as a GPU-accelerated successor to Atom, built by the same team. In 2025 it shipped the Agent Panel, Edit Predictions, and multiplayer collaboration, putting it in direct competition with Cursor and Copilot while staying fully open source under a GPL/Apache mix.
What it is
Zed is a native desktop editor (macOS, Linux, Windows preview) that renders through its own GPUI toolkit. The Agent Panel is a chat pane wired into your workspace: it can read files, run shell commands, and apply multi-file edits through tool calls. Edit Predictions is an inline model (Zeta) that proposes the next edit as you type. Collaboration mode shares buffers and terminals in real time.
Install / sign up
# macOS brew install --cask zed # Linux curl -f https://zed.dev/install.sh | sh # Sign in via GitHub at https://zed.dev # Optional: add your own Anthropic / OpenAI key in Settings
First session
Open a project folder, then hit cmd-? (or ctrl-?) to toggle the Agent Panel. Pick a model — Claude Sonnet is the default — and type a request. The agent will propose a diff you can accept hunk-by-hunk.
$ zed ~/code/my-app # cmd-? opens Agent Panel > refactor src/auth.ts to use async/await and add tests # Zed shows a diff, you hit cmd-enter to apply
Everyday workflows
- 1. Ask the agent to add a feature — it edits multiple files and runs the test command.
- 2. Drop files or symbols into the chat with @ to scope context precisely.
- 3. Use Edit Predictions (tab to accept) for line-level completions while the agent handles larger tasks.
Gotchas and tips
The built-in Zed hosted plan gives you a monthly Claude quota; heavy users should plug in their own API key under Settings ’ AI to avoid throttling. Rules files (.rules at the project root) steer the agent — keep them short and specific.
Windows support is still preview, so expect rough edges around PTY and file watching. Collaboration requires everyone to be signed in and on the same Zed version.
Who it’s for
Developers who want Cursor-class agent features inside a fast, native, open-source editor, and teams that value real-time pair-programming without leaving their IDE.
Advertisement