Subagents and child sessions
Inspect can delegate part of a task in two ways. A subagent is a second agent inside the same session and sandbox. A child session is a full Inspect session with its own sandbox, branch, and pull request. Both run in the background and report back to the session that started them.
Which one Inspect uses
| Subagent | Child session | |
|---|---|---|
| Workspace | Shares the parent's sandbox, files, and Git state | Its own sandbox and checkout |
| Repository | The parent's | Any onboarded repository |
| Branch and pull request | Changes land on the parent's branch | Its own branch and pull request |
| Conversation | Visible under the parent's Agents tab | A separate session with its own URL, linked to its parent |
| Model | The parent's model and reasoning effort | The parent's, unless the prompt names another model or you set a default child model |
| Cost | Counted in the parent session's cost | Counted on the child session |
| Can be prompted directly | No; it reports to the parent | Yes, like any session |
Inspect starts subagents for substantial, self-contained pieces that can run while it keeps working, such as writing tests while it updates docs. It starts child sessions when work needs its own pull request, belongs in another repository, or should be reviewable on its own. Ask for either explicitly ("use a subagent to…", "start a child session in payments to…").
Subagents
- Each subagent starts with a fresh context and a brief from the parent. It does not see the parent's conversation, so the parent passes along the goal, constraints, and relevant paths.
- Subagents edit the same files the parent does. The parent assigns them work that does not overlap and reviews their result before reporting to you.
- Open a subagent from Agents to read its steps. You can't send it messages; prompt the parent instead.
- The API lists a session's subagents and their messages and cost:
GET /api/v2/sessions/{session_id}/subagents. Subagents are not sessions and have no session ID of their own.
The Verification agent runs as a subagent of the session that opened the pull request.
Child sessions
- A child session runs as the same user as its parent and uses the repository the work concerns. When no repository applies, it uses your selected default repository.
- The parent writes the child's first prompt, including whether it should write code or only research. Each child gets a category:
research,parallel_work,continuation(stacked or follow-on work), oraside. - Children post meaningful results or blockers back to the parent automatically. The parent can send a child follow-up prompts; prompting an archived child unarchives it.
- A child can run a custom agent and can use a different base branch for stacked pull requests.
- A child's menu has Go to parent session.
Default child model
When Default child model is available in Settings → Agent, it sets the model and reasoning effort for child sessions you start. Same as parent keeps inheritance. The setting does not apply when the prompt names a model, when a custom agent is chosen, or when the parent runs a custom agent. If the saved model is no longer available to you, children inherit the parent's model.
Limits
A session tree can hold at most 50 descendant sessions, counting nested children, not only direct ones. Past that, starting another child fails with Child session limit reached. Start new delegated work from a new top-level session.
Troubleshooting
Start a new top-level session for further work.
The requested model isn't available to you. Name one from the list, or omit the model.
Ask the parent to give each worker files the others don't touch, or to do the work itself.