CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
- Entity ID:
ent-20260423-r31a000000023 - Type:
concept - Scope:
private - Status:
active
Description
Environment variable that suppresses git status from the prompt-cache block 2. Community-recommended workaround for the git-status cache-bust: CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 claude "Hello" pre-warms the cache with skills and CLAUDE.md cached before any git activity. Alternatively, includeGitInstructions: false in settings.json permanently removes git status from the cache block.
Key claims
- CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 with a 'Hello' priming call avoids cache-bust
Relations
- CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS --[mitigates]--> Git-Status Cache Bust