Claude Code now reads AGENTS.md if there is no Claude.md

code.claude.com

651 points by datadrivenangel 12 hours ago


perganomoly - 7 hours ago

The fact that it took this long to add such a basic feature is a disgrace. I’m not even remotely satisfied. Bailed on Claude ages ago. Rolling Codex, Gemini, and Qwen3.8 30B. The only way I’m going back to Anthropic is if they drop and Culture Series mind.

stillpointlab - 12 hours ago

I recently had Claude Fable set up a new project for me and I pointed it at some existing projects to use as a guide on how I like to structure things. It created, unprompted, an AGENTS.md file and a CLAUDE.md symlink to AGENTS.md

I didn't even have that symlink in any other project - it just did it. I think it saw that one of the projects I already had was set up by Codex and that project had an AGENTS.md so perhaps it inferred that I was using both Claude and Codex, so it was politely covering both? Or maybe a recent change made this behavior default?

I was surprised and I hope they continue to seek standards.

clutter55561 - 12 hours ago

Don’t get too excited, Claude code still won’t detect skills on .agents/skills.

throwaw12 - 12 hours ago

Remember they didn't do this because they wanted to help community, they did it because community was angry and they were losing users to other harnesses.

Doesn't look like Anthropic care about dev community

rukuu001 - 11 hours ago

Once I asked, puckishly, Claude Code to “follow the instructions in this directory” when there was only an AGENTS.md there.

In the manner of someone finding a dead mouse and holding it up for examination CC said it could find no instructions but perhaps it should check this AGENTS.md file.

pasteleft - 2 hours ago

BTW if you hate these Antrophic moments but still want to use CC, you can patch it: https://github.com/Piebald-AI/tweakcc

bryanhogan - 5 hours ago

What worked well previously was to have the Claude.md file contain just "@AGENTS.md".

But this is a good change.

The world of managing skills between providers still feels messy though.

boorang - 3 hours ago

Claude Code wraps both the AGENTS.md and CLAUDE.md in a system-reminder with this disclaimer at the bottom:

IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.

Codex follows the AGENTS.md far better. CC seems to have nudged people away from taking the CLAUDE.md as mandatory instructions.

This bug was closed Not Planned and from a recent analysis of the system prompt the behavior is still there even with the new inclusion of AGENTS.md.

https://github.com/anthropics/claude-code/issues/18560

albatross79 - 6 hours ago

CC is such a bloated POS by this point that only full on AGI could have implemented this feature. Congrats guys. Maybe with Super Intelligence they will be able to make it actually respect the instructions in there too.

chr15m - 9 hours ago

This is simply the obvious, non-stupid thing to do, like Apple switching to USB-C.

budoso - 11 hours ago

This just be a recession indicator

jtbaker - 11 hours ago

LOL https://thenewstack.io/shopify-claude-code-agentsmd/

> “I’m thinking about banning Claude Code at Shopify until they change their mind and read AGENTS.md and .agents/skills etc.,” Lütke posted Tuesday on X.

TomGarden - 12 hours ago

Caught myself about to praise this, but it's the absolute bare minimum.

Time to delete the symlinks

mitchitized - 11 hours ago

Claude also checks your settings.json first, and if it sees a default there it then prefers that over anything in CLAUDE.md. This is particularly nefarious as they ship logic to presume a default if a setting is not there in settings.json, even if there are instructions in CLAUDE.md for exactly that.

For instance, say you added "do not add 'Made with Claude Code' in any issues, pull requests or wiki entries" in your CLAUDE.md. So far, so good.

Well the latest update now looks for something in your settings.json. Since you don't know about it, it is not set. Claude then says "not explicitly set, so now it is true by default". It completely ignores your CLAUDE.md.

Wait, what?

You shouldn't be shipping logic that arbitrarily redefines the behavior of the program, especially if your new logic actually ignores your own configuration or directives.

sscaryterry - 12 hours ago

Still can't read what their models vomit at me.

seaal - 12 hours ago

The madlads finally did it, now if only I could use my Claude sub in other harnesses without risking getting banned.

victor9000 - 2 hours ago

The fact that something like this is so widely celebrated shows just how user hostile anthropic has become.

cjonas - 9 hours ago

Meanwhile, I just setup codex for the first time (to try Astra) and it offered to load my Claude and Cursor conversations and claims to even do it in a way where it says in sync if you use both. The only reason to use Claude Code is the 20x usage of the 200$ plan is ridiculous value if you have the need for that volume.

bcorigliano - 10 hours ago

Finalllyyyy!! We need industry wide standards. I come from the 3d industry and oh god changing softwares and adapting to different hotkeys it's a pain. I have always thought every industry should be standardized for the sake of the users.

pampas - 3 hours ago

I wonder if Anthropic's vending machine only serves customers wearing a Claude™ branded hat.

askonomm - 12 hours ago

Finally doing something standards-compliant instead of forcing users into a proprietary workflow.

dinga - 12 hours ago

My claude.md:

# CLAUDE.md

This project uses `AGENTS.md` as its agent instruction file (kept provider-agnostic). Treat any `AGENTS.md` file exactly as you would a `CLAUDE.md` file — at the root level and in any subdirectory you are working in.

@AGENTS.md

mococa - 11 hours ago

This is not a news to celebrate, they must follow standards

marcelo-earth - 9 hours ago

Oh, finally! Time to delete symlinks

That said, AGENTS.md doesn't seem like a good name, right?, technically, it's an instructions file read by a single agent, not necessarily for agents, so it always struck me as a bit odd

But until the next standardization, keeping just AGENTS.md is the best approach.

orlp - 11 hours ago

I wonder when they'll finally fix the VS Code plugin to not constantly dump your current file into the context.

- 9 hours ago
[deleted]
aroman - 12 hours ago

Finally, I can delete `sync-agent-docs.sh`, which recursively symlinked AGENTS.md to GEMINI.md and CLAUDE.md...

Bluestein - 11 hours ago

AGENTS.md is the new autoexec.bat.-

neverrroot - 12 hours ago

Thanks guys, you did the right thing.

getnormality - 9 hours ago

I gotta hand it to programmers (or whatever we call ourselves now) for sticking to principle on something this trivial.

It was either this or Claude had to become a generic term like sheetrock.

winwang - 9 hours ago

Gotta say, it is hilarious that this is the current top HN post. I feel like it's gotta say something about our current AI zeitgeist, that there is such vigorous attention on a seemingly-minor change. Feels like something is on the tip of my tongue but I can't name it at the moment.

If anyone wants to write/link a much better-thought-out post, I'm all ears!

laluneodyssee - 10 hours ago

Just to touch on the wording of "in a project with no CLAUDE.md" does that mean user-level ~/AGENTS.md or ~/.agents/AGENTS.md isnt supported?

getpokedagain - 11 hours ago

Wow..... Progress and technical innovation right here!!!

anukin - 12 hours ago

Thank you Tobi Lutke.

osr00 - 9 hours ago

Better late than never... Now it's time for Claude Code to load skills from .agents/skills!

mrkpdl - 10 hours ago

Wild that it didn’t already do this

datadrivenangel - 12 hours ago

This allows us to remove our one line Claude.md files that just say "AGENTS.MD"

- 12 hours ago
[deleted]
vindex10 - 12 hours ago

First feature to borrow after peaking into openai repos? ))

jampekka - 10 hours ago

Commoditization commoditizes commodities.

stbenjam - 6 hours ago

Everyone sharing the 513 ways you can already do this is entirely missing the point. Standards matter and there's very few things in the AI world everyone agrees on and this is one of them. .agents/skills is another and anthropic is still holding out there.

egorfine - 11 hours ago

Hell froze over?

orliesaurus - 11 hours ago

finally! Now this might sound sorta off-topic but i really wonder how people feel about skills.md, skill.md, skills.sh domains...

the fact that they're owned by different companies (ok vercel is a little less random) still leaves me with a sour taste in my mouth when thinking about the fact that they should all point to 1 place about how to create and find skills for ai agents?!

csomar - 10 hours ago

Before anyone even contemplates if Anthropic has any good intentions, remember, this is how petty and small minded they are.

