Skip to content

Subagents

When you run /flow-next:plan, or /flow-next:work on a spec with several tasks, the command fans out. (A single-task spec is built inline in the conversation, with no worker.) Each one is an orchestrator that dispatches a fleet of specialized subagents - each with its own fresh context, its own model tier, and its own narrow job. You never invoke these directly; they exist so the commands you do invoke stay fast, focused, and hard to derail.

This section documents that machinery: 21 subagents across three roles, including one rationale scout the flow skill dispatches on a why question.

flowchart LR
  You["You"] -->|"/flow-next:plan"| Plan["plan"]
  You -->|"/flow-next:prime"| Prime["prime"]
  You -->|"/flow-next:work"| Work["work"]
  You -->|"/flow-next:resolve-pr"| Resolve["resolve-pr"]
  Plan --> PS["9 planning scouts"]
  Prime --> RS["8 readiness scouts"]
  Work --> EX["worker · plan-sync · quality-auditor"]
  Resolve --> PR["pr-comment-resolver"]
  • You type a slash command.
  • The skill orchestrates: it reads state, decides what to dispatch, and composes the results into one answer.
  • The subagents do the scoped work in isolated context and report structured findings back up.
  • Fresh context per job. A scout that reads twenty files returns a paragraph, not twenty files’ worth of tokens in your main conversation.
  • Parallel fan-out. /flow-next:plan dispatches up to eight scouts at once; /flow-next:prime runs eight. Coverage grows without growing wall-clock.
  • Read-only by design. Every scout disallows Edit, Write, and Task - it can investigate but cannot touch your code or spawn further agents. Only the builders (worker, pr-comment-resolver, plan-sync) edit files; worker and pr-comment-resolver may dispatch subagents of their own. The Task denial stays on every read-only agent for the reason it exists: one that can spawn a writing subagent has an escape hatch out of read-only.
  • Right model for the job. Each subagent is assigned a tier: every read-only agent (and plan-sync) sits in the reasoning tier, and the other two builders inherit the caller’s model. A fast tier exists for your own routing, but no bundled agent defaults to it.

Research the codebase, the ecosystem, and the existing plan graph before any task is written. Full detail →

SubagentTierWhat it surfaces
repo-scoutReasoningExisting patterns, conventions, and related code paths to match
spec-scoutReasoningDependencies and relationships against open specs
docs-scoutReasoningThe exact framework/library docs the implementation will need
practice-scoutReasoningCurrent best practices, anti-patterns, and pitfalls
github-scoutReasoningReference implementations and known issues across GitHub
memory-scoutReasoningPrior learnings in .flow/memory/ relevant to the task. Plan no longer spawns it (it runs one memory search itself); refine’s research pass uses it
flow-gap-analystReasoningMissing requirements, edge cases, and open questions
docs-gap-scoutReasoningWhich docs will need updating once the change lands
why-scoutReasoningThe rationale behind a change, from blame, PRs, the tracker thread, and memory, each finding tiered direct, supported, inferred, or unknown. Dispatched by /flow-next:flow on a why question, never by plan

docs-scout, practice-scout, docs-gap-scout, and memory-scout also serve /flow-next:refine --scope=research, the read-first pass over a spec that names a library or API the repo does not already use.

Assess whether the repository is ready for agents and production. Each scout owns one pillar. Full detail →

SubagentTierWhat it surfaces
build-scoutReasoningBuild system, scripts, and CI - can an agent compile and run it?
testing-scoutReasoningTest framework, coverage config, and how to run tests
tooling-scoutReasoningLinting, formatting, type-checking, pre-commit
claude-md-scoutReasoningQuality and completeness of CLAUDE.md / AGENTS.md
env-scoutReasoning.env templates, Docker, devcontainers, system deps
security-scoutReasoningBranch protection / rulesets, CODEOWNERS, dependency updates
observability-scoutReasoningLogging, tracing, metrics, health endpoints
workflow-scoutReasoningCI/CD pipelines, PR/issue templates, automation

docs-gap-scout is shared with planning above.

Execution & review → /flow-next:work, /flow-next:sync, /flow-next:resolve-pr

Section titled “Execution & review → /flow-next:work, /flow-next:sync, /flow-next:resolve-pr”

The agents that change code and guard quality. Full detail →

SubagentTierWhat it does
workerInheritsImplements one task in fresh context when a spec has several tasks or a task goes to a chosen model - re-anchor, build, commit, mark done
plan-syncReasoningProposes updates to downstream specs after implementation drift
quality-auditorReasoningTwo-axis adversarial review of the diff - correctness (spec conformance, security, tests) and standards (simplicity, naming), dispatched in parallel
pr-comment-resolverInheritsResolves a single PR review thread and returns a structured verdict