‹ BackHN Continuity

Thread

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

741 points · 285 comments · datadrivenangel

  1. Madmallard · · focus · HN ↗
    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?

    1. mcherm · · focus · HN ↗
      You know it because you write the content of AGENTS.md. And if you are smart, you keep it brief and cover only the important things that anyone (human OR LLM) would want to know if working in this directory.
      1. Madmallard · · focus · HN ↗
        As far as I understand even adding relevant information still eventually clouds context
        1. verdverm · · focus · HN ↗
          this is probably outdated, attention typically stays fine up to ~200k tokens these days

          you end up clouding that more with an agent having to re-understand concepts or conventions

          AGENTS.md is good when it is a nested sparknotes for the project, you save context and turns overall, but keep them minimal and largely gotchyas or unusual workflows in your repo

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.