Hidden REPL added
Key point
Claude Code v2.1.108 gains a hidden REPL that bundles file exploration and tool calls in JS.
Details
Claude Code v2.1.108 now includes a hidden REPL tool that lets you explore the file system and call tools using JavaScript code.
The key point is that you can bundle multiple tool calls together and run them at once, and process the results directly with code. Instead of waiting for each call and reading raw output, the model can handle results programmatically, saving time and tokens.
The activation method has also been disclosed. It's available by setting the environment variable CLAUDE_CODE_REPL=true on native installation of CC v2.1.108.
The example functions disclosed are as follows.
sh(): run shell commandscat(): read filesput(): write filesrg()/rgf()/gl(): search and glob handling- Additional utilities like
haiku(),gh()
The author notes that this idea already existed in Codex since February, and compares it to JavaScript shell tools like zx.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.