# delegate_task Tool

> The Hermes tool that gives work to helper agents and gets back short notes.

**Field:** Artificial Intelligence  
**Category:** Hermes Agent  
**Also known as:** Hermes subagents, Hermes delegation

## Think of it like

It is like a team boss who hands out jobs and reads short notes back.

## Definition

delegate_task is the Hermes Agent tool that starts child agents to do work on their own. Each child gets a fresh context, its own terminal and the parent's tools. Only its final summary comes back into the parent's chat. Up to 10 children can run at once by default. The parent can keep talking while they work, and gets their results as a new message.

## Example

Mia asks Hermes to compare five libraries. It starts five children, one per library, and reads back five short reports.

## Example code

```python
delegate_task(tasks=[
    {"goal": "Research topic A"},
    {"goal": "Research topic B"},
])
```

Two children work at once, one per topic.

## Why it matters

Each child's searching and reading stays out of the main chat, so the main context stays small.

## Common mistake

Expecting a child to keep a server running after it ends. Its processes stop when it finishes.

## Three principles

- **Fresh context each.** Summary returns.
- **10 at once.** By default.
- **Runs in the background.** Chat goes on.

## Related terms

- [execute_code Tool](https://learn.benibix.com/term/ai/hermes-execute-code)
- [Subagent](https://learn.benibix.com/term/ai/subagent)
- [Multi-Agent System](https://learn.benibix.com/term/ai/multi-agent-system)
- [Hermes Kanban](https://learn.benibix.com/term/ai/hermes-kanban)

## Told apart from

- [delegate_task vs execute_code](https://learn.benibix.com/compare/hermes-delegate-task-vs-hermes-execute-code): People think delegate_task and execute_code both just run work side by side. In fact, they solve two quite different problems. delegate_task starts new agents that think for themselves and send back a summary. execute_code runs one Python script that calls tools in a set order and prints a result. Hand off work when each part needs thought. Use a script when you know the steps.

![Two ways Hermes saves context: delegate_task hands work to child agents and gets back only their summaries, while execute_code runs a script that calls many tools and returns only what it prints.](https://learn.benibix.com/diagrams/hermes-delegate-vs-execute.svg)

---

Source: https://learn.benibix.com/term/ai/hermes-delegate-task
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
