Claude Code Extended Thinking

Configure Claude extended thinking modes and token budgets via API.

18|2|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/markus41/claude --skill claude-code-extended-thinking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Claude Code Extended Thinking
Source: https://github.com/markus41/claude/tree/main/plugins/claude-code-expert/skills/extended-thinking
Command: npx skills add https://github.com/markus41/claude --skill claude-code-extended-thinking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need for more profound and detailed reasoning from Claude on complex tasks, improving the quality of its outputs by allocating additional tokens for internal thought processes.

Core Features & Use Cases

  • Enhanced Reasoning: Activates deeper thinking modes ('think', 'megathink', 'ultrathink') to tackle intricate problems.
  • Configurable Budget: Allows users to set specific token budgets for thinking, balancing depth with cost.
  • Use Case: When facing a complex architectural decision or a multi-layered debugging challenge, using 'ultrathink' ensures Claude thoroughly explores all facets before providing a solution.

Quick Start

Use the phrase 'ultrathink about refactoring the authentication module' in your prompt.

Frequently Asked Questions about Claude Code Extended Thinking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable extended thinking for Claude models to improve complex code analysis?

To enable extended thinking for Claude models, activate deeper reasoning modes like 'think' or 'ultrathink' in your prompts. This allocates additional tokens for internal thought processes, significantly improving analysis quality on complex architectural decisions and multi-layered debugging challenges.

Can I configure the token budget for Claude's reasoning modes via API?

Yes, you can configure the token budget for Claude's reasoning modes via API and environment variables. This configurable budget allows you to balance the depth of extended reasoning against operational costs when tackling intricate problem-solving scenarios.

What is the difference between think, megathink, and ultrathink modes for deep reasoning?

The modes 'think', 'megathink', and 'ultrathink' activate progressively deeper reasoning capabilities for Claude models. Using 'ultrathink' ensures Claude thoroughly explores all facets of a complex problem before providing a solution, making it ideal for in-depth code review and architecture design.

When should I use extended reasoning tokens for architecture design and debugging?

You should use extended reasoning tokens for architecture design and debugging when facing complex, multi-layered challenges. Activating deeper thinking modes ensures Claude thoroughly explores all facets of intricate problems before providing a solution, yielding higher quality outputs.

Does configuring extended thinking capabilities require specific environment variables?

Configuring extended thinking capabilities supports various modes and token budget configurations via API and environment variables. This allows users to set specific parameters for deep reasoning tasks directly within their development environment.

What are the limitations of using extended reasoning for complex problem-solving?

The primary limitation of using extended reasoning for complex problem-solving is the increased token consumption. Allocating additional tokens for internal thought processes requires balancing the desired depth of reasoning with your configured token budget and associated API costs.