Agent profiles
Markdown files with frontmatter. brindle looks in .brindle/agents/, then ~/.brindle/agents/, then your org's library (brindle Team), then its built-ins: supervisor, developer, reviewer, reviewer-sonnet-high, reviewer-codex, reviewer-gemini, reviewer-opencode, reviewer-light, reviewer-codex-light, developer-local, reviewer-local, subagent, coordinator, qa, backend-auditor, and the routing profiles developer-sonnet, developer-light, developer-codex, developer-codex-luna, developer-codex-terra, developer-codex-sol, developer-codex-astra, developer-gemini, developer-opencode, developer-heavy and developer-fable. A profile an org admin pinned is looked up first. brindle agent profiles lists the ones usable here; brindle profile show NAME prints one as resolved.
---
name: frontend
description: React/TypeScript specialist
provider: claude # or codex, antigravity, opencode, native, shell, subagent
model: sonnet
permission_mode: acceptEdits
allowed_tools: Bash(npm test:*), Bash(git commit:*)
add_dirs: /srv/extra
---
You are a frontend engineer...
The built-in developer runs in Claude Code's auto mode with an allowed_tools list for git and common test and build commands. git push isn't on that list, so a push is left to auto mode's judgment or a prompt. With the permission policy on, brindle's presets ask you before a push into the default branch and always before one into a release branch, and deny a force push. The built-in reviewer refuses anything outside its list rather than waiting for an answer.
Cheap workers
By default a Claude Code worker loads your plugins, MCP servers and user CLAUDE.md on every turn. These optional fields, off by default, trim that context. Effort accepts low, medium, high, xhigh or max.
| Frontmatter | Effect |
|---|---|
strict_mcp: true | Only brindle's MCP server. |
setting_sources: project,local | Skip your user plugins and ~/.claude/CLAUDE.md. |
effort: low | Run the worker at low effort. |
headless: true | Each turn is a claude -p run. Nothing can answer a prompt, so anything not allowed is refused. |
Headless Claude workers still have a tmux window: a runner starts claude -p, then resumes that conversation for later messages. Mid-turn messages arrive at turn end. Nothing can answer a permission prompt, so tools outside permission_mode and allowed_tools are refused, never left waiting. You cannot attach and type into a headless worker; use brindle send or send_message. Peek shows each turn's prompt and result. A CLI error stops it and handoff reports the error. Its done_when finish line is added to the task without the interactive /goal command.
Subagent workers
The built-in subagent profile gives a Claude Code supervisor brindle's worktree and branch handling for work done by its own Agent tool, with no separate process. Assign/handoff returns the worktree, branch, agent ID and prompt immediately. The supervisor runs its own Agent tool there, then calls complete_subagent(agent_id, result); normal diff, review, merge and removal tools apply. brindle cannot message that subagent. Editing an external worktree still needs the supervisor's permission to access its directory.
Frontmatter and inheritance
Blank values and text after # are ignored. Lists accept comma-separated values, bracket lists or block lists; use a block list when an item contains commas. env.NAME: value sets a process environment variable. Values are literal: brindle does not expand ${VARIABLE}. Keep secrets in user profiles or the keychain, never committed profiles.
---
name: backend-auditor
extends: reviewer
rules: security/backend
---
Audit this branch for unsafe handling of input and secrets.
extends names one parent using the same lookup order. Child fields override parent fields; omitted fields inherit. The child's prompt is appended, and its rule packs follow the parent's. Chains work; cycles stop launch and name the loop. brindle profile show NAME prints the resolved profile (--prompt prints its prompt).
brindle profile new NAME --extends developer --rules security/backend creates a profile; --user puts it in your user directory. brindle profile lint checks parents, cycles, packs, patterns, providers and permission denies, exiting 1 on failure. For Claude Code file permissions, use Edit(docs/**): Edit rules cover all file-editing tools; Write rules are not consulted by file permission checks.
Rule packs
Packs are Markdown in .brindle/rules/, ~/.brindle/rules/, the org library or built-ins. A name such as security/backend means security/backend.md. Missing named packs stop launch. Pack prose enters every provider's prompt; mechanical rules also check the branch diff before review and merge.
---
name: security/backend
deny_deps: [pickle]
require_tests_for: [src/**/*.py]
deny_patterns:
- shell=True
- \beval\(
---
Validate input before passing it across a trust boundary.
deny_deps checks added import/from/require lines and dependency manifests; require_tests_for requires a changed test file when matching source paths change; deny_patterns rejects matching added lines. Results name offending file and line, and a failing pack blocks merge. Git attributes, drivers and prefixes are overridden when reading the diff; a profile that no longer loads fails the gate. These are text checks: a reviewer still has to catch dynamic imports or tests that prove nothing.
Built-ins include security/backend, tests/only (every diff touches a test file) and style/minimal-diff. backend-auditor extends reviewer with security/backend; qa extends developer with tests/only.
Guardrails (Pro)
---
name: api-dev
extends: developer
write_scope: [src/api/**, tests/api/**]
read_scope: [src/**, tests/**, docs/**]
env_allow: [NPM_TOKEN, AWS_*]
---
Globs are relative to the worktree and case-sensitive; * crosses slashes, and a directory or trailing slash includes its contents. Without the guardrails entitlement these fields are ignored, with one warning per profile.
write_scopeis enforced against the branch diff, including deletions, renames and mode changes. Outside changes fail review and merge. Claude hooks and native file tools also refuse out-of-scope writes as best effort. Shell writes can bypass those tool checks; the diff gate holds. An empty list means no limit.read_scopeis best effort: native Read/Glob/Grep and Claude's hook restrict reads and searches. A search directory must be wholly in scope. Shell commands can still read outside it, other providers get the prompt, and reads leave no diff to enforce.env_allowretains listed names/globs, process basics (PATH,HOME, locale, terminal),BRINDLE_*, profile env lines and provider sign-in variables. brindle's own Pro and GitHub secrets are excluded even if listed. Add proxy,GIT_*orNO_COLORvariables explicitly if tools need them.
Learned rules (Pro)
Repeated change requests are grouped per repo and worker profile with one small model call: learned_rules_profile, else an answering local model, else Claude's cheapest model. Its tokens appear in history. After learned_rules_repeats distinct tasks (3 by default), suggestions appear in progress and the CLI. Nothing changes until you accept.
brindle rules suggest
brindle rules accept 3f9c2a1b
brindle rules reject 3f9c2a1b
suggest --no-refresh only lists. Acceptance writes .brindle/rules/learned.md, automatically used by every profile in the repo. Mechanical findings become deny_patterns, deny_deps or require_tests_for. Commit the pack to share it; edit or delete rules normally. Rejections are remembered on this machine so matching findings stay rejected.
The org library (Team)
brindle account org profiles
brindle account org profiles push reviewer.md --pinned
brindle account org profiles push security.md --pack --name security/backend
brindle account org profiles rm security/backend --pack
Admins publish profiles and packs for members. Normally repo and user files win; --pinned makes the org item win and warns about ignored local copies. The backend signs the library and the client verifies it. A cached copy under ~/.brindle/pro/profiles-<org>/ works offline for a week past its signature; without a usable copy brindle reports that it uses only local items. Air-gap mode never fetches.
Directories outside the workspace
Put shared build caches or reference repositories in the repo's add_dirs, for example {"add_dirs": ["/srv/cargo-cache", "vendor/reference"]}. A profile can add entries but cannot remove the repo's entries. Claude Code receives each as --add-dir: full tool access, including writes and Bash, and any CLAUDE.md there is loaded. Relative entries resolve from the repo root, even in a user profile; ~ means your home. Missing directories are reported at launch and by doctor. For read-only intent see worker_extra_read_dirs.