Config files
With Pro, selected preferences sync across machines, last change wins: delegation, sidebar, message_delivery, pr_footer, delete_merged_branches, max_agents, plan_first, stale_after, usage_limit and review_rounds. brindle account sync syncs now; other config values do not leave the machine through settings sync.
| File | Scope |
|---|---|
.brindle/config.json | The repo's settings, shared with the team. |
.brindle/config.local.json | Git-ignored. Overrides keys for you only. For a command list it can also give {"before": [...], "after": [...]} to wrap the team's commands. |
~/.brindle/config.json | Your own defaults for every repo. Both repo files override it. Command lists (setup, teardown, checks) and the list keys copy, add_dirs, worker_extra_read_dirs, protected_paths and live_check_ignore, plugins, services, second_review and airgap come from the repo only; routing is read from all three files, a tier at a time. The shared .brindle/config.json is read as committed on the workspace's base branch, not from your checkout, so commit config changes before starting workers. |
A linked worktree finds the config through the main checkout.
{
"setup": ["pnpm install", "cp \"$BRINDLE_ROOT_PATH/.env.local\" ."],
"teardown": ["docker compose down"],
"copy": [".env", "apps/*/.env"],
"base_branch": "main",
"default_agent": "developer",
"checks": ["uv run pytest -q"],
"max_agents": 5,
"merge_into": "develop",
"sidebar": "bottom"
}
Workspaces
A pooled worktree keeps its original path and port block. Setup runs under a placeholder branch/name before a task claims it; teardown may see the real workspace identity or the unclaimed placeholder. Only BRINDLE_WORKSPACE_PATH and BRINDLE_PORT_BASE are guaranteed to match between setup and teardown. Avoid branch-derived paths or IDs for resources teardown must find.
| Key | What it does |
|---|---|
setupteardown | Commands run when a workspace is created or removed. |
copy | Local files (globs) copied into each new workspace, such as .env. |
base_branchbranch_prefix | The branch workspaces are cut from, and a prefix for new branch names. |
fetch | Fetch the base before cutting a branch. Default on. |
default_agent | The worker profile when nothing else picks one. |
pool_size | Pre-built worktrees kept ready so a new worker doesn't wait on setup. Default 1 when there is a setup, else 0. 0 turns it off. |
add_dirs | Directories outside the worktree that Claude Code agents may use (--add-dir; full tool access, not read-only). Relative paths resolve against the repo root, ~ is your home, and a missing directory is reported. |
Setup, teardown and agents see these variables:
BRINDLE_ROOT_PATH BRINDLE_WORKSPACE_PATH
BRINDLE_WORKSPACE_NAME BRINDLE_WORKSPACE_ID
BRINDLE_BRANCH BRINDLE_BASE_BRANCH
BRINDLE_PORT_BASE
Each workspace gets ten ports from BRINDLE_PORT_BASE, so parallel dev servers don't collide. With services, the containers take ports BRINDLE_PORT_BASE+1 to +9 and leave BRINDLE_PORT_BASE itself to your app.
Agents also get BRINDLE_AGENT_ID, and a service's port arrives as BRINDLE_SVC_<NAME>_PORT. Every check on a worker's branch gets BRINDLE_CHANGED_FILES, the files the branch changed, one per line, so a script can narrow itself.
Autopilot, review and merge
| Key | What it does |
|---|---|
autopilot | Deprecated and ignored: autopilot is always on. |
checks | Commands that must pass in a branch before it merges. |
check_timeout | Seconds each check may take. Default 900. |
check_concurrency | Check runs at once on this machine, across branches. Default: half the logical cores, limited to 2 GB of RAM per run, never below 2 or above 6; 0 means no cap. The rest wait their turn, and a run far past its last duration is reported to the supervisor. |
reviewreviewerreview_profile | Require a reviewer's approval (unset: only under autopilot); the reviewer profile (default reviewer-sonnet-high, Claude Sonnet at high effort); force request_review's profile. |
pre_commit | Run pre-commit over the branch, if the repo uses it. Default on. |
pipelinereview_rounds | brindle reviews and merges reported branches itself; fix-and-re-review rounds before findings reach the supervisor (default 2). |
goal_audit | Once every milestone passes, a read-only reviewer checks the work against the original goal before it counts as reached. Default true. |
merge_into | The branch the supervisor's workers are cut from and merge into, whatever branch the supervisor is on. A worker's own workers still use its branch. |
auto_merge_default_branch | Let the pipeline merge into the default branch on its own. Default false: the approved branch goes to the supervisor to merge. |
max_agents | Workers running at once per session. Default 5; 0 means no cap. Reviewers don't count. |
overlap | What happens to a task whose files overlap a running one. "block" refuses it. "warn" starts it anyway. "queue" waits for the other to merge. Unset: "block" within a session, "queue" behind another session's task. |
plan_first | Workers propose a plan and wait for approval before editing. Default false. |
stale_after | Minutes before a worker that reported and sat idle is closed. Default 30; 0 means never. |
Models, limits and messages
| Key | What it does |
|---|---|
routing | For each weight (light, medium, heavy, advanced), the profiles to try in order. See Routing by weight. |
usage_limit | At this % of a provider's usage limit (default 90), routing skips that provider's profiles for new tasks. Running workers continue; pausing happens only when the provider limit is actually reached. |
limit_cooldown_minutes | How long a provider that hit its limit counts as unavailable. Default 300. |
local_models | true (default): start a local Ollama server in the background when a native profile points at one on this machine and it isn't running, and load their models; it is stopped again when the last session closes. false: never start one, use a server that's already running. |
message_delivery | "pull" (default): one notice, read with read_messages. "push": each message delivered as it arrives. |
permission_policy | "on": brindle answers workers' permission prompts from its rules. "off": prompts behave as they always did. Unset, it is "on" on every plan. See Permission policy. |
learninglearning_candidates | "auto" (default), "cloud" or "off" for hosted learning, and the profiles it may pick from. |
plugins | Which installed plugin to use per group (events, policy, account), or "off", e.g. {"policy": "<name>", "events": "off"}. Unset, a group uses its only installed plugin, and every installed events plugin hears every event. A policy plugin named here that can't load refuses delegations and merges rather than allowing them. |
graphify | Point agents at the repo's graphify code map, if there is one. false turns it off. |
services | Pro. Containers each worktree gets its own copy of, e.g. [{"name": "db", "preset": "postgres"}]. Presets postgres, redis, mongo, or your own image and port. Each gets a port from the worktree's block, and its connection settings are added to the workspace's environment. |
airgap | Enterprise. true turns on air-gap mode: no requests to PawDelta, and only profiles whose model is on this machine or your private network may run. .brindle/config.json, config.local.json or BRINDLE_AIRGAP=1 can turn it on, and neither file can turn it off. ~/.brindle/config.json doesn't count for the engine (the desktop app reads airgap and app_updates there only to decide whether to check for app updates). |
sidebar | "left" (default) or "bottom": where the dashboard sits in each window. |
delegation | How readily the supervisor hands work to workers. "balanced" is the default. "conservative" does most work in its own chat (fewest tokens). "fast" splits work across parallel workers straight away (quickest). brindle delegation fast saves it for every repo in ~/.brindle/config.json, and Pro plans sync it across your machines. |
delete_merged_branches | true (default): removing a worktree also deletes its branch once every commit is in its base. An unmerged branch is kept unless you delete it yourself with force. |
pr_footer | true (default): add one "built with brindle" line to PR descriptions, including open PRs created outside brindle pr that contain a workspace commit. false leaves it out. |
rules | Standing rules added to every supervisor's brief, e.g. ["Fix review findings without asking"]. Rules in ~/.brindle/config.json, the repo's config and config.local.json all add up. |
More keys
| Key | What it does |
|---|---|
worktree_root | Where new worktrees go, relative to the repo (~ expands). Default .brindle/worktrees. |
auto_update | Upgrade brindle from PyPI in the background at session start when a newer version exists. Default false. |
max_weight | Ceiling for weight routing: "light", "medium", "heavy" or "advanced". Unset: no ceiling. |
exclude_providers | Providers weight routing never picks. |
reviewer_fallbackssupervisor_profilesupervisor_fallbacks | Reviewer profiles to try, in order, when the reviewer can't run; the profile whose provider the supervisor runs on (unset: the supervisor profile's own); profiles to try, in order, when that provider can't run it. |
second_review | Weight → reviewer profile for a second, independent review of work of that weight; the pipeline merges only when both approve. Unset: one review. |
protected_paths | Paths or globs (migrations, lockfiles, generated code) whose merge conflicts brindle never hands to a worker; they go to you. |
worker_extra_read_dirs | Directories outside the worktree that workers may read, not write. |
scoped_checksscoped_checks_max_filesscoped_checks_max_tests | "infer", "coverage" or "off" (unset acts as "infer"). Infer uses the code map to narrow plain pytest checks; coverage uses pytest coverage maps and node IDs. The file cap is 40 by default (0: no cap); above it, a branch runs its own and namesake tests. The coverage test cap is 300 by default. Other check commands run in full. Session sync checks scope to the files brought in by the sync. See Check scoping. |
pre_pr_full | Default false: pre-PR checks scope to the PR diff against its base. Set true for the full suite before a PR. |
routing_goal | A preset (balanced, cheap, fast, first_try) or a dictionary setting the target mix of cost, speed and first-try success for weight routing. |
fable_escalation | Retry a failed heavy task once on developer-heavy before asking the supervisor. Unset: on, except where workers run on a cloud account (Bedrock, Vertex, Foundry); true or false forces it. |
learned_rules_repeatslearned_rules_profile | Pro. How many tasks a review finding must recur in before brindle rules suggest proposes a rule (default 3), and the profile that groups findings (unset: a local model that answers, else the cheapest Claude model). |
coordinator | Pro. true: wake a coordinator above this repo's sessions on events. Unset, it is on when your plan includes it; false turns it off, as brindle coordinator stop does for a checkout. |
budget | Pro. Dollar budgets: task_usd, goal_usd, month_usd and optionally stop. Merged key by key across the three files. |
pricing | Model prices in $/MTok (input, output, optionally cache_write and cache_read) that add to or override brindle's built-in ones, merged per model. |
permission_hold_secondspermission_supervisor_hold_seconds | How long a permission request left to you is held for the app's answer (default 86400), and how long a worker's ask waits for its supervisor's answer before you see it (default 120). |
agy_approvals | "brindle": Antigravity agents run with --dangerously-skip-permissions and brindle's hook allows or denies every call. "prompt": Antigravity asks as usual. Unset: "brindle" for agents brindle runs, and for an interactive one when the permission policy is on with the Autonomous preset; "prompt" for any other interactive one. |
Other keys
Coverage scoping requires pytest-cov. A missing or stale coverage map runs the check in full and records a map after a passing full run; a change no test executes skips the coverage-scoped check. Above the coverage test cap, the most specific tests are selected, with changed and namesake tests first. In infer mode, imports and namesake tests provide fallbacks when the code map cannot resolve a change; an empty selection or a changed module outside a package falls back to a full run. A value of 0 disables either cap.
| Key | What it does |
|---|---|
graphify_auto_refresh | Rebuild untracked code maps automatically. Default true; queries still work when false. |
review_start_delay | Seconds before a reported branch with no review in progress is recovered. Default 60. |
routing_locked | Kinds of work (light, medium, heavy, advanced, reviewer, supervisor), as {"heavy": true}, whose routing hosted learning may never override. |
routing_overrides | Per kind of work, the effort and instructions a launch uses. |
review_sizingreview_small_max_filesreview_small_max_linesreview_risky_paths | Scoped context and cheaper profiles for small or docs- and test-only reviews. Default on; small means up to 5 files and 200 changed lines. review_risky_paths (globs, by default ones like *auth*, *permission* and *lock*) keeps the usual reviewer. |
wait_for_roomroom_wait_maxmin_free_disk_gb | A new worker or check run waits while the machine is busy (default on; false starts it at once), for up to room_wait_max seconds (default 300) before its supervisor is told once; it never starts early. It also waits while free disk is under min_free_disk_gb (default 10; 0 never). |
stall_alert_afterlong_command_alert_after | Minutes a branch in the pipeline may sit with nothing working on it before the supervisor is told (default 10), and seconds one shell command may run in a worker's pane before its supervisor is told, once (default 1200). 0: never. |
idle_supervisor_dayssuperseded_after | Days without input before an idle supervisor is stopped, and can be resumed (default 3); hours without activity before a worker whose work already landed is stopped (default 6). 0: never. |
supervisor_state | The supervisor works from a compact goal state brindle keeps. Default true. |
limit_headroom | Percentage points of a usage limit kept free for a heavy task; medium uses half, light a quarter. Default 10. |
fast_path | A small request goes straight to one light or medium worker: no goal, milestones or completion audit; one light review and the checks, then the merge. Default true. |
review_stall_stop | Past review_rounds, hand repeated review findings to the supervisor. Default true. |
auto_merge_session_prs | Merge open session pull requests once the forge reports green CI and no conflicts. Default true. |
overlap_granularity | What counts as an overlap for overlap: "hunk" (default) only when the regions the tasks declare, like path:120-180, or the hunks the running one has changed, meet; "file" for any shared file. |
live_check_ignore | Names of processes that never run in a project, so they don't keep a worktree from being removed. |
shared_cargo_target | Worktrees share one CARGO_TARGET_DIR per repo. Default true. |
delete_pushed_branches | Delete the origin branch brindle pushed once its pull request merged. Default false. |
prompt_cache_prefix | A worker's or reviewer's stable brief leads its prompt and the per-task text follows, so the prompt cache hits. Default true. |
fable_for_design_only | true (default): weight routing picks developer-fable only for a task marked design-heavy. An explicit profile choice bypasses it. |
agent_envagent_env_mode | Environment variable names or globs an agent's pane may inherit on top of brindle's built-in allowlist; they add up across the three files, and a secret-looking name never passes. "report" (default) keeps variables off the allowlist and logs their names at launch; "enforce" drops them. |
These keys are read only from ~/.brindle/config.json: supervisor (the CLI you last picked for the supervisor), claude_permission_mode (the --permission-mode for Claude sessions whose profile sets none; default "default") and routing_light, routing_medium and routing_heavy (the worker models you pick in the picker), audit_export (Enterprise: sinks to send audit records to, each with a type and the names of the environment variables holding its secrets, and retention_days; see brindle audit ship), machine_max_workers (workers running at once across all your sessions; 0 means no limit; unset, the machine's core count, up to twice that while it is lightly loaded), retention (db_backups 2, archive_days 30, archive_gb 1, log_mb 10 and stale_branch_days 14, which brindle clean applies; 0 turns a cap off), visuals ("on" lets brindle offer a visual; default off, and a visual still needs your request), visuals_enabled (the visuals capability; on unless "off"), login_shell_env ("off" stops provider CLIs the daemon launches from getting your login shell's proxy and certificate settings) and opencode_permission_mode ("ask" default, "auto" or "autonomous": how OpenCode sessions whose profile sets no permission_mode ask).
Permission policy
Workers stop at their CLI's permission prompts like any other session. With "permission_policy": "on", the default on every plan (set it in ~/.brindle/config.json, the repo's config, or your config.local.json, which wins), brindle answers those prompts from rules. It reads the structured request the CLI hands its hook (the tool and its command, path or URL), never the screen. It answers allow, deny, or ask, which leaves the prompt to you as usual.
Starting rules
- Allow, in every preset: reading files git tracks in the worktree or the repo root, exactly one of your
checkscommands, and plaingit status,diff,logandshow. Every preset but Secure also allows pipelines of read-only commands (grep,ls,cat,headand the like), and Autonomous, Standard and Permissive allow everyday commands:aws,uv,pytest,python,npm,pnpm,yarn,docker,cargo,go,make,ghandbrindle baseline. - Deny, in every preset: a git command that discards work (a force flag,
push --delete,branch -D,reset --hard), a recursivermof the root, a top-level folder or your home directory, and reading~/.ssh,~/.aws,~/.gnupg,.env*and brindle'sdaemon.json. - Ask you: a push into the repo's default branch, and always a push into a
releasebranch. - Everything else follows the preset.
autonomous(the default for a new setup) allows it.permissivealso allows any read, write or edit inside the worktree and asks about the rest.standardasks.secureasks about every write, edit, command and fetch, approving each for 15 minutes, and denies anything else.brindle permissions presetshows them and switches; your own and learned rules stay.
A deny beats any allow. A bash allow covers one simple command, or a list joined by &&, ; or | when an allow rule covers every part. Shell syntax brindle cannot verify is denied with guidance to rewrite it as simple commands, rather than sent to you for approval.
Your rules
brindle permissions allowanddenyadd rules to~/.brindle/permissions.json.- A repo's
.brindle/permissions.jsoncan only add denies. A profile can add its own withpermission_denies. - brindle never learns a rule on its own. Once you've approved the same request twice in a Claude Code worker,
brindle permissions suggestionslists it andacceptmakes it a rule. - Claude Code and Codex decisions (and Antigravity denies) are in
brindle history --kind permission. - Prompts from Claude Code, Codex, Antigravity and OpenCode go through the same classifier: brindle routes them automatically or sends the supervisor a structured request.
Codex and Antigravity
Codex runs the same hook once it's trusted. brindle trusts it the first time a Codex worker needs it; brindle permissions install-codex-hook --yes does it by hand. Antigravity's hook can deny but ignores an allow, so brindle copies the rules it can express into Antigravity's own settings, touching only its own entries (brindle permissions sync-agy).
Team policy
See Team policy and administration for provider and model restrictions, human merge approval, role overrides and unavailable-policy behavior.
Agent profiles
See Agent profiles for profile lookup, frontmatter, cheap and headless workers, rule packs, guardrails and the org library.
Cheap workers
See Cheap and headless workers for fields that reduce worker context.
Subagent workers
See Subagent workers for using the supervisor's own Agent tool in a brindle worktree.