Use CLAUDE.local.md instead of CLAUDE.md for Claude Code project context#78
Open
rickalee wants to merge 1 commit into
Open
Use CLAUDE.local.md instead of CLAUDE.md for Claude Code project context#78rickalee wants to merge 1 commit into
rickalee wants to merge 1 commit into
Conversation
Claude Code's CLAUDE.local.md is the correct home for machine-specific, uncommitted project context — it sits alongside a committed CLAUDE.md without interfering with it. This change updates the claude agent target to write there instead, and adds a one-time migration that strips any existing Agent Tools marker block from CLAUDE.md on the next enable or regenerate. Fixes 10up#77
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #77
Summary
CLAUDE.local.mdinstead ofCLAUDE.md.gitignoreentry fromCLAUDE.mdtoCLAUDE.local.mdmigrateClaude) that removes any existing Agent Tools marker block fromCLAUDE.mdon the next enable or regenerate — leaving the rest of the file intactWhy
CLAUDE.local.mdis Claude Code's native file for machine-specific, uncommitted project context. It loads automatically alongsideCLAUDE.mdwithout interfering with it. Writing toCLAUDE.mdcauses friction for teams that have a committedCLAUDE.mdwith shared project instructions — either the add-on appends to it (requiring a gitignored workaround) or users reach forgit update-index --skip-worktree.Test plan
CLAUDE.md→ context appears inCLAUDE.local.md, notCLAUDE.mdCLAUDE.md→CLAUDE.mdis not modifiedCLAUDE.mdwith marker block → block is removed fromCLAUDE.mdand written toCLAUDE.local.mdCLAUDE.local.mdis cleaned up;CLAUDE.mdunchanged🤖 Generated with Claude Code