feat(poll-loop): per-message reasoning-effort routing for heavy commands#2406
Open
matt1995ai wants to merge 1 commit into
Open
feat(poll-loop): per-message reasoning-effort routing for heavy commands#2406matt1995ai wants to merge 1 commit into
matt1995ai wants to merge 1 commit into
Conversation
Until now each container ran with one static `effort` (config.ts → claude.ts:302),
which forced an all-or-nothing choice: max for every reply (wasteful on quick
chat) or a lower default that under-served the genuinely heavy turns —
multi-agent council synthesis, deliberate reasoning runs, multi-file build
orchestration.
This adds a per-query override path:
- QueryInput.effortOverride: optional, plumbed from poll-loop to provider
- ClaudeProvider.query uses `input.effortOverride ?? this.effort`
- detectEffortOverride() in poll-loop scans the current batch and returns
'max' if any message is a heavy slash command (/council, /build, /think)
Default behavior is unchanged: turns with no heavy command fall through to
the group's configured effort. Other providers (mock) ignore the new field
since they don't consult SDK effort.
Includes 8 unit tests covering the helper.
This was referenced May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Until now each container ran with one static
effort(config.ts → claude.ts:302), which forced an all-or-nothing choice: max for every reply (wasteful on quick chat) or a lower default that under-served the genuinely heavy turns — multi-agent council synthesis, deliberate reasoning runs, multi-file build orchestration.This adds a per-query override path:
input.effortOverride ?? this.effortDefault behavior is unchanged: turns with no heavy command fall through to the group's configured effort. Other providers (mock) ignore the new field since they don't consult SDK effort.
Includes 8 unit tests covering the helper.
Type of Change
.claude/skills/<name>/, no source changes)Description
For Skills