{"version":"2.1.326","anchor":"git-status-for-auto-mode-gated-by-tengu-sifted-pebble","canonical_anchor":"git-status-for-auto-mode-gated-by-tengu-sifted-pebble","heading":"Claude Code skips its own git checks in repositories with unsafe settings","tier":"notice","area":"Git","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/git-status-for-auto-mode-gated-by-tengu-sifted-pebble","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Claude Code skips its own git checks in repositories with unsafe settings\n\nA new safety check can skip Claude Code's own git status runs when a repository's git settings look unsafe, behind a remote switch\n\n**Unclear.** Whether this protection is switched on depends on a remote setting whose state has not been read.\n\n**What**\n\nClaude Code runs git status for its own checks, for example in auto mode, where Claude acts without asking you each time. Git config is a set of settings stored with a repository that tells git how to behave. A new safety check now skips those git status runs, and logs why, when the repository's git config looks unsafe:\n\n- the repository cannot be used\n\n- a `core.worktree` setting moves the working folder somewhere else\n\n- it has filters that cannot be switched off\n\nWhen the `CLAUDE_CODE_EVAL_CONFINED` environment variable is set, the check does not run git at all. The check sits behind a switch controlled from Anthropic's servers; when that switch is off, git status runs without these restrictions.\n\n**Why**\n\nThis protects auto mode from repositories whose git settings could make a routine git status do something harmful.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}