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:
+5
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user