All field notes

Sub-agent delegation: boundaries, budgets, and evidence

Design delegation around independent work, scoped context, and verifiable results.

Published Documentation reviewed Updated

sub-agents, orchestration, context

Delegate when a task has a useful independent boundary: separate research questions, reviews of disjoint modules, or specialized investigation. Evaluate whether the quality or latency benefit justifies additional calls and coordination.

Anthropic’s research-system writeup describes parallel specialists returning results to a lead agent. It is one workload-specific architecture, not a guarantee that a multi-agent design improves every task.

Define the handoff

A proposed delegation record should contain:

objective      inspect the authentication changes
inputs         diff, repository revision, relevant requirements
allowed_tools  repository reads and local test inspection
output         findings with file references and supporting evidence
budget         turn and wall-clock limits
ownership      parent owns final synthesis and external actions

Pass the context needed for the task. Whether a child receives parent history, a fork, or an isolated prompt depends on the runtime; inspect its documented behavior and the actual request trace.

Coordinate shared work

Concurrent writers can overwrite changes or test the wrong revision. Partition files or use isolated workspaces, assign ownership, and define how results are merged. A shared working directory is a coordination dependency even when the tasks sound independent.

Keep operation identifiers and provenance with returned findings. A concise summary is useful, but it should link to the evidence needed for verification.

Measure the handoff

Compare the parent-only baseline with the delegated version on the same task set. Track successful outcomes, wall time, total usage across all agents, duplicated work, and synthesis errors. Do not assume a universal tool-count or context-token threshold for delegation.

For observability, verify the SDK version’s event and tool names. Capture delegation start, child run identity, completion or interruption, and the parent’s use of the result. Avoid binding monitoring to a historical tool name without checking that it still appears in traces.

Failure exercise: have one child return an unsupported finding and another time out. Confirm that the parent reports uncertainty, preserves completed work, and respects the overall run budget.

Continue with trajectory evaluations.