Watch
0
0
Fork
You've already forked hyperhive
0

publish the agent's skills to the agent-commands bucket

This commit is contained in:
damocles 2026-11-15 20:51:16 +01:00 • committed by mara
commit 49719842b0

View file

@ -279,7 +279,10 @@ load it as an `<img>` and show the dimmed default agent icon (a robot head in a
round frame, `branding/agent-default.svg`) for an agent without one.
The skills the agent has go to its key of the `agent-commands` bucket, for the swarm UI's command menu.
The agent's credential may publish `$KV.agent-commands.<agent>` and nothing else of the bucket. The value is a
The agent's credential may publish `$KV.agent-commands.<agent>` and nothing else of the bucket. The harness
publishes the list that claude reports in a turn's `system`/`init` event, with each description read from the
skill's `SKILL.md`. It writes when the first turn reports a list and again only when a later turn reports a
different one, and retries a failed write in the background. The value is a
list of `{name, description}`. `GET /api/agents/<name>/commands` answers with the swarm's own commands first (a
table in `agent_commands.rs`, today `compact`), then the agent's skills sorted by name. The skills come from the
agent, so the controller drops a name that isn't one plain word, a repeat, and any that takes a command's name,