‹ BackHN Continuity

Thread

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

741 points · 285 comments · datadrivenangel

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

    1. ryandrake · · focus · HN ↗
      Had a silly exchange with Codex: I had an AGENTS.md file in a directory that was a symlink to an already-created CLAUDE.md. On my first prompt to Codex, it decided to point to me that my AGENTS.md specifically calls out directions to Claude, and that it would generously re-interpret them as directions to itself, and that maybe I should fix my AGENTS.md to reference the correct agent.

      Very sassy, Codex!

      1. DANmode · · focus · HN ↗
        That’s pretty funny.

        Also: did it suggest instructions for the “correct” agent, or an ambiguous agent?

        One has marketing implications, the other one is generally decent advice.

    2. katzgrau · · focus · HN ↗
      But if you said that you were migrating from another platform to Claude, my guess is that it would have happily found and converted AGENTS.md
    3. ketzu · · focus · HN ↗
      When I setup a global agents.md/claude.md for its communication style, I got the following response during the next session:

      > The function you added is load-bear-very important [...]

      I never felt this mocked by a computer.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.