Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 9a71d1e094 swarm-ui: per-agent cap on concurrently running subagents
Nothing capped how many subagents an agent runs at once; the operator
wants to set that per agent from swarm-ui (#5234, shape (b)).

AgentInference gains `max_subagents: Option<u32>`. An absent field
decodes as None, so every stored value still parses and means "no cap",
which is today's behaviour.

swarm-controller accepts 1..=32 on PUT. 0 would refuse every start; 32
is far more concurrent claude sessions than one agent container has
memory for, so anything above it is a typo, not a cap.

The subagent daemon already read the agent's agent-inference key for
subagent_models; it now reads it on every start and continue (not only
those naming a model) and refuses a new run once the cap's worth of
names is tracked, counted under the same lock as the name reservation.
Every tracked slot counts: running, starting, a goal run between turns,
and an interrupted one still exiting. A goal re-prompt never goes
through the reservation, so it is never refused. A failed read applies
no cap, as it falls back for models.

swarmctl's `inference set` does GET, merge, PUT; its mirror type now
carries the field so a set from the CLI keeps a cap set in swarm-ui
instead of dropping it, and `get` prints it.
2026-10-14 10:13:29 +02:00
..
agent swarm-ui: a hide debug output toggle in the header's settings menu 2026-10-12 21:41:23 +02:00
dashboard hive: remove the read-only schedules page and the old schedule store 2026-10-13 01:45:12 +02:00
shared swarm-ui: a hide debug output toggle in the header's settings menu 2026-10-12 21:41:23 +02:00
swarm-ui swarm-ui: per-agent cap on concurrently running subagents 2026-10-14 10:13:29 +02:00