hca-operations

GitHub

HCA用于将单一目标转化为由隔离代理组成的并发团队,提供任务分解、并行执行、Kanban追踪、崩溃恢复及人工审查功能。适用于需持久化跟踪、高可靠性及独立验证的复杂并行工作流,不适用于简单单次查询。

src/hca/skills/hca-operations/SKILL.md r0b0tlab/hermes-concurrent-agents

Trigger Scenarios

需要并行处理多个独立子任务 要求任务执行具备持久性和崩溃恢复能力 在代码发布或破坏性操作前需要独立人工审查

Install

npx skills add r0b0tlab/hermes-concurrent-agents --skill hca-operations -g -y
More Options

Non-standard path

npx skills add https://github.com/r0b0tlab/hermes-concurrent-agents/tree/main/src/hca/skills/hca-operations -g -y

Use without installing

npx skills use r0b0tlab/hermes-concurrent-agents@hca-operations

指定 Agent (Claude Code)

npx skills add r0b0tlab/hermes-concurrent-agents --skill hca-operations -a claude-code -g -y

安装 repo 全部 skill

npx skills add r0b0tlab/hermes-concurrent-agents --all -g -y

预览 repo 内 skill

npx skills add r0b0tlab/hermes-concurrent-agents --list

SKILL.md

Frontmatter
{
    "name": "hca-operations",
    "description": "Use HCA to turn one desired outcome into a supervised, isolated, reviewed concurrent Hermes team run. Use when you need durable parallel work tracked in Kanban, capacity-aware admission, crash recovery, and a single evidence-backed result — not a one-off tool call."
}

HCA operations

HCA (Hermes Concurrent Agents) turns one goal into a supervised concurrent team of isolated Hermes workers and returns one evidence-backed result. It does not provision models, route providers, or duplicate Hermes Kanban — it owns team composition, safe concurrency, isolation, review, recovery, and result collection on top of your existing Hermes profiles.

When to use it

  • The work decomposes into independent tasks that benefit from parallelism.
  • You want durable, Kanban-tracked execution that survives crashes.
  • You need an independent reviewer before code/publish/destructive changes.

Do not reach for it for a single quick answer — a normal tool call is cheaper. Concurrency is an optimization, not a quota to fill.

The six team tools

  1. hca_team_run(goal, project?, team?, concurrency?, idempotency_key?) — submit a durable mission. Returns a run_id handle. Always pass a stable idempotency_key so a retry returns the same run instead of a duplicate.
  2. hca_team_status(run_id?) — what the team is doing, which agents are active, what is blocked, whether input is required, where the outputs are. Omit run_id to list recent runs.
  3. hca_team_collect(run_id) — the deterministic result manifest: outcome, evidence, artifacts, unresolved blockers, cleanup. It never reports cancelled or blocked work as success.
  4. hca_team_respond(run_id, question_id, response) — answer a structured needs_input question. Only the matching blocked branch resumes.
  5. hca_team_recover(run_id, task_id, idempotency_key, reassign_profile?, authorization) — approval-gated exact supervisor replacement. The authorization must equal the run id; the idempotency key prevents duplicate replacement; reassignment is limited to an existing fleet slot. It preserves the worktree and consumes max_supervisor_replacements, not task retries.
  6. hca_team_stop(run_id) — cancel a run (approval-gated). Marks stopping → cancelled, preserves partial work, and never becomes a completion.

Reading results

Every result carries a semantic code: 0 ok, 2 invalid input, 3 preflight/capability failure, 4 blocked/needs-input, 5 runtime failure — plus a remediation string telling you what to do next. Branch on state and code, not prose.

state is finite: queued, planning, running, needs_input, review, rework, stopping, completed, blocked, failed, cancelled. Only the last four are terminal, and only completed means success (it requires accepted verification).

Avoiding duplicate dispatchers

An HCA-owned board must have exactly one dispatcher. If a Hermes gateway is running with kanban.dispatch_in_gateway: true on that board, HCA fails closed rather than racing it. Resolution: set dispatch_in_gateway: false in the participating profile(s) and restart the gateway, or stop the gateway. Check with hca doctor --json (compat.dispatcher_ownership).

Inspecting capacity

hca doctor --json reports the selected device adapter, the compatibility lane, and admission signals. HCA admits only safe, useful concurrency for the current device/endpoint; unknown telemetry is treated conservatively, never as infinite capacity.

Disk percentage pressure is advisory by default. The hard gate is disk_min_free_gb, reopened at disk_resume_free_gb; max_disk_mb must fit above that reserve. Doctor separates endpoint reachability, authentication, capacity pressure, and two-sample probable no-progress. No-progress is advisory and never authorizes endpoint restart.

Targeted status includes high-level timing/deadline, active agents, exact worker identifiers, replacement usage, and admission-wait reason counts. hca inspect expects a worker task/attempt/session identifier; use hca run-status or hca collect with a high-level run id.

Version History

  • fa17feb Current 2026-07-24 12:12

Metadata

Files
0
Version
fa17feb
Hash
06608697
Indexed
2026-07-24 12:12

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 20:17
浙ICP备14020137号-1 $방문자$