agentleFS
dohzohdohzoh/kanban-planning-skill/skills/hermes-kanban/SKILL.md

hermes-kanban

Skill0 starsChanged 5 months agoMITView on GitHub

Teaches agents to use Hermes Agent's built-in Kanban system for durable multi-agent task orchestration. Workers drive the board through kanban_* tool calls; humans use the CLI, dashboard, or slash commands. Covers solo dev, fleet farming, role pipelines with retry, and circuit breaker patterns.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. wxxb789/hoa★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create tasks with appropriate profiles and dependency linking:

    line 50
  2. Distinctive:

    Every completion should leave metadata for the next downstream worker:

    line 78
  3. Distinctive:

    Every downstream worker should be able to answer from the metadata: What changed?

    line 94
  4. Very specific:

    If blocked, human unblocks via dashboard "Unblock" button, hermes kanban unblock <id>, or slash command

    line 101
  5. Distinctive:

    When you need to control concurrency and prevent all tasks from flooding "Ready" at once, use these strategies in order of preference:

    line 107
  6. Very specific:

    Create explicit parent→child chains.

    line 111
  7. Distinctive:

    Use when you need time-based staggering but no data dependency between tasks.

    line 131
  8. Very specific:

    Create tasks in triage, then promote to ready in controlled batches:

    line 135
  9. Distinctive:

    Use for manual batch gating or human review gates.

    line 142
  10. Distinctive:

    Use as a safety net, not primary load control.

    line 154
  11. Very specific:

    Only the first task starts in ready.

    line 166
  12. Distinctive:

    Create many tasks with different assignees — all get claimed in parallel on each dispatcher tick:

    line 176
  13. Very specific:

    If blocked, worker calls kanban_block(reason="...") — task transitions to blocked

    line 190
  14. Very specific:

    Circuit breaker: After kanban.failure_limit consecutive spawn failures (default 2), task auto-blocks with outcome gave_up.

    line 195
  15. Very specific:

    If the auto-decomposer isn't routing correctly, switch to manual mode: toggle "Orchestration: Auto/Manual" in the dashboard, or set …

    line 213
  16. Very specific:

    If a worker doesn't call kanban_heartbeat() within dispatch_stale_timeout_seconds (default 4 hours), the dispatcher considers it stale.

    line 216
  17. Distinctive:

    Create isolated boards per project:

    line 222

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Kanban Skill

Teaches agents to use Hermes Agent's built-in Kanban system for durable multi-agent task orchestration. Unlike ad-hoc subagent delegation, Hermes Kanban provides a persistent SQLite-backed board with per-task workspaces, structured handoffs, retry/recovery, and human-in-the-loop support.

Covers the four canonical patterns:

  1. Solo dev with dependency chain — parent→child auto-promotion
  2. Fleet farming — parallel tasks across multiple specialist profiles
  3. Role pipeline with retry — spec → implement → review → iterate with block/unblock
  4. Circuit breaker & crash recovery — auto-block after N failures, PID-level crash detection

When to Use This Skill

Activate when the user:

  • Mentions Hermes Agent kanban or multi-agent board
  • Wants to decompose work across named profiles (researcher, writer, engineer, reviewer)
  • Needs structured handoff between agent stages
  • Faces work that might need retry, human review, or survive restarts
  • Asks about fleet farming, role pipelines, or circuit breaker patterns
  • Says phrases like "use kanban", "orchestrate with hermes", "multi-agent board"

The Kanban Workflow

Step 1: Initialize the Board and Gateway

Set up the foundation:

# One-time board initialization
hermes kanban init

# Start the gateway (hosts the embedded dispatcher)
hermes gateway start

The board has six columns: Triage → Todo → Ready → In Progress → Blocked → Done.

Step 2: Create Tasks with Profiles and Dependencies

Create tasks with appropriate profiles and dependency linking:

hermes kanban create "Design auth schema" --assignee backend-dev
hermes kanban create "Implement auth API" --assignee backend-dev --parent $SCHEMA_ID

Key creation options:

  • --assignee <profile> — route task to a specialist profile
  • --parent <id> — creates dependency chain (child auto-promoted when parent completes)
  • --goal — enable judge-loop verification
  • --goal-max-turns <N> — limit goal-mode iterations
  • --max-retries <N> — override circuit breaker threshold per task

