Skip to content

Agents

The plugin uses 11 specialized agents, each optimized for a specific phase of the workflow. You don't invoke agents directly — they are automatically dispatched by commands like /spec, /spec-brainstorm, and the post-implementation commands.

Model Routing

Each agent is assigned a capability tier that best fits its task. Reasoning-heavy phases use the reasoning tier; structured, fast-output phases use the standard tier; lightweight fixes use the lightweight tier. Your CLI resolves each tier alias to an actual model at runtime (Claude Code does this automatically; Codex and other CLIs require SPEC_MODEL_* environment variables). Every agent's tier can be overridden per-environment — see model-routing.

Agent Tier Phase Why
spec-planner reasoning Requirements + Design Deep reasoning for edge cases, security, and architectural tradeoffs
spec-tasker standard Task breakdown Fast, structured decomposition from a completed design
spec-validator standard Validation Checklist-based verification across all three spec documents
spec-implementer standard Implementation Writes code and wires it into the running application
spec-tester standard Testing Verifies features end-to-end using Playwright and test suites
spec-reviewer reasoning Code review Catches security issues, architectural drift, and subtle bugs
spec-debugger lightweight Debugging Fixes issues identified by the Tester or Reviewer
spec-consultant standard Brainstorm consultation Domain expert analysis during /spec-brainstorm sessions
spec-acceptor standard Acceptance Requirement traceability, non-functional verification, formal sign-off
spec-documenter standard Documentation Generates API refs, user guides, and ADRs from spec and code
spec-scanner standard Profile scan Detects framework, patterns, entities, and registration points

Agent Roles

Planning pipeline

spec-planner runs during /spec to produce requirements.md and design.md. It uses the reasoning tier to reason carefully about edge cases, security implications, and architectural tradeoffs before a single line of code is written.

spec-tasker picks up after the planner and breaks the design into discrete, trackable tasks organized across five phases: Setup, Core Implementation, Integration, Testing, and Polish. It syncs tasks to Claude Code's todo system.

spec-validator checks the three spec documents for completeness and consistency. It verifies EARS notation, cross-document ID alignment, dependency graphs, and that every requirement has a corresponding task.

Brainstorm pipeline

spec-consultant is a parameterized agent spawned during /spec-brainstorm sessions. Each instance takes on a different expert persona (security, architecture, UX, etc.) and returns structured analysis specific to the codebase and discussion.

Implementation pipeline

The core implementation loop runs in this order, primarily through /spec-exec or spec-loop.sh:

  1. spec-implementer — writes the code and wires it into the application
  2. spec-tester — verifies the implementation works end-to-end; only this agent can mark a task Verified: yes
  3. spec-reviewer — reviews code quality, security, and architectural alignment after the tester approves; only this agent can give final approval
  4. spec-debugger — called when the Tester or Reviewer rejects an implementation, bringing a fresh perspective to fix the specific issues

Post-implementation pipeline

spec-acceptor runs after all tasks are complete. It maps every EARS acceptance criterion back to verified tasks to confirm the right thing was built, and produces a formal UAT report.

spec-documenter generates user-facing documentation — API references, user guides, architecture decision records, and runbooks — from spec files and actual implementation code.

spec-scanner runs during Phase 0 of /spec to build a project profile (_project-profile.md). It detects the framework, existing code patterns, domain entities, and the exact file/line registration points where new code must be wired. This profile is used by the implementer and verification gate to ensure new code is connected correctly.