The Exponential Rise of Agent Instruction Files (homes.cs.washington.edu)

42 points by reshabh 2 days ago

25 comments:

by tensegrist 3 hours 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

by pards 2 hours 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.

by cataConst an hour ago

If I have a prompt, I put it in 3 different chats and filter the result & input trough all 3 chats. Claude is the best in my opinion, coding and daily chat. Do you have a specific way how to input the prompt/rules ?

by williamdclt an hour ago

Well TBF, I have the same difficulty with humans. Either you're the only* developer on a codebase and you can have an unenforced "set of rules", or you're not and you need to somehow enforce them.

*okay I've seen it work in small, competent, tight-knit teams... and even then, it often relies on someone particularly caring about those rules, even if the others are generally in agreement

by miltonlost 23 minutes ago

And then in PRs and meetings, we're told to fix the agents file when we see it get something wrong. But the agents file already has the rule. And then the agent gets the rule wrong again. And the cycle continues because we get so much more lines of code!

by brendanator 20 minutes ago

AI code review[1] can check that guidelines in AGENTS.md (and the like) are being followed in PRs

1. https://www.sourcery.ai/ - disclosure, I'm the CEO

by Schlagbohrer 3 hours 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.

by trio8453 an hour ago

Start empty and only add stuff you find yourself repeating across sessions.

I think most people overdo it with the AGENTS.md files and skills - if you know that you always have a preference for style-x instead of style-y or always need to explain something specific about your project which for some reason isn't documented elsewhere (why isn't it in your readme or /docs?), then sure, add it there. But for many things you can prompt directly during the session instead of maintaining these md files.

by bruce343434 2 hours 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

by latentsea 2 hours 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.

by bruce343434 2 hours ago

What do you mean by ablation studies?

by latentsea 44 minutes ago

An ablation study is when you run an eval both with and without a component of the harness to see if it has any effect on eval performance or not. Otherwise... it's all vibes. Components of a harness are bets against the model since they arise from things the model itself can't do, so you add them in and keep adding them, and when a new model comes out actually unless you test it this way, you don't know whether the things you added in to help the previous model are good, bad or neutral under the new model.

by thechao 2 hours ago

Remove chunks & recode.

by cisrockandroll an hour ago

Its literally just a prompt of text.

by darkerside 3 hours ago

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

by latentsea 2 hours 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.

by 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.

by trollbridge 3 hours ago

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

by Birkoff 3 hours 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.

by raffraffraff 3 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.

by binaryturtle 2 hours ago

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

by themgt 2 hours 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...

by Hasz 29 minutes ago

There is a significant difference between using one agent to build deterministic checks against the output/products of another and just prompting your agent to fix <insert rule>

Building good, deterministic guardrails and letting agent go hogwild inside the bounds is faster and if you setup your constraints, better.

by BarryMilo an hour ago

It's more art than science now. Computer art!

by AIShill101 2 hours ago

I mean if it works, it works.

Data from: Hacker News, provided by Hacker News (unofficial) API