Setting to disable automatic git status in system prompt
Status Closed — duplicate
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 3 comments · opened Mar 1, 2026 · closed Mar 5, 2026
Problem
Every Claude Code session injects git status into the system prompt automatically. In monorepos or repos with frequent changes, this can consume 40KB+ of context tokens before the user says anything.
The status is also a snapshot — it goes stale the moment any file is edited, so the ongoing value is near zero.
Proposal
Add a setting to disable or limit git status injection:
// .claude/settings.json or project settings
{
"includeGitStatus": false
}
Or a middle ground — limit to N lines:
{
"gitStatusMaxLines": 20
}
Why
- The model can run
git statuson demand when it actually needs it - Power users with large repos or auto-commit workflows get hit hardest
- Context tokens are finite and expensive — burning them on stale status is waste
- Reduces initial load significantly for monorepo setups
Workaround
Currently none — the injection is hardcoded and not configurable.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