Skip to content

Import AGENTS.md from CLAUDE.md so Claude Code loads it - #2616

Merged
hiyuki merged 4 commits into
didi:masterfrom
tgarver-gdm:claude-md-import-agents
Nov 11, 2026
Merged

hiyuki merged 4 commits into
didi:masterfrom
tgarver-gdm:claude-md-import-agents

Conversation

@tgarver-gdm

@tgarver-gdm tgarver-gdm commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

CLAUDE.md currently says:

参考AGENTS.md

Claude Code doesn't follow that on its own, so a session starts with just this line unless Claude decides to open AGENTS.md. Newer versions of Claude Code read AGENTS.md by themselves, but only when there's no CLAUDE.md, so this file also stops that.

Writing the reference as @AGENTS.md makes Claude Code import the file at session start on every version. It's the fix the Claude Code docs give for this setup: https://code.claude.com/docs/en/memory#remove-an-earlier-agents-md-workaround

The rest of the wording is unchanged.

I noticed this while going through the agent files in popular repos (data: https://github.com/GDM-Digital-Media-Group/claude-md-study).

@tgarver-gdm
tgarver-gdm force-pushed the claude-md-import-agents branch from 1c4b844 to c7c4204 Compare November 7, 2026 05:58
@hiyuki
hiyuki merged commit 8719a92 into didi:master Nov 11, 2026
3 checks passed
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.

2 participants