‹ BackHN Continuity

Thread

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

486 points · 284 comments · pszypowicz

  1. mpoteat · · focus · HN ↗
    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: <a href="https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;tree&#x2F;main&#x2F;mods&#x2F;agents-md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;tree&#x2F;main&#x2F;mods&#x2F;age...

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

    1. mpoteat · · focus · HN ↗
      The AGENTS.md support was implemented via our new extensibility system for CC, called Mods, which is launching soon-ish. A mod is a plugin with a new type of hook, which we call a function hook.

      If folks play around with it, I would love feedback on the relevant issue: <a href="https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;issues&#x2F;91870" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;issues&#x2F;91870

      Mods allow quite a bit more customizability and control. I really believe in the idea.

      1. rickette · · focus · HN ↗
        The only difference between CLAUDE.md and AGENTS.md is the filename. Do you really need a whole plugin system to support that use case? Feels like this could have been a one line change.
        1. pdpi · · focus · HN ↗
          The plugin system itself was probably already in the making, and they just chose to implement this tiny feature as a plugin to try it out.

          As for the only difference being the file name, that&#x27;s an untested assumption. Up until now, Claude hadn&#x27;t supported AGENTS.md, and it&#x27;s a simple application of Hyrum&#x27;s Law that somebody, somewhere, was taking advantage of that to give one set of instructions to Claude, and a different set of instructions to some other provider. The correct behaviour in the presence of both files is not obvious, either.

          Having a kill switch for the change is a perfectly reasonable safety measure in case something goes horribly wrong.

          1. redox99 · · focus · HN ↗
            That line of thought is the reason why everything gets so overengineered.

            Read CLAUDE.md if it doesn&#x27;t exist read AGENTS.md you don&#x27;t need to overthink it so much.

            1. arcfour · · focus · HN ↗
              This line of thinking is something you will quickly be disabused of once you try supporting software that hundreds of millions of people use.

              And I say this as someone that loves the Unix philosophy dearly.

              1. lunar_mycroft · · focus · HN ↗
                How, exactly, would the proposed solution (combined with a setting to disable it) break, and how would implementing it the way Anthropic did address that? Be specific.
                1. arcfour · · focus · HN ↗
                  Some people might have a different CLAUDE.md and AGENTS.md because they use Claude to do one thing and $other_agent to do another thing. Or because Claude does XYZ by default, and other agents do ABC, and they want to give the correct guidance to both.

                  This is, to me, a completely reasonable and believable use case that could break if you implement this fix without &quot;overengineering&quot; it.

                  A setting to disable what? Be specific. See? Not so simple...

                  1. dylan604 · · focus · HN ↗
                    if [ !-f CLAUDE.md ]; then AGENTS.md fi

                    you&#x27;re really over thinking this, and i&#x27;m wondering if you&#x27;re risking pulling something stretching like that to pick this up shilling for Anthropic.

                    1. arcfour · · focus · HN ↗
                      Is accusing someone of &quot;shilling for Anthropic&quot; for suggesting that a bug fix might not be so simple really the level of discourse HN has devolved to now? Is it the kind of HN you want?
                      1. dylan604 · · focus · HN ↗
                        Is the level of HN discourse suggesting that having a large number of users worth of never making simple changes something you want? This isn&#x27;t a move fast break things suggestion, this is a rational common sense suggestion. Instead, you&#x27;re pushing an overly complex way of implementing something that would allow for all sorts of unknowns. Earlier comments suggesting this new mods concept was being worked on giving the dev a new 20lb sledge hammer so the CLAUDE&#x2F;AGENTS situation suddenly got beat on like it was a railroad spike when it just needed a smaller hammer since it was only a finishing nail.
                        1. cgriswald · · focus · HN ↗
                          This conversation comes down to people saying “Why don’t you just…” to Anthropic. Anthropic has the most information and made the choice they made. That choice may have been over-engineering, an appropriate choice or both. Discussing that choice could be interesting and it could especially be informative to people without much experience. Speculating on that could lead to an interesting conversation—especially WRT how people are actually using the current status quo—but imagination seems to be lacking here.

                          Instead we get the implicated assertion that users’ existing workflows shouldn’t matter to Anthropic and accusations that someone you don’t agree with is a shill. When called on that you avoided the question.

                          To answer your question, although it wasn’t directed at me: YES. I want people to be able to discuss that exact issue even if it isn’t personally interesting to me.

                          1. troupo · · focus · HN ↗
                            &gt; Anthropic has the most information and made the choice they made.

                            Anthropic is the last company I would trust to make any decisions. Look at any discussions surrounding their &quot;Claude is a tiny game engine&quot; idiocy, numerous bugs that a junior can discover, a full &quot;plugin system&quot; in which they neeeed a dozen files in the worst Clean Code manner to read one of two files etc.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.