sub-agent
An agent started by another agent to do one piece of work in its own fresh context, returning only its finding.
In more detail
Sub-agents keep the main context clean and can run in parallel, but each carries its own instructions and tools, so total tokens rise. Give each a clear brief and test that their contexts stay isolated.
Related terms
- context isolation — Running a piece of work in its own separate context, such as a sub-agent, so only its result returns to the main conversation.
- orchestrator-workers — A pattern in which a lead model breaks a task into subtasks at run time, hands them to worker calls or sub-agents, and combines their results.
- multi-agent system — Several agents with separate contexts and roles working on one task, coordinated by a lead or by handing work to each other.
Taught in
- When Context Fails — AI Engineering: LLM Apps, RAG & Agents
- Planning, Memory And Many Agents — AI Engineering: LLM Apps, RAG & Agents