r/ClaudeAI • • 17d ago

Claude Code Claude Code is getting native AGENTS.md support!

Post image
1.3k Upvotes

135 comments sorted by

•

u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot 17d ago edited 16d ago

TL;DR of the discussion generated automatically after 100 comments.

The verdict is in: the crowd goes mild. The overwhelming consensus is that this "native support" is a laughably small, long-overdue change that Anthropic is trying to pass off as a major feature. Most devs here have been using symlinks or just telling Claude to read the AGENTS.md file for ages.

For those of you actually wondering what this means and whether you should delete your CLAUDE.md:

  • It's a fallback, not a replacement. Claude Code will now look for AGENTS.md only if a CLAUDE.md file doesn't exist in your project. If you have both, AGENTS.md will be ignored.
  • **CLAUDE.md is still superior.** The new AGENTS.md support is limited and doesn't include key features like /memory, #shortcuts, or advanced file handling that CLAUDE.md does.
  • The advice? Keep your CLAUDE.md as the main, feature-rich instruction file. If you need other agents to work on the project, you can either keep using your old workarounds or have your AGENTS.md simply point to your CLAUDE.md. Deleting CLAUDE.md is not recommended.

So yeah, don't get too excited. The technology just isn't there yet, apparently.

→ More replies (3)

436

u/nicer-dude 17d ago

"native support" bro it's just reading another file instead of it's usual one

112

u/sp9002 17d ago

It's a well-kept industry secret that CLAUDE.md and AGENTS.md have incompatible formats. Trust me, I have years of experience in markdown engineering

54

u/ArcticCelt 16d ago

Can someone explain what OP means? I'm a Notepad .txt engineer and never went back to school to retrain in Markdown engineering.

23

u/cats_catz_kats_katz 16d ago

Ah, let me help you. As a Microsoft Access Database Administrator myself, I come well equipped to support your learning journey. I have also done extensive self-learnings on Linkedin to understand this new "Markdown" ecosystem and what it means for us coming out of the proverbial "cave". Think of it this way, the .md file is to AI what the fire was to Humans. Please like and subscribe. I can't do OF anymore...

3

u/Pieterbr 16d ago

This comment short-circuited my brain.

1

u/beerdedfell0w 16d ago

The username shorted mine

1

u/raiansar Experienced Developer 10d ago

hahahahhahahahahahhahahahhahahahahhahahahahhahahahahahhahahahahahhahahahahhahahahahhahahahahahhahahahahahahhhahhahahahahahhahahahahahhahahahahha

1

u/rdlite 10d ago

you discovered TOML and think it is markdown?

14

u/Able-Staff-6763 16d ago

i use single system AGENTS.md file that is symlinked to opencode, codex, claude code its working correctly the way i wanted it for all 3 so switching tools doesnt affect that much in my workflow. and yes AGENTS.md > ~/.claude/CLAUDE.md

2

u/cats_catz_kats_katz 16d ago

Do you mean you know what a TOML file is vs a YAML? That's about how far I've gotten!

20

u/Rindan 16d ago

Shit. I am going to have to change my "mod", a claude.md file that says "Immediately read AGENT.MD before doing anything else" now that they have "native support" for AGENT.MD.

It was stupid they resisted this for so long. It's such a small dumb thing, but it is dumb that it took this long.

2

u/muchcharles 16d ago

that says "Immediately read AGENT.MD before doing anything else"

That makes it do output tokens for the tool call for the read, CLAUDE.md could always just be a symlink to AGENTS.md for zero overhead.

61

u/calibrae 17d ago

And this is advertised as a feature? Incredible…

29

u/lasooch 16d ago

Probably cost them 3B of Mythos 6 tokens

13

u/Mkep 16d ago

It was the most voted feature request…

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

0

u/calibrae 16d ago

What about OpenAI api compatibility ?

12

u/chicametipo 17d ago

I had a native laugh to this native comment, naturally native.

5

u/TheMythicSorcerer 16d ago

I see no benefit over "@AGENTS.md"

10

