Model Tiers & Context Economy
Use a frontier model to plan and fast small models to execute lean, cache-friendly task prompts.
Token efficiency is a design rule in DevBro. The headline metric is real cost per task that passes its checks, shown alongside elapsed time.
Big model plans, small models build
Plans stay portable because tasks.json stores abstract tiers (small, medium, large) — never hardcoded vendor model IDs.
In Settings, you map each tier to a concrete model per assistant adapter (for example: Haiku / Sonnet / Opus for Claude Code, or your preferred tiers for Codex, OpenCode, Pi, Copilot CLI, or Antigravity CLI).
- Planning stage: Uses your strong reasoning tier to settle architecture and write self-contained task briefs.
- Execution stage: Routes straightforward tasks to
small, moderate work tomedium, and tricky architecture tasks tolarge. - No silent fallbacks: If a CLI rejects a configured model name, the task fails explicitly rather than quietly billing a more expensive model.
Leaner task context (R-14)
Every task prompt is engineered to cut wasted input tokens and maximize provider prompt-cache hits:
- Byte-identical stable prompt prefix: Session-wide instructions, project rules, and the bounded project map sit at the top of the prompt in deterministic order. Task-specific ID, title, attempt number, and check failures come after the prefix so consecutive tasks in a session hit the assistant’s prompt cache.
- Deterministic project map: Built locally with zero LLM calls and capped to a fixed size budget so small models know the repository layout without wasting turns exploring.
- Trimmed check output on retry: Full logs remain stored in the database and check expectations are always evaluated on the full output, while the retry prompt receives the failing excerpt plus line counts of omitted output.
- Capped session handoff notes: Older session handoff entries are deterministically compacted instead of growing unboundedly across a 20-task build.
Nothing hidden
Every item placed into a prompt — project map, skills, memories, trimmed log indicators, and chosen model tier — is inspectable by the developer.