agentleFS
Hashi-Ai-DevHashi-Ai-Dev/HermitDoc/skills/hermes-delegation/SKILL.md

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.

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
  1. Distinctive:

    Default: inherits your current toolsets.

    line 67
  2. Distinctive:

    Always provide rich context:

    line 85

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hermes Delegation Reference

Guide to spawning subagents via delegate_task.

delegate_task

Spawn subagents for parallel work, reasoning-heavy tasks, multi-track workflows.

Parameters

ParameterTypeDefaultDescription
goalstring—What to accomplish. Be specific.
contextstring—Background: file paths, error messages, constraints
toolsetslistinheritedTool sets to enable
max_iterationsint50Max tool-call turns per subagent
taskslist—Batch mode: up to 3 parallel tasks
acp_commandstring—Override subagent binary (e.g. claude, codex)
acp_argslist—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 delegation

Context 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

  1. No context — subagent doesn't know what it's doing
  2. Recursive delegation — max_spawn_depth: 1 prevents this
  3. Shared mutable state — subagents are isolated
  4. User interaction — subagents can't use clarify
  5. 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 keys
  • hermes-concepts/ — agent loop and lifecycle
  • hermes-skills/ — encoding workflows as skills
  • hermes-cli/ — delegation toolset

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.