Long documents and large codebases
3 lessons · 13 min
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).
In this chapter
Chapter check
Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.
Loading check…