> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings

> The plugin's eight settings in Claude Code and the ACTUAL_ environment switches its hooks read, with defaults and which one wins.

The plugin has eight settings in Claude Code, for rule briefing, the denial dialog and unattended agents. Its hooks also read a set of `ACTUAL_` environment switches, which work in Claude Code and Codex alike. Codex has no per-plugin settings, so the switches are the only way to set anything there.

## Settings in Claude Code

Change these under `/plugin` in Claude Code, where each appears as a row with the title below.

| Key | Row title | Type | Default | What it does |
| - | - | - | - | - |
| `maxSessionChars` | Rule brief: per-session character budget | number | `48000` | Stops briefing once this many characters of rule context have reached the agent in one session, and tells the agent once. `0` turns briefing off where the mod loads. The `Read` hook used on older Claude Code has no cap. |
| `maxChars` | Rule brief: maximum characters per brief | number | CLI default (4000) | Passed to `actual rules brief --max-chars`. Rules are dropped whole, lowest-ranked first. |
| `limit` | Rule brief: decisions per brief | number | CLI default (2) | Passed to `actual rules brief --limit`. |
| `rulesPerDecision` | Rule brief: rules per decision | number | CLI default (8) | Passed to `actual rules brief --rules-per-decision`. |
| `minScore` | Rule brief: minimum rule score | number | the repository's `rules_min_score` | Passed to `actual rules brief --min-score`. A score measures how narrowly a rule's `verify` glob is written, so the useful floor differs per repository. |
| `debug` | Rule brief: log the budget each call | boolean | `false` | Writes a dim transcript line with the characters briefed so far and the session's context use, and adds the same line to the agent's context. |
| `overrideDialog` | Governance: ask how to handle a denial | boolean | `true` | When a check denies, asks you in a dialog whether to revise or override. Off, the agent revises on its own, and `/actual-cli:override` still works. |
| `unattended` | Governance: approve plans for an unattended agent | boolean | `false` | Answers Claude Code's plan dialog for an agent nobody is watching. See [Unattended mode](#unattended-mode). |

An environment variable wins over its row in both directions: the row is your lasting preference, and the variable overrides it for one session. `debug` is the exception, since it combines with `ACTUAL_HOOK_DEBUG` instead: either one turns the line on.

| Setting | Variable that wins over it |
| - | - |
| `maxSessionChars` | `ACTUAL_RULES_BRIEF_MAX_SESSION_CHARS` |
| `maxChars` | `ACTUAL_RULES_BRIEF_MAX_CHARS` |
| `limit` | `ACTUAL_RULES_BRIEF_LIMIT` |
| `rulesPerDecision` | `ACTUAL_RULES_BRIEF_RULES_PER_DECISION` |
| `minScore` | `ACTUAL_RULES_BRIEF_MIN_SCORE` |
| `overrideDialog` | `ACTUAL_OVERRIDE_DIALOG` |
| `unattended` | `ACTUAL_UNATTENDED` |

The briefing settings need the plugin's mod, which loads on Claude Code 2.1.287 or later, or on 2.1.285 and 2.1.286 with `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1`.

## Unattended mode

Claude Code holds a plan at its approval dialog until someone answers, so an agent nobody is watching would wait there for good. Turn on the `unattended` row, or set `ACTUAL_UNATTENDED=on`, and the plugin answers that dialog for the agent.

The plan check still runs first. A conflicting plan is denied and revised as before, and only a plan the check passes, or couldn't check, is approved. The session then goes back to the permission mode it had before planning. Unattended mode also turns the denial dialog off, whatever `overrideDialog` or `ACTUAL_OVERRIDE_DIALOG` say, so the agent revises on its own. In Codex it sends the agent straight back on a conflict instead of ending the turn to ask you.

> [!WARNING]
>
> While it's on, unattended mode approves plans in every repository, with rules or without. Leave it off wherever a person reviews plans, because it approves on their behalf.

