add a /clear-todos command that marks the agent's todos done
This commit is contained in:
parent
76882ec3b8
commit
dc0d08b7fb
1 changed files with 200 additions and 43 deletions
|
|
@ -284,10 +284,12 @@ publishes the list that claude reports in a turn's `system`/`init` event, with e
|
|||
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
|
||||
table in `agent_commands.rs`, today `compact` and `clear-todos`), 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,
|
||||
keeps at most 200, and cuts each description to one line of 200 characters. An agent that published nothing gets
|
||||
just the swarm's commands.
|
||||
just the swarm's commands. A command is plain operator input to the harness, which reads it: an input message whose
|
||||
body is exactly `/clear-todos` marks every open todo done (an ack, like the agent's own `mark_todos_done`) and
|
||||
writes a note with the count to the terminal, and starts no turn.
|
||||
|
||||
The fourth is its **`AGENTS.md`**, which goes into the `agents-md` bucket under
|
||||
the key `<agent>`, writable by the agent's own credential alone
|
||||
|
|
|
|||
Loading…
Reference in a new issue