Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/src/agent
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
..
detail swarm-ui: per-agent cap on concurrently running subagents 2026-10-14 10:13:29 +02:00
roster swarm-ui: show an agent's details in a popover, not a modal dialog 2026-10-12 00:19:33 +02:00
terminal swarm-ui: split pages/agents into two pages and the agent components 2026-10-12 00:19:33 +02:00
AgentIcon.css swarm-ui: split pages/agents into two pages and the agent components 2026-10-12 00:19:33 +02:00
AgentIcon.tsx swarm-ui: split pages/agents into two pages and the agent components 2026-10-12 00:19:33 +02:00
AgentTypes.ts swarm-ui: split pages/agents into two pages and the agent components 2026-10-12 00:19:33 +02:00