For orchestrator tasks (decomposition), use kanban_create() via the toolset to create child cards programmatically.

Step 3: Workers Claim and Execute via Tool Calls

Workers do NOT shell out to hermes kanban — they use the injected kanban_* toolset. The dispatcher sets HERMES_KANBAN_TASK=t_abcd in the worker's environment.

Worker lifecycle:

  1. kanban_show() — read title, body, parent handoffs, prior attempts, comments
  2. Work in the task workspace ($HERMES_KANBAN_WORKSPACE)
  3. kanban_heartbeat(note="...") — signal liveness during long ops (at least once per hour)
  4. kanban_complete(summary="...", metadata={...}) or kanban_block(reason="...")

Step 4: Structured Handoff

Every completion should leave metadata for the next downstream worker:

kanban_complete(
    summary="migrated limiter.py to token-bucket; added 14 tests, all pass",
    metadata={
        "changed_files": ["limiter.py", "tests/test_limiter.py"],
        "verification": ["pytest tests/ -q"],
        "dependencies": None,
        "blocked_reason": None,
        "retry_notes": None,
        "residual_risk": ["edge case in concurrent refresh not yet tested"],
    },
)

Every downstream worker should be able to answer from the metadata: What changed? How was it verified? What can unblock/retry? What risk remains?

Orchestrator tasks should profile-discover first via kanban_list() with no filters to see installed profiles.

Step 5: Review and Iterate

  • Human reviews completed work via dashboard or CLI
  • If blocked, human unblocks via dashboard "Unblock" button, hermes kanban unblock <id>, or slash command
  • Retrying worker sees prior block reason in worker_context via kanban_show()
  • Circuit breaker auto-blocks after failure_limit consecutive spawn failures (default 2) — human must unblock

Load Distribution Strategies (Load Control)

When you need to control concurrency and prevent all tasks from flooding "Ready" at once, use these strategies in order of preference:

Strategy 1: Sequential Dependency Chains (Primary — Recommended)

Create explicit parent→child chains. Children stay in todo until their parent completes, then auto-promote to ready. This naturally serializes work and caps concurrency to 1 active task per chain.

# Parent runs first; children auto-promote sequentially
PARENT=$(hermes kanban create "Research" --assignee researcher --json | jq -r .id)
hermes kanban create "Task A" --assignee dev --parent $PARENT
hermes kanban create "Task B" --assignee dev --parent $PARENT

Why this is primary: Children auto-promote only when parent completes → natural serialization, no external scheduling needed, workers see upstream handoff metadata via kanban_show().

Strategy 2: Staggered Start Times (--scheduled-at)

Schedule tasks to enter ready at specific future times:

hermes kanban create "Task 1" --assignee dev --scheduled-at "2026-07-02T10:00:00Z"
hermes kanban create "Task 2" --assignee dev --scheduled-at "2026-07-02T10:05:00Z"

Use when you need time-based staggering but no data dependency between tasks.

Strategy 3: Triage + Manual Promote (Batch Control)

Create tasks in triage, then promote to ready in controlled batches:

hermes kanban create "Task" --assignee dev --triage  # Creates in triage column
hermes kanban promote <id>  # Promote when ready

Use for manual batch gating or human review gates.

Strategy 4: Global Concurrency Caps (Config)

Cap concurrency globally or per-profile via ~/.hermes/config.yaml:

kanban:
  max_in_progress: 3              # Board-wide limit
  max_in_progress_per_profile: 2  # Per-worker-type limit

Use as a safety net, not primary load control.


Orchestration Patterns

Pattern 1: Solo Dev with Dependency Chain

schema  ──parent──→  api  ──parent──→  tests

Only the first task starts in ready. When a parent completes, the child auto-promotes to ready. Downstream workers see the upstream summary + metadata via kanban_show().

SCHEMA=$(hermes kanban create "Design auth schema" --assignee backend-dev --json | jq -r .id)
API=$(hermes kanban create "Implement auth API" --assignee backend-dev --parent $SCHEMA --json | jq -r .id)
hermes kanban create "Write auth tests" --assignee qa-dev --parent $API

Pattern 2: Fleet Farming (Parallel)

