Skip to content

Should CLAUDE.md be committed to git, and what belongs in CLAUDE.local.md?

Short answer. Commit CLAUDE.md for rules the whole team shares: build and test commands, style, branch rules. Keep personal preferences in CLAUDE.local.md and out of git. Do not use either for findings and decisions that change while you work; those belong in project records.

Updated by Contextingo.

A catch to know

As of 26 October 2026 a personal CLAUDE.local.md counts as a CLAUDE.md for Claude Code. Adding one stops it from reading an AGENTS.md that nothing imports.

Why not put everything in the file

The file is loaded into every session, and Claude Code’s documentation advises keeping it under 200 lines. A file also cannot say which statements were checked, who changed them or what they replaced.

Questions

Good to know.

Does Contextingo touch the file?

On first connection it appends a short section that points to the project. It never rewrites existing text.

Nothing learned is lost. Nothing unchecked is done.