Agent system

May 30, 2026 · View on GitHub

Recap Studio runs a 13-agent pipeline. Agents are isolated, typed contracts; they pass JSON, never raw context dumps.

Pipeline (topic mode)

#AgentModelRoleOutput
1research-scouthaikuFind sourcesResearchScoutOutput
2source-librarianhaikuScore + map sourcesSourceMap + thin claims
3learning-architectsonnet5-minute pathRecapPageContent (draft)
4visual-story-designersonnetDiagrams, rhythm, animationVisualPlan
5frontend-buildersonnetImplement pagecontent file + components
6afact-checkersonnetClaim ↔ source auditDimensionResult
6bbeginner-reviewerhaikuSmart-18yo POVDimensionResult
6caccessibility-reviewerhaikuChunking, motion, landmarksDimensionResult
6dux-design-reviewersonnetHierarchy, polish, storytellingDimensionResult
6eperformance-reviewerhaikuBundle, lazy-load, CWV riskDimensionResult
6fsecurity-privacy-reviewersonnetSecrets, injection, side effectsDimensionResult
6gskeptical-reviewersonnetOverclaim, fluff, hidden costDimensionResult

The reviewers (6a–6g) run in parallel, isolated. Their findings are aggregated, the architect applies patches, and only failing dimensions are re-checked. Cap = 3 iterations.

Pipeline (session mode)

Replaces step 1–2 with repo-session-analyst building a SessionDelta from bounded read-only git commands; the rest is identical.

Hard rules (every agent inherits)

  • Never fabricate citations.
  • Never write outside the declared file scope.
  • Never call paid APIs unless config + env permit.
  • Honor RECAP_STUDIO_FIXTURE_ONLY=1, force fixture pathways.
  • Mark uncertainty.

Model routing

  • haiku: source collection, lint-style reviews, simple checks.
  • sonnet: architecture, content synthesis, design, judgment.
  • opus (optional, manual): final design pass on premium runs.

Routing is decided by config.costMode × config.modelRouting. The agents themselves declare a default in front matter (model: haiku|sonnet).

Tool minimization

Each agent declares the smallest tool set it needs:

AgentTools
research-scoutWebSearch, WebFetch, Read, Grep
source-librarianRead
learning-architectRead, Write
visual-story-designerRead, Write
frontend-builderRead, Write, Edit, Bash
repo-session-analystRead, Grep, Glob, Bash
fact-checkerRead, WebFetch
beginner-reviewerRead
accessibility-reviewerRead, Grep
ux-design-reviewerRead
performance-reviewerRead, Bash, Grep
security-privacyRead, Grep
skeptical-reviewerRead