{"version":"2.1.318","anchor":"auto-mode-repl-scripts-refused-when-a-hook-rewrote-input-o","canonical_anchor":"auto-mode-repl-scripts-refused-when-a-hook-rewrote-input-o","heading":"Auto mode refuses some scripts Claude writes in the REPL tool","tier":"notice","area":"Auto Mode","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318\/e\/auto-mode-repl-scripts-refused-when-a-hook-rewrote-input-o","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318","markdown":"### Auto mode refuses some scripts Claude writes in the REPL tool\n\nIn auto mode, Claude Code can now refuse REPL scripts that a hook rewrote, that contain `\\uXXXX` escapes, or that start or message other agents\n\n**Unclear.** These refusals only apply when a further condition holds, and what that condition is, and whether it is met by default, is not stated.\n\n**What**\n\nAuto mode lets Claude carry out actions without asking you each time, with Claude Code checking each action first to decide whether it is safe. The REPL tool is a tool Claude uses to write and run a short piece of code.\n\nClaude Code can now turn down a REPL script in auto mode in these cases:\n\n- A hook, which is a script you configure to run at certain points, changed the code or changed an earlier action in the same reply.\n\n- The code contains a `\\uXXXX` escape, a way of writing a character as a code number. The message reads: Auto mode cannot check code that contains a \\uXXXX escape.\n\n- The code starts sub-agents or sends messages to other agents. The message reads: Claude's code cannot start sub-agents in auto mode in this session.\n\n**Why**\n\nIn each of these cases the code that would run is harder for auto mode to check reliably, so Claude Code refuses it rather than approving something it cannot judge.\n\n- Area: Auto Mode\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}