Sub-Agent Strategy

This is an operational strategy that agents receive via .thrum/strategies/. It describes when and how to delegate work to sub-agents to maximize parallelism and keep your main context focused.

Delegate research, independent tasks, and verification to sub-agents. Your main context should focus on task coordination, dependency management, and cross-cutting decisions.

Principles

  1. Parallelize independent tasks — When multiple unblocked tasks touch different files/packages, implement them simultaneously via sub-agents
  2. Delegate research — Spawn sub-agents to explore unfamiliar code before implementing, rather than reading it into your context
  3. Verify in background — Run tests and lint via background sub-agents while you continue with the next task
  4. Focused prompts — Give each sub-agent the full task description, worktree path, quality commands, and expected deliverables

Agent Selection

Task Agent Type Model Background?
Implement a complex task general-purpose sonnet no*
Implement a simple task general-purpose haiku no*
Explore unfamiliar code Explore sonnet yes
Run tests / lint general-purpose haiku yes
Review implementation feature-dev:code-reviewer sonnet no
Doc updates / config tweaks general-purpose haiku yes

*Use foreground when you need the result before proceeding. Use background when you can continue other work while they run.

When to Parallelize vs. Work Sequentially

Parallel (sub-agents):

Sequential (direct work):

Verifier Sub-Agent Pattern

After completing a task, spawn a background sub-agent to independently verify:

This lets you start the next task immediately while verification runs in parallel.

Sub-Agent Prompt Guidelines

When writing prompts for sub-agents:

Next Steps