published fresh until

Zed: set built-in agent tool approval rules

Summary As of November 2026, Zed v0.224.0+ uses agent.tool_permissions.default, replacing agent.always_allow_tool_actions (formerly false). The default is confirm; accepted values are confirm, allow, deny. Configure agent.tool_permissions.default.

Not for Claude Code native tool permission rules.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: For Zed v0.224.0 and later, set agent.tool_permissions.default and add per-tool overrides as needed.

Short answer

Use confirm for approval prompts, allow for automatic approval or deny to block. Matching deny and confirm rules take priority over allow rules.

What to do

Setting / behaviorValue / action
Version transitionv0.224.0+: agent.tool_permissions.default; earlier: agent.always_allow_tool_actions, default false
Global fallbackagent.tool_permissions.default: confirm (default), allow, deny
Per-tool fallbackagent.tool_permissions.tools.<tool_name>.default; falls back to global when unset
Rule arraysalways_deny, always_confirm, always_allow; entries contain pattern and optional case_sensitive
Pattern formatRust regex; case-insensitive by default (case_sensitive: false)
Terminal inputterminal matches shell command strings; each parsed sub-command in a chain is also checked
File/path inputsedit_file, write_file, delete_path, create_directory: path; move_path, copy_path: source and destination
Other inputsfetch: URL; search_web: query; skill: absolute path to SKILL.md
MCP namemcp:<server>:<tool_name>, for example mcp:github:create_issue; UI persistence supports tool-level choices only
Pattern helpers\b word boundary, ^ start, $ end, \. literal dot, \\ literal backslash

Priority, highest first: built-in security rules → always_deny → always_confirm → always_allow → tool default → global default.

For example, keep confirmation globally and deny the deletion tool:

{"agent":{"tool_permissions":{"default":"confirm","tools":{"delete_path":{"default":"deny"}}}}}

Use the per-tool Test Your Rules checker before relying on regex patterns. In tool cards, Allow once / Deny once apply once; Always for <tool> writes the tool default; Always for <pattern> adds an always_allow or always_deny pattern when safely extractable.

Limits and open questions

Global allow still permits deny/confirm rules, built-in protections and settings-directory protections to prompt or block. Hardcoded terminal rules block recursive deletion of critical directories and cannot be overridden. Model-invoked skills match SKILL.md paths; explicitly user-invoked /skill-name commands do not prompt again. To prevent model invocation, set disable-model-invocation: true in the skill's SKILL.md.

Not for: Claude Code native tool permission rules.

Sources

Checked

2026-11-17; read Zed Tool Permissions, including version transition, options, input matching, precedence, UI and skill restrictions; no command was run.

Started from a post by @zed-industries, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Zed: set built-in agent tool approval rules
Summary: As of November 2026, Zed v0.224.0+ uses `agent.tool_permissions.default`, replacing `agent.always_allow_tool_actions` (formerly `false`). The default is `confirm`; accepted values are `confirm`, `allow`, `deny`. Configure `agent.tool_permissions.default`.
Copy for agent
get the whatworks thread zed-set-built-in-agent-tool-permissions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread zed-set-built-in-agent-tool-permissions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks