lenerdenator 4 days ago

Dumb question from a guy who just set up Claude Code for the first time yesterday: would this be the equivalent of `CLAUDE.md` in a project directory?

perrygeo 4 days ago

Shouldn't you already have these instructions written out? Seems like AI has just motivated developers to finally write documentation.

prmph 5 days ago

The agents instructions file needs to be hierarchical; It's a pain managing multiple agents.md files with a lot of duplication between them for different projects, even in a mono-repo. we probably need a tool for this.

In any case, I increasingly question the use of an agents file. What's the point, then the agent forget about them every few prompt, and need to be constantly reminded to go through the file again and again?

Another thought: are folks committing their AGENTS.md? If so, do you feel comfortable with the world knowing that a project was built with the help of AI? If not, how do you durably persist the file?

  • tomComb 5 days ago

    Agree on the need for hierarchical agents.md. I thought that was kind of standard and I am surprised that this proposal doesn’t support that.

  • petesergeant 5 days ago

    > do you feel comfortable with the world knowing that a project was built with the help of AI?

    I would be deal-breakingly concerned if I thought someone was actively trying to hide the fact from me.

ec109685 5 days ago

Do all ai agents only include a single AGENTS.md, closest in the hierarchy? Where do people put common instructions or do they just copy and paste?

  • jpalomaki 5 days ago

    The agents are really flexible. You can just tell them read whatever file/folder.

spullara 5 days ago

just use a good agent like augmentcode that can look at relevant context across your repository and then you can name it whatever you want.

_mu 5 days ago

I think this is a good thing - I would like to see the same pattern standardized for the memory system of all the different agents.

i4k 4 days ago

Hey guy looking at this thread from 2035, so you know... there are still plenty of folks in the industry that knows that this is dumb. We are just too tired of fighting nonsense... we just won the web3/blockchain craziness and now this.

[removed] 5 days ago
[deleted]
meowface 5 days ago

Unfortunate that two of the most-used tools (Claude Code, Gemini CLI) don't support it.

  • neutronicus 5 days ago

    What does "support" for this format mean beyond "reading the file without explicit prompting"?

    Like, as the end-user, if I copy-paste "Please see AGENTS.md in the project root for some information on the project" have I filled the gap?

    Or is the LLM ingesting this file in some special way I'm losing out on?

    • meowface 3 days ago

      >Like, as the end-user, if I copy-paste "Please see AGENTS.md in the project root for some information on the project" have I filled the gap?

      Probably, yeah. It would cause an extra tool call at the start of every session, though, so a symlink might be preferable.

CMay 4 days ago

Prediction: this means extra work for developers. it also means extra potential abuse and risk through agents. the agents.md will sometimes be outdated or inconsistent with the readme. even the readmes are sometimes outdated or inconsistent with the code. some developers will interpret agents.md as compiling code for the agents to use, not for the user's to use, so maybe you're not even compiling the same code the same way a human should and expectations are broken. it's only a contextual efficiency if it's reliable too, because errors can mean having to use even more context accounting for it.

better idea since agents will already be cursed to do these things:

- any decent readme should have titled sections unless it's small

- if it's small, just feed the entire readme into it

- if it's large, provide it with a list of readme sections and let it choose which ones are relevant.

- also highlight which parts of the markdown include code blocks.

- if all else fails and it's huge without sections, just use RAG.

- if your model runs fast enough, then even if it's huge, just feed the whole thing in so you avoid the risks of RAG. setting up new software can be important enough that you may as well get it right.

people couldn't be hassled to make things accessible to the blind or visually impaired really, why suddenly should they be all excited to make everything accessible to AI? besides, agents.md comes with psychological baggage like, "i'm presuming my project is interesting enough to be used by agents!". just use the readme. it's basically always there and then in most cases you won't have to do 2 requests, you can just do 1.

if "agents.md" is supposed to be anything, it should be a locked file or special URL generated by github for your repo that always mirrors the relevant instructions in the readme so there's some higher reliability. then anyone that specifically wants to improve agents.md can simply follow some conventions in the readme file to make sure understanding is maximized. essentially, a github agent generates agents.md for other agents. if the github agent can't understand the readme well enough to produce an agents.md, what chance would your agent have? if the github agent feels like there are contradictions or confusion, it can automatically report that to the developers so they can sort it out.

