{"version":"2.1.336","anchor":"bash-edit-diff-feature-gated-by-tengu-keen-willow-env-var-a","canonical_anchor":"bash-edit-diff-feature-gated-by-tengu-keen-willow-env-var-a","heading":"Claude Code can show what files a shell command changed, with an opt-in switch","tier":"soon","area":"Bash","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/bash-edit-diff-feature-gated-by-tengu-keen-willow-env-var-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Claude Code can show what files a shell command changed, with an opt-in switch\n\nWith `CLAUDE_CODE_BASH_EDIT_DIFF` or `bashEditDiffEnabled` turned on, Claude Code records which files changed while a Bash command ran\n\n**What**\n\nClaude Code can now record a diff, a before-and-after comparison, of the files that changed while a Bash command ran. Bash commands are the shell commands Claude Code runs on your computer. Recording is on when either of these is turned on:\n\n- `CLAUDE_CODE_BASH_EDIT_DIFF`, an environment variable you set in your shell before starting Claude Code.\n\n- `bashEditDiffEnabled`, a user setting.\n\nSome limits apply:\n\n- Repositories that track more than a set number of files get no diffs unless `bashEditDiffEnabled` is true in your user settings.\n\n- Sandboxed sessions, where commands run in a walled-off environment, are left out.\n\n- A separate switch controlled from Anthropic's servers decides whether Claude Code marks a repository where diffing failed, so it stops trying there.\n\n**Why**\n\nFiles changed by shell commands such as `git restore` or `git checkout` can now be shown as diffs, so you can see what a command did to your files.\n\n- Flag `tengu_keen_willow`: Off in both readings (read for one account on one subscription tier against v2.1.336; this account: off, anonymous baseline: off, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Bash\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}