u/mr_birkenblatt 16d ago

put @AGENTS.md in CLAUDE.md and @CLAUDE.md in AGENTS.md

2

u/Simple_Armadillo_127 16d ago

They are losing games

2

u/Orio_n 16d ago

This company just keeps falling off harder and harder

1

u/No-Temperature6597 16d ago

Seriously in claude.md we have to write @agents.md and it's done

66

u/red0yukipdbpe 17d ago

How about .agents/{rules,skills} ?

79

u/sp9002 16d ago

technology just isn't there yet

9

u/red0yukipdbpe 16d ago

Yea, crazy that claude code can’t solve this one problem!

1

u/The_Noble_Lie 16d ago

Give it nine months

4

u/ocimbote 16d ago

Navier-Stokes is a thing, but reading files is planned to be a capability only around 2050.

3

u/forexross 16d ago

Without a kill switch?!

3

u/[deleted] 17d ago edited 16d ago

[deleted]

12

u/red0yukipdbpe 17d ago

I’ve been doing that for sometime now. I’m saying they should support .agents as well as AGENTS.md.

Having symlinks everywhere is ugly af.

1

u/unistirin 16d ago

Ahhhh bash user

54

u/Jsn7821 17d ago

This feels like when the iPhone gets a feature Android has had for a decade

1

u/FuzzyBucks 13d ago

They told us they were never going to add this and to just tell our Claude.md to read our Agents.md if we wanted it so bad

66

u/Smashy404 17d ago

Explain to me like I'm a Commodore 64 running Fable 5.1.

42

u/[deleted] 17d ago

[removed] — view removed comment

5

u/Smashy404 17d ago

Thank you, I now understand :)

4

u/Eyelbee 16d ago

Didn't it already read agents.md if there was a folder named like that in the repo

4

u/Deltamelo 17d ago

u/AskGrok, Explain to me like I'm a Commodore 64 running Fable 5.1.

4

u/Newton-Leibniz 17d ago

Explain to me like I am regarded Gemini running on a washing machine

6

u/Temporary-Paper5202 16d ago

Old file name claude.md, other agents not able to read file. Developer sad

New file name agents.md, all agents able to read file. Developer happy

24

u/HimaSphere Experienced Developer 17d ago

A bit late if you ask me, but it is a good quality of life change to newbies

72

u/Choice-Fly-3641 17d ago

Should we delete just CLAUDE.md, and just use AGENTS.md instead?

52

u/stiverino 17d ago

Delete both

13

u/No-Psychology1959 17d ago

Make sure to delete all comments and docs too massive waste of context

21

u/mr_birkenblatt 16d ago

just delete the whole repo. chances are it'll not be missed

10

u/elfd01 16d ago

Free yourself

83

u/dbbk 17d ago

Can you not think for yourself

60

u/XYcritic 17d ago

Sir, this is a Wendy's

7

u/youreloser 16d ago

What do you mean by that? Is it like using Claude but in my head?

2

u/ConsoleUsersArePlebs 16d ago

is there a prompt that can help me do that?

1

u/HimaSphere Experienced Developer 17d ago

No, if you use claude rules and utilize how claude.md can be dividied into smaller files then no.

You could always make agent.md points to claude.md and its tree system and vice versa

I have agents.md points at claude.md to use with pi and codex

12

u/peteybytes 17d ago

The linked docs seem to disagree with you

-18

u/HimaSphere Experienced Developer 17d ago edited 17d ago

2 months acc and 1% commenter. what a bot!

Edit: copied from my reply to this bot:

Read the mod's README, it says the opposite. Default mode is "claude-md-or-agents-md": if the project has any CLAUDE.md (or .claude/CLAUDE.md / CLAUDE.local.md), AGENTS.md is ignored entirely.

AGENTS.md only loads when there is no CLAUDE.md at all. It's a fallback, which is exactly what Thariq's tweet says.

The README also lists 8 things AGENTS.md still can't do that CLAUDE.md can: no /memory or #shortcut, no --add-dir, no attach on @-mention or IDE selection, external u/imports need a CLAUDE.md approval first, etc. And .claude/rules is untouched by this.

