Rules

Allow, ask or deny, per agent and tool.

Matching

  • Exact name wins.
  • Then the longest pattern.
  • Ties: deny beats ask beats allow.
  • No match: ask.
toml
[agents.claude-code.tools]
"github__list_*" = "allow"
"github__*" = "ask"
"*__delete*" = "deny"

Denied tools are hidden

The agent never sees them in its tool list.