Skip to content

docs: track CLAUDE.md, ignore CLAUDE.local.md instead#2

Merged
brujoand merged 1 commit into
masterfrom
chore/claude-md
Jul 10, 2026
Merged

docs: track CLAUDE.md, ignore CLAUDE.local.md instead#2
brujoand merged 1 commit into
masterfrom
chore/claude-md

Conversation

@brujoand-agent

Copy link
Copy Markdown
Contributor

.gitignore listed CLAUDE.md, which blocks the shared file rather than the personal one.

Claude Code already separates the two: CLAUDE.md is tracked project memory that everyone (and every agent) reads, while CLAUDE.local.md is the personal, untracked variant. Ignoring CLAUDE.md conflates them. This swaps the ignore to CLAUDE.local.md and commits a real CLAUDE.md, so scratch notes stay private and the shared context is reviewable.

The file

# <repo>## Hard rules## Workflow## Architecture## Commands## Gotchas. Everything above ## Commands is loaded unconditionally into context, so it is kept short and ordered cheapest-first.

Gotchas worth having written down: the 17 vim-plugin submodules under nvim/bundle/ all use git@github.com: SSH URLs, so git submodule update --init needs working SSH; and the README points at bin/install_dotfiles.sh while the tracked file is install_dotfiles.bash.

pre-commit run --files CLAUDE.md .gitignore passes.

.gitignore listed CLAUDE.md, which blocks the shared, tracked file rather than
the personal one. CLAUDE.local.md is the untracked variant, so swap the ignore
and commit a real CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@brujoand brujoand merged commit 8ca33af into master Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant