feat(effort): add independent effort control for Anthropic 4.6 models#27812
feat(effort): add independent effort control for Anthropic 4.6 models#27812GodsBoy wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR successfully adds independent Key Changes:
Implementation Quality:
Confidence Score: 5/5
Last reviewed commit: b2d5df6 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2d5df6652
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
b2d5df6 to
920a35b
Compare
|
Good catch @chatgpt-codex-connector — fixed in 920a35b. Added |
|
To use Codex here, create a Codex account and connect to github. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 920a35b6a1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
920a35b to
5d77d6f
Compare
|
Second catch fixed in 5d77d6f — added |
5d77d6f to
80ab716
Compare
|
All three Codex review comments addressed and resolved:
All checks pass: |
80ab716 to
709398a
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 709398a149
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
e00f974 to
8b3c236
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b3c236e66
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
8b3c236 to
b587a67
Compare
|
All 6 Codex review threads now addressed and resolved: Round 1 (fixed earlier):
Round 2 (fixed in b587a67): Additional improvements in this round:
All tests pass (72/72), |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b587a674dc
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
b587a67 to
770f93c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 770f93c431
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
770f93c to
ec68145
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec68145b92
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
780d661 to
4110f49
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4110f495ff
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
4110f49 to
6a332c2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a332c29be
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
6a332c2 to
519426f
Compare
c7a7568 to
6e778d9
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e778d9754
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
c6371fb to
95bc782
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 95bc7823b8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
PR SummaryWhat: Independent Why: Anthropic Claude 4.6 models support How:
CI note: The 3 failing checks are pre-existing on
All Linux Node checks pass. Single squashed commit, 42 files changed. Refs: #9837 |
|
@GodsBoy are you running this as a local patch for yourself at the moment? |
|
Yes — running it as a local patch on my production OpenClaw instance. Been using it daily for a few weeks now. The main use case for me is running sub-agents with thinking disabled but effort high ( Would love a second pair of eyes on it if you're interested in testing. Happy to answer any questions about the implementation. |
|
Thanks for flagging — but the 3.1 change doesn't cover this PR. The 3.1 changelog entry ("set This PR is about the The use case this unlocks that 3.1 doesn't address:
I've been running this as a local patch on production for several weeks. The two controls are genuinely independent at the API level and the current |
95bc782 to
4f45a05
Compare
Summary
Adds an independent
/effortcontrol for Anthropic Claude Opus 4.6 and Sonnet 4.6 models, decoupling effort from the existing/thinktoggle.Problem
Anthropic's Claude 4.6 models support two independent parameters:
/thinkCurrently OpenClaw ties both to the single
/thinktoggle. Users cannot configure "thinking off + high effort" which scored #1 out of 60 non-reasoning models on the Artificial Analysis Intelligence Index, with faster TTFT and no thinking token overhead.pi-ai v0.55.1 already exposes
AnthropicOptions.effort(AnthropicEffort: "low" | "medium" | "high" | "max"). This PR wires it through OpenClaw.Changes
src/auto-reply/thinking.ts: NewEffortLeveltype,normalizeEffortLevel(),listEffortLevels(),formatEffortLevels()src/auto-reply/commands-registry.data.ts: Register/effortslash command with/ealiassrc/agents/pi-embedded-runner/extra-params.ts: Pass effort independently toAnthropicOptions.effortfor Anthropic provider; OpenRouter backward compat maintainedsrc/agents/pi-embedded-runner/run/: Accept and forwardeffortLevelalongsidethinkLeveleffortLevelstored alongsidethinkLevelin session config/status: Shows current effort leveldocs/providers/anthropic.mdwith effort control sectionBehavior
/effort high— sets effort independently from thinking/effort off— clears effort override (provider decides)/think off+/effort high— the optimal non-reasoning configmaxonly available for Opus 4.6 models/thinkworks exactly as beforeTesting
pnpm check— passespnpm build— passespnpm test— 111 tests pass across related files (3 pre-existing env-specific failures unrelated)Closes #9837 (effort portion)