{"version":"2.1.329","anchor":"repl-code-mode-adds-memory-stop-and-leftover-bounds","canonical_anchor":"repl-code-mode-adds-memory-stop-and-leftover-bounds","heading":"REPL scripts can now be stopped for memory use and leftover code","tier":"notice","area":"REPL","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/repl-code-mode-adds-memory-stop-and-leftover-bounds","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### REPL scripts can now be stopped for memory use and leftover code\n\nThe REPL tool now stops scripts that use too much memory, refuses timers set after a script ends, and warns about clashing variable names\n\n**What**\n\nThe REPL tool lets Claude run small scripts that call other tools. Before, a script could only be stopped by its time or step limit. New stops have been added.\n\n- A script that uses too much memory without waiting on a tool call is now stopped. The message tells you it was stopped and to check for a loop. The tool tracks this with new `memoryReadAt`, `memoryStopped` and `memoryStops` values.\n\n- A new `leftoverBound` limits code left running after a script finishes: timers set after a script ends are refused, and sleeps dropped that way are rejected later.\n\n- A warning now says when a script's own `let` or `var` names were kept because a helper has the same name.\n\n**Why**\n\nRunaway or leaky scripts are now halted instead of carrying on, and you will see new messages explaining why a script stopped.\n\n- Area: REPL\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}