Hermes 看板多智能体编排
kanban-operations
操作 Hermes 看板:编排多智能体任务、管理工作进程生命周期,并运行 Codex 通道。
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- kanban-operations
- author
- Hermes Agent
- license
- MIT
- version
- 1.0.0
- metadata
- { "hermes": { "tags": [ "kanban", "multi-agent", "orchestration", "worker", "codex", "collaboration" ], "related_skills": [ "hermes-agent" ] } }
- platforms
- [ "linux", "macos", "windows" ]
- description
- Operate the Hermes Kanban board: orchestrate multi-agent work, manage worker lifecycles, and run Codex lanes.
02 资源文件 12
- 参考文档references/bio_module.md12.8 KB
- 参考文档references/complexity.md16.9 KB
- 参考文档references/ecg_cardiac.md10.6 KB
- 参考文档references/eda.md14.4 KB
- 参考文档references/eeg.md14.0 KB
- 参考文档references/emg.md12.1 KB
- 参考文档references/eog.md12.0 KB
- 参考文档references/epochs_events.md14.4 KB
- 参考文档references/hrv.md15.1 KB
- 参考文档references/ppg.md10.9 KB
- 参考文档references/rsp.md13.6 KB
- 参考文档references/signal_processing.md16.3 KB
03 SKILL.md 正文
Kanban Operations
The Hermes Kanban system is a durable SQLite board for multi-profile collaboration. This skill covers three roles:
- Orchestrator — decompose goals and route work through the board
- Worker — execute assigned tasks and write clean handoffs
- Codex Lane — optionally delegate implementation to Codex CLI while Hermes keeps ownership
Orchestrator — Decomposition Playbook
The core worker lifecycle is auto-injected into every kanban worker's system prompt as
KANBAN_GUIDANCE. This section is the deeper playbook when you're specifically playing the orchestrator role.
Step 0: Discover Profiles
Before fanning out, discover which profiles exist:
hermes profile list
The dispatcher silently fails to spawn unknown assignees — cards sit in ready forever.
When to Use the Board
Create Kanban tasks when any of these are true:
- Multiple specialists needed
- Work should survive a crash/restart
- Human-in-the-loop expected
- Multiple subtasks can run in parallel
- Review/iteration expected
- Audit trail matters
Anti-Temptation Rules
- Do not execute the work yourself. Create a Kanban task and assign it.
- Split multi-lane requests before creating cards. One card per independent workstream.
- Link only true data dependencies with
parents=[...]inkanban_create. - Never invent profile names — ask the user which profile to use.
Decomposition Pattern
t1 = kanban_create(title="research: ...", assignee="<profile-A>", body="...")
t2 = kanban_create(title="research: ...", assignee="<profile-A>", body="...")
t3 = kanban_create(title="synthesize", assignee="<profile-B>", body="...", parents=[t1, t2])
Goal-Mode Cards
For open-ended tasks, pass goal_mode=True:
kanban_create(
title="Translate full docs site to French",
assignee="<translator-profile>",
goal_mode=True,
goal_max_turns=15,
)
An auxiliary judge re-evaluates after each turn against the card's acceptance criteria.
Worker — Pitfalls and Examples
Workspace Handling
| Kind | Behavior |
|---|---|
scratch |
Fresh tmp dir; read/write freely |
dir:<path> |
Shared persistent directory |
worktree |
Git worktree; run git worktree add if .git missing |
Good Handoff Shapes
Coding task:
kanban_complete(
summary="shipped rate limiter — token bucket, 14 tests pass",
metadata={"changed_files": [...], "tests_passed": 14},
)
Review-required task:
kanban_comment(body=json.dumps({"changed_files": [...], "tests_passed": 14}))
kanban_block(reason="review-required: rate limiter shipped, needs eyes on key choice")
Do NOT
- Call
delegate_taskas a substitute forkanban_create - Call
clarify— you're headless; usekanban_comment+kanban_block - Modify files outside
$HERMES_KANBAN_WORKSPACEunless instructed - Complete a task you didn't finish — block it instead
Retry Diagnostics
Check kanban_show runs for prior outcomes:
timed_out→ chunk the workcrashed→ reduce memory footprintspawn_failed→ profile config issue; ask human viakanban_block
Codex Lane
Use Codex CLI as an isolated implementation lane while Hermes keeps ownership.
When to Use
- Coding/refactor/test task with clear acceptance criteria
- Bounded diff evaluable in one run
- Repo can be isolated in a git worktree
- Hermes can run tests after Codex exits
Ownership Rules
- Hermes owns the Kanban lifecycle — Codex must never call
kanban_complete - Hermes owns final acceptance — treat Codex diffs as untrusted patches
- Hermes owns test execution — repeat verification with canonical wrappers
- Hermes owns safety and cleanup
Worktree Pattern
SAFE_TASK="$(printf '%s' "$HERMES_KANBAN_TASK" | tr -cd '[:alnum:]_-')"
BRANCH="codex/${SAFE_TASK}/$(date -u +%Y%m%d%H%M%S)"
WORKTREE="/tmp/${SAFE_TASK}-codex-lane"
git worktree add -b "$BRANCH" "$WORKTREE" "$BASE"
Monitoring
result = terminal(command="codex exec --full-auto '$(cat /tmp/codex_prompt.md)'",
workdir=WORKTREE, background=True, pty=True, notify_on_complete=True)
process(action="poll", session_id=result["session_id"])
Reconciliation Checklist
- [ ]
git status --shortshows only expected files - [ ]
git diffreviewed by Hermes - [ ] No secrets or unrelated artifacts
- [ ] Hermes ran canonical tests independently
- [ ]
metadata.codex_lanefollows schema
04 同仓库更多 Skills
网页抓取受阻恢复
blocked-page-recovery
当抓取失败时使用:403/429 状态码、付费墙(paywall)、WAF、机器人验证墙(bot wall)。
软件实施计划编写
writing-plans
在创建或更新可执行的软件计划时使用。除非用户明确要求将计划注册到 Doct,否则请将计划保留为本地文件。
测试驱动开发
test-driven-development
TDD:强制执行「红-绿-重构」(RED-GREEN-REFACTOR)循环,先写测试再写代码。
系统化根因调试
systematic-debugging
四阶段根因调试:先理解缺陷,再着手修复。
技术预研验证
spike
在正式构建前,通过一次性(可丢弃的)实验来验证某个想法。
代码变更并行清理精简
simplify-code
并行使用 3 个智能体(agent)对近期代码变更进行清理精简。