Skip to content

Trim ~/CODE/CLAUDE.md to cross-project conventions - #26

Merged
DROOdotFOO merged 1 commit into
mainfrom
trim-code-claude
Oct 13, 2026
Merged

DROOdotFOO merged 1 commit into
mainfrom
trim-code-claude

Conversation

@DROOdotFOO

Copy link
Copy Markdown
Owner

Summary

  • ~/CODE/CLAUDE.md is loaded by Claude Code for every project under ~/CODE, stacked with the global and per-project files (it does not override them, as the old header claimed)
  • Drop the language-detection table and the per-language/infra command sections: they duplicate the global ~/.claude/CLAUDE.md and project files, and cost context on every turn in every repo
  • Keep only cross-project rules: commits + branch workflow, PRs, change scope, testing, error handling, secrets
  • 112 -> 46 lines

Manual testing

  • chezmoi apply ~/CODE/CLAUDE.md (answer yes to the "changed since last written" prompt; the file had been deleted on disk)
  • chezmoi verify passes

@DROOdotFOO
DROOdotFOO merged commit 3787025 into main Oct 13, 2026
5 checks passed
@DROOdotFOO
DROOdotFOO deleted the trim-code-claude branch October 13, 2026 19:24
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