feat: add per-conversation effort control - #238
Open
FrundlesTian wants to merge 2 commits into
Open
FrundlesTian wants to merge 2 commits into
FrundlesTian wants to merge 2 commits into
Conversation
FrundlesTian
force-pushed
the
feat/effort-command
branch
from
September 23, 2026 02:30
9c87a74 to
c642250
Compare
Collaborator
Author
|
Rebased this branch onto the latest `main` (through #239) to resolve the merge conflict and get a clean re-run of CI/review.
The earlier `review` check failure was the fork-checkout issue that #239 fixed (this PR predated that fix); it should run cleanly now that the branch is rebased past it. |
|
No merge-blocking issues found in the current diff. |
Classic mode registers 15 commands and agentic mode now includes /effort and /restart, which CLAUDE.md hadn't been updated to reflect. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Collaborator
Author
|
Fixed in fd72027: updated CLAUDE.md's classic-mode command count (13 → 15) and added |
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.
Description
Adds per-conversation Claude reasoning-effort control now that
EffortLevelis available in the Agent SDK./effort low|medium|high|xhigh|max,/effortto inspect the current value, and/effort defaultto remove the overrideClaudeAgentOptionsfor every user-triggered Claude path in agentic and classic modes/statusTaskBudgetis intentionally out of scope for this PR. Its token ceiling and interaction with the existingmax_budget_usdguard should be designed separately before exposing it to users.Related issue
Related to #233 (implements the agreed effort-only slice; leaves TaskBudget for follow-up).
Type of change
How it was tested
make testandmake lintpass locallyEquivalent local checks run in an isolated Python 3.13 environment:
pytest --no-cov— 598 passedblack --check src testsisort --check-only src testsflake8 src testsmypy src/bot/utils/effort.pyThe repository-wide
mypy srccurrently reports 540 pre-existing errors onmain; this change introduces none in the new helper module.Checklist
CHANGELOG.mdhas an entry under[Unreleased]pyproject.tomldependencies changed,poetry lockwas run and the updatedpoetry.lockis committed (not applicable; no dependency changes)README.md,docs/,.env.example,CLAUDE.md) where settings or commands changed