Lesson 1 · Unit 04
Subagents
A lead, workers with their own windows, and what a handoff loses
What you practise
- An orchestrator and workers, separate contexts, parallel work, what a handoff loses, when one agent is better
Try a question from this lesson
Pick one
An agent with a 60,000-token window must review 6 unrelated files of 15,000 tokens each. What changes if each file goes to a helper that returns a 500-token report?
Correct answer
The lead holds 3,000 tokens of reports, not 90,000 of files
Why
Read directly, four files fill the window to the brim. Each helper reads one file in its own window and sends back only the findings, so the lead works from 6 × 500 = 3,000 tokens. Helpers buy context, not just speed.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Lead and workers
A subagent is a second agent loop that the first one starts, the way a function is called. The lead splits the job and writes a brief for each part. Each worker runs in its own fresh context and returns a short report.
The worker's forty steps of reading and searching never enter the lead's window. Only the report does.
lead: plans, merges
/ | \
worker A worker B worker C
own window, sends back a reportConcept
What a handoff loses
A brief is a summary going down and a report is a summary coming up. Each drops detail, and neither side can see what the other missed.
The lead also cannot watch the worker. A wrong report arrives sounding as sure as a right one. Delegate work that is independent and easy to check, and keep tightly linked work in one context.
9 more exercises in the app
- 2× type the answer
- 2× true or false
- 3× multiple choice
- 1× order the lines
- 1× fill the blanks
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.