logoalt Hacker News

Claude Code reads AGENTS.md only when telemetry is on [fixed]

426 pointsby pszypowicztoday at 12:15 PM238 commentsview on HN

Comments

mpoteattoday at 12:56 PM

Sorry folks, this is a rollout artifact, we needed a way to turn this off remotely via feature flags if it broke something, and with telemetry off you don't get those. It's already been fixed as part of v2.1.281 releasing today.

The mod is source available here: https://github.com/anthropics/claude-code/tree/main/mods/age...

Apologies again folks, this was a fully human error on my part - I should've found a better way to launch with a kill-switch.

show 24 replies
sandrellotoday at 12:47 PM

Based on my experience with these tools so far, this seems exactly the kind of subtle but extremely severe bug that sneaks in when you start piling up layers of AI generated patches to a codebase without caring too much about the code.

show 5 replies
lucfrankentoday at 12:50 PM

Isn't that how they just release all features? So they can do progressive roll outs and telemetry on issues with it?

Not sure if they later move the code from inside the flag check to the main code or that they keep the flag check.

But if they would keep all features behind a flag that would not make most sense as you then would have not many features without telemetry.

show 2 replies
arrowsmithtoday at 1:00 PM

Claude Code also doesn't read AGENTS.md by default if there's a CLAUDE.md it can read instead. This isn't limited to your repo, e.g. if you have a ~/CLAUDE.md then no AGENTS.md will be read.

To always read both, you have to switch the 'Project instructions' setting to the non-default `claude-md-and-agents-md`.

Just in case anyone is wondering why their AGENTS.md still isn't being read.

shermantanktoptoday at 2:42 PM

I don’t understand why people are confused about the use of a launch flag, for this and for anything.

It’s a simple distributed systems problem. Separate the deployment of a new software feature (to umpteen hosts) from the triggering of that software with a lightweight switch.

If someone think that reading AGENTS.md is always benign, because they can’t imagine how it could be a problem…users are very creative.

show 3 replies
fg137today at 1:43 PM

This in some way sounds like VSCode's bug of always adding Copilot as a co-author of git commit regardless of user settings.

If people only glance over the code agents generate for them and don't bother to spend even half a minute thinking through what's actually happening, this is inevitable.

Certainly this kind of things happened before LLMs existed. But I'm not optimistic about the direction of how things are going.

nfRfqX5ntoday at 12:34 PM

Crazy part is: can’t tell if this intended or a bug

show 4 replies
vorticalboxtoday at 12:51 PM

I use cursor and claude, its kinda annoying having to have the same skills in both so I made a ~/.agents/skills folder then ln both cursor and claude skills to point to that folder.

which works except that claude uses .skills/synced which is uses to sync changes to skills from claude servers into the skills folder.

every other agent I have used just directly syncs into .skills so it ends up duplicating skills

MPSimmonstoday at 3:11 PM

Couldn't you just make a CLAUDE.md that says, "Read AGENTS.md in this same directory"?

show 1 reply
quintu5today at 2:28 PM

And I’m sure there’s no conceivable way an organization as well resourced as Anthropic can separate out feature flags from telemetry. It’s just too complicated! Maybe when we get AGI?

tjofftoday at 12:45 PM

Nice find, though I'd rather read the prompt that was used to write this article. It is about ten times longer than it needs to and is quite painful to read.

jdlygatoday at 2:34 PM

You're absolutely right! AGENTS.md shouldn't be gated behind telemetry on

msp26today at 1:17 PM

Claude Code Remote control only works with telemetry enabled too.

show 1 reply
sschuellertoday at 2:51 PM

If they can't even get this simple thing right, I am worried about the future of anthropic's products.

cowpigtoday at 1:14 PM

The number of people raw-dogging software that executes arbitrary instructions on their machine coming from a 3rd party server just absolutely baffles me.

The same people who've spent years of their career making sure that never happens.

stravanttoday at 3:36 PM

Embarrassing for HN to have a huge thread over a Feature Flag.

https://martinfowler.com/articles/feature-toggles.html

p5vtoday at 5:16 PM

I’ve long since been having a pro-forma CLAUDE.md, referring to @AGENTS.md in all of my projects. Still works fine.

0m13today at 12:52 PM

can i ask claude to change these settings for me, and will it enable telemetry as implied checkpoint when i ask it to enable AGENTS.md?

Traubenfuchstoday at 12:49 PM

Issue 95690, opened 3 days ago, 500k+ engineers, a simple CLI...

AGI was reached like 2 weeks ago, latest claude 5.x models rule supreme and software engineering is solved?

show 1 reply
teekerttoday at 12:55 PM

Uhm I turned off everything there is to turn off in my Pro plan, and Claude just read my agents.md with no issue? So... What telemetry am I missing? Or did they JUST update? (I updated my docker image 40 minutes ago to get Opus 5.5, am on version 2.1.280, so not the mentioned 2.1.277, so it's fixed?)

ChrisArchitecttoday at 2:22 PM

Related:

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

https://news.ycombinator.com/item?id=49760187

BiteCode_devtoday at 1:58 PM

Anyway, my claude.md contains only this:

@agents.md

rvztoday at 12:53 PM

I am once again (for the third time) [0] asking you to stop using a closed-source harness.

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

show 1 reply
chrisjjtoday at 12:34 PM

Vibe-coding at its best.

pmlnrtoday at 1:15 PM

Urm... no tests caught this? How?

mrguyoramatoday at 2:52 PM

Wait wait wait WAIT

So, these tools have a file they want to read in with some configuration.

That filename is hardcoded?

Fucking DOOM had a command line parameter to provide an arbitrary configuration file name!

That's completely irrespective of the fact that you need a feature flag set by remote infrastructure to change a setting of which completely local file to read.

It's weird, I feel like Claude would have tried to make this a configurable setting by default! Is that just not an option in JS land? Not a common pattern to have configuration in the first place? I don't know about that, all the JS based code editors have comprehensive configuration files.

What the hell is going on....

show 1 reply
itsmeduncantoday at 8:00 PM

[flagged]

slabbtoday at 8:24 PM

[flagged]

Jidosealtoday at 8:22 PM

[flagged]

nomad-linkd-idtoday at 6:55 PM

[flagged]

keel_devtoday at 4:42 PM

[flagged]

lightchaser08today at 12:57 PM

[dead]

Ajjayaadetoday at 1:33 PM

[flagged]

Ajjayaadetoday at 1:34 PM

[flagged]

gmponyotoday at 1:09 PM

This is not the only case where Anthropic has done stuff silently without giving users any information about changes that would hurt them.

mgaldys4today at 12:59 PM

Even if this was an honest rollout mistake, the design is indefensible. Reading a local file should never depend on a remote feature flag, and silently skipping it with no warning is worse. I've tried to give Claude Code the benefit of the doubt, but this crosses a line.

show 1 reply