{"version":"2.1.330","anchor":"repl-script-runner-reworked","canonical_anchor":"repl-script-runner-reworked","heading":"Scripts run by Claude now stop when the session's budget is spent","tier":"notice","area":"REPL","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/repl-script-runner-reworked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Scripts run by Claude now stop when the session's budget is spent\n\nClaude Code's script runner now stops a script when the session's budget runs out and reports when a hook held back one of its tool calls\n\n**Unclear.** Whether these new paths are switched on for a given user is not stated.\n\n**What**\n\nClaude Code has a tool for running scripts in a REPL, an interactive code session. A script there can make tool calls, meaning requests to Claude Code's tools such as reading a file. The way Claude Code runs these scripts has been reworked:\n\n- Budget: when the session's budget is spent, the script is stopped with the message \"The session's budget is spent, so the script was stopped.\"\n\n- Hooks: when a hook (a command you set up to run around Claude's actions) defers one of the script's tool calls, the script is told \"A hook deferred one of its tool calls, which did not run.\"\n\n- Resuming: script calls can now be paused and picked up later.\n\nBefore, the script runner did not check the budget.\n\n**Why**\n\nScripts no longer keep running past the session's budget, and a script can tell when a hook stopped one of its tool calls from running.\n\n- Area: REPL\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}