The Claude Code Changelog
All Episodes
Tuning Reasoning Effort in Claude Code 2.1.318 Forks

Tuning Reasoning Effort in Claude Code 2.1.318 Forks

0:00|0:00

Discover how Claude Code 2.1.318 lets you pass a custom effort parameter to $.model.fork, cutting down latency and token burn on lightweight mod tasks like handoff briefs and summaries. We also break down other key updates in this release, including cross-account IAM role assumption on the apps gateway and a fix for false-success exits in non-interactive mode.


Chapter 1

Effort Control for Mod Forks in 2.1.318

Lachlan Reed

This one's brought to you by Jellypod AI, and it's about a small option with a big bill attached. In Claude Code 2.1.318, dollar sign dot model dot fork now accepts an effort parameter.

James Turner

Right, and to see why that matters, you need the old behavior. Fork reruns the main thread's last request with one more user message and every tool denied. The API serves that prefix from the prompt cache, so it's cheap on input. But before 2.1.318, the fork inherited your session's reasoning effort. So if you'd dialed effort up to high or max for real work, every little side job from a mod ran at that same level.

Lachlan Reed

So you're using a sledgehammer to hang a picture frame. Things like a commit message, an export summary, a handoff brief, or classifying an action. Tiny jobs, but they'd burn tokens and add seconds of latency, especially if the result was feeding a pane or a command the user was waiting on.

James Turner

Now you can say what you want per call. Inside any hook in your register function, so a command run handler, a turn complete handler, or a UI action, you write it like this. const result equals await dollar sign dot model dot fork, open brace, prompt colon, summarize the open questions and touched files in three bullet points, comma, effort colon low, close brace. That's it.

Lachlan Reed

And the result tells you what actually happened. The returned object reports the effort level that was sent and executed. So result dot text is your brief, and result dot effort is your proof. That's handy if you want to log it, or assert in a test that your side job really ran at low and not at whatever the user had cranked up.

James Turner

Concretely, think about the ccseats handoff pattern we covered before, where a fork writes a brief so another tool can pick up the work. That's an extraction and formatting job. Low effort is plenty, and the pane opens faster. Keep high effort for forks where the model actually has to reason, like reviewing a design decision.

Lachlan Reed

Few caveats, though. Mods are early access, so check the types in the dot claude-plugin slash types folder for your installed version, because that's the exact interface. And caching only helps when you fork from the current transcript state. If the cache is cold or expired, the fork still pays full context ingestion.

James Turner

And remember mods aren't sandboxed. They run inside Claude Code as you. The fork itself has model tools denied by default, but your mod code doesn't. Before shipping, run claude plugin validate on your mod folder, and use claude dash dash debug to inspect what's executing.

Lachlan Reed

Now the smaller stuff in 2.1.318. Claude apps gateway gets assume underscore role on mantle upstreams, for cross account AWS IAM roles and per developer cost attribution. And a fix worth knowing: claude dash p could exit zero, a false success, if an API error cut a reply off mid stream while a mod hooked turn dot step.

James Turner

Also, subagents running shell commands now move processes to the background after three minutes, to avoid prompt cache expiration. Cloud sessions on Anthropic hosted environments can start with a No repository option. And starting Claude Code in an IDE terminal no longer auto installs or updates the extension. Run slash ide yourself when you want it.

Lachlan Reed

So the takeaway is simple. Audit your mods, find the forks doing light work, and add effort low.