crewboss v0.2.0
Model routing

Agents & model selection crewboss agent

Launch personas across Claude Code, Codex, opencode, and agy with cheapest-first tier walking, quota skipping, paid protection, and startup failover.

v0.2.0
crewboss agent <persona> "<task>" [--size small|medium|large] [--mode read|write] [--model tool:model[@effort]] [--dir DIR] [--allow-paid] [--dry-run] [--attachment FILE] [--notify SESSION]
Persona key Values · Default Description
namerequired
string
default: file name
Lowercase persona name using letters, digits, - and _.
sizerequired
small | medium | large
default: —
Selects which model tier crewboss walks from cheapest to most expensive.
diroptional
relative path
default: .
Working directory for the agent, relative to workspace root.
modeoptional
write | read
default: write
In read mode, Claude Code runs in plan mode and does not edit files.
skillsoptional
string[]
default: []
Markdown files appended to the agent prompt.
allowed_tools / disallowed_toolsclaude
string[]
default: []
Passed as --allowedTools / --disallowedTools to Claude Code in both modes.

How models are chosen

crewboss walks the selected tier in order, skips candidates marked "paid": true (unless --allow-paid is passed), skips candidates rejected by your quota plugin, and launches the first one left. Skips are reported to stderr before the choice:

Skipped: codex:gpt-6-luna (quota limit exceeded: codex 5h window at 97%)
Skipped: claude:opus (paid; use --allow-paid)
Choice: agy:gemini-4-neon-high (tier: medium)

If a candidate fails at startup — exiting non-zero within 60 seconds, or logging 429, quota, model_not_found, or "Free usage limit" — crewboss reports Failed at startup: tool:model (reason) -> trying tool:model and tries the next candidate in the same tier. It never jumps tiers, and forcing --model tool:model[@effort] disables tier fallback.

Prompt composition and logs

Every agent prompt combines your preamble, the persona body, its skills Markdown files, relevant memory notes, the # Communication section, and the task. Each run saves prompt.txt, agent.log, answer.md, and choice.json under logs/crewboss/agents/<persona>/<date>/.

Workspace personas take precedence over mod personas for unqualified names. Select a mod persona explicitly with crewboss agent <mod>/<persona> "task".

Read-only reviewer persona

---
name: reviewer
size: medium
mode: read
allowed_tools: [Read, Grep, Glob]
---
You review code. Report problems with file and line; do not change anything.

Command-running tester without edit tools

---
name: tester
size: small
mode: write
allowed_tools: ["Bash(npm test:*)", "Bash(git status:*)", Read, Grep]
disallowed_tools: [Edit, Write, NotebookEdit]
---
You run the test suite and explain each failure. Never modify files.

allowed_tools and disallowed_tools apply to claude; other CLIs ignore them and record a note in agent.log.