01 / Permissions and sandbox
Every tool call passes a rule.
Allow, ask or deny by tool and pattern. /permissions shows this session's decisions.
On macOS, Bash, background jobs, MCP servers and hooks run under a Seatbelt profile. Writes stay in the workspace, the session temp dir and toolchain caches. Because of that boundary, ordinary sandboxed Bash runs without a prompt. Background jobs and guarded commands still ask.
Permission spec →{
"permissions": {
"rules": [
{
"tool": "run_bash",
"pattern": "git *",
"action": "allow"
},
{
"tool": "run_bash",
"pattern": "rm *",
"action": "deny"
},
{
"tool": "run_bash",
"pattern": "*",
"action": "ask"
}
]
}
}
