{"version":"2.1.324","anchor":"shell-tool-command-is-rewritten-before-running-in-some-cases","canonical_anchor":"shell-tool-command-is-rewritten-before-running-in-some-cases","heading":"Shell commands can be rewritten before they run","tier":"notice","area":"Bash","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/shell-tool-command-is-rewritten-before-running-in-some-cases","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Shell commands can be rewritten before they run\n\nClaude Code now rewrites the command text of some shell tool calls before running them\n\n**Unclear.** What the rewrite changes in a command, and what switches it on, is not stated.\n\n**What**\n\nWhen Claude asks to run a command in your shell, that request is a tool call: a request from the model for Claude Code to do something on its behalf. Claude Code now rewrites the command text before running it when all of these are true:\n\n- the tool is the built-in shell tool\n\n- it is not a tool supplied by an MCP server (an outside program that adds tools to Claude Code)\n\n- the run is not one triggered through a hook (a user-defined script that runs at set points)\n\n- no particular value was requested for the call\n\nIn every other case the command is passed through unchanged. Before, the command was always passed through as written.\n\n**Why**\n\nThe command that actually runs may now differ from the text Claude produced.\n\n- Area: Bash\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}