Skip to content

Remove the maximum for the number of concurrent agents - #1692

Merged
brillout merged 1 commit into
mainfrom
claude/remove-concurrent-agents-max-cbsmua
Aug 24, 2026
Merged

Remove the maximum for the number of concurrent agents#1692
brillout merged 1 commit into
mainfrom
claude/remove-concurrent-agents-max-cbsmua

Conversation

@brillout

@brillout brillout commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The concurrent-agents count (autoPmConcurrency, #1204) was capped at 10 by MAX_AUTO_PM_CONCURRENCY. The cap is gone: how many agents to run at once is the user's call, and the week's allowance is what actually paces unattended work.

What changed:

  • MAX_AUTO_PM_CONCURRENCY deleted from preference-defaults.ts, along with its re-exports (registry.ts, client.ts).
  • The registry sanitizer still rounds the count and floors it at one (zero is what the autoPm switch already spells), but no longer clamps it from above.
  • The routine panel's "Concurrent agents" box and the AI Queue's fan-out count drop their max attribute and upper clamp; the floor at one stays.
  • Tests updated: a written 9000 now round-trips as 9000, a typed 999 is saved as typed, and the box asserts it offers no maximum.
  • SPECs updated accordingly (preference-defaults, registry, registry.test, RoutineWork, RoutineWork.test, AiQueue). No FEATURES-SPEC.md change: the concurrency setting itself remains a feature, only its value's upper bound is removed.

Validation: typecheck passes; registry node tests 59/59; full dashboard vitest suite 834/834; full node suite green. (The 8 daemon.test.ts failures first seen were a missing dist/ in the fresh checkout — after pnpm build, daemon.test.ts passes 15/15.)

🤖 Generated with Claude Code

https://claude.ai/code/session_012iYzJdkGec61jKo85tyipK


Generated by Claude Code

…un at once is the user's call

The sanitizer still rounds and floors the count at one — zero is what the
Auto PM switch already spells — but no longer caps it, and the routine
panel's box and the AI Queue's fan-out count drop their upper bound with it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iYzJdkGec61jKo85tyipK
@suleimansh

Copy link
Copy Markdown
Contributor

LGTM. The 8 daemon failures = no dist/ in a fresh checkout; run pnpm build first.

Copy link
Copy Markdown
Contributor Author

Confirmed — after pnpm build, daemon.test.ts passes 15/15 here, so those 8 failures were just the missing dist/. PR description updated accordingly.


Generated by Claude Code

@brillout
brillout merged commit 21f23dd into main Aug 24, 2026
2 checks passed
@brillout
brillout deleted the claude/remove-concurrent-agents-max-cbsmua branch August 24, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants