← Chapter 62. Long documents and large codebases
A subagent explores a big repo
Swipe to change step
Step 1 of 8. The main agent must work out how payments flow through a 3,000-file monorepo. Reading it all would overflow any context window many times over. Main agent (context: 15k), highlighted. CLAUDE.md (map of the repo). Grep / Glob (charge, PaymentIntent). src/payments/ (6 files match). src/webhooks/ (2 files match). 2,990 other files (never opened).
Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.