Skip to content

feat: support Anthropic adaptive thinking#7356

Merged
jamadeo merged 1 commit intoblock:mainfrom
rabi:adaptive_thinking
Feb 26, 2026
Merged

feat: support Anthropic adaptive thinking#7356
jamadeo merged 1 commit intoblock:mainfrom
rabi:adaptive_thinking

Conversation

@rabi
Copy link
Copy Markdown
Contributor

@rabi rabi commented Feb 19, 2026

Summary

Claude Opus 4.6 and Sonnet 4.6 support adaptive thinking where the model dynamically determines when and how much to think, replacing the fixed budget_tokens approach. This is especially important for agentic workflows since interleaved thinking (thinking between tool calls) requires adaptive mode on these models.

Config: claude_thinking_type (adaptive|enabled|disabled), claude_thinking_effort (low|medium|high|max). Defaults to adaptive for 4.6 models, preserves existing env var gating for older models.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested locally.

Closes: #7293

Add adaptive thinking support for Claude 4.6 models (Opus, Sonnet)
with three thinking modes: adaptive, enabled (budget-based), and
disabled.

Change-Id: I33dbf77bf50ad78e909b3600705b706999bf1ebf
Signed-off-by: rabi <[email protected]>
@rabi rabi force-pushed the adaptive_thinking branch from c453d28 to 6d4a4a8 Compare February 25, 2026 06:09
@jamadeo jamadeo added this pull request to the merge queue Feb 26, 2026
Merged via the queue into block:main with commit 08e95b2 Feb 26, 2026
20 checks passed
tlongwell-block added a commit that referenced this pull request Feb 27, 2026
…patible

* origin/main: (70 commits)
  feat: allow goose askai bot to search goose codebase (#7508)
  Revert "Reapply "fix: prevent crashes in long-running Electron sessions""
  Reapply "fix: prevent crashes in long-running Electron sessions"
  Revert "fix: prevent crashes in long-running Electron sessions"
  fix: replace unwrap() with graceful error in scheduler execute_job (#7436)
  fix: Dictation API error message shows incorrect limit (#7423)
  fix(acp): Use ACP schema types for session/list (#7409)
  fix(desktop): make bundle and updater asset naming configurable (#7337)
  fix(openai): preserve order in Responses API history (#7500)
  Use the correct Goose emoji 🪿 instead of Swan in README.md (#7485)
  feat(ui): implement fullscreen and pip display modes for MCP Apps (#7312)
  fix: prevent crashes in long-running Electron sessions
  Disable tool pair summarization (#7481)
  fix: New Recipe Warning does not close on cancel (#7524)
  The client is not the source of truth (#7438)
  feat: support Anthropic adaptive thinking (#7356)
  copilot instructions: reword no prerelease docs (#7101)
  fix(acp): don't fail session creation when model listing is unavailable (#7484)
  feat: simplify developer extension (#7466)
  feat: add goose-powered release notes generator workflow (#7503)
  ...

# Conflicts:
#	Cargo.lock
craigwalkeruk pushed a commit to craigwalkeruk/custom-goose that referenced this pull request Mar 5, 2026
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.

Support Anthropic adaptive thinking API (replace deprecated budget_tokens)

3 participants