Skip to content

Zed Agent: safety, permission modes and how to run it

How the Zed Agent panel handles tool permissions, profiles and external ACP agents, plus its 2025 and 2026 advisories and steps to run it safely.

Logs readChecked
Made by
Zed Industries
Runs in
Desktop editor (Agent Panel)
Platforms
macOS, Linux, Windows
Licence
GPL-3.0-or-later, with Apache-2.0 components where marked, open source

11 public advisories

Security advisories and reported issues since 2025, from vendor advisories, NVD and public reports. Checked December 2, 2026.

11Advisories (CVE or GHSA)
0Other reported issues
7Name a fixed release
9Rated critical or high

What Zed Agent is

The agent panel in Zed runs threads that can read and edit your project, run terminal commands, fetch URLs and call MCP tools. Profiles decide which tools a thread has, and a separate tool permissions system decides whether each call is allowed, denied or confirmed. Zed can also launch external agents such as Claude, Codex and Gemini CLI as separate processes over ACP, and those agents bring their own models, credentials and permission handling.

Install Zed Agent

macOS with Homebrew:

brew install --cask zed

Linux install script:

curl -f https://zed.dev/install.sh | sh

Windows with winget:

winget install -e --id ZedIndustries.Zed

Zed Agent news and advisories

Releases and announcements, with public security advisories on the same line.

  1. Zed 1.31.0 added thread-only overrides for the agent's model, profile and thinking effort, and moved the agent's Windows command isolation to AppContainer instead of WSL.

    Zed stable releases
  2. Zed published GHSA-j58f-3f5r-956h about project tasks running in Restricted Mode, fixed in 1.28.1.

    GitHub Security Advisory
  3. GHSA-j58f-3f5r-956h

    The worktree trust check did not cover .zed/tasks.json or .zed/debug.json, so tasks from an untrusted project could load and run while Zed showed Restricted Mode. An incomplete fix for two earlier advisories.

    GitHub Security Advisory
  4. Zed 1.30.2 fixed always_confirm so it again prompts for edit_file and write_file on files inside the project.

    Zed stable releases
  5. Zed 1.29.1 added an agent.auto_generate_thread_titles setting and stopped local model discovery requests at startup when disable_ai is true.

    Zed stable releases
  6. GHSA-c3g6-c3ff-69cg

    Terminal tool allowlist bypass: an environment variable prefix such as PAGER=curl git diff matched an allowlisted git entry but ran another program. CVE-2026-44463.

    GitHub Security Advisory
  7. GHSA-rqq3-p6x4-q866

    Allowlist bypass through a bash variable expansion chain in terminal tool permissions. Listed in the advisory index; details were not opened.

    GitHub Security Advisory
  8. GHSA-c99f-97vf-4h5h

    Allowlist bypass through bash arithmetic expansion in terminal tool permissions. Listed in the advisory index; details were not opened.

    GitHub Security Advisory
  9. GHSA-fj2r-rmw6-h222

    Opening a folder with a malicious .git/config that abuses core.fsmonitor ran arbitrary commands, because Zed did not sanitize that setting before running Git. CVE-2026-44465.

    GitHub Security Advisory
  10. GHSA-63qj-jc2q-7hg5

    Remote command injection through unquoted environment variable keys over SSH or WSL remoting in v0.225.9. Listed in the advisory index; details were not opened.

    GitHub Security Advisory
  11. GHSA-786m-x2vc-5235

    The agent's read_file and edit_file tools followed symlinks out of the project, bypassing file_scan_exclusions and private_files, and the advisory says it also worked in Restricted Mode. CVE-2026-27967.

    GitHub Security Advisory
  12. GHSA-f2g4-87h6-4pxq

    MCP tool call parameters were not shown at approval time or afterward, so users could not spot a poisoned value. CVE-2026-25805. The fix added expandable tool call details.

    GitHub Security Advisory
  13. GHSA-29cp-2hmh-hcxj

    A malicious LSP entry in a project's .zed/settings.json could run shell commands when a matching file was opened. CVE-2025-68432. The fix added the worktree trust mechanism.

    GitHub Security Advisory
  14. GHSA-cv6g-cmxc-vw8j

    MCP context server configuration in a project could lead to arbitrary code execution. Listed in the advisory index; details were not opened.

    GitHub Security Advisory
  15. GHSA-x34m-39xw-g2wr

    The agent could write a project-level settings file that turned off tool confirmations, then use the terminal without asking. It could be triggered by a compromised MCP server, a malicious repository file or hidden instructions in a URL. CVE-2025-55012.

    GitHub Security Advisory