See [Unattended agents and CI](https://docs.actual.ai/guides/unattended-agents-and-ci.md) for the rest of a run nobody watches.

## Environment switches

The hooks and the mod read these variables. Set them in the environment Claude Code or Codex starts from.

| Variable | Values | Default | What it does |
| - | - | - | - |
| `ACTUAL_PLAN_GATE` | `off` | on | Turns off every hook: both checks, briefing, the denial dialog and the version checks. In Claude Code, the session summary row stays. |
| `ACTUAL_RULES_BRIEF` | `off` | on | Turns off briefing alone, and in Codex the session summary line, while both checks keep running. |
| `ACTUAL_RULES_DIR` | a path | `<repo>/.actual/rules` | Governs against another rules directory, such as a monorepo subproject's. The hooks pass it to the CLI as `--rules-dir`. |
| `ACTUAL_UNATTENDED` | `on`, `off` | off, or the `unattended` row | Unattended mode, described above. `off` forces it off over the row. |
| `ACTUAL_OVERRIDE_DIALOG` | `on`, `off` | on, or the `overrideDialog` row | `off` stops the dialog a denial opens, so the agent revises on its own; a typed override still works. In Codex, a conflict then sends the agent back instead of ending the turn. Unattended mode turns the dialog off whatever this says. |
| `ACTUAL_CODEX_PICKER` | `off` | on | Codex only: a conflict always ends the turn with typed choices, even where the agent could show a picker. |
| `ACTUAL_RULES_BRIEF_NOTICE` | `off` | on | Codex only: drops the one line Codex shows you for each brief, and keeps the briefing. |
| `ACTUAL_RULES_BRIEF_MAX_SESSION_CHARS` | a number | `48000` | The per-session briefing budget. In Codex the CLI enforces it. |
| `ACTUAL_RULES_BRIEF_LIMIT` | a number | CLI default (2) | Decisions per brief, passed to `actual rules brief --limit`. |
| `ACTUAL_RULES_BRIEF_RULES_PER_DECISION` | a number | CLI default (8) | Rules per decision, passed as `--rules-per-decision`. |
| `ACTUAL_RULES_BRIEF_MAX_CHARS` | a number | CLI default (4000) | Characters per brief, passed as `--max-chars`. |
| `ACTUAL_RULES_BRIEF_MIN_SCORE` | a number | the repository's `rules_min_score` | Minimum rule score, passed as `--min-score`. |
| `ACTUAL_HOOK_DEBUG` | `1` | unset | Reports what briefing did and why it stayed quiet: the rules directory, the CLI's exit status, why a reply was dropped and the characters briefed so far. Run `claude --debug` to see the hook's lines. Diagnostic only. |
| `ACTUAL_TURN_START_LOG` | a file path | unset | Appends the turn-start hook's CLI output and exit status to that file, for diagnosing a turn whose start commit never gets recorded. |
| `ACTUAL_HOOK_CACHE_DIR` | a directory | `$XDG_CACHE_HOME/actual-skill`, else `~/.cache/actual-skill` | Where the hooks cache what the installed CLI can do. |

The four `ACTUAL_RULES_BRIEF_` limits reach the CLI only when you set them, so the CLI keeps its own defaults. In Codex they're passed only when each is a plain number.

`ACTUAL_HOOK_HOST` and `ACTUAL_CLI_SUBPROCESS` also appear in the hooks. The Codex hook commands set the first, and the CLI sets the second on its own judge subprocess; neither is a switch for you.

## Variables the CLI reads

Some variables that change what you see in a session belong to the Actual CLI, which the hooks call:

* `ACTUAL_PLAN_CHECK_MAX_ROUNDS` and `ACTUAL_IMPL_CHECK_MAX_ROUNDS` set how many times one rule may be denied in a session before the check stops blocking on it (3 by default).
* `ACTUAL_TELEMETRY_DEBUG=1` adds a line after the plan and change checks naming the local log of the telemetry the session's hooks sent. See [Privacy and telemetry](https://docs.actual.ai/resources/privacy-and-telemetry.md).
* `ACTUAL_NO_TELEMETRY` turns telemetry off for the process and the commands it starts.

[Environment variables](https://docs.actual.ai/cli/environment-variables.md) lists every variable the CLI reads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.