Unclear Whether this protection is switched on depends on a remote setting whose state has not been read.
Claude 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:
- the repository cannot be used
- a
core.worktreesetting moves the working folder somewhere else - it has filters that cannot be switched off
When 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.
This protects auto mode from repositories whose git settings could make a routine git status do something harmful.
Whether this protection is switched on depends on a remote setting whose state has not been read.