How Zed Agent keeps itself in bounds

Out of the box, confirm: terminal and most tool calls ask first, but edits to files inside the project do not prompt.

ModeHow to turn it onAsks youWhat it allows
confirm (default)
agent.tool_permissions.default = "confirm"
For some actions
Tool calls prompt for approval. Edits to files inside the project skip the prompt, but settings folders, .agents/skills/ and symlinked files outside the project still ask.
allow
agent.tool_permissions.default = "allow" (globally or per tool)
Never
Tools run without asking. always_deny, always_confirm and the built-in rm -rf protections still apply.
deny
agent.tool_permissions.default = "deny"
Never
Blocks the tool outright.
Per-tool rules
always_allow, always_deny and always_confirm regex lists under each tool
For some actions
Pattern rules match the terminal command, file path, URL, search query or MCP name (mcp:server:tool). Precedence runs from built-in rules, then deny, confirm, allow, tool default, global default.
Profiles
Profile selector in the panel, or agent.default_profile
For some actions
Write turns on read, edit and command tools, Ask is read-only, Minimal has no project tools. Profiles control which tools exist, not approval.

Where its settings live

PathWhat it holds
~/.config/zed/settings.json
User settings on macOS and Linux, including agent.tool_permissions, agent.profiles and agent_servers (open with zed: open settings file)
.zed/settings.json
Project-level settings; an agent that could write here once turned off confirmations, and project config is a trust risk
.zed/tasks.json
Project tasks; part of a worktree trust advisory
.agents/skills/
Project skills; edits here always prompt under the default permissions
  • Tool permissions are regex rules per tool, and the docs say a built-in rule blocks recursive forced deletion of the root, home, current and parent directories in the terminal tool. Setting the default to allow does not remove those rules or your deny and confirm lists.
  • Terminal commands are split into chained parts and each part is checked. Three advisories in May 2026 showed that this allowlist matching could be bypassed through environment variable prefixes and shell expansion, so an allow pattern is a convenience filter and not a hard boundary.
  • Zed has a worktree trust mechanism and a Restricted Mode for untrusted folders. Advisories found gaps in it for project tasks and git config, and later versions closed them.
  • External agents run as separate processes, and their own permissions and credentials apply. Zed profiles and Zed Skills generally do not apply to them.

Security incidents and advisories

