logoalt Hacker News

The Exponential Rise of Agent Instruction Files

64 points • by reshabh • last Sunday at 2:10 PM • 45 comments • view on HN

Comments

tensegrist • today at 12:17 PM

> 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

pards • today at 12:54 PM

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

➕ show 5 replies
santiagobasulto • today at 5:06 PM

Regarding agents following instructions, my recommendation is to split in as many `AGENTS.md` file as possible, and use the root AGENTS.md as an index reference.

For example, this would be the resulting structure:

    src/
        billing/
            AGENTS.md
        products/
            AGENTS.models.md
            AGENTS.api.md
            AGENTS.md
    AGENTS.md
Then in the core AGENTS.md you can reference the main subsystems of your project and instruct the agent to reference the specific AGENTS.md. And `products` is a concrete example of a module so big that you can split instructions in multiple agents files.

This usually keeps the context very clean and working locally reading files is very fast.

➕ show 1 reply
Schlagbohrer • today at 12:18 PM

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.

➕ show 8 replies
j45 • today at 3:40 PM

Why are universities and researchers studying the past of AI by the time they publish?

Is it just me, or does AI research increasingly feels obvious, or dated?

k_ivanow • today at 5:30 PM

[dead]

ben-greenspring • today at 5:11 PM

[dead]

yeestwind • today at 4:17 PM

[dead]

lucasdupont • today at 5:15 PM

[dead]

aitchek • today at 3:41 PM

[dead]

t9tokenbudget • today at 3:20 PM

[dead]

fami-hn • yesterday at 10:02 AM

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.

➕ show 1 reply
nokapad • today at 1:14 PM

[dead]

binaryturtle • today at 12:50 PM

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

Birkoff • today at 12:15 PM

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 • today at 11:53 AM

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.

slurpyb • today at 3:29 PM

Claude write an article with this data

themgt • today at 12:54 PM

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

➕ show 3 replies
matreshka15 • today at 12:02 PM

[dead]

mangod12 • today at 3:15 PM

[dead]

jkondo • today at 1:26 PM

[dead]

yunyang088 • today at 12:34 PM

[dead]

srikondapalli1 • today at 2:46 PM

[dead]

claudiopi • today at 1:29 PM

[dead]

aadieng100 • today at 1:04 PM

[dead]

Nik0laich • today at 4:27 PM

[dead]