claude-md: evaluate every addition; add scope + nested-md destinations (0.11.0)#4
Merged
Merged
Conversation
…s (0.11.0) Refines the curator/audit per the official memory docs. - curator hook: prevention now fires on EVERY net addition (CLAUDE_MD_ADD_LINES default 1, was 10) — a 2-line paste can be misplaced too. The nudge checks the new content on two axes: KIND (directive / reference→skill / area-specific→ nested CLAUDE.md|.claude/rules) and SCOPE (team→project / personal→~/.claude / secret-or-local→CLAUDE.local.md). Pure tweaks (net-0) stay silent; full audit still gated to >budget. - /claude-md-audit: triage destinations are now keep / condense / extract-to- skill / move-to-nested-CLAUDE.md (+ .claude/rules) / re-scope / archive / remove, plus a Scope lens. Notes that @import is eager (don't split with it) and that HTML comments are stripped from context. - Confirmed against docs: nested CLAUDE.md loads on-demand; @import eager; .claude/rules path-scoping; the scope hierarchy. AGENTS.md note added (Claude reads it only via @import/symlink). - Tests updated for every-addition behavior (15 cases); version 0.10.0 -> 0.11.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6pwpBdoug4tJRxxVrNNeL
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.
Refines the v0.10.0 curator/audit per the official Claude Code memory docs and Megan's two refinements.
Curator hook
CLAUDE_MD_ADD_LINESdefault 1, was 10) — a 2-line paste can be misplaced reference just as easily as a big block.CLAUDE.mdor.claude/rules)CLAUDE.md) / personal (→~/.claude/CLAUDE.md) / sandbox-URL·test-data·secret (→CLAUDE.local.md, gitignored)/claude-md-audit.claude/rules) / re-scope / archive / remove, plus a Scope evaluation lens (flags personal prefs or secrets sitting in the shared file).@importis eager (don't split with it) and that<!-- HTML comments -->are stripped from context.Confirmed against the docs
Nested
CLAUDE.mdloads on-demand;@importis eager;.claude/rules/path-scoping; the managed/user/project/local scope hierarchy. Added an AGENTS.md note (Claude reads it only via@import/symlink).Verification
claude-md-curator15/15 (every-addition, scope axis, net-0 silence, budget+debounce, target scoping, fail-safes).claude plugin validatepasses.🤖 Generated with Claude Code