You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforces a global max_concurrent_agents plus per-state overrides (SPEC).
Solenta today
Grep for concurrency|maxConcurrent across electron/ finds nothing: every Build starts immediately. The only throttles are the daily and per-orchestration budget caps (electron/services.js spend gate). Distinct from #124 (beachballing under load), which is the symptom this knob would help prevent.
Why it matters
With auto-dispatch or a heavy best-of-N fan-out, unbounded parallel CLI spawns are how you melt a laptop. "Max N concurrent runs, queue the rest" is the standard safety valve in this category.
Fix direction
A settings-level max-concurrent-runs (default something sane like 3-4); starts beyond the cap queue per project and are admitted as runs settle, with queue position visible in the Agents panel.
Research note (Claude Code v2.1.229-2.1.232): prompt-cache economics for fan-out — stagger same-prefix sibling agents so later ones hit the cached prefix; subagent forking that inherits the full conversation AND prompt cache; cache-reusing permission checks. A shared-prefix + staggered-start dispatch in the run queue could cut the cost of N-worktree fan-out meaningfully.
Activity
currentbits commentedon Aug 18, 2026
Research note (Claude Code v2.1.229-2.1.232): prompt-cache economics for fan-out — stagger same-prefix sibling agents so later ones hit the cached prefix; subagent forking that inherits the full conversation AND prompt cache; cache-reusing permission checks. A shared-prefix + staggered-start dispatch in the run queue could cut the cost of N-worktree fan-out meaningfully.
Global concurrency cap with a run queue (#166)
Global concurrency cap with a run queue (#166) (#1574)
Global concurrency cap with a run queue (#166)