hermes-delegation
Skill4 starsChanged 7 months agoMITView on GitHub
Use when spawning subagents, building multi-agent workflows, or delegating tasks. Covers: delegate_task API, toolsets, max_concurrent_children, max_spawn_depth, subagent contexts, parallelization, batch tasks, agent isolation, max_iterations, child_timeout_seconds. Triggers on: delegate, subagent, spawn, multi-agent, parallel, concurrent, delegation, parallelize, batch.
In this repository22 other files it gives its agents.
- hermes-channelsSkill
- hermes-cliSkill
- hermes-conceptsSkill
- hermes-configSkill
- hermes-cronSkill
- hermes-gatewaySkill
- hermes-hooksSkill
- hermes-installSkill
- hermes-loggingSkill
- hermes-masterSkill
- hermes-mcpSkill
- hermes-memorySkill
- hermes-platformsSkill
- hermes-providersSkill
- hermes-securitySkill
- hermes-skill-authoringSkill
- hermes-skillsSkill
- hermes-soulSkill
- hermes-toolsSkill
- hermes-troubleshootingSkill
- hermes-voiceSkill
- hermitdoc-onboardingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 67
Default: inherits your current toolsets.
- Distinctive: line 85
Always provide rich context:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hermes Delegation Reference
Guide to spawning subagents via delegate_task.
delegate_task
Spawn subagents for parallel work, reasoning-heavy tasks, multi-track workflows.
Parameters
| Parameter | Type | Default | Description |
goal | string | — | What to accomplish. Be specific. |
context | string | — | Background: file paths, error messages, constraints |
toolsets | list | inherited | Tool sets to enable |
max_iterations | int | 50 | Max tool-call turns per subagent |
tasks | list | — | Batch mode: up to 3 parallel tasks |
acp_command | string | — | Override subagent binary (e.g. claude, codex) |
acp_args | list | — | Extra args for the ACP binary |
goal (batch tasks) | string | — | Per-task goal |
context (batch tasks) | string | — | Per-task context |
toolsets (batch tasks) | list | — | Per-task toolsets |
Batch Mode (Parallel)
Spawn up to 3 subagents simultaneously:
delegate_task(tasks=[
{
"goal": "Write unit tests for auth.py",
"context": "File: /project/src/auth.py. Use pytest. Run tests after.",
"toolsets": ["terminal", "file"]
},
{
"goal": "Write unit tests for database.py",
"context": "File: /project/src/database.py. Use pytest. Run tests after.",
"toolsets": ["terminal", "file"]
},
{
"goal": "Write unit tests for api.py",
"context": "File: /project/src/api.py. Use pytest. Run tests after.",
"toolsets": ["terminal", "file"]
}
])Available Toolsets
web, browser, terminal, file, code_execution, vision, image_gen, tts, skills, todo, memory, session_search, clarify, delegation, cronjob, messaging, rl, homeassistant, moa, search
Also MCP tools via server:tool notation (e.g. github:create_issue).
Default: inherits your current toolsets.
Delegation Config
# ~/.hermes/config.yaml
delegation:
model: '' # override model for subagents (e.g. anthropic/claude-sonnet-4)
provider: '' # override provider
inherit_mcp_toolsets: true # subagents inherit MCP tools from parent
max_iterations: 50 # max turns per subagent
child_timeout_seconds: 600 # timeout for subagent runs
max_concurrent_children: 3 # max parallel subagents
max_spawn_depth: 1 # prevent recursive delegationContext Injection
Always provide rich context:
# Good
delegate_task(
goal="Fix the authentication bug in auth.py",
context="""
Project: /workspace/myapp
File: /workspace/myapp/src/auth.py (line 42)
Error: TypeError: Cannot read property 'token' of undefined
Stack: auth.py:42 -> middleware.py:12 -> server.py:8
Test framework: pytest
"""
)
# Bad
delegate_task(goal="Fix the auth bug")Anti-patterns
- No context — subagent doesn't know what it's doing
- Recursive delegation —
max_spawn_depth: 1prevents this - Shared mutable state — subagents are isolated
- User interaction — subagents can't use
clarify - Too many concurrent — max 3 by default
Common Patterns
Research Pipeline
delegate_task(tasks=[
{"goal": "Research topic A", "context": "...", "toolsets": ["web"]},
{"goal": "Research topic B", "context": "...", "toolsets": ["web"]},
{"goal": "Synthesize findings", "context": "Combine from tasks 1-2.", "toolsets": ["file"]}
])Code + Review
delegate_task(tasks=[
{"goal": "Implement feature X", "context": "...", "toolsets": ["terminal", "file"]},
{"goal": "Review and test implementation", "context": "...", "toolsets": ["terminal", "file", "vision"]}
])References
hermes-config/— delegation config keyshermes-concepts/— agent loop and lifecyclehermes-skills/— encoding workflows as skillshermes-cli/— delegation toolset
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

