When CLAUDE.md lives in a subdirectory (e.g. .claude/CLAUDE.md), the @AGENTS.md import must use ../AGENTS.md since Claude Code resolves @path relative to the file's directory. Calculate depth automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>