Claude 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:
CLAUDE_CODE_BASH_EDIT_DIFF, an environment variable you set in your shell before starting Claude Code.bashEditDiffEnabled, a user setting.
Some limits apply:
- Repositories that track more than a set number of files get no diffs unless
bashEditDiffEnabledis true in your user settings. - Sandboxed sessions, where commands run in a walled-off environment, are left out.
- A separate switch controlled from Anthropic's servers decides whether Claude Code marks a repository where diffing failed, so it stops trying there.
Files 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.
tengu_keen_willow Off in both readingsThe flag server returned off for the account this site reads and for the anonymous baseline. A reading of off cannot rule out a rollout these two readings sit outside of.
This account: off · anonymous baseline: off · compiled default in v2.1.336: 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.
Read once, for one account on one subscription tier, against v2.1.336. It isn't a statement about your account. What a flag value here can and cannot tell you
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.