Overview

Permission profiles define default approval rules that are merged into the active permission set on startup. They let you declare — once — which operations an agent can run freely, which require confirmation, and which are always denied.

Permission modes

Defining a profile

Rules are matched in order. The first matching rule wins.

Rule syntax

Each rule is tool=mode:

Listing profiles

Activating a profile

Combining with config.toml

Profiles defined via CLI are persisted in config.toml under [permissions.profiles]:

CI usage

In CI pipelines, use dontAsk with a restricted tool allowlist:
Where ci-safe only allows bash (for the linter) and edit, denying everything else.