Repository navigation
Add reasoning effort to AI Sessions starts - #459
Merged
maximelb merged 1 commit intoNov 13, 2026
Merged
Conversation
ai start-session and ai chat take --effort (low, medium, high, xhigh, max). The SDK takes an effort keyword on start_session (sent in the session profile) and create_user_session. Unset or empty sends nothing, so the model's own default applies as before. ai chat and ai session attach hide the effort_set notice like model_set and show effort_adjusted and effort_skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lcbill
approved these changes
Nov 13, 2026
Contributor
Author
|
Independent review of e04c661: approve Reviewed from a clean export of e04c661 against master 8891083. Checked
High: none. Medium: none. Low
Merge once the remaining pending check is green. |
maximelb
deleted the
starwatch/ai-sessions/reasoning-effort-python-limacharlie
branch
November 13, 2026 17:48
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.
What
AI Sessions can now set a reasoning effort per session: how long the model thinks before answering. This adds it to the CLI and SDK.
ai start-sessionandai chattake--effortwith the choiceslow,medium,high,xhighandmax. Leaving it out sends nothing, so the model's own default applies, exactly as today.effortkeyword onAI.start_session(sent inside the session profile, and copied from the template likemodel) and onAI.create_user_session. An empty value sends nothing. The SDK passes the string through; the service validates it.--helpand explain texts describe it: higher levels do better on hard investigations, but they are slower and use more tokens on your AI provider's bill.ai chatandai session attachhide the runner'seffort_setnotice by default, likemodel_set, and keep showingeffort_adjustedandeffort_skipped, which tell the user when the runner changed or dropped the requested level for the model in use.The service accepts the field only while reasoning effort is enabled on it; otherwise it ignores it, so this is safe to release before then.
Tests
Nonewhen omitted), the CLI refusing an unknown level, and the attach filter. The help-flag and "all overrides" tests now include--effort/effort.effortfrom the profile field list, the empty-value handling in each call, the attach filter entry and the choice list each fail their own test.pytest tests/unit/ tests/microbenchmarks/: 5330 passed. The 5 skips are existing platform-only and docstring skips, unchanged by this PR.StarWatch ai-sessions XO via StarForge
🤖 Generated with Claude Code