Skip to main content
Back

Agent permissions and approvals

Decide what agents may do, what they must ask about, and what they may never do.

How do I stop agents from doing something?

  1. Open Settings > Agent permissions.
  2. Select Add rule.
  3. Under What the rule does, choose Deny, Ask, or Allow.
  4. Under What it matches, choose Command, File, or Tool, then enter the Pattern.
  5. Select Add rule.

A rule applies to every agent in the organization, from each agent's next turn. Only owners and admins can add or remove rules. An organization can have up to 50.

What does each rule do?

  • Deny: the agent is refused and told why.
  • Ask: a person approves or denies it first.
  • Allow: it runs without asking. High-risk actions still ask.

How do patterns match?

  • Command: shell commands that start with the text, such as npm publish.
  • File: files the agent writes, by path. Use * for any name and ** for any folders, such as infra/**.
  • Tool: a tool by name, such as one from an MCP server. Use * for any text, such as mcp__linear__*. Tools that only read are not checked.

Do Ask rules always work?

Only when approvals are on for your organization. Agent permissions says when they are off. Deny rules work either way.

When approvals are on, agents also ask before the actions under Built in: commands that delete, publish, or deploy, writes to sensitive files, opening or commenting on a pull request, and tools from outside Kliff. Deploying, publishing a package, dropping a table, sensitive files, and opening a pull request are high risk, and no rule can allow them.

How do I approve a request?

The agent's thread shows a card such as Run this command? or Change this file?, marked Medium risk or High risk. Select Approve or Deny. If nobody answers within 15 minutes, the request is refused and the agent carries on without it.

Can I make one agent more careful?

Yes. Pick a Permission mode in the message box:

  • Plan: proposes a plan and changes nothing
  • Ask: asks before each change and command
  • Auto: follows your organization's rules

A mode can make an agent stricter than your organization's rules, never looser. Ask works even when approvals are off for the organization.

Do a repository's own Claude Code settings count?

Yes, the strict parts. The deny and ask permissions in a repository's .claude/settings.json and .claude/settings.local.json apply to agents working on it. Allow entries are never read, because anyone who can push to the repository could write them.

Can I set rules just for myself?

Yes. Open Settings > Agent settings and paste settings in Claude Code's format. Their deny and ask rules, and their hooks, apply to every turn you send, in any organization. Allow rules are never read.