logoalt Hacker News

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

655 pointsby datadrivenangelyesterday at 9:00 PM232 commentsview on HN

Comments

perganomolytoday at 2:09 AM

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.

show 1 reply
stillpointlabyesterday at 9:29 PM

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.

show 3 replies
clutter55561yesterday at 9:18 PM

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

show 4 replies
throwaw12yesterday at 9:25 PM

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

rukuu001yesterday at 9:50 PM

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.

show 3 replies
pastelefttoday at 7:09 AM

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

bryanhogantoday at 4:35 AM

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.

show 2 replies
boorangtoday at 6:13 AM

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

albatross79today at 2:47 AM

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.

chr15mtoday at 12:02 AM

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

show 1 reply
budosoyesterday at 9:50 PM

This just be a recession indicator

show 1 reply
jtbakeryesterday at 9:53 PM

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.

show 2 replies
TomGardenyesterday at 9:21 PM

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

Time to delete the symlinks

show 3 replies
mitchitizedyesterday at 9:52 PM

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.

show 1 reply
sscaryterryyesterday at 9:36 PM

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

show 1 reply
seaalyesterday at 9:24 PM

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

show 1 reply
cjonastoday at 12:09 AM

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.

show 2 replies
victor9000today at 7:11 AM

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

bcoriglianoyesterday at 10:48 PM

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.

askonommyesterday at 9:11 PM

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

show 5 replies
dingayesterday at 9:28 PM

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

show 1 reply
pampastoday at 5:52 AM

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

mococayesterday at 9:47 PM

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

marcelo-earthyesterday at 11:59 PM

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.

show 2 replies
osr00yesterday at 11:49 PM

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

orlpyesterday at 10:33 PM

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

aromanyesterday at 9:27 PM

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

Bluesteinyesterday at 10:24 PM

AGENTS.md is the new autoexec.bat.-

show 1 reply
neverrrootyesterday at 9:16 PM

Thanks guys, you did the right thing.

getnormalitytoday at 12:19 AM

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.

show 1 reply
winwangyesterday at 11:54 PM

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!

show 5 replies
laluneodysseeyesterday at 11:24 PM

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?

getpokedagainyesterday at 9:46 PM

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

anukinyesterday at 9:19 PM

Thank you Tobi Lutke.

show 2 replies
mrkpdlyesterday at 11:26 PM

Wild that it didn’t already do this

datadrivenangelyesterday at 9:18 PM

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

show 1 reply
vindex10yesterday at 9:11 PM

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

jampekkayesterday at 10:58 PM

Commoditization commoditizes commodities.

egorfineyesterday at 10:07 PM

Hell froze over?

stbenjamtoday at 3:43 AM

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.

orliesaurusyesterday at 10:27 PM

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?!

csomaryesterday at 11:08 PM

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.

bakugoyesterday at 10:34 PM

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.

show 2 replies
swozeytoday at 4:06 AM

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.

show 1 reply
moecablesyesterday at 10:08 PM

great, one less step for me.

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

SrslyJoshyesterday at 9:54 PM

Truly incredible innovation.

cmrdporcupineyesterday at 9:19 PM

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

Congrats.

🔗 View 30 more comments