‹ BackHN Continuity

Thread

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

741 points · 285 comments · datadrivenangel

  1. askonomm · · focus · HN ↗
    Finally doing something standards-compliant instead of forcing users into a proprietary workflow.
    1. swyx · · focus · HN ↗
      fwiw, i am with thariq <a href="https:&#x2F;&#x2F;x.com&#x2F;trq212&#x2F;status&#x2F;2092302273099796842" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;trq212&#x2F;status&#x2F;2092302273099796842 in that prompts should be tuned for models and in fact blindly applying agents.md is probably an antipattern unless you want all models to basically converge to some common ill defined of instruction following - good local minima, bad global minima for model diversity and exploration of intelligence.

      aka, sometimes it really is too early to force a standard

      1. arcanemachiner · · focus · HN ↗
        No thanks, I&#x27;m not tuning a bunch of files just for things to break when I switch models or a new one comes out.

        I&#x27;ll just use my one-size-fits-all AGENTS.md file and tweak it when the one of the clankers screw up. I don&#x27;t have time for such busywork.

        Actually, I will append extra rules to CLAUDE.md (which imports AGENTS.md) since there is a hook there, and Claude has its own foibles. So I&#x27;ll backpedal a bit there.

      2. atonse · · focus · HN ↗
        Yeah but are models good enough to review these files and say “i would work better if you worded it this way?”
      3. willsmith72 · · focus · HN ↗
        depends what you&#x27;re doing. if you&#x27;ve got a specialized agent deployed in prod, of course your evals and prompts will be targeted towards 1 specific version of a model.

        on the other hand if it&#x27;s just a local coding&#x2F;&quot;use my computer&quot; agent, i highly doubt the effort in maintaining different prompts is worth any gain in performance

      4. groby_b · · focus · HN ↗
        That&#x27;s of course rather nonsensical.

        In a &quot;one LLM only&quot; environment, your instructions are by default tuned for said LLM.

        In a multi-LLM environment, roughly nobody will keep separate sets of instructions for each. It&#x27;s not a realistic take.

        On top of that: If your LLM is so bad at reading that it can&#x27;t follow a set of instructions that wasn&#x27;t specifically written just for that one single precious LLM, I sure wonder what that says about your employers repeated statements that ASI is definitely right around the corner.

      5. TomGarden · · focus · HN ↗
        By this logic you&#x27;d probably be wise to tier your claude.md by model (sonnet&#x2F;opus) as well as effort level too, considering the varying failure modes
        1. swyx · · focus · HN ↗
          except they have similar pretrain&#x2F;rlhf data which is the thing u really want to tune for
          1. [deleted] · · focus · HN ↗

            [deleted]

          2. TomGarden · · focus · HN ↗
            YMMV but for me even models in the same family fail in different ways, and every incremental update changes it
      6. esikich · · focus · HN ↗
        I have had very little luck with agents.md. What has worked well for me is a .&#x2F;docs folder. They seem to just create and update stuff on their own.
        1. [deleted] · · focus · HN ↗

          [deleted]

      7. orlp · · focus · HN ↗
        If you want this it&#x27;s trivial to add an AGENTS.md that simply says &quot;if you&#x27;re Claude read CLAUDE.md, if you&#x27;re Astra read ASTRA.md&quot;. A common entry point is good regardless.
        1. jwolfe · · focus · HN ↗
          This wastes both tokens and turns. But yes it&#x27;s probably the best option we have today.
          1. recursivegirth · · focus · HN ↗
            Wasting turns? That is silly, use a better harness. Also token usage can mitigated by incremental discovery instead of stuck 5k+ worth of tokens in the AGENT&#x2F;Claude md file.
            1. jwolfe · · focus · HN ↗
              Every turn means more tokens in ways that are not obvious to most people and lead to tons of unnecessary cache reads.

              No harness can batch your agents.md read with the reads the contents of the file tell it to read.

          2. pishpash · · focus · HN ↗
            It can try its own file and fall back to generic like here. What&#x27;s wrong with that?
      8. hadlock · · focus · HN ↗
        Is it realistic to rewrite your AGENTS.md every six weeks? That&#x27;s about how often Anthropic releases a new point release of Opus.
        1. sumedh · · focus · HN ↗
          You tell Opus to do it.
        2. smartwordworld · · focus · HN ↗

          [dead]

      9. qlte · · focus · HN ↗
        It looks for Claude.md first so I don&#x27;t understand what you think the problem is with the standard name as a fallback.
      10. deaux · · focus · HN ↗
        19 out of 20 harnesses supporting the standard isn&#x27;t &quot;too early&quot;.

        Tariq is wrong and it&#x27;s not an antipattern. Reason being that a good AGENTS.md impacts all models in a positive manner. If it affects certain models negatively, it means you&#x27;re putting the wrong things in it.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.