From 156943a6a0b15b9946c0ff8a276891314d74748c Mon Sep 17 00:00:00 2001 From: Rizel Scarlett Date: Wed, 18 Feb 2026 18:32:22 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20add=20CLAUDE=5FTHINKING=5FBUDGET=20and?= =?UTF-8?q?=20CLAUDE=5FTHINKING=5FENABLED=20environm=E2=80=A6=20(#7330)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docs/guides/environment-variables.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/documentation/docs/guides/environment-variables.md b/documentation/docs/guides/environment-variables.md index 6c79381fcb..43b4d80155 100644 --- a/documentation/docs/guides/environment-variables.md +++ b/documentation/docs/guides/environment-variables.md @@ -164,6 +164,30 @@ export GOOSE_LEAD_FAILURE_THRESHOLD=3 export GOOSE_LEAD_FALLBACK_TURNS=2 ``` +### Claude Extended Thinking + +These variables control Claude's [extended thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking) feature, which allows the model to reason through complex problems before generating a response. Supported on Anthropic and Databricks providers. + +| Variable | Purpose | Values | Default | +|----------|---------|---------|---------| +| `CLAUDE_THINKING_ENABLED` | Enables extended thinking for Claude models | Set to any value to enable | Disabled | +| `CLAUDE_THINKING_BUDGET` | Maximum tokens allocated for Claude's internal reasoning process | Positive integer (minimum 1024) | 16000 | + +**Examples** + +```bash +# Enable extended thinking with default budget (16000 tokens) +export CLAUDE_THINKING_ENABLED=1 + +# Enable with a larger budget for complex tasks +export CLAUDE_THINKING_ENABLED=1 +export CLAUDE_THINKING_BUDGET=32000 + +# Enable with a smaller budget for faster responses +export CLAUDE_THINKING_ENABLED=1 +export CLAUDE_THINKING_BUDGET=8000 +``` + ### Planning Mode Configuration These variables control goose's [planning functionality](/docs/guides/creating-plans).