States of an agent
| State | Meaning | What send does |
|---|---|---|
running |
The loop works. | The text goes with the next tool results. |
asks |
The agent called ask_coordinator. ask ID prints the question. |
The text is the answer. |
done |
The agent called finish. The report is the last entry. |
The agent goes on. |
stalled |
Four replies in a row had no tool call. | The agent goes on. |
failed |
A model call failed after its tries, or the loop had a fault. The reason has the error. | The call runs again. |
capped |
The cap of turns or tokens is reached. | Refused. |
stopped |
By stop. |
Refused. |
A reply with no tool call
A reply with no tool call gets a note, and the agent goes on: an empty reply, a tool call written as text, or text only. The fourth such reply in a row makes the state stalled.
A reply that stops at the output cap (--max-out) with no text gets one more try with twice the cap, up to 32000 tokens.
Retries
A model call that fails with throttling (HTTP 429), a server error, or a network error runs again, up to 5 times. The first wait is 2 s, and each next wait is twice as long. Each try adds an error entry with the count. After the last try, the state is failed.
A restart
When the daemon starts, each agent that was running goes on from its saved messages. A tool call that was not done gets the result "interrupted by a restart of the daemon": its effects can be there in part. An agent in another state waits for send, as before.