published fresh until

Windsurf: set terminal approvals and allowlists

Summary As of November 2026, Windsurf’s terminal docs use Devin Local Allow, Deny and Ask rules. Code prompts for uncovered commands; Smart may auto-approve routine ones. Deny wins; a specific allow can override a broader same-level ask. Add a narrow allow in .devin/config.json: Exec(git status).

Not for Claude Code Bash permission matchers.

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: Open Devin Local settings under Allow, Deny and Ask; add Exec(git status) to allow status commands.

Short answer

The terminal page now describes Devin Local permission rules. Command prefixes match whole words; uncovered calls follow the session mode. Edit a proposed command in its approval card before accepting it.

What to do

ItemValue / action
Allow; Deny; AskSettings categories for no-prompt execution, blocking and approval.
permissions.allow; permissions.ask; permissions.denyConfig arrays for the three outcomes.
Exec(git status)Narrow example allow.
Exec(prefix)Matches a complete-word command prefix.
Exec(git); git status; git commit; gitk; github-cliMatches the Git examples, excludes gitk and github-cli.
Exec(npm run)Allow a script-command family.
.devin/config.jsonTeam/project permissions live under permissions.
.devin/config.local.jsonPersonal project override.
Deny always winsAn allow never overrides a matching deny.
Specific allow versus broader askAt the same level, equally or more specific command/MCP allows can carve out an ask exception.
Organization > Session > Project local > Project > UserConfiguration-source precedence; lower-level allow cannot override higher-level ask.
CodeDefault change-making mode; workspace edits auto-approve, uncovered shell commands prompt.
SmartFast model may approve routine uncovered calls; uncertainty prompts. Gradual rollout can hide it.
Bypass PermissionsAuto-approves uncovered calls; organization-enforced asks/denies remain.
Ask; PlanRead-only questions / planning.
/code; /smart; /ask; /plan; /bypassInput commands to switch modes; also use the mode selector.
AutonomousSandboxed sessions use this mode instead of ordinary permission modes.
Once: unsaved; Session: memoryTemporary approval persistence.
Project; Project local; GlobalPersist to .devin/config.json, .devin/config.local.json or user config respectively.
Command specificityExact beats prefix; longer prefix beats shorter for allow-versus-ask exceptions.
Smart high-risk exclusionsUncovered installs, mutating Git, rm, sudo, destructive cloud actions and sensitive-file access always prompt.
Read()/Write() exception excludedThe narrow-allow ask exception applies to command/MCP matchers, not path globs.

Limits and open questions

Rules are evaluated before Smart’s classifier. Organization-enforced rules remain active in every mode. The current terminal page does not document an old Windsurf auto-execution-level setting. Global approval refers to user config; this thread provides project file paths.

Not for: Claude Code Bash permission matchers.

Sources

Checked

2026-11-16; read terminal, permissions, modes documentation; no command was run.

Started from a post by @Cognition, 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.

# Windsurf: set terminal approvals and allowlists
Summary: As of November 2026, Windsurf’s terminal docs use Devin Local Allow, Deny and Ask rules. Code prompts for uncovered commands; Smart may auto-approve routine ones. Deny wins; a specific allow can override a broader same-level ask. Add a narrow allow in `.devin/config.json`: `Exec(git status)`.
Copy for agent
get the whatworks thread windsurf-configure-terminal-approval-and-command-allowlists 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 windsurf-configure-terminal-approval-and-command-allowlists
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