DateAdvisoryWhat happened
The worktree trust check did not cover .zed/tasks.json or .zed/debug.json, so tasks from an untrusted project could load and run while Zed showed Restricted Mode. An incomplete fix for two earlier advisories.Fixed in 1.28.1
Terminal tool allowlist bypass: an environment variable prefix such as PAGER=curl git diff matched an allowlisted git entry but ran another program. CVE-2026-44463.Fixed in 0.229.0
Allowlist bypass through a bash variable expansion chain in terminal tool permissions. Listed in the advisory index; details were not opened.No fixed version published
Allowlist bypass through bash arithmetic expansion in terminal tool permissions. Listed in the advisory index; details were not opened.No fixed version published
Opening a folder with a malicious .git/config that abuses core.fsmonitor ran arbitrary commands, because Zed did not sanitize that setting before running Git. CVE-2026-44465.Fixed in 0.227.1
Remote command injection through unquoted environment variable keys over SSH or WSL remoting in v0.225.9. Listed in the advisory index; details were not opened.No fixed version published
The agent's read_file and edit_file tools followed symlinks out of the project, bypassing file_scan_exclusions and private_files, and the advisory says it also worked in Restricted Mode. CVE-2026-27967.Fixed in 0.225.9
MCP tool call parameters were not shown at approval time or afterward, so users could not spot a poisoned value. CVE-2026-25805. The fix added expandable tool call details.Fixed in 0.219.4
A malicious LSP entry in a project's .zed/settings.json could run shell commands when a matching file was opened. CVE-2025-68432. The fix added the worktree trust mechanism.Fixed in 0.218.2-pre
MCP context server configuration in a project could lead to arbitrary code execution. Listed in the advisory index; details were not opened.No fixed version published
The agent could write a project-level settings file that turned off tool confirmations, then use the terminal without asking. It could be triggered by a compromised MCP server, a malicious repository file or hidden instructions in a URL. CVE-2025-55012.Fixed in 0.197.3

How to run Zed Agent safely

  1. Keep the default permission mode at confirm and add always_confirm patterns for project files you care about, since in-project edits skip the prompt by default.
  2. Add always_deny patterns for the terminal, such as curl, ssh and rm, and test them with the rule checker on each tool page. Do not treat allow patterns as a boundary, given the 2026 bypass advisories.
  3. Use the Ask profile when you only want questions answered, and keep Write for threads where you will read every approval.
  4. Open unfamiliar repositories in Restricted Mode and do not trust the worktree until you have read .zed/settings.json, .zed/tasks.json and .git/config.
  5. Update to a release at or beyond the latest advisory fix. Advisory fixes are named at 0.229.0 and 1.28.1, so 1.31.0 on the stable page today covers them.
  6. Expand MCP tool call details before approving, and add only MCP servers you have vetted.
  7. For external agents, add only commands you trust to agent_servers, check what permissions that agent has natively, and use dev: open acp logs to see what it sends.
  8. Review changes in the Review Changes view and accept hunks one by one, on a git branch.

Where Excellent fits

What Excellent doesWith Zed Agent
Reads its session logs (free scan)
Yes
Its key finder reads its key files
Yes
Live check before risky actions (Pro)
No
Excellent's sandbox
Claude Code and Codex only
Rule sharing
Claude Code and Codex only

Excellent reads Zed Agent's session logs on your Mac. The free scan shows what it did: your email in request commands or form inputs, keys sitting in logs, secrets files read, history overwritten, checks skipped. Each finding says which agent and where.

Excellent's sandbox and rule sharing are for Claude Code and Codex only. The check reads what a command says, so it isn't a wall around your Mac.

Questions

Does Zed Agent ask before running terminal commands?

By default yes, because the default is confirm. You can allow, deny or confirm per tool and by regex pattern, and always_deny wins over allow.

Does Zed Agent run commands in a container?

The tool permissions page describes rules and prompts, not a container on macOS. The 1.31.0 release notes say the agent's Windows command isolation now uses AppContainer, so check the current docs for your platform.

What are the built-in Zed Agent profiles?

Write, Ask and Minimal. Write enables read, edit and command tools, Ask is read-only, and Minimal has no project tools. Custom profiles live under agent.profiles.

Can Zed run other agents such as Claude or Codex?

Yes, through the Agent Client Protocol. You install them from the ACP Registry or add a custom agent_servers entry, and they use their own models, credentials and permissions.

Does Zed support MCP?

Yes. MCP servers are configured under the AI settings, and MCP tools are matched in permission rules as mcp:server:tool.

Sources

Checked December 2, 2026. Zed Agent changes often, so its own docs win where they differ from this page.

More agents

All agents →

Check what Zed Agent did on your Mac

Get the Mac app