Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

REPL scripts reserve the name __replItem and handle for-in and for-of loops differently

Scripts run through the REPL now fail if they use the name __replItem anywhere, and for-in and for-of loops are rewritten before they run

You'll notice No documentation found Improvements
JSON All of v2.1.334
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
REPLArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release
What

Claude Code rewrites scripts run through its REPL feature before running them. That rewriting has changed in two ways:

  • __replItem is now reserved. A script that contains this name anywhere, even inside a piece of text, is rejected with the message "REPL: the name __replItem is reserved, also in text. Use another name."
  • for...in and for...of loops that use a plain variable name now get their own handling: the loop variable is set again inside the loop body, rather than the loop being wrapped like any other loop.

Claude Code also now takes account of the in operator inside the head of a for loop when it judges how costly a script is.

Why

A REPL script that uses __replItem as a name will now stop with an error instead of running. Loops over items are also handled differently from before.

Read from
Names in the bundle__replItem

See this entry in the whole of v2.1.334 →

Feedback