{"version":"2.1.330","anchor":"new-env-var-claude-code-host-reads-no-bash-edit-diff-lets-a","canonical_anchor":"new-env-var-claude-code-host-reads-no-bash-edit-diff-lets-a","heading":"Bash edit diffs get new switches for Remote Control, subagents and host apps","tier":"use","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/new-env-var-claude-code-host-reads-no-bash-edit-diff-lets-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Bash edit diffs get new switches for Remote Control, subagents and host apps\n\nThe Bash edit-diff feature now depends on separate switches for Remote Control sessions and other sessions, plus a variable host apps can set\n\n**Unclear.** What Claude Code does differently when the variable is honoured is not clear.\n\n**What**\n\nThe Bash edit-diff feature is about showing changes that shell commands make to files. The checks that decide whether it applies have been reworked:\n\n- The check now has a separate path for Remote Control sessions, which let you drive Claude Code from another device. That path is controlled by `tengu_goofy_moonbeam`, a server-controlled switch whose built-in fallback is off.\n\n- `tengu_quiet_badger`, which used to be the only check, now applies only on the Remote Control path.\n\n- `tengu_cozy_babbage` is a new switch for the other path, with a built-in fallback of on.\n\n- The check can now report two new reasons: `remote_control_on` and `subagent_at_work`.\n\n- A helper now checks whether any `local_agent`, `in_process_teammate` or `local_workflow` task is running. These are helper agents or workflows working alongside the main session.\n\n- `CLAUDE_CODE_HOST_READS_NO_BASH_EDIT_DIFF` is a new environment variable, a setting passed in when Claude Code starts. It is honoured only when Claude Code runs inside a host such as the desktop app, and is then removed from the environment. If it is not set, it counts as false.\n\nOne reading of `tengu_quiet_badger` returned on for this site's account and off for an anonymous account, switched on since the previous reading. That reading was not taken under this release. Nothing has been read about `tengu_goofy_moonbeam` or `tengu_cozy_babbage`.\n\n**Why**\n\nThe feature now uses different switches depending on whether a session runs through Remote Control, so it can be enabled for one kind of session without the other. The environment variable gives host apps a way to adjust it. People using Claude Code directly in a terminal get the default of false.\n\n- Flag `tengu_goofy_moonbeam`: Not enough to say (read for one account on one subscription tier against v2.1.330; this account: no value returned, anonymous baseline: no value returned, 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: SDK\n- Names: `CLAUDE_CODE_HOST_READS_NO_BASH_EDIT_DIFF`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no"}