Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Claude Code now reads AGENTS.md if there is no Claude.md (https://code.claude.com)

712 points by datadrivenangel 1 day ago | 263 comments | View on ycombinator

perganomoly about 19 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.

Frannky about 8 hours ago |

I switched to oh-my-py and never looked back. I guess having an incentive to maximize (expensive) token usage, and LLMs degrading with higher context, isn't aligned with a user's best interest.

Oh-my-py unlocks max capabilities at the smartest token usage, and you can change AI company and providers while still getting things done. Roles, advisor, and the ability to use Chinese models on international providers with no training and ZDR behind OpenRouter are very powerful. You can have providers and model companies competing on price, intelligence, and speed for something that's useful but with less and less moat as model progress plateaus.

I now use GLM 5.3 for slow/planning, GLM 5.3 Flash as the default task-vision model, and DeepSeek Flash 4.1 as the advisor. Providers are ordered by cheapest at the minimum TPS I want for that model. I use it not only for coding but also as a personal assistant. I can ask it things and it gets them done automatically, like opening an issue on a repo, then having another agent ship the code, run the tests, and update master after having changed the app to autoupdate on cut release.

I can also ask it to do groceries. I use Bitwarden machine secrets and a limited virtual card connected to my phone.Something else that's very powerful is asking it to launch parallel agents to do things you know don't overlap too much.

The amount of agency we're gifted with is crazy, you can now move hundreds of hours of work with one hour of input using an open-source harness and open-weight models. I can't wait for more competitors in the chip space, and to be able to buy models etched on silicon for even higher agency, speed, and independence.

stillpointlab about 24 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 about 24 hours ago |

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

throwaw12 about 24 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 about 23 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.

albatross79 about 18 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.

boorang about 15 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

bryanhogan about 17 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.

chr15m about 21 hours ago |

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

budoso about 23 hours ago |

This just be a recession indicator

pasteleft about 14 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

mitchitized about 23 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.

jtbaker about 23 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 about 24 hours ago |

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

Time to delete the symlinks

jgb1984 about 7 hours ago |

I couldn't care less what the filename is, I do care however that Claude still forgets about 14 times per week that -r with ripgrep means replace (and not recursive, like with grep). Even though it's literally spelled out in my CLAUDE.md. Claude code, even with the most advanced models, forgets or disregards very simple and clear instructions from my modestly sized MD file.

sscaryterry about 24 hours ago |

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

seaal about 24 hours ago |

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

dinga about 24 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

cjonas about 21 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 about 22 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.

victor9000 about 14 hours ago |

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

askonomm about 24 hours ago |

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

Bluestein about 23 hours ago |

AGENTS.md is the new autoexec.bat.-

mococa about 23 hours ago |

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

orlp about 23 hours ago |

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

marcelo-earth about 21 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.

osr00 about 21 hours ago |

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

aroman about 24 hours ago |

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

undefined about 21 hours ago |

undefined

neverrroot about 24 hours ago |

Thanks guys, you did the right thing.

getnormality about 21 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 about 21 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 about 22 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?

pampas about 15 hours ago |

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

getpokedagain about 23 hours ago |

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

anukin about 24 hours ago |

Thank you Tobi Lutke.

desipenguin about 4 hours ago |

Genuine question: Does the Agent harness matter ? I mean why use Claude CLI ?

(As I mentioned elsewhere) I use oh-my-pi (and opencode, and toad) but use (client paid) Opus 5 with these harnesses.

All three of these understand AGENTS.md

mrkpdl about 22 hours ago |

Wild that it didn’t already do this

datadrivenangel about 24 hours ago |

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

undefined about 24 hours ago |

undefined

vindex10 about 24 hours ago |

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

jampekka about 22 hours ago |

Commoditization commoditizes commodities.

egorfine about 23 hours ago |

Hell froze over?

orliesaurus about 23 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 about 22 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.

bakugo about 23 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.

SrslyJosh about 23 hours ago |

Truly incredible innovation.

moecables about 23 hours ago |

great, one less step for me.

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

cmrdporcupine about 24 hours ago |

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

Congrats.

stbenjam about 17 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.

undefined about 23 hours ago |

undefined

Art9681 about 22 hours ago |

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

hbarka 1 day ago |

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

Havoc about 23 hours ago |

Sanity prevails

swozey about 17 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.

a3w about 23 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"?

zaps about 21 hours ago |

Thank Christ

uptownhr about 22 hours ago |

didn't it always read it?

skeptic_ai about 21 hours ago |

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

aussieguy1234 about 21 hours ago |

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

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

davidkunz about 23 hours ago |

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

armcat about 23 hours ago |

About time!

yieldcrv about 23 hours ago |

Hi, September 2026, meet September 2025

Madmallard about 23 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?

undefined about 24 hours ago |

undefined

blueaquilae about 24 hours ago |

Forced to do something for the users...

kislakiruben about 23 hours ago |

why did it take so long?

alansaber about 23 hours ago |

Ah yes, the peak of technology.

krferriter about 21 hours ago |

Now do skills

snvzz about 18 hours ago |

Finally.

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

rvz about 24 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

aitoolcrux about 19 hours ago |

[flagged]

zjy365 about 14 hours ago |

[flagged]

hellobuddy9 about 11 hours ago |

[dead]

kevinbaiv about 23 hours ago |

[flagged]

075326899532 about 24 hours ago |

[dead]

themuskgpt2025 about 13 hours ago |

[dead]

lightbendover about 24 hours ago |

[dead]

core_stream about 23 hours ago |

[dead]

huflungdung about 22 hours ago |

[dead]

nunodonato about 24 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 about 24 hours ago |

[flagged]

nullbio about 18 hours ago |

People still use Claude?