Subagent Delegation
التفويض إلى الوكلاء الفرعيين
Start with meaning, then move to detail.
This lesson explains Subagent Delegation as part of using Hermes and understanding its behavior. You will learn what it does, when it matters, and the smallest safe test that proves it works.
If you are new, do not memorize names. Focus on three questions: what problem does this solve, what access does it need, and how can you verify the result?
For practice, inspect the first example, identify its effects, run it on test data, and compare the result with the source claim.
For advanced readers, inspect Single Task, Parallel Batch, How Subagent Context Works, then verify failure modes and version compatibility.
Start with installation if you have not run Hermes yet.
A clear outcome before you read.
- Understand Subagent Delegation without assumed prior knowledge.
- Separate the source description from what still needs testing in your environment.
- Read the first command and identify its inputs and outputs before copying it.
Short definitions before the details.
- Provider
- The service that runs or provides access and authentication to a model.
- Automation
- Running work later or repeatedly with explicit success and failure conditions.
Spawn isolated child agents for parallel workstreams with delegate_task
What does the source say, and in what order?
- 01Single Task
Start here to understand the core idea or structure.
- 02Parallel Batch
Read this after the foundation, then connect it to the previous step.
- 03How Subagent Context Works
Read this after the foundation, then connect it to the previous step.
- 04Practical Examples
Read this after the foundation, then connect it to the previous step.
- 05Parallel Research
Read this after the foundation, then connect it to the previous step.
- 06Code Review + Fix
Read this after the foundation, then connect it to the previous step.
- 07Multi-File Refactoring
Read this after the foundation, then connect it to the previous step.
- 08Batch Mode Details
Read this after the foundation, then connect it to the previous step.
- 09Durable background completions
Read this after the foundation, then connect it to the previous step.
- 10Model Override
Finish here to verify the result and special cases.
Copy only after you understand the effect.
## Parallel Batch
Up to 3 concurrent subagents by default (configurable, no hard ceiling):## How Subagent Context Works
:::warning Critical: Subagents Know Nothing
Subagents start with a **completely fresh conversation**. They have zero knowledge of the parent's conversation history, prior tool calls, or anything discussed before delegation. The subagent's only context comes from the `goal` and `context` fields the parent agent populates when it calls `delegate_task`.
:::
This means the parent agent must pass **everything** the subagent needs in the call:The subagent receives a focused system prompt built from your goal and context, instructing it to complete the task and provide a structured summary of what it did, what it found, any files modified, and any issues encountered.
## Practical Examples
### Parallel Research
Research multiple topics simultaneously and collect summaries:Read the first command and identify its inputs and outputs before copying it.
Match every command to your installed Hermes version, review the files and accounts it can reach, and use non-sensitive data for the first test. If this explanation differs from the source, the official source wins.