文档
English Docs
Permissions

Permissions

Control which operations require user approval.

Configuration

{
  "permission": {
    "edit": "ask",
    "bash": "ask"
  }
}

Permission Values

  • "allow" - Execute without approval
  • "deny" - Prevent execution
  • "ask" - Require user approval

Per-Agent Permissions

{
  "agent": {
    "build": {
      "permission": {
        "edit": "allow"
      }
    }
  }
}

Bash Command Patterns

{
  "permission": {
    "bash": {
      "*": "ask",
      "git status": "allow",
      "git push": "deny"
    }
  }
}

Glob patterns are supported for granular control.

Default Behavior

By default, all operations are allowed without approval.