feat: track both entry files in the repo

~/.claude/CLAUDE.md was in no git repo despite heavy editing, and
~/.codex/AGENTS.md was a hand-synced duplicate of it. Both now live in
entry/ and import the shared fragments; RTK.md moves to claude-md/ so
Codex stops carrying its own copy.

Claude's imports are ~/-anchored so they resolve through the symlink.

Also drops kt from the comment rule scope.
This commit is contained in:
naps62
2026-08-01 15:02:28 +00:00
parent 9023ed3ef9
commit 60f39cdcbb
8 changed files with 97 additions and 5 deletions
+5 -2
View File
@@ -64,9 +64,12 @@ done
link "$REPO/claude-md/code-comments.md" "$CLAUDE_RULES/code-comments.md"
rm -f "$CLAUDE_HOME/code-comments.md" "$HOME/.agents/AGENTS.md"
# Codex reads ~/.codex/AGENTS.md and supports @path imports, same as CLAUDE.md,
# so both tools import the identical fragments — no copy, no drift.
# Entry files: machine-local sections plus @imports of the shared fragments.
# Codex supports @path the same as CLAUDE.md, so neither tool needs a copy.
mkdir -p "$CODEX_HOME"
link "$REPO/entry/CLAUDE.md" "$CLAUDE_HOME/CLAUDE.md"
link "$REPO/entry/codex-AGENTS.md" "$CODEX_HOME/AGENTS.md"
rm -f "$CODEX_HOME/RTK.md"
echo "done."
echo "hooks still need wiring in ~/.claude/settings.json — see hooks/README.md"