{"name":"CLAUDE_CODE_BASH_EDIT_DIFF","slug":"claude-code-bash-edit-diff","family":"env","title":"Environment variables","noun":"environment variable","description":"Set to `0` to turn off the [diff of the files that changed while a Bash command ran](\/docs\/en\/hooks#bash), or `1` to record it in every permission mode. Takes precedence over the [`bashEditDiffEnabled`](\/docs\/en\/settings-reference#basheditdiffenabled) setting. Requires Claude Code v2.1.269 or later","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.269","removed_in":null,"in_current_build":true,"newest_mined":"2.1.322","builds":49,"mined_builds":161,"first_cited":{"version":"2.1.269","released_at":"2026-09-11 18:12:49","spans":1}},"aliases":[],"entries":[{"version":"2.1.269","anchor":"bash-tool-can-now-show-a-diff-of-files-it-edited","heading":"Bash tool can now show a diff of files it edited","line":"Bash tool can now show a diff of files a shell command edited, on by default","released_at":"2026-09-11 18:12:49","reason":"found in this entry's text, named in this entry"},{"version":"2.1.269","anchor":"new-basheditdiff-snapshotdiff-tracking-system-for-the-bas","heading":"New 'bashEditDiff' snapshot\/diff tracking system for the Bash tool, gated by config\/env","line":"New 'bashEditDiff' system snapshots the repo around Bash commands to track what they changed, controlled by an env var or config","released_at":"2026-09-11 18:12:49","reason":"found in this entry's text, named in this entry"}],"entries_total":2,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"settings-reference","title":"All settings","documented":false}],"docs_total":2,"gates":[],"related":[{"name":"CLAUDE_CODE_BASH_OUTPUT_AUDIENCE_NOTE","slug":"claude-code-bash-output-audience-note","description":"A new reminder can tell Claude that the user only sees a few lines of Bash output, so it must repeat what matters in its reply"},{"name":"CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR","slug":"claude-code-bash-sandbox-show-indicator","description":"Bash commands that edit files with sed are now labelled Bash, or SandboxedBash when CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR is set and sandboxed"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-bash-edit-diff","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}