# Should CLAUDE.md be committed? What goes in CLAUDE.local.md?

Canonical: [Should CLAUDE.md be committed? What goes in CLAUDE.local.md?](https://contextingo.com/answers/should-claude-md-be-committed-to-git)

Locale: en

Purpose: 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.

Content updated: 2026-10-29

Source revision: content.ts 2026-10-29

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/answers.md) · [Complete scoped map](https://contextingo.com/sitemap.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.

## 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.

## Go deeper

- [Contextingo vs CLAUDE.md and AGENTS.md](https://contextingo.com/compare/claude-md-agents-md)
- [What belongs in CLAUDE.md and AGENTS.md, and what should stay out](https://contextingo.com/blog/what-to-put-in-claude-md-agents-md)

## Questions

### Does Contextingo touch the file?

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