Zed Cheat Sheet: Agent Panel, Settings, Key Bindings and MCP
Checked against Zed Zed 1.30.2 stable (25 Nov 2026) on 28 November 2026. Each section links to the official docs it was checked against.
This sheet is for developers using Zed's built-in agent or plugging other agents into it. It follows Zed 1.30.2, the stable release from 25 Nov 2026, and the docs at zed.dev/docs. Zed wasn't installed for this sheet, so shortcuts and settings come from the docs and weren't pressed or loaded.
When to use what
Zed gives you two ways to use AI. The Zed Agent is the built-in one: you pick the model, it reads your instruction files, and tool permissions live in your settings. External agents such as Claude Agent, Codex and Gemini CLI run over the Agent Client Protocol: Zed shows the thread, but the agent handles its own login, models and billing. Use the built-in agent if you want one place to tune permissions; use an external one if your team already standardised on it.
For safety, set agent.tool_permissions before you hand the agent a big task. The default is to confirm every tool. Allow-list the commands you run all the time (a test runner, a type checker) with regex patterns and deny the ones you never want, rather than flipping the global default to allow.
Zed reads only the first instruction file it finds in a project, in a fixed order that starts with .rules and ends with GEMINI.md. If your repo has both .cursorrules and AGENTS.md, Zed uses .cursorrules. The agent rules generator drafts one file you can share. Our Zed page covers pricing, and the MCP config generator writes context_servers entries you can paste.
cmd-n / ctrl-nStart a new agent thread from the panel
cmd-alt-shift-n / ctrl-alt-shift-nOpen the New Thread menu to choose the agent
cmd-alt-j / ctrl-alt-jShow the threads sidebar
ctrl-tabSwitch between recent threads
cmd-alt-/ / ctrl-alt-/Open the model selector
cmd-> / ctrl->Add the current editor selection to the thread
shift-ctrl-r / ctrl-shift-rReview the changes the agent made
ctrl-enterOpen the Inline Assistant on a selection (https://zed.dev/docs/ai/inline-assistant)
@Mention files, folders, symbols, threads, diagnostics, branch diffs or URLs in a message
cmd-, / ctrl-,Open the settings editor
cmd-alt-, / ctrl-alt-,Open settings.json directly
cmd-k cmd-s / ctrl-k ctrl-sOpen the keymap editor
alt-/Show the which-key list of pending key sequences
~/.config/zed/keymap.jsonYour custom key bindings on macOS and Linux
~/.config/zed/settings.jsonUser settings on macOS and Linux; .zed/settings.json holds project settings
Precedence, highest first: built-in security rules, always_deny, always_confirm, always_allow, the tool's default, the global default. Patterns are Rust regex. Before v0.224.0 the setting was agent.always_allow_tool_actions.
"agent": { "default_model": { "provider": "zed.dev", "model": "claude-sonnet-4-5" } }Default model for new threads; picking one in the panel writes it here
"agent": { "tool_permissions": { "default": "confirm" } }Global tool policy: confirm (default), allow or deny
"tools": { "terminal": { "always_allow": [{ "pattern": "^cargo\\s+(build|test|check)" }] } }Let matching terminal commands run without a prompt
"always_deny": [{ "pattern": "rm -rf" }]Block matching commands outright; deny beats allow
"mcp:github:create_issue"Key format for setting permissions on one MCP tool
"agent": { "auto_compact": { "enabled": true, "threshold": "90%" } }Summarise long threads automatically near the context limit
"agent": { "commit_message_model": { ... } }Use a different, cheaper model just for commit messages
External agents don't work in the Inline Assistant.
"context_servers": { "local": { "command": "some-command", "args": ["arg-1"], "env": {} } }Run a local MCP server over stdio
"remote": { "url": "https://example.com/mcp", "headers": { "Authorization": "Bearer <token>" } }Connect a remote server with a static token
"remote-oauth": { "url": "https://mcp.example.com/mcp" }Remote server without a header, which starts the OAuth flow
zed: extensionsBrowse extensions, including ones that bundle MCP servers
.rules, .cursorrules, .windsurfrules, .clinerules, .github/copilot-instructions.md, AGENT.md, AGENTS.md, CLAUDE.md, GEMINI.mdProject instruction files in lookup order; Zed uses the first it finds (https://zed.dev/docs/ai/instructions)
~/.config/zed/AGENTS.mdPersonal instructions; the project file wins on conflicts
zed: acp registryInstall an external agent such as Codex or Gemini CLI (https://zed.dev/docs/ai/external-agents)
"agent_servers": { "my-agent": { "type": "custom", "command": "node", "args": ["index.js", "--acp"] } }Register your own ACP agent
dev: open acp logsSee the protocol traffic when an external agent misbehaves
Worked example: Let the agent run tests without asking, but never delete
Open settings.json with cmd-alt-, and add:
{
"agent": {
"tool_permissions": {
"default": "confirm",
"tools": {
"terminal": {
"always_allow": [{ "pattern": "^npm\\s+(test|run lint)" }],
"always_deny": [{ "pattern": "rm\\s+-rf" }]
},
"delete_path": { "default": "deny" }
}
}
}
}
Start a thread with cmd-n and ask the agent to fix a failing test. When it runs npm test, there's no prompt, because the allow pattern matches. Any other command, say npm install, still asks you. A delete attempt is refused even if the model insists, since deny sits above allow in the precedence list. Test the regexes before saving them; a pattern without the ^ anchor would also match a command that only contains npm test somewhere in the middle.
Common mistakes
Setting
tool_permissions.defaulttoallowto stop promptsKeep
confirmand addalways_allowpatterns for the few commands you run constantly.Adding AGENTS.md to a repo that already has
.cursorrules, and expecting Zed to read bothZed uses only the first file in its lookup order; merge them or delete the older one.
Looking for Restore Checkpoint after a bad edit
Checkpoints were removed in 1.27.0; commit before big tasks and use Review Changes or Git to undo.
Using the old
always_allow_tool_actionssetting from a blog postMove to
agent.tool_permissions, which replaced it in v0.224.0.Trying an external agent in the Inline Assistant
Inline assist only works with the Zed Agent; use the panel for Codex, Gemini CLI or Claude Agent.
Related cheat sheets
Sources
- https://zed.dev/docs/ai/agent-panel
- https://zed.dev/docs/ai/inline-assistant
- https://zed.dev/docs/key-bindings
- https://zed.dev/docs/ai/tool-permissions
- https://zed.dev/docs/ai/agent-settings
- https://zed.dev/docs/ai/mcp
- https://zed.dev/docs/ai/instructions
- https://zed.dev/docs/ai/external-agents
- https://zed.dev/releases/stable
- https://github.com/zed-industries/zed/releases
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.