Configures Claude's thinking and effort parameters correctly across models. Covers adaptive vs legacy budget-based thinking, display settings, effort levels, cost control with max_tokens, and debugging 400 errors or truncated answers.
Ships in messages-api-features. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Current Claude models decide for themselves when and how much to think. You steer that with the effort level, cap total output with max_tokens, and choose whether the thinking summary is returned with display. Per-model rules differ, so check the table in the docs for your model.
budget_tokens thinkingthinking field, or answers are truncatedThe thinking documentation has a per-model table that shows what each model does with no thinking field, adaptive, enabled with budget_tokens, and disabled. As documented at the time of writing:
budget_tokens is rejected (400); some reject disabled toothinking: { type: "adaptive" }{ type: "enabled", budget_tokens: N }Do not copy a thinking object between models without checking that table.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic();
const MODEL = process.env.ANTHROPIC_MODEL!; // a current model ID
const response = await client.messages.create({
model: MODEL,
max_tokens: 16000,
thinking: { type: "adaptive", display: "summarized" },
messages: [{ role: "user", content: "Find the bug in this function and explain it: ..." }],
});
for (const block of response.content) {
if (block.type === "thinking") console.log("[summary]", block.thinking);
if (block.type === "text") console.log(block.text);
}
display values:
| Value | Returns | Typical use |
|---|---|---|
"summarized" | A readable summary of the reasoning | Showing reasoning to users or debugging |
"omitted" | Thinking blocks with an empty thinking field and a signature | Production paths that never show reasoning; text starts streaming sooner |
The default differs by model ("omitted" on many newer models), which is why code that printed thinking can suddenly print nothing. No setting returns the raw chain of thought, and billing is the same either way.
Effort lives in output_config, not inside thinking:
const response = await client.messages.create({
model: MODEL,
max_tokens: 16000,
output_config: { effort: "medium" }, // low | medium | high | xhigh | max (availability varies by model)
messages,
});
Effort is soft guidance on how readily and how deeply Claude thinks (and how much it writes). The default level differs by model, so set it explicitly when behavior matters. Start at the level your workload needs on a sample of real requests and move one step at a time; a lower level is usually the first lever when responses are slower or more expensive than needed. Prompt guidance ("think carefully" or "answer directly") can shift behavior further, but measure it, because wording sensitivity is real.
Thinking interleaves with tool calls automatically on models with adaptive thinking (older models needed a beta header for interleaving). When you return tool results, include the assistant's thinking blocks unmodified, including the signature. Modified thinking blocks are rejected.
messages.push({ role: "assistant", content: response.content }); // keep every block as returned
messages.push({ role: "user", content: toolResults });
Not every assistant turn will start with a thinking block: with adaptive thinking the model can skip thinking on simple steps. Do not write code that assumes one is present.
max_tokens is a hard cap on thinking plus text for that request. If you see stop_reason: "max_tokens", raise max_tokens or lower effortusage.output_tokens_details.thinking_tokens to see how much of output_tokens was reasoningmax_tokens, stream the request (the SDKs expect streaming for very long generations)The resolved effort value and thinking configuration are part of the prompt. Changing them between requests invalidates cache breakpoints after the system prompt on many models. Pick one configuration per conversation; for per-turn variation, the docs describe per-message steering and (on some models, beta) per-message effort changes that preserve the cache.
budget_tokens| Old code | New approach |
|---|---|
thinking: { type: "enabled", budget_tokens: 8000 } | thinking: { type: "adaptive" } (or omit where thinking is on by default) plus output_config.effort |
| Tuning the budget to control depth | Tune effort; cap total output with max_tokens |
| Expecting visible thinking text | Set display: "summarized" explicitly |
| Interleaved-thinking beta header | Not needed with adaptive thinking |
Check the migration guide for model-specific breaking changes before switching models.
budget_tokens to a model that rejects itdisplay and then showing users empty reasoningmax_tokens sized for a short answer with thinking oneffort and display explicitly instead of relying on defaultsthinking_tokens, latency, and stop_reason per routeWhat SKILL.md sets; muted values are Claude Code's defaults
2 plugins in one repository ship this exact skill · first indexed Nov 5, 2026
7 skills in this plugin
/code-executionUse the Claude API code execution tool so the model runs Bash and Python in an Anthropic-hosted sandbox during a response — for calculation, data analysis, file generation, and checking its own work. Covers tool versions, file upload, retrieving generated files, container reuse, limits, and data-retention constraints.
Use this skill when building features where Claude must actually run code (not just write it), when choosing a code execution tool version, or when debugging missing output files or expired containers.
Activate when: Claude code execution, code_execution tool, Python sandbox, run code tool, data analysis agent, code interpreter, container_upload, container reuse, OUTPUT_DIR.
/computer-useBuild desktop and browser automation agents with the Claude API computer use toolset — screenshots, clicks, typing, scrolling — run by your own harness inside an isolated VM or container. Covers choosing the toolset version, the agent loop, batch actions, sandboxing, prompt-injection risk, and when an API integration is the better choice.
Use this skill when building agents that operate GUIs (legacy apps, browsers without APIs), migrating from an older computer use tool version, or reviewing the safety of a computer use deployment.
Activate when: Claude computer use, computer_toolset, computer_20251124, computer_20250124, desktop agent, screen control, click and type agent, GUI automation.
Other plugins' skills for the same job
/messages-api-features:thinking-and-effortfrom messages-api-features
npx claudepluginhub latestaiagents/agent-skills --plugin messages-api-features