Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.318 ·

REPL script mode: tool-call reporting, display, resume and compaction support

A largely hidden REPL mode, where Claude runs scripts that call tools, gains reporting, display, resume and compaction support across Claude Code

Group of 3 You'll notice Improvements
JSON All of v2.1.318
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
REPL ModeArea: what it touches
ImprovementsKind: in v2.1.318,
What probably matters to youSection of the release

Unclear It is not clear whether REPL mode is something you can switch on yourself or is controlled some other way.

What

REPL mode, also called code mode, lets Claude write a script that calls tools, instead of calling them one at a time. A tool call is a single action Claude takes, such as reading a file. Many parts of Claude Code now handle this mode when it is switched on; the switch is a built-in check, so most people will not see it yet.

  • If you interrupt or refuse a script, Claude gets a report of every tool call the script started, plus the instruction "STOP what you are doing and wait for the user to tell you how to proceed."
  • The transcript shows live REPL tool calls and shell progress. REPL progress rows are no longer collapsed into one, old finished rows are removed, and wrapped tool calls show the script's source in a ScriptSourceRow.
  • Summaries read <repl-output> blocks and show script errors on one line. A running call's hint is shown.
  • Tool calls made from inside a script (repl_tool_call) now appear in the recent activity of subagents (helper agents Claude starts) and background tasks. Collapsed tool groups can hold a stopped script and show it as interrupted.
  • When you resume a session, Claude Code looks for agents that scripts started and reports script runs that were lost. Resumed background-agent notices gain a note about sending messages in code mode.
  • Compaction, which shrinks a long conversation to save space, keeps the script's saved variables (replBindings) and can note which were kept. A new note warns that earlier variables no longer exist.
  • Session logs record a repl-mode entry and bug reports include replMode.
  • An engine check can keep REPL mode off ("REPL mode's engine check failed").
  • Smaller changes: script helper calls are not treated as missing tools, a stopped wait for a result is withdrawn when its output does not match the expected shape, and some background task kinds skip the "stopped" notice.

Why

This is a large new way for Claude to work, built so that interrupting a script, resuming a session or compacting a long one does not leave Claude confused about what ran. Since it is mostly switched off, expect to see it only where it has been turned on.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether REPL mode is something you can switch on yourself or is controlled some other way.

See this entry in the whole of v2.1.318 →

Feedback