Create many tasks with different assignees — all get claimed in parallel on each dispatcher tick:

for lang in Spanish French German; do
    hermes kanban create "Translate to $lang" --assignee translator
done

The In Progress column groups by profile ("Lanes by profile" default).

Pattern 3: Role Pipeline with Retry

PM writes spec → engineer implements → reviewer rejects → engineer retries → reviewer approves.

  • If blocked, worker calls kanban_block(reason="...") — task transitions to blocked
  • Human unblocks; retrying worker sees prior block reason in worker_context

Pattern 4: Circuit Breaker & Crash Recovery

  • Circuit breaker: After kanban.failure_limit consecutive spawn failures (default 2), task auto-blocks with outcome gave_up. Override per task with --max-retries N.
  • Crash recovery: Dispatcher polls kill(pid, 0). When PID disappears before TTL, claim releases, task goes back to ready. Retrying worker sees prior crash error in worker_context.

Error Handling

Gateway Not Running

The dispatcher needs the gateway: hermes gateway start. If workers aren't claiming tasks, check if the gateway is active.

Circuit Breaker Tripped

A task exceeded failure_limit consecutive failures. Run hermes kanban unblock <id> or use the dashboard "Unblock" button to reset. Consider increasing --max-retries for flaky work.

Worker Crashed (PID Lost)

The dispatcher detected a disappeared PID. The task returns to ready automatically for a fresh attempt. The retrying worker sees the prior crash error in worker_context via kanban_show().

Blocked Task (Human Input Needed)

A worker called kanban_block(reason="..."). Review the block reason in the dashboard or via hermes kanban show <id>. Unblock with the dashboard button, hermes kanban unblock <id>, or slash command.

Auto Decomposer Issues

If the auto-decomposer isn't routing correctly, switch to manual mode: toggle "Orchestration: Auto/Manual" in the dashboard, or set kanban.auto_decompose: false in ~/.hermes/config.yaml. Then use the ⚗ Decompose button manually.

Stale Heartbeat

If a worker doesn't call kanban_heartbeat() within dispatch_stale_timeout_seconds (default 4 hours), the dispatcher considers it stale. The claim releases and the task goes back to ready.

Configuration

Boards (Multi-project)

Create isolated boards per project:

hermes kanban boards create atm10-server --name "ATM10 Server" --switch
hermes kanban --board atm10-server create "Restart server" --assignee ops

Workers see ONLY their board's tasks (HERMES_KANBAN_BOARD pinned in env). Cross-board linking is not allowed.

Goal-mode Cards

Pass --goal to run a worker in a judge loop — checks output against acceptance criteria, continues until done or budget exhausted:

hermes kanban create "Translate docs to French" --assignee linguist --goal --goal-max-turns 15

Auto vs Manual Orchestration

  • Auto (default): dispatcher runs the decomposer on triage tasks each tick (up to 3 per tick)
  • Manual: triage tasks wait for the ⚗ Decompose button or hermes kanban decompose <id>
  • Toggle via the "Orchestration: Auto/Manual" pill in the dashboard, or kanban.auto_decompose in config

Key Config Options

Keys under kanban: in ~/.hermes/config.yaml:

KeyDefaultPurpose
auto_decomposetrueAuto-run decomposer on triage tasks
auto_decompose_per_tick3Cap per dispatcher tick
orchestrator_profile""Profile for root task after decomposition
default_assignee""Fallback when LLM picks unknown profile
failure_limit2Consecutive failures before circuit breaker
dispatch_interval_seconds60Dispatcher tick interval
dispatch_stale_timeout_seconds14400Max run time without heartbeat (4 h)

Auxiliary LLM slots: auxiliary.kanban_decomposer, auxiliary.profile_describer, auxiliary.triage_specifier.

Dashboard

Open visual board with hermes dashboard. Features: drag-drop columns, inline create, multi-select bulk actions, card drawer with dependency editor, LLM-driven Decompose/Specify buttons on triage cards, profile-lane grouping, search/assignee filters, and Nudge dispatcher button.

File Attachments

Tasks can carry file attachments (up to 25 MB each). Upload via dashboard drawer. Workers see attachment paths in their context.

References

See references/card-templates.md for template examples and references/decomposition-patterns.md for task sizing and dependency guidelines.

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.