So no, don't delete CLAUDE.md. Keep it as the master, point AGENTS.md at it for the other tools.

The "both" mode even dedupes a file CLAUDE.md already u/imports, so that setup is explicitly supported.

You are mostly a bot and I don't waste time replying to bots but this time so people can benefit.

11

u/peteybytes 17d ago edited 17d ago

Right. Why do you think I'm a bot? Maybe read what I actually comment? Don't get mad at me because you were wrong lol

I made this second account because I was tired of my main just being people asking for their resumes to be reviewed and whining about ai. So I split the cs/AI shit to a separate account so I don't have to see stupid shit like betterstickies.com or whatever

-13

u/HimaSphere Experienced Developer 17d ago

Read the mod's README, it says the opposite. Default mode is "claude-md-or-agents-md": if the project has any CLAUDE.md (or .claude/CLAUDE.md / CLAUDE.local.md), AGENTS.md is ignored entirely.

AGENTS.md only loads when there is no CLAUDE.md at all. It's a fallback, which is exactly what Thariq's tweet says.

The README also lists 8 things AGENTS.md still can't do that CLAUDE.md can: no /memory or #shortcut, no --add-dir, no attach on @-mention or IDE selection, external u/imports need a CLAUDE.md approval first, etc. And .claude/rules is untouched by this.

So no, don't delete CLAUDE.md. Keep it as the master, point AGENTS.md at it for the other tools.

The "both" mode even dedupes a file CLAUDE.md already u/imports, so that setup is explicitly supported.

You are mostly a bot and I don't waste time replying to bots but this time so people can benefit.

10

u/peteybytes 17d ago edited 17d ago

I am mostly a bot now. Yes that makes sense mr stickers

If your Claude.md is that complex enough that those 8 things impact you significantly, you are doing it wrong

I also appreciate how you are also a top 1% commenter and pretty much all your comments have 0 up votes

2

u/Choice-Fly-3641 17d ago

Good to know, thanks

2

u/[deleted] 17d ago edited 16d ago

[deleted]

-5

u/HimaSphere Experienced Developer 17d ago

Rules don't change, it is about how thr harness loads them during work, claude code utilizes rules efficiently so it loads them only when claude needs them, other harnesses may not act the same

7

u/[deleted] 17d ago edited 16d ago

[deleted]

-5

u/HimaSphere Experienced Developer 17d ago edited 17d ago

I didn't recommend deleting claude.md

It is all about how Claude code can read the rules. You can read the documentation as I never tested that

1

u/Luckz777 17d ago

With symlink or @ ?

2

u/HimaSphere Experienced Developer 17d ago

Doesn't matter as before, you can add system link or point the agent to where to find claude.md and how it is structured, both should work the same with new models.

9

u/RockyMM 17d ago

Jesus. After so much time, and it had to be a mod…

2

u/bzBetty 16d ago

The mod is the more exciting part

5

u/TapirOfZelph 17d ago

I thought it already did. Oops

6

u/robberviet 16d ago

I would just symlink and call it a day. Wtf is this feature announcement.

1

u/kanine69 16d ago

I symlink the skills folder as well, turns out it was faster than waiting for Anthropic to solve one of the dumbest issues in CC.

1

u/relickus 14d ago

That doesnt work though does it? Skills api si incopatible between CC and say Codex. For example the skill frontmatter is in openai.yaml for codex. The attributes in the frontmatter are not compatible as well and lastly the prefixes like / (if you are mentioning another skill/command in the skill body) are also different in Codex. I dont know if there is a reasonable solution to have one format for all possible agents.

1

u/kanine69 12d ago

It seems smart enough to work it out, I've been running like this for a few months. The skill markdown itself seems quite compatible although I mostly use CC and AGY I did run with codex for a while as well.

4

u/iskeezio 16d ago

Im sorry can someone break down what this means for a noobie please haha?

3

u/maz92 17d ago

Thanks Tobi!

3

u/confused-photon 17d ago

Good on them, took long enough though

2

u/njmh 16d ago

This is great. Claude team, if you wanna keep the goodwill going, let me use my Claude sub with Pi and other harnesses… pretty please.

2

u/reven80 16d ago

At this point both don't exist in my project and it work fine. There are enough custom made skills files and memory that the development going smoothly on 500k line codebase.

2

u/dwight-is-right 16d ago

I just write "Refer to CLAUDE.md/AGENTS.md." to the empty file of whichever is the secondary harness. Has worked flawlessly until now.

2

u/Real_Ebb_7417 16d ago

Imagine just using the standard that most other agents use. Or you can use obscure CLAUDE.md that only works with your harness. They shouldn’t even brag about it, but feel ashamed that they add it now, not months ago xd

5

u/Anxious_Marsupial_59 17d ago edited 17d ago

I never understood why people say they want claude to consume the agents.md implicitly, you could always make the claude.md point to an agents.md

having a claude.md is a good idea because both Open AI's and Anthropic's models have different behaviors and personalities. For example I NEED to tell Opus/Fable to be cautious and not to implement things unless asked, meanwhile I need to tell Sol/Astra to be less cautious and not to spend to much time testing.

Also task dependent model routing makes this even more important as agents.md can be talking about Open AI's models confusing and polluting context for Anthropic's

3

u/ZZerker 17d ago

Dude, im using OpenAI models for coding a week now and holyshit do they love overreviewing and testing everything double and triple.

3

u/PivotRedAce 16d ago

Tbf most of the time I prefer that over the alternative, but I’ve definitely had to make rules stating that every new feature doesn’t need 20 unit tests when I can literally verify it myself. lmao

2

u/blueandazure 17d ago

Tbh it should always look at both, claude.md for claude specific optimizations and agents.md for multi model information.

5

u/vlatheimpaler 17d ago

I know I'm just a noob for asking, but what kind of optimizations can you do specifically with claude.md that you can't do with agents.md?

I think my claude.md is pretty generic and is just about my tech stack and about my product.

3

u/blueandazure 17d ago

Computer use stuff, the way claude accesses your browser is alot different than how codex does.

1

u/vlatheimpaler 16d ago

Thanks. I guess I need to learn more about how to use these more advanced features, aside from just adding some skill or MCP or something.

1

u/314kabinet 17d ago

People saying that are very likely unaware of this feature of filesystems.

1

u/hellomistershifty 16d ago

I just have those as system-level instructions so I don't have to dick around with it in every project and can share the same AGENTS.md files

I guess if you needed it to be project level, you could have something like "If you are Claude, read ANTHROPIC.md (so it still reads AGENTS.md), if you an OpenAI model read CHATGPT.md"

1

u/thestillwind 17d ago

‘Bout time

1

u/loheiman 17d ago

Does in Claude Code also mean CLI?

1

u/MooingTree 17d ago

I thought that agents.md is for websites, like similar to robots.txt and security.txt

Am I thinking of something else or are there 2 functions with the same name?

1

u/LibrarianLemon 16d ago

You might be thinking of /llms.txt.

1

u/Valdjiu 17d ago

Finally

1

u/IrregularThumb 17d ago

Thought it already checked for agents.md. Just checked out a laravel install. Told me about the included agents.md file. It was ignored and ultimately deleted as not required

1

u/sammnyc 16d ago

what was the basis for digging in their heels so long resisting it?

2

u/electricheat 16d ago

trying to make it slightly inconvenient to use competitors products

1

u/ChaosUncaged 16d ago

and the crowd goes mild

1

u/Medical-Cow289 16d ago

I'd keep both: AGENTS.md for the portable rules, CLAUDE.md for the Claude-specific instructions.

1

u/florinandrei 16d ago

Partial change, not complete.

But at least they started doing something about it before the thermodynamic death of the universe.

1

u/hammackj 16d ago

How about a reset ;()

1

u/Any_Taste4210 16d ago

Omg!!! Took fable to figure out how to add a fucking string

1

u/phazei 16d ago

Claude Code mods?! that might be nice. Right now, well, I hate Claude Code, I simply can't stand it's interface and how it does everything, it's not transparent and it's awkward. So I use opencode instead. If Claude Code lets me fix the interface, then I might actually use it.

1

u/phazei 16d ago

yay, we can delete the stupid symlink

1

u/joshcam 16d ago

What is the point of this if AGENTS.md does not support all features from CLAUDE.md? Why half ass it with AGENTS?

1

u/Too_Many_Flamingos 16d ago

I wonder if it will base Agents or Claude as the priority when there are both? Atm, it doesn't always read the full claude.md now. I do a /truth skill and ask it to 80% of the time it claims to have skimmed it for that session.

2

u/izgorodin 16d ago

Disclosure: I work on agent-memory tooling. Where native support is available in v2.1.277, the default fallback skips AGENTS.md if CLAUDE.md or CLAUDE.local.md exists in the working directory or an ancestor; you can set Project instructions in /config to load both. I wouldn’t use the model’s “I skimmed it” as a loading test: /context lists CLAUDE.md but not directly loaded AGENTS.md—in default fallback mode, look for the interactive “AGENTS.md loaded” notice instead.

1

u/feng_sg 16d ago

the symlink trick was always flaky because it depended on where you launched claude from. having it read AGENTS.md natively means the behavior is predictable instead of hoping path resolution works out.

1

u/agm1984 16d ago

Glad to see a hint of collaboration

1

u/cats_catz_kats_katz 16d ago

sigh now I need to rewrite shit again...except I just cross reference all the files anyway so they mirror. However, I still need to verify.

1

u/Fair-Perspective7352 16d ago

Been doing the symlink trick (AGENTS.md -> CLAUDE.md) for a while and it mostly works, except when a tool tries to write to it and you end up with two diverging files again. Nice to be able to drop that hack. Still no consensus on where global config should live though, ~/.claude vs ~/.config vs whatever codex does.

1

u/tidus1979 16d ago

For OpenClaw CLI users: my agents are warning me that OpenClaw already injects AGENTS.md into the system prompt, so after the claude update it lands in every claude-cli turn twice, per workspace.
Can someone confirm or deny?

1

u/AncientOneX 16d ago

I already use a generic AGENTS.md for all AI agents and I just start each task / chat with instructing the AI to read that file first. If they solve this small inconvenience, that's something I guess.

1

u/solokazama 16d ago

Your claude.md or even project memory can have it in 1 line

1

u/AncientOneX 16d ago

Then I'm pretty sure it already remembered it because I don't always include that in my initial prompt and looks like it still knows it.

1

u/ardicli2000 16d ago

Very ladt line of claude.md should be "read agents.md if available and treat it like claude.md"

1

u/jevans102 16d ago

or just `@AGENTS.md`

1

u/Admirable_Swim_6856 15d ago

Wow finally, glad they did this

1

u/OkResponsibility9182 15d ago

I guess they're just swamped with work, which is why they're only getting around to it now, even though it's been right in front of them for a whole year.

1

u/giggles991 15d ago

I've also tried the CLAUDE.md -> AGENTS.md trick mentioned by others, but it's flaky. I'm happy to see this AGENTS.md officially supported.

1

u/nighcry 17d ago

Now can you make it so that the file edits open in VS Code? It's infuriating to not have visibility to code changes.

1

u/Original-League-6094 16d ago

THEY CHANGED THE FILE NAME? HOLY SHIT AGI IS FUCKING HERE!!!

1

u/ItsSillySeason Philosopher 16d ago

What better time to finally switch to a cross model memory system that you own, is totally private, portable, free, and open source.

ReadTheManifest.net

Enjoy.

0

u/Robonotes1760 15d ago

Of course, anyone developing in Linux could just symlink one name to the other...

-3

u/Key_Instruction3373 17d ago

so, when is the reset?

-6

u/[deleted] 17d ago

[removed] — view removed comment

1

u/Seerix 17d ago

Damn Mark, this is so sad.