The Exponential Rise of Agent Instruction Files

(homes.cs.washington.edu)

31 points | by reshabh 2 days ago ago

16 comments

  • pards 30 minutes ago

    > I have found it difficult for the agents to follow the set of rules I want them to follow for projects that were not developed by them from scratch.

    This reflects my experience too.

  • tensegrist an hour ago

    > The adoption of agent instruction files has grown exponentially. They have grown from about 20,000 to 1.4 million in just over a year.

    the chart after this has three points and the choice to put an exp-like curve in between the most-separated pair thereof is unfortunate

    incidentally it seems quite likely that most of the AGENTS.md files here are for new repos, since the post doesn't control for total repo count on github (or even the rate of growth) so even if we were creating the same number of repos per day now as in the before times — which i know isn't the case — we'd still expect to see a linear growth in the number of these files

  • Schlagbohrer an hour ago

    Can anyone recommend a good AGENTS.md for use with local AI? I have mine but I keep needing to prune it and I never had a tested, open source template to start with so I don't know what I might be missing. Would love to see some tried and tested open source examples.

    • bruce343434 an hour ago

      If you are having a recurring issue with how you AI is developing the project, i.e. pittfalls, then you can put the right way to do it or a workaround in the AGENTS.md

      This depends on both the AI model and the Project.

      Other than that, most things should probably still go into documentation like README, CONTRIBUTING since a lot of process still generalizes to both humans and AI agents.

      You can add a line in AGENTS that it should orient itself with those files before starting anything.

      Stay on top of the "project memory" that your agent is building up. Literally prompt it to "dream about the project" so that it can prune stale entries itself and re-derive, re-summarize. I try to keep most project memory entries in traditional documentation, since it's also useful to humans. And putting it in the repo makes it useful across AI providers and accounts.

      It's not well established to think about documentation this way. But documentation is instructions. Code is instructions. Code is commonly refactored and technical debt is regularly (hopefully!) reduced in a dedicated maintenance pass. Do the same for documentation.

      And this is very unorthodox but: for my personal projects, I put the tickets as markdown in the repository now. They haev a fixed structure that begins with owner, status (approved, ai suggested, draft). I have tickets/todo and tickets/done. This way, tickets are not only version tracked, but also directly accessible to the agent without having to go through some API. As a bonus, it makes migrations to and from various forges very easy.

      When you notice that a workflow generalizes across repositories or projects, you should move it out of AGENTS.md and into a SKILL.md

    • latentsea an hour ago

      Very specific to your model and your project tbh. Everytime the model changes you need to run ablation studies to even know if what's in there still has value or should be removed.

      • bruce343434 an hour ago

        What do you mean by ablation studies?

        • thechao 10 minutes ago

          Remove chunks & recode.

    • darkerside an hour ago

      Wouldn't the best option here be to use the agent itself to generate it while the repo is still new and small?

      • latentsea an hour ago

        That assumes the agent knows what to put in it to affect the agents own behaviour in a positive way that aligns with the users intent.

  • fami-hn a day ago

    The growth makes sense, but in our repos the files only stayed useful once we treated them like code. Habits that helped: keep the root file short and put rules next to the code they apply to (one per package or directory), so an agent working in the mobile app isn't reading backend conventions. Write rules as checks rather than vibes ("run the typecheck before finishing", not "write clean code"). Delete anything an agent has demonstrably stopped needing, because stale rules get followed just as faithfully as good ones. And every so often, give an agent a task and read what it actually did against the file; that's the only way to see which lines are ignored.

    • trollbridge an hour ago

      Could you share the agent instructions you used to write this comment?

  • binaryturtle 33 minutes ago

    What about all the instruction files that just tell any agents to <bleep> off? Do those count too? :)

  • Birkoff an hour ago

    I guess the agent files go the same way as skills. Smart instructions are all around, but evals that would show the impact rarely happen.

    In the end I think we create a lot of noise with carelessly crafted agents.

  • raffraffraff 2 hours ago

    It's the rise of standard operating procedure docs that should have existed already, but everybody was too lazy to write them. Laziness has just gotten a new engine. Our incentives have changed.

  • themgt 30 minutes ago

    You are a Static Analysis Engineer. You generate Python code that checks source files for a specific constraint.

    The solution is Python generated by You Are An Expert LLM fed Markdown interpolated by Python processing instructions in Markdown, make no mistakes?

    I'm just not sure any more, is this is computer science? Are we still sneering at "vibe-coders"?

    https://github.com/reSHARMA/InstructGuard/blob/b4e4a4e04afd3...

    • AIShill101 8 minutes ago

      I mean if it works, it works.