What
In Code Mode, Claude runs tools by writing small scripts in a REPL, a place where code is run piece by piece. The instructions Claude gets for this REPL changed in several ways:
- Scripts are now told to await everything they start, meaning wait for it to finish. The old text said anything not awaited is stopped when the script ends, and advised starting dev servers without awaiting them.
- Scripts are told to start dev servers with
.timeout(3000). - The name
__replAtis reserved, with the error "REPL: the name __replAt is reserved. Use another name." - The tool docs now tell
$and PowerShell apart. - A new message explains when to use Grep and when to use mod.
- When an edit does not match the file, a new hint names the closest line that differs.
- The script timeout is now described as not counting time spent at permission prompts, the moments when Claude Code stops to ask you. The old text said it did count that time.
- The error shown when a script runs out of time has a new version. It says the limit does not count time at permission prompts, and that a call may have been waiting for the script's other calls to end. The old wording is kept when a new flag is true.
- A conditional hint block was added, and an 'unavailable' list is now passed to the tool declarations.
The old and new prompts could not be compared directly in this release.
Why
This changes how Claude handles long-running commands such as dev servers in Code Mode, and how it understands the time limit on its scripts.