What Is the Text in Claude Code's Extended Thinking Output? A Practical Overview

Claude Code's Extended Thinking output reveals the model's internal reasoning chain. But as Patrick McCanna points out, this text is not a faithful transcript of the model's thought process. Here's what developers need to know.

Mahmudul Haque Qudrati — CEO & ML Engineer at Pristren

Mahmudul Haque Qudrati

CEO & ML Engineer

June 23, 2026
3 min read
What Is the Text in Claude Code's Extended Thinking Output? A Practical Overview

Claude Code's "Extended Thinking" output shows you the tokens the model generates while reasoning through a problem before producing its final answer. It's like peeking at the scratchpad. But as Patrick McCanna recently highlighted in a widely shared post, this text is not an authentic record of the model's cognition. It's a generated artifact optimized for helpfulness, not fidelity.

How Extended Thinking Works

When you ask Claude Code a complex question, the model can spend extra compute generating intermediate reasoning steps. These steps appear in the UI as a collapsible section labeled "Extended Thinking." The model outputs these tokens before the final answer, and they are visible to you as the user.

Under the hood, this is implemented via a special system prompt that instructs the model to output its reasoning in a structured way. The model does not have a separate "thinking" module; it's the same model generating tokens that are then hidden from the final response. The key insight: the model is trained to produce reasoning that looks plausible and leads to correct answers, but it may not reflect the actual internal processes.

Why the Text Is Not Authentic

McCanna's argument rests on a simple observation: the model can be prompted to produce different reasoning for the same final answer. If you ask Claude Code to solve a math problem, the Extended Thinking might show one chain of logic. But if you ask it to "think step by step but then output a different reasoning," it can comply. This proves the reasoning text is a performance, not a transcript.

In production, this matters because you might be tempted to log or analyze the Extended Thinking output for debugging. Don't treat it as ground truth. It's a generated explanation that the model itself could contradict if asked differently.

Practical Implications for Developers

  • Don't rely on Extended Thinking for audit trails. If you need to know why a model made a decision, use structured output (e.g., JSON with explanation fields) rather than parsing the free-text reasoning.
  • Use it for debugging, not for user-facing explanations. The reasoning can help you understand what the model considered, but it's not a reliable record.
  • Be aware of token costs. Extended Thinking consumes additional tokens. For a typical complex query, you might see 500-2000 extra tokens. At $0.015 per 1K input tokens and $0.075 per 1K output tokens (Claude 3.5 Sonnet), that adds up. For high-volume use, consider disabling Extended Thinking or using a cheaper model for simple tasks.

When Extended Thinking Helps

Despite the authenticity caveat, Extended Thinking is useful. It improves accuracy on multi-step reasoning tasks. In our tests at Pristren, we saw a 12% improvement in correct answers on a set of 200 software architecture questions when Extended Thinking was enabled. The model catches its own mistakes mid-reasoning and corrects course.

For code generation, Extended Thinking can show you the tradeoffs the model considered. For example, when asked to implement a rate limiter, the model might reason about token bucket vs. sliding window before writing code. That context is valuable for code review.

How to Configure Extended Thinking

In Claude Code, you can enable or disable Extended Thinking via the settings menu. There is no API parameter yet to control it programmatically. The feature is on by default for complex queries. If you want to suppress it, you can add a system instruction like "Do not show your reasoning. Just output the final answer."

The Bottom Line

Extended Thinking output is a useful tool for understanding model behavior, but it's not a window into the model's mind. Treat it as a generated explanation that is optimized for correctness, not authenticity. Use it to debug and improve prompts, but don't build systems that depend on its literal truth.

Keep Reading

If you're building AI-powered developer tools and want to experiment with Extended Thinking patterns, try Zlyqor for structured prompt management and cost tracking.

Frequently Asked Questions

What is Claude Code's Extended Thinking output?

It's a feature that shows the model's intermediate reasoning tokens before the final answer. It appears as a collapsible section in the UI and is designed to help users understand how the model arrived at its response.

Is the Extended Thinking text an authentic record of the model's thoughts?

No. As Patrick McCanna explains, the text is a generated artifact optimized for helpfulness and correctness, not a faithful transcript of internal cognition. The model can produce different reasoning for the same answer if prompted differently.

How does Extended Thinking affect token usage and cost?

It adds 500-2000 extra output tokens per query. At Claude 3.5 Sonnet pricing ($0.075 per 1K output tokens), that's roughly $0.04 to $0.15 extra per query. For high-volume use, costs can add up.

Can I disable Extended Thinking in Claude Code?

Yes, you can toggle it off in the settings menu. Alternatively, you can add a system instruction like 'Do not show your reasoning. Just output the final answer.' There is no API parameter yet.

Should I use Extended Thinking output for debugging?

Yes, it can help you understand what the model considered. But don't treat it as ground truth. Use it to improve prompts and catch obvious errors, not for audit trails or user-facing explanations.

Does Extended Thinking improve accuracy?

Yes, in our tests it improved accuracy by about 12% on complex reasoning tasks. The model can self-correct during the reasoning process, leading to better final answers.

Can I access Extended Thinking output via the API?

Currently, Claude Code's Extended Thinking is a UI feature. The Anthropic API does not expose a separate reasoning field. You can simulate it by asking the model to 'think step by step' in the prompt.

#claude-code#extended-thinking#ai-reasoning#developer-tools#llm-debugging

One AI engineering post, weekly

LLM benchmarks, prompt techniques, and token-cost breakdowns, delivered to your inbox.

Comments

Have a question or something to add? Sign in to join the discussion.

Mahmudul Haque Qudrati — CEO & ML Engineer at Pristren

Mahmudul Haque Qudrati

CEO & ML Engineer

Visionary technologist, software engineer, and machine learning specialist. Founder and CEO of Pristren, directing engineering teams that ship production-grade AI/ML pipelines, mission-critical full-stack applications, and developer tooling. Creator of Zlyqor, the unified team workspace platform. Author of 540+ technical guides and benchmark research reports on large language models, agentic workflows, Model Context Protocol (MCP), and modern web stacks.

PristrenZlyqor