besides, github themselves could have motivation to do this if they are destined to be slammed with tons of bot traffic they have no way to sufficiently block. at least this way maybe they can make it more efficient and it becomes another valuable feature of the platform.

donperignon 4 days ago

If the context is not good for a Llm is also not good for a human. All this magical nonsense that is blooming around AI is tiresome, it needs to stop. Programming is not tarot reading or a slot machine. We cannot leave the security and robustness of our systems into such heuristics.

ekusiadadus 5 days ago

Markdown is certainly easy for humans to write, but as OpenAI pointed out last week, wouldn’t an XML-based format be easier for LLMs to parse and understand?

  • Osyris 5 days ago

    > but as OpenAI pointed out last week

    What are you referring to here?

    • ekusiadadus 4 days ago

      https://cdn.openai.com/API/docs/gpt-5-for-coding-cheatsheet....

      From OpeAI's last week document for coding with gpt5.

      > #3. Use XML-like syntax to help structure instructions

      • fallpeak 4 days ago

        I don't know if GPT-5 is an exception and is overcooked on XML specifically, but in general Markdown and XML seem to work about equally well for LLM inputs, the important part is just that they like hierarchical structured formats. The example on that page could probably be replaced with:

          ## Code Editing Rules
        
          ### Guiding Principles
        
          - Every component should be modular and reusable
          ...
        
          ### Frontend Stack Defaults
        
          - Styling: TailwindCSS
        
        Without any meaningful change in effectiveness.
  • mongol 4 days ago

    LLMs should make it easier for us, not the opposite

    • thrown-0825 4 days ago

      they are just moving goal posts because agents still largely suck for everything except a couple of super saturated problem domains that really shouldn’t require anything special from a dev anyways

surrTurr 4 days ago

pretty useless for big projects if it doesn't support modular instruction files (with apply regexes)

masci 4 days ago

If agents are so smart why not using what already exists for guiding humans, like README.md or literally any md/rst resource they can find in the repo? This is so stupid, and we're allowing it to happen.

  • Sammi 4 days ago

    Honestly the stuff in my llm instructions file is basically just a readme that is just as good for human consumption. Why aren't we just calling it a readme then?

indigodaddy 5 days ago

opencode made one of these for me when I did an /init in my existing project

iammrpayments 4 days ago

I can’ take this seriously, ever since they started talking about llms.txt, thousands of apps spawned promising increasing AI SEO by generating such file. I’ve created one myself for several websites and have seen 0 impact. I guess agents.md will have the same fate.

throwawaybob420 4 days ago

Honestly, this is some of the most bizarre shit I’ve ever seen.

The day AI and AI adjacent slop is no longer polluting the front page is the day when some other random fad takes hold I guess.

nunez 5 days ago

Did they just reinvent the Makefile?

bhaney 4 days ago

These AI-oriented examples look more useful to me than most human-oriented READMEs I've seen.

  • porker 4 days ago

    Yes, writing clear examples and instructions for humans was never seen as a good use of time, but as soon as a dumb mutt of an AI needs them to do stuff, they're written, and with more compassion than was ever shown to newbies asking questions...

    We've lost a bunch of contributions to open source projects because these guides weren't there to help new people contribute.

witx 4 days ago

This is a sad timeline. "AI is going to replace engineers.. but first please fill this human-readable markdown file to help it understand your code". What a bunch of morons, that's just called documentation.

Instead of using AI where it can actually have positive impact on human lives like medicine, biology, et al. we're wasting huge amounts of resources and generating tons of pollution to teach it to program and steal art and books so Aunt Lily can generate a video of a dog.

  • zulban 4 days ago

    > that's just called documentation.

    Ironically you sound very optimistic about AI capabilities here. This implies that an AI is just as capable as a human because all they need to contribute is what a human needs to contribute.

    Alternatively if you think AI is useless trash then clearly they need more than a human readme to do anything?

    • witx 4 days ago

      You're putting a whole lot of words in my mouth, I didn't say