Goals and milestones
The goal is split into milestones. Each has a check command that brindle runs itself, and a milestone is done only when its check exits 0. A milestone may name a profile, the worker profile for its tasks, so a small milestone can run on a cheaper one.
The sidebar shows the goal and each milestone with a mark for where it stands. What the sidebar shows lists every mark.
With no checks in the config, the supervisor proposes some with add_checks and brindle asks you to approve them in its own dialog. Autopilot's reminders wait while that dialog is open, for up to 30 minutes.
<!-- .brindle/goals.md -->
# Settings page
## Settings API
check: uv run pytest tests/test_settings_api.py -q
## Settings UI
check: npm test -- settings
profile: developer-local
- A milestone's check can name a repo attached to the session (
check@<alias>: …, or arepo: <alias>line). - For a multi-line command, write a bare
check:line and put the command in a fenced block below it. - Checking one milestone also checks the others marked passed, reusing passing results already recorded for the current commit. One that now fails is reported as regressed.
goals.md stays in sync
A hand-written .brindle/goals.md seeds the first new session, which moves it to .brindle/goals/<session id>.md (where set_goal also writes goals set in chat, and brindle continue reloads any edits you make). After every check, brindle writes each milestone's status back as one line under the milestone:
status: passed at abc1234 (2026-09-29)
The state is passed, failed, regressed, not_done or pending.
- The rest of the file stays byte for byte as you wrote it, and
.brindle/goals/is git-ignored so session files never dirty the checkout. - The status line is information only and is never read back. A new session starts every milestone as pending; a running session that reloads the file keeps the results of milestones whose title and check didn't change. Checks run when the supervisor calls
check_milestoneor you runbrindle goal check. - A session stops writing when it's paused or done, and removes its goal file when it's handed over or dropped.
Workers in parallel
For a small, well-scoped request in one area with no design decisions, the fast path can send one light or medium worker a finish line with assign(fast_path=true, done_when=...). It skips goals, milestones and completion audit, but still runs repo checks and one light blockers-only review, with no second review. Say “fast path” or “full path” to override the supervisor's choice; fast_path: false disables it.
The supervisor splits each milestone into tasks and starts workers on their own branches, up to max_agents at once. A Claude worker runs the task as a Claude Code /goal with a finish line, so it keeps going until it's met, when the task has a done_when, the worker is interactive, hooks are enabled and the prompt fits Claude Code's 4,000-character limit. Otherwise the finish line is plain prompt text.
files: the files a task expects to touch, checked for overlap with other running workers.depends_on: earlier tasks it waits for. It queues and starts on its own, from the updated base, once those merge.
list_tasks shows what's queued.
Plan-first workers
With plan_first (per task, or as a repo default), a worker reads the code, proposes a short plan with submit_plan, and waits. The supervisor approves it with approve_plan or sends it back with feedback. Claude workers can't edit files until the plan is approved. Other CLIs are told to wait.
Review and merge
When a worker reports (with pipeline and review on, the defaults), brindle runs your checks in the background and starts a reviewer once they finish, with their results in its prompt (or starts the reviewer right away when no checks are configured).
- Findings go straight back to the worker to fix.
review_roundsis a suggested limit (2 by default): new findings can keep the fix rounds going. Withreview_stall_stopon (the default), repeated findings past that limit go to the supervisor; with it off, brindle sends one notice and keeps fixing. Past the limit, findings verified to concern only test files can be recorded as approval and sent to the supervisor for follow-up. - Findings the reviewer marks as needing the supervisor skip those rounds.
- When that exact commit has a passing review on record and the checks pass, brindle merges the branch, removes the worktree when it is no longer in use, and sends the supervisor one message with the report and the review. A merge gate that fails on an approved branch is retried once before anyone is asked.
- Plain pytest checks can scope to affected tests, including coverage-map node IDs. Session sync scopes to the files it brings in, and pre-PR checks scope to the PR diff by default. See scoped_checks, coverage caps and pre_pr_full for the modes, fallback limits and full-suite opt-in.
- A merge conflict with the base branch goes back to the worker (or a light worker in its worktree) to resolve and be re-reviewed, except in
protected_paths. A failedheavytask may be retried once ondeveloper-heavywhen routing and the weight limit allow it.fable_escalationdefaults to on except for Bedrock, Vertex or Foundry accounts;falsedisables it. Anything the pipeline still can't settle (a protected-path conflict, a failing check, or repeated review findings past the suggested limit) arrives as "needs you". - At most
check_concurrencycheck runs go at once across all branches. Unset, that is half your logical cores, also limited to one run per 2 GB of RAM (never below 2 or above 6). The rest wait their turn. A run that goes far past its last duration is reported to the supervisor.
By default, brindle doesn't merge into your default branch on its own. When a reviewed branch's base is main (or whatever the default is), the supervisor gets a "needs you" message and merge_workspace merges it. Set merge_into to an integration branch to have workers branch from and merge into it instead, or auto_merge_default_branch: true for fully automatic merges.
Which reviewer
The reviewer is your review_profile if set, else the repo's reviewer (the built-in reviewer-sonnet-high, Sonnet at high effort, by default). If the chosen reviewer can't run here, brindle tries the profiles in reviewer_fallbacks, in order. With none configured (the default), the branch arrives as "needs you" instead. A useful list is ["reviewer-codex", "reviewer-gemini", "reviewer"]. With review_sizing on (the default), a small branch can get a cheaper reviewer even when the usual reviewer can run. Set review_profile to pin the profile, or turn sizing off to keep the usual selection. Set reviewer or review_profile to reviewer-codex, reviewer-gemini or reviewer-local for a second model's view. With hosted learning on, brindle may pick one of those instead when it can run here and has reviewed this kind of work better.
When it stops
If the supervisor stops while milestones are unverified and no worker is running, brindle tells it to continue. It stops pushing when every check passes (and the goal audit approves, when enabled), while a question for you is open (need_user), while it waits on an outside job (wait_on), when the provider's usage limit is actually reached, or after three reminders with no progress.
A need_user question blocks only the step that depends on your answer: brindle stops reminding about it and the supervisor keeps working on everything else. An open question gets one reminder after an hour, and typing in the supervisor chat clears the block.
Goal audit
A check can pass while the milestone isn't done, because the test asserts too little or checks the wrong thing. Once every milestone passes, a read-only reviewer audits the work since the goal was set against the goal and each milestone, looking for a deliverable that is missing, stubbed out or unhandled. The auditor follows the organization's model policy; a disallowed reviewer is reported to the supervisor. It trusts passing checks and doesn't argue about test depth or style. Only its approval of that commit finishes the goal. If it finds gaps, the supervisor gets them and keeps working until a fresh audit approves (or records an intentional trade-off with record_audit_decision). After two audits that find gaps, autopilot pauses until they're closed or recorded, and a checkout with uncommitted changes to tracked files can't be audited. "goal_audit": false turns it off.
Pausing for usage limits
Approaching exhaustion, Claude, Codex and agy workers may be asked mid-turn to commit work in progress and call handover_note, then carry on. Triggers include 97% usage, an approaching-limit notice, a projection of 100% within minutes, or a 429 at 90% or more with reset over 20 minutes away. The reminder is sent at most twice, ten minutes apart.
At usage_limit (90% by default), routing stops giving that provider new work; running workers continue. Only when the provider limit is actually reached (100%) do workers pause, with worktrees, branches, queued messages and sessions kept. The sidebar says "paused for usage until <time>". When the usage window resets, brindle restarts those workers and tells the supervisor what it resumed. If the reset time isn't known, the sidebar shows "needs you" instead of resuming on its own.
To read your usage, brindle gives the Claude Code agents it launches a status line that records it, then prints whatever your own status line prints. Claude.ai plans report usage. API-key use doesn't.
Quieter messages
With supervisor_state on, brindle keeps a compact record of milestones, branches, decisions, open questions and worker results. Automatic supervisor restarts are off. Only an Enterprise org admin can enable a positive dangerous.supervisor_restart_tokens policy limit under managed rollout; repo, local and user config cannot. Restarts can lose context: when enabled, a fresh Claude session receives the compact state, original request and latest messages while workers keep running and messages wait. supervisor_state: false disables compact state.
Messages from workers and the pipeline don't interrupt the supervisor one by one. It gets a single notice and reads them with read_messages when it's ready:
brindle (16:25:03): 2 new messages ... Call read_messages.
The sidebar shows the unread count. If a notice goes unread, the next message or the end of the supervisor's turn sends a fresh one, at most once every two minutes. "message_delivery": "push" delivers individual one-line summaries, with the full text available through read_messages. Messages you send skip the notice and reach the agent as written, as soon as it's idle.
Handing over to another branch
brindle start -b BRANCH (or -w PATH) runs the supervisor in that branch's worktree, creating it if needed. A linked worktree finds the repo's .brindle config through the main checkout.
brindle handover --to BRANCH (or the supervisor's handover tool) moves the goal, milestones, workers, queued tasks and a note to a new supervisor there. The command pauses the old session; the supervisor's tool leaves its chat open with nothing left to supervise and tells it to stop.
Controlling it
brindle goal # show progress
brindle goal check # run the checks now
brindle audit-decision <finding> # accept an audit finding (-r why)
Autopilot is always on in every session: brindle autopilot on/off, --no-autopilot and "autopilot": false in .brindle/config.json are accepted and ignored. Close the supervisor chat to pause the session.
Cost and history
See Token usage and history for transcript sources, durable records, prices and budgets.
To spend fewer tokens, workers run only the tests for their change and the supervisor makes small changes itself. Pre-PR checks also scope to the PR diff by default; pre_pr_full: true opts into the full suite. Passing check results are cached by clean tree and command.