Grok Build · 55 min
Subagents and worktree isolation
- Explain that a subagent is a child session with its own context window
- Choose explore, plan, or general-purpose, and know the depth limit is one
The parent session is one context window. If you stuff research, a refactor, and a review into it, you pay for all of that on every later turn, and the model starts “remembering” files it has not opened this hour. A **subagent** is a child session. It gets its own window. It reports a summary back. The parent keeps the job, not the raw grep.