Ask a coding agent to review a small patch. Its current conversation already contains the requirement, earlier decisions, and test results. If you ask it to delegate the review, the parent agent must set the task for a new worker, receive the report, and decide what to do with it. You can also open an independent chat and handle both handoffs yourself.

What context and access does a subagent get?

For a review, pass the acceptance criterion, patch revision, and a place to read the diff. A useful finding specifies the path and line, the condition that triggers the defect, and how to check it. Agreement between reports matters only if both concern the same revision. Separate context means a separate conversation with the model. The files a worker can read or modify depend on the client’s permissions and execution environment.

ClientHow it starts and configures subagents
CodexAsk for delegation explicitly. Codex combines the results in the parent thread. TOML files in .codex/agents/ define project roles. A subagent can inherit the parent’s model and reasoning effort.
Claude CodeCan choose a role from its description or follow a direct instruction. Project definitions in .claude/agents/ set the prompt, tools, and permission mode. Results return to the main conversation.
CursorDelegates work in a separate context and gets a result back. Built-in roles and project files in .cursor/agents/ work in the editor, CLI, and Cloud Agents.
OpenCodeStarts the subagent in a background child session. Parent permissions control which roles it can launch. The worker uses its configured permissions and sends a report when it becomes idle.

A role instruction such as “the reviewer only reads” tells the model what to do. If restricting writes matters, check the tools and permissions the subagent actually receives. Claude Code, for example, lets you set the tool list in the role definition. Claude Code subagent fields

When do you need a team?

If two reviewers can independently inspect the same diff, the main agent just needs to collect their reports. When workers need to ask one another questions and claim work from a shared list, the system needs additional coordination. Claude Code provides an experimental agent teams mode for this. It is disabled by default. Each teammate works in a separate session and can contact the other teammates, while the lead brings the results together. Claude Code Agent Teams

The cost of splitting the task depends on how much context has to travel. A specific requirement may need only a short brief and a diff. If every decision depends on a long series of clarifications, one agent with the right skill can retain more of the information that matters. The boundary of the task determines whether a separate worker helps. Anthropic’s analysis of delegation