← Neural Digest·Edition №9·#From sampling knobs to effort budgets
From sampling knobs to effort budgets

Why Opus 4.7’s ‘effort’ and ‘task_budget’ matter more than benchmarks

Anthropic’s Claude Opus 4.7 didn’t just shift the leaderboard — it rewrote the API contract. By removing low-level sampling knobs (temperature, top_p, top_k) and introducing semantic controls — an effort enum and an advisory task_budget the model can see — Anthropic has given engineers a predictable, auditable interface for long-running, agentic sessions. That change is what makes token-based billing (and sane product SLAs) tractable for integrators like GitHub, and it’s the product innovation we should be paying attention to. (platform.claude.com)

Neural Digest Desk
ED-009·2026-04-28T06:00Z
ED-009

f you only read Opus 4.7’s benchmark table you’ll miss the actual product move. The headline numbers matter to researchers and show-off demos, but Anthropic’s quiet, surgical change to the Messages API — removing sampling knobs and replacing them with semantic “effort” and a visible “task_budget” — is the infrastructural shift that actually enables predictable agent behaviour, transparent billing, and efficient long-running sessions in production. This is an API design decision, not a weight-tuning trick, and it deserves to be treated as such. (platform.claude.com) Sampling parameters like temperature, top_p, and top_k are powerful when you want to explore a model’s output distribution. They are also the wrong primitives when your product needs predictable economic behavior. Those knobs operate inside the decoding loop: they change the softmax, which changes token-by-token probabilities, which in turn changes how long an agent runs, how many tool calls it makes, and how many tokens it ultimately consumes. That makes end-to-end cost, latency and correctness emergent properties of a brittle stochastic process — exactly the thing you don’t want when an agent is refactoring a repository or running a multi-hour code review. Anthropic even points out that setting temperature to zero didn’t guarantee identical outputs; the old approach never truly bought determinism. (platform.claude.com) Opus 4.7 flips the contract. Instead of letting callers poke the sampling internals, the Messages API now exposes semantics: an effort enum (low, medium, high, xhigh, max) that explicitly trades intelligence for token spend, and a task_budget that the model can see and use as an advisory token ceiling across the full agentic loop — thinking, tool calls, tool results and final output. The model is trained and instrumented to treat that budget as a running countdown and to prioritize its work accordingly. Those are product-level primitives: they say “I have N tokens of runway — spend them wisely,” not “please bias the softmax toward rarer tokens.” The message is clear: budget-aware agents are now first-class citizens of the API. (platform.claude.com) The practical implications are immediate. Long, multi-step sessions are the core of modern agentic workflows — code modernization, repository-level refactors, multi-document reasoning — and they are also the ones that explode costs under naive request-counting billing. GitHub’s switch to token-based usage billing on June 1 is the market-side mirror to Anthropic’s API change: when the unit of cost is a token, the unit of control needs to be a token-aware contract. GitHub will now meter Copilot with monthly AI Credits consumed by token usage (input, output and cached tokens), and it explicitly cites agentic workflows as the reason for the change. That makes task_budget and effort not just niceties but necessary elements for predictable product economics. (github.blog) These primitives solve several engineering problems in one design choice. First, predictability: a model that actively knows its budget can stop, summarize, or compact its reasoning when the countdown gets short, which yields more reproducible per-session cost profiles. Second, observability and billing alignment: if the model plans to use 80k tokens, an integrator can present a preview bill, enforce corporate budget caps, or route the request to a cheaper mode — without complex server-side orchestration to simulate “how much will this run cost?” Third, graceful degradation: instead of crashing into a hard max_tokens cap mid-loop (which is invisible to the model), Opus can prioritize essential steps and return a useful partial result. Anthropic’s docs make this explicit: task_budget is advisory (not a hard cap), and it’s intended for workloads where you want the model to self-moderate. The API even sets a sensible floor — the minimum task budget is 20k tokens — which signals the design target: non-trivial, agentic runs, not micro-interactions. (platform.claude.com) There’s an underrated ergonomics win too. Shipping agents used to feel like hardware hacking: tune a temperature here, clamp a top_p there, hope the occasional determinism requirement holds. That pattern forces product teams to build brittle wrappers and intricate heuristics to bound worst-case token usage. With semantic effort levels, you can stop telling the model how to sample and start telling it the job to do and how much effort you want it to expend. When the model understands “high effort, 80k tokens,” it can reallocate internal compute — more deliberation early, fewer exploratory paraphrases later — instead of leaving you to approximate that behavior externally. That’s a cleaner separation of concerns: model engineers train to satisfy the semantic contract; product engineers demand behavior-level SLAs from the API. (platform.claude.com) None of this removes the hard realities. Opus 4.7 also ships a new tokenizer that can use up to ~35% more tokens for the same text; high-resolution vision work uses more tokens; and thinking content is omitted by default unless callers opt back in — all changes that can increase bill unpredictably if you don’t rebaseline. Those are the exact kinds of surprises token-aware primitives are designed to manage: if you know your budget and the budget is visible to the model, you can guard against runaway costs even when the IERC of the tokenizer changes. Anthropic encourages experimenting with different task_budget settings and warns that an overly restrictive budget may cause the model to refuse or provide a less thorough result — a perfectly sensible guardrail for production systems. (platform.claude.com) This is why the product story matters more than a few percentage points on a benchmark. Benchmarks answer “how capable is the model?” Product primitives answer “how do I make it behave predictably when it’s doing valuable work?” Integrators like GitHub are already rewiring their pricing and plan structure to reflect the token economy. That creates commercial pressure for models to expose the right API surfaces: ones that let customers forecast costs, set budgets, and get graceful outputs under constraints. Opus 4.7’s semantic controls are a pragmatic engineering answer to that market reality. (github.blog) If you’re building agentic systems, treat Opus 4.7 as a platform-level invitation. Stop hoarding temperature patches and brittle token-estimators. Start designing your UX and billing flows around effort and task budgets: show users the countdown, offer compact/preview modes, expose projected credits consumed, and design fallbacks that prioritize essential outputs. That’s how you ship agentic products people can trust and budget for. Anthropic didn’t just tune a model — they redesigned the contract between compute and the developer. In a world where tokens are the currency, APIs that make that currency visible to the worker are the real innovation. (platform.claude.com)

End of story

Want tomorrow's dispatch in your inbox?

One dispatch per day at 06:00 UTC. No commentary, no ceremony.