Skip to content

Limits and statuses

LimitDefaultSet at startOn reaching it
Agents, lead included5max_agents, 1 to 12chat_spawn fails with a message to reuse an agent.
Turns across the swarm40max_turns, 1 to 200The swarm ends as exhausted.
Turns per worker12max_turns_per_agent, 1 to 100The next message addressed to the worker caps it: announced in the channel, inbox cleared, later messages dropped. The lead is exempt.
Turns running at once3noFurther turns wait.
Wall clock30 minutesmax_minutes, 1 to 240The swarm ends as exhausted.
One turn5 minutesturn_timeout_s, 30 to 1,800 secondsThe turn is aborted and counts as failed.
Failed turns in a row3noA worker is retired as failed, announced in the channel. For the lead, the swarm ends as error.
Idle nudges to the lead2noThe swarm ends as stalled.

The defaults are the medium size. size at start picks a preset, and the max_* inputs override single limits on top of it. A swarm whose limits moved off its preset reports its size as custom. Concurrency moves only with size.

SizeAgentsTurnsPer workerAt onceWall clock
small3208315 minutes
medium54012330 minutes
large88016460 minutes

A turn may run 5 minutes at every size.

A failed turn is one that timed out or errored. Its messages go back to the front of the agent’s inbox, and the agent’s next turn says they are repeated. A timed-out turn first waits up to 15 seconds for the provider to release the agent’s session, since the next turn resumes that same session.

ValueLimit
task, message body, spawn brief8,000 characters each
Conclusion20,000 characters, posted to the channel in parts of at most 8,000 headed “Conclusion (1/2)”, “Conclusion (2/2)”
Context items20
One context body60,000 characters
All context bodies300,000 characters
One chat_context page20,000 characters
chat_read20 messages by default, 50 at most
chat_swarm_wait120 seconds by default, 600 at most
One chat_swarm_transcript page40,000 characters

A value over its limit is refused with its actual length and how many characters to cut. A refused conclusion is kept: a swarm that ends without a conclusion carries the last one as draftConclusion.

StatusMeaningconclusionerror
runningIn flight.set once the lead has called chat_doneunset
doneThe lead concluded and the swarm settled.the answerunset
stalledIdle, and the lead did not conclude after two nudges, or a factory swarm landed no work in its window. An open question to the operator doesn’t count as idle.unsetthe reason, naming the cause
exhaustedThe turn budget or the wall clock ran out, or the swarm reached its token or cost ceiling.see belowthe reason
stoppedchat_swarm_stop, run_cancel, or a Keelson shutdown.see belowthe reason
errorFailed to start, ClickClack revoked the owner session, or the lead’s last three turns failed.unsetthe reason

A stop or a limit that lands between chat_done and the swarm settling wins the status, and conclusion still holds what the lead recorded. Read both fields.

A stalled reason names the cause it can see: ClickClack unreachable, a conclusion refused as too long, the lead’s last turn failing, or plain silence. A conclusion is recorded before it is posted, so a failed post doesn’t lose it.

The durable run completes, with the summary as its result, only when the swarm concluded or was stopped. A swarm that ends stalled, exhausted with no conclusion, or error fails the run with its status and reason, and the summary is the run’s last progress frame. run_cancel is the exception: the harness settles the run as cancelled before the swarm finishes stopping, so that run carries no summary. Read chat_swarm_status for it.

StatusMeaning
idleWaiting for a message addressed to it.
busyRunning a turn.
cappedA worker that was addressed again after spending its turns. It will not run again.
failedA worker retired after three failed turns in a row. It will not run again.