Skip to content

Menu

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-n

Start a new agent thread from the panel

From the docs, not run by us
cmd-alt-shift-n / ctrl-alt-shift-n

Open the New Thread menu to choose the agent

From the docs, not run by us
cmd-alt-j / ctrl-alt-j

Show the threads sidebar

From the docs, not run by us
ctrl-tab

Switch between recent threads

From the docs, not run by us
cmd-alt-/ / ctrl-alt-/

Open the model selector

From the docs, not run by us
cmd-> / ctrl->

Add the current editor selection to the thread

From the docs, not run by us
shift-ctrl-r / ctrl-shift-r

Review the changes the agent made

From the docs, not run by us
ctrl-enter

Open the Inline Assistant on a selection (https://zed.dev/docs/ai/inline-assistant)

From the docs, not run by us
@

Mention files, folders, symbols, threads, diagnostics, branch diffs or URLs in a message

From the docs, not run by us
cmd-, / ctrl-,

Open the settings editor

From the docs, not run by us
cmd-alt-, / ctrl-alt-,

Open settings.json directly

From the docs, not run by us
cmd-k cmd-s / ctrl-k ctrl-s

Open the keymap editor

From the docs, not run by us
alt-/

Show the which-key list of pending key sequences

From the docs, not run by us
~/.config/zed/keymap.json

Your custom key bindings on macOS and Linux

From the docs, not run by us
~/.config/zed/settings.json

User settings on macOS and Linux; .zed/settings.json holds project settings

Try it: JSON FormatterFrom the docs, not run by us

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

From the docs, not run by us
"agent": { "tool_permissions": { "default": "confirm" } }

Global tool policy: confirm (default), allow or deny

From the docs, not run by us
"tools": { "terminal": { "always_allow": [{ "pattern": "^cargo\\s+(build|test|check)" }] } }

Let matching terminal commands run without a prompt

Try it: Regex TesterFrom the docs, not run by us
"always_deny": [{ "pattern": "rm -rf" }]

Block matching commands outright; deny beats allow

From the docs, not run by us
"mcp:github:create_issue"

Key format for setting permissions on one MCP tool

From the docs, not run by us
"agent": { "auto_compact": { "enabled": true, "threshold": "90%" } }

Summarise long threads automatically near the context limit

From the docs, not run by us
"agent": { "commit_message_model": { ... } }

Use a different, cheaper model just for commit messages

From the docs, not run by us

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

Try it: MCP Config GeneratorFrom the docs, not run by us
"remote": { "url": "https://example.com/mcp", "headers": { "Authorization": "Bearer <token>" } }

Connect a remote server with a static token

Try it: MCP Config ValidatorFrom the docs, not run by us
"remote-oauth": { "url": "https://mcp.example.com/mcp" }

Remote server without a header, which starts the OAuth flow

From the docs, not run by us
zed: extensions

Browse extensions, including ones that bundle MCP servers

From the docs, not run by us
.rules, .cursorrules, .windsurfrules, .clinerules, .github/copilot-instructions.md, AGENT.md, AGENTS.md, CLAUDE.md, GEMINI.md

Project instruction files in lookup order; Zed uses the first it finds (https://zed.dev/docs/ai/instructions)

Try it: AGENTS.md / CLAUDE.md GeneratorFrom the docs, not run by us
~/.config/zed/AGENTS.md

Personal instructions; the project file wins on conflicts

From the docs, not run by us
zed: acp registry

Install an external agent such as Codex or Gemini CLI (https://zed.dev/docs/ai/external-agents)

From the docs, not run by us
"agent_servers": { "my-agent": { "type": "custom", "command": "node", "args": ["index.js", "--acp"] } }

Register your own ACP agent

From the docs, not run by us
dev: open acp logs

See the protocol traffic when an external agent misbehaves

From the docs, not run by us

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.default to allow to stop prompts

    Keep confirm and add always_allow patterns for the few commands you run constantly.

  • Adding AGENTS.md to a repo that already has .cursorrules, and expecting Zed to read both

    Zed 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_actions setting from a blog post

    Move 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.