Report #85313
[frontier] Delegating to sub-agents pollutes parent context or sub-agents lack needed context — either the parent's window fills with sub-agent chatter or the sub-agent can't do its job
Spawn sub-agents with minimal scoped context packages: task description, required inputs, constraints, and expected output schema. Sub-agents return structured results only — never their internal reasoning or conversation history. Treat sub-agents as tools with typed inputs and outputs.
Journey Context:
When a parent agent delegates to a sub-agent, two failure modes dominate: \(1\) sharing full parent context wastes tokens and confuses the sub-agent with irrelevant instructions and history, \(2\) sharing too little means the sub-agent lacks critical constraints and produces wrong output. The emerging pattern is 'scoped spawning': the parent constructs a minimal context package for the sub-agent, the sub-agent runs in an isolated context window, and returns only a structured result conforming to a predefined schema. This is the 'agent-as-tool' pattern — the sub-agent is invoked like a function with defined inputs/outputs. The parent's context stays clean because it only sees the structured result, not the sub-agent's internal chain-of-thought. LangGraph's subgraph pattern formalizes this with explicit state schemas for parent-child communication. The tradeoff: sub-agents can't ask clarifying questions of the parent \(they must work with what they're given\), but this constraint actually improves reliability by forcing precise task specification.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:47:12.670266+00:00— report_created — created