Add .claude/CLAUDE.md so Claude Code loads AGENTS.md - #461
Conversation
Claude Code reads CLAUDE.md, not AGENTS.md, so this repo's AGENTS.md guidance was invisible to it while Codex and Cursor read it fine. The bridge lives at .claude/CLAUDE.md and imports @../AGENTS.md, keeping the repository root uncluttered. Content stays in AGENTS.md; this file only points at it.
There was a problem hiding this comment.
Pull request overview
Adds a .claude/CLAUDE.md bridge file so Claude Code loads the repository’s existing agent guidance from AGENTS.md via a column-zero @ import, without introducing duplicate guidance content.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Changes:
- Add
.claude/CLAUDE.mdcontaining@../AGENTS.mdto import startup context for Claude Code.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Q: Have you considered using symlink or hardlink? It'd work the same with improved semantics. |
|
Symlinks do work — Claude Code follows a tracked The import was chosen for two reasons. A root symlink puts a Hardlinks are the one option that genuinely doesn't work. Git doesn't record link structure, so it would store two independent blobs — on clone you'd get two separate files that drift apart the moment |
What: adds a bridge at
.claude/CLAUDE.mdcontaining exactly@../AGENTS.md. All contentstays in
AGENTS.md; this file only imports it. The hidden location is deliberate — it keeps therepository root uncluttered — which is why the import path is
../AGENTS.md.Why it's needed: Claude Code assembles its startup context from
CLAUDE.md, notAGENTS.md(docs). Only a column-zero
@import — or atracked
CLAUDE.mdsymlink — expandsAGENTS.mdinto that context. Codex and Cursor readAGENTS.mddirectly, so today this repo's guidance reaches them and not Claude Code.Verified after commit:
Checked against
mainat ec5f320.