Skip to content
BENIBIX Learn

Parameter Permission Rule

AI⌨️ Claude CodeConfiguration

Also known as Agent(model:opus), Tool(param:value)

A deny or ask rule that checks one value a tool gets.

Think of it like

It is like a rule that says no hats. It is about what you wear, not who you are.

Example

Jack's helpers run on a cheap model. An ask rule on the big model makes Claude check with him first.

Why it matters

Some risk sits in how a tool is called, not which tool. This rule can see that.

Definition

A parameter permission rule matches one value a tool is called with. It is written as the tool, then a name and a value, such as Agent(model:opus). It works for deny and ask rules on built-in tools. A star in the value matches anything. It cannot match a tool's main field, such as the command in Bash.

Example code

json
{
  "permissions": {
    "ask": ["Agent(model:opus)", "Agent(isolation:worktree)"]
  }
}
Ask before a costly or isolated subagent.

Common mistake

Writing an allow rule this way. Only deny and ask rules match by setting.

Key takeaways

  1. 1
    Tool(name:value). One setting.
  2. 2
    Deny and ask only. Not allow.
  3. 3
    Not the main field. Use the normal form.