← Back to Glossary
Sub-Agent / Worker Agent
A specialized agent with a targeted system prompt and restricted tools tasked with solving one specific sub-task.
Why it exists
Focuses model attention on one job (e.g. SQL query writing) without cluttering prompt context with unrelated domain knowledge.
How it works
Instantiated by a supervisor agent, processes assigned payload, executes tool loop, and returns final answer to supervisor.