Inspect

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

SubagentChild session
WorkspaceShares the parent's sandbox, files, and Git stateIts own sandbox and checkout
RepositoryThe parent'sAny onboarded repository
Branch and pull requestChanges land on the parent's branchIts own branch and pull request
ConversationVisible under the parent's Agents tabA separate session with its own URL, linked to its parent
ModelThe parent's model and reasoning effortThe parent's, unless the prompt names another model or you set a default child model
CostCounted in the parent session's costCounted on the child session
Can be prompted directlyNo; it reports to the parentYes, 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…").

Splitting work across subagents

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), or aside.
  • 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.

Splitting a cross-repository change into child sessions

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