Skip to content

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

Merged
BornToBeRoot merged 1 commit into
BornToBeRoot:mainfrom
tgarver-gdm:claude-md-import-agents
Nov 7, 2026
Merged

BornToBeRoot merged 1 commit into
BornToBeRoot:mainfrom
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:

See AGENTS.md for project guidelines and conventions.

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).

@mergify

mergify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@tgarver-gdm
tgarver-gdm force-pushed the claude-md-import-agents branch from 72b6797 to 3077705 Compare November 7, 2026 05:57
@BornToBeRoot

Copy link
Copy Markdown
Owner

Thanks!

@BornToBeRoot
BornToBeRoot merged commit 9d06548 into BornToBeRoot:main Nov 7, 2026
3 checks passed
@BornToBeRoot BornToBeRoot added this to the next-release milestone Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants