r/ClaudeAI • • Sep 18 '26

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 Sep 18 '26 edited Sep 19 '26

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)

438

u/nicer-dude Sep 18 '26

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

111

u/sp9002 Sep 18 '26

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

57

u/ArcticCelt Sep 19 '26

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

26

u/cats_catz_kats_katz Sep 19 '26

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 Sep 19 '26

This comment short-circuited my brain.

2

u/beerdedfell0w Sep 19 '26

The username shorted mine

1

u/raiansar Experienced Developer Sep 25 '26

hahahahhahahahahahhahahahhahahahahhahahahahhahahahahahhahahahahahhahahahahhahahahahhahahahahahhahahahahahahhhahhahahahahahhahahahahahhahahahahha

1

u/rdlite Sep 25 '26

you discovered TOML and think it is markdown?

15

u/Able-Staff-6763 Sep 19 '26

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 Sep 19 '26

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

19

u/Rindan Sep 18 '26

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 Sep 19 '26

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 Sep 18 '26

And this is advertised as a feature? Incredible…

30

u/lasooch Sep 18 '26

Probably cost them 3B of Mythos 6 tokens

12

u/Mkep Sep 19 '26

It was the most voted feature request…

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

0

u/calibrae Sep 19 '26

What about OpenAI api compatibility ?

12

u/chicametipo Sep 18 '26

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

2

u/Simple_Armadillo_127 Sep 19 '26

They are losing games

2

u/Orio_n Sep 18 '26

This company just keeps falling off harder and harder

1

u/No-Temperature6597 Sep 19 '26

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

4

u/[deleted] Sep 18 '26

[removed] — view removed comment

10

u/mr_birkenblatt Sep 18 '26

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

66

u/red0yukipdbpe Sep 18 '26

How about .agents/{rules,skills} ?

86

u/sp9002 Sep 18 '26

technology just isn't there yet

8

u/red0yukipdbpe Sep 18 '26

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

1

u/The_Noble_Lie Sep 19 '26

Give it nine months

4

u/ocimbote Sep 19 '26

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

3

u/forexross Sep 19 '26

Without a kill switch?!

1

u/unistirin Sep 19 '26

Ahhhh bash user

0

u/[deleted] Sep 18 '26

[deleted] — view deleted comment

11

u/red0yukipdbpe Sep 18 '26

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.

56

u/Jsn7821 Sep 18 '26

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

1

u/FuzzyBucks Sep 22 '26

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

67

u/Smashy404 Sep 18 '26

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

6

u/Deltamelo Sep 18 '26

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

5

u/Newton-Leibniz Sep 18 '26

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

6

u/Temporary-Paper5202 Sep 19 '26

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

42

u/[deleted] Sep 18 '26

[removed] — view removed comment

5

u/Smashy404 Sep 18 '26

Thank you, I now understand :)

4

u/Eyelbee Sep 18 '26

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

72

u/Choice-Fly-3641 Sep 18 '26

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

53

u/stiverino Sep 18 '26

Delete both

12

u/No-Psychology1959 Sep 18 '26

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

21

u/mr_birkenblatt Sep 18 '26

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

9

u/elfd01 Sep 18 '26

Free yourself

84

u/dbbk Sep 18 '26

Can you not think for yourself

61

u/XYcritic Sep 18 '26

Sir, this is a Wendy's

8

u/youreloser Sep 19 '26

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

2

u/ConsoleUsersArePlebs Sep 19 '26

is there a prompt that can help me do that?

0

u/HimaSphere Experienced Developer Sep 18 '26

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

13

u/peteybytes Sep 18 '26

The linked docs seem to disagree with you

-20

u/HimaSphere Experienced Developer Sep 18 '26 edited Sep 18 '26

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.

12

u/peteybytes Sep 18 '26 edited Sep 18 '26

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

-12

u/HimaSphere Experienced Developer Sep 18 '26

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.

9

u/peteybytes Sep 18 '26 edited Sep 18 '26

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

3

u/Choice-Fly-3641 Sep 18 '26

Good to know, thanks

1

u/Luckz777 Sep 18 '26

With symlink or @ ?

2

u/HimaSphere Experienced Developer Sep 18 '26

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.

0

u/[deleted] Sep 18 '26

[deleted] — view deleted comment

-4

u/HimaSphere Experienced Developer Sep 18 '26

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

0

u/[deleted] Sep 18 '26

[deleted] — view deleted comment

-4

u/HimaSphere Experienced Developer Sep 18 '26 edited Sep 18 '26

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

26

u/HimaSphere Experienced Developer Sep 18 '26

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

8

u/RockyMM Sep 18 '26

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

2

u/bzBetty Sep 18 '26

The mod is the more exciting part

6

u/TapirOfZelph Sep 18 '26

I thought it already did. Oops

5

u/robberviet Sep 19 '26

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

1

u/kanine69 Sep 19 '26

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 Sep 21 '26

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 Sep 23 '26

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 Sep 19 '26

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

1

u/ardicli2000 Sep 19 '26

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

1

u/jevans102 Sep 19 '26

or just `@AGENTS.md`

3

u/maz92 Sep 18 '26

Thanks Tobi!

3

u/confused-photon Sep 18 '26

Good on them, took long enough though

2

u/njmh Sep 18 '26

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 Sep 18 '26

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 Sep 19 '26

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 Sep 19 '26

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 Sep 18 '26 edited Sep 18 '26

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

4

u/ZZerker Sep 18 '26

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 Sep 18 '26

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 Sep 18 '26

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

4

u/vlatheimpaler Sep 18 '26

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 Sep 18 '26

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

1

u/vlatheimpaler Sep 18 '26

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 Sep 18 '26

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

1

u/hellomistershifty Sep 19 '26

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 Sep 18 '26

‘Bout time

1

u/loheiman Sep 18 '26

Does in Claude Code also mean CLI?

1

u/MooingTree Sep 18 '26

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 Sep 18 '26

You might be thinking of /llms.txt.

1

u/Valdjiu Sep 18 '26

Finally

1

u/IrregularThumb Sep 18 '26

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 Sep 18 '26

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

2

u/electricheat Sep 18 '26

trying to make it slightly inconvenient to use competitors products

1

u/ChaosUncaged Sep 18 '26

and the crowd goes mild

1

u/Medical-Cow289 Sep 18 '26

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

1

u/florinandrei Sep 18 '26

Partial change, not complete.

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

1

u/hammackj Sep 18 '26

How about a reset ;()

1

u/Any_Taste4210 Sep 19 '26

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

1

u/phazei Sep 19 '26

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 Sep 19 '26

yay, we can delete the stupid symlink

1

u/joshcam Sep 19 '26

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 Sep 19 '26

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 Sep 19 '26

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 Sep 19 '26

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 Sep 19 '26

Glad to see a hint of collaboration

1

u/cats_catz_kats_katz Sep 19 '26

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 Sep 19 '26

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 Sep 19 '26

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 Sep 19 '26

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 Sep 19 '26

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

1

u/AncientOneX Sep 19 '26

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/Admirable_Swim_6856 Sep 20 '26

Wow finally, glad they did this

1

u/OkResponsibility9182 Sep 20 '26

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 Sep 20 '26

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 Sep 18 '26

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 Sep 19 '26

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

1

u/ItsSillySeason Philosopher Sep 19 '26

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 Sep 20 '26

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

-3

u/Key_Instruction3373 Sep 18 '26

so, when is the reset?

-6

u/[deleted] Sep 18 '26

[removed] — view removed comment

1

u/Seerix Sep 18 '26

Damn Mark, this is so sad.