Truly the last people you want with this kind of power.

swozey - 5 hours ago

Anyone have a good guide on properly setting up/optimizing local llm stuff like this?

I've been using omlx and qwen for almost a year but have bounced around clients a bunch, and it seemed like everything was specific to claudes style of config layout, so I've been putting all of my skills/agents/md files in my ~/.claude as a catchall for bouncing between pi.dev/claude/vscode/etc. and just seeing what happens. I really haven't used claude itself much so reasonable but I didn't know it didn't look at AGENTS.md, for instance. Also using some memory/kb system that puts $myKB.md in directories to pre-fill context by project/workspace.

I'm currently using oh-my-pi but in the quest for optimization and token trying to get better than 30t/s on my m1 max 64gb (qwen3.6-a35b) I probably need to spend some time just making pi base into what I need and not the opinionated omp setup I have that probably makes the initial context larger than it should be.

I'm between work and can't afford the $100+ frontiers but it does get really frustrating spending hours/days tweaking this stuff to almost no benefit sometimes. When I do get to use a frontier it's such a nice break from fixing things. The local llm stuff can definitely be a bit frustrating right now and zap the energy I have for work out of me when it goes awry.

bakugo - 11 hours ago

Forcing their own proprietary filename was clearly a business decision (it's free advertising, along with commit co-authorship). I wonder what made them go back on it.

moecables - 11 hours ago

great, one less step for me.

I was using my claude.md file as a pointer to my agents.md file

SrslyJosh - 11 hours ago

Truly incredible innovation.

cmrdporcupine - 12 hours ago

Only took them a year and a half of everyone complaining to finally do the right thing.

Congrats.

- 11 hours ago
[deleted]
Art9681 - 11 hours ago

Great. Now if they could support the `~/.agents/skills` path next like everyone else does that would be even better.

zaps - 9 hours ago

Thank Christ

Havoc - 11 hours ago

Sanity prevails

hbarka - 12 hours ago

Great, now I have to redo my scaffold harness. I guess this agent.md awareness is part of the system prompt?

a3w - 11 hours ago

Can it read copilot.md if neither of the other files are present? Also: agents should be the standard, or we need to invoke the XKCD for "one more standard to rule them all"?

uptownhr - 10 hours ago

didn't it always read it?

skeptic_ai - 9 hours ago

I just wiped all agents and it’s always readme.md

aussieguy1234 - 9 hours ago

So far I've been managing this with a symlink.

Same with skills, symlink to skills at .claude/skills

davidkunz - 11 hours ago

Great, now please standardize the skills folder and the MCP config.

armcat - 12 hours ago

About time!

yieldcrv - 11 hours ago

Hi, September 2026, meet September 2025

Madmallard - 12 hours ago

Still don't understand the point of the markdown files.

Isn't it literally all just more text you're adding to the prompt. How can you even be sure it isn't just clouding context with nonsense for whatever you're asking for?

- 12 hours ago
[deleted]
blueaquilae - 12 hours ago

Forced to do something for the users...

kislakiruben - 11 hours ago

why did it take so long?

alansaber - 11 hours ago

Ah yes, the peak of technology.

snvzz - 6 hours ago

Finally.

Now is the time to git mv CLAUDE.md AGENTS.md.

krferriter - 10 hours ago

Now do skills

rvz - 12 hours ago

A reminder that needs to be said: Don't use a closed-source harness.

Why? This is why. [0]

[0] https://news.ycombinator.com/item?id=49750694

zjy365 - 2 hours ago

[flagged]

aitoolcrux - 7 hours ago

[flagged]

themuskgpt2025 - an hour ago

[dead]

kevinbaiv - 11 hours ago

[flagged]

075326899532 - 12 hours ago

[dead]

lightbendover - 12 hours ago

[dead]

core_stream - 11 hours ago

[dead]

huflungdung - 10 hours ago

[dead]

nunodonato - 12 hours ago

yay! /s

Why are people still putting up with this kind of attitude, especially when there are so many good alternatives available?

aydb - 12 hours ago

[flagged]

nullbio - 6 hours ago

People still use Claude?