thinking-and-effort

thinking-and-effort is a skill for Claude Code from latestaiagents/agent-skills. It costs 144 tokens per session (1,635 once invoked), scanned A, original, MIT.

A guide to configuring Claude's internal reasoning and effort settings through the API. It explains how model versions differ and how to limit total output or choose whether a reasoning summary is shown.

In plain words
What is it for?
Use it for multi-step reasoning, debugging, planning, code generation, tool-using agent loops, and migrating older requests that used fixed reasoning budgets.
Why use it?
Settings that work for one model may be rejected or behave differently on another, causing errors or truncated answers. This helps match the request to the selected model and control resource use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the messages-api-features plugin — 7 skills shipped together , and of latestaiagents

Good fit Use it for multi-step reasoning, debugging, planning, code generation, tool-using agent loops, and migrating older requests that used fixed reasoning budgets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/latestaiagents/agent-skills/thinking-and-effort
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add latestaiagents/agent-skills --skill thinking-and-effort
Clone the repo
git clone --depth 1 https://github.com/latestaiagents/agent-skills

Made for: Claude Code.

Or install messages-api-features, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thinking-and-effort

README.md
[![agentmods](https://agentmods.dev/badge/skills/latestaiagents/agent-skills/thinking-and-effort/github.svg)](https://agentmods.dev/skills/latestaiagents/agent-skills/thinking-and-effort)
Your own site
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/thinking-and-effort"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/thinking-and-effort/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thinking-and-effort

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/thinking-and-effort"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/thinking-and-effort.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00144 $0.01635
Opus 5.5 $0.00058 $0.00654
Sonnet 5.5 $0.00029 $0.00327
Haiku 4.5 $0.00014 $0.00163

Measured 26d ago against content hash 97958ac3e23f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

thinking-and-effort scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/messages-api-features/thinking-and-effort/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Thinking and Effort

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.

When to Use

  • Multi-step reasoning: math, debugging, planning, code generation
  • Agent loops where the model should evaluate tool results before acting
  • Migrating code written for fixed budget_tokens thinking
  • A request returns 400 on its thinking field, or answers are truncated

Workflow

Step 1: Look up your model's thinking modes

The 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:

  • On the newest models, thinking is on by default and budget_tokens is rejected (400); some reject disabled too
  • On some previous-generation models, thinking is off until you send thinking: { type: "adaptive" }
  • Older models support only the legacy manual mode: { type: "enabled", budget_tokens: N }

Do not copy a thinking object between models without checking that table.

Step 2: Turn thinking on and choose what you see

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

Read the full file on GitHub · 134 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago First seen · 134 lines · 144 tokens per session scan A 97958ac3e23f

Subscribe to this mod's changes

thinking-and-effort is a skill published in the GitHub repository latestaiagents/agent-skills (6 stars, last pushed 26d ago), licensed MIT. It adds 144 tokens to every session and 1,635 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.

Related

thinking-and-effort compared with skills from other repositories

thinking-and-effort next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
thinking-and-effortlatestaiagents/agent-skillsSkill626d agoMITA144Claude Code
nexent-daily-testModelEngine-Group/nexentSkill6.3kyesterdayMITA78Claude Code, Codex
ai-humanizer-zhskillsaiagent/aiskillsSkill55mo agononeA81Codex
ai-account-research-sales-cardskillsaiagent/aiskillsSkill55mo agononeA71Codex
ai-account-researchskillsaiagent/aiskillsSkill55mo agononeA65Codex
ai-amazon-brand-analyticsskillsaiagent/aiskillsSkill55mo agononeA72Codex
ai-amazon-international-listingsskillsaiagent/aiskillsSkill55mo agononeA75Codex