set_agent_metadata

Record one fact about an agent's work under a key of your choosing, keyed by the agent's id, or clear that key by omitting the value.

AgentwritesidempotentMCP tool

Use this on yourself as you work, whenever you learn something a person would want to jump to later: the Linear issue you are implementing, the branch you are on. Your own id is in the KOMRAD_AGENT_ID environment variable. Store the full URL rather than a bare number, since the panel shows the value as it is. Keys are lowercase letters, digits, underscores, and dashes; call this once per key, which leaves every other key on the agent untouched. The key pr is refused: pull requests are read from the forge and shown on the row, so there is nothing to record. Do not record what the agent is currently doing, which is already its state, and do not paste findings here, which belong in your reply.

Calling it#

curl -X POST http://127.0.0.1:8787/agent.v1.AgentService/SetMetadata \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "<id>"
}'

Request#

SetMetadataRequest#

FieldTypeDescription
idstring

Which agent the fact is about, which an agent recording its own work reads from KOMRAD_AGENT_ID.

required

keystring

What to file it under, leaving every other key on the agent untouched.

at most 64 characters

valuestring

The fact as the panel will show it, left out to clear the key.

Response#

Empty#

No fields.