Skip to main content
Kliff

Permissions and approvals

Permission modes, the rules that refuse or hold an agent's actions, and how approvals work.

Three things decide what an agent may do without asking: the thread's permission mode, your organization's rules, and the deny and ask rules in repositories and in your own agent settings. A mode can make a thread stricter than the rules, never looser.

Permission modes

Pick a mode with Permission mode in the composer, before the first message or for any later one. A change applies from the next turn.

ModeIn the menuWhat happens
PlanProposes a plan, changes nothingThe agent investigates with read-only tools and writes a plan.
AskAsks before each change and commandEvery command, file change, and git change waits for a person to approve it.
AutoFollows your organization's rulesThe default. The agent works on its own, within the rules below.

After a plan, the agent asks Build this plan?. Select Approve and build to have it carry the plan out, and the thread goes back to the mode it used before. The /plan command starts a plan the same way. See Slash commands.

Organization rules

Owners and admins set rules for every agent in the organization in Settings > Agent permissions. Each rule has an effect and a kind.

EffectWhat happens
DenyThe agent is refused and told why.
AskA person approves or denies it first.
AllowIt runs without asking. High-risk actions still ask.
KindMatchesExample
CommandShell commands that start with this text.npm publish
FileFiles the agent writes, by path. Use * for any name and ** for any folders.infra/**
ToolA tool by name, such as one from an MCP server. Use * for any text. Read-only tools are not checked.mcp__linear__*

An organization can have up to 50 rules, each with a pattern of up to 200 characters. Deny beats ask. A chained command is checked part by part, split at &&, ||, ;, |, and new lines.

The Agent permissions panel also says whether approvals are on for your organization. While they are off, ask rules do nothing in Auto mode, and agents do not stop to ask before risky actions. Deny rules, Ask mode, and Plan mode work either way.

Repository and personal rules

Agents also read deny and ask rules from:

  • A repository's .claude/settings.json and .claude/settings.local.json, in the permissions section.
  • Your own Agent settings, which apply to every turn you send. See Settings and hooks.

Allow rules in these files are never read. Kliff understands Bash, Bash(prefix) with a wildcard only at the end, Edit, Write, MultiEdit, and NotebookEdit with a path, Read with a path, and mcp__ tool names. When an entry has no Kliff equivalent, the thread shows a step saying which entries did not apply. Up to 50 repository rules apply to a turn.

Approvals

When an action needs a person, the thread shows a card such as Run this command?, Change this file?, or Use this tool?. Select Approve to let it run. A request nobody answers expires after 15 minutes.

Some actions always ask, whatever the mode and the rules:

  • An agent asking to be woken later in the thread.
  • An agent setting up a scheduled automation.
  • Hooks that come from a repository or a plugin, before they first run and again when they change. See Settings and hooks.