This reflects my experience too.
You can't just dump all considerations on a single agent and expect them to follow every single rule while also making the right tradeoffs. Fundamentally the game is how do you orchestrate agents to elevate the right considerations for human awareness and input. Models and harnesses will continue to get better which will continue to raise the ceiling on what you can naively throw at a single agent, but the buck always needs to stop with human at some point, because otherwise what are we even doing here?
*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
1. https://www.sourcery.ai/ - disclosure, I'm the CEO
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.
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
If you don’t want to use an api, then centralize all your tickets in one repo, organized by project.
I have a workflow that creates a project folder, gives it a README.md, and git init's for everything. But the README.md also accumulates the TODO list which is where the tickets get put and it builds up a bit. I wonder if git has some esoteric way of doing this already that I could use...
I used to do this. One folder per epic with numbered files describing the work, acceptance details ..etc.
Now I use Beads and it’s been a game changer.
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.
0. Introduction (AGENTS.rfc)
This file is designed for the humans working on the project, in
collaboration with an AI agent. Regularly ask the AI agent to
summarize this file to your typical `AGENTS.md`, but collaborate
with the agent and work to modify `AGENTS.rfc` when composing
new rules or guidance.
It is written in an RFC-style format (but slightly modernized)
which should trigger the right type of tone and processing for
both humans and agents.
...and here's some "answerless prompts" which you can use your big human brain to imagine the AI responses: "review agents.rfc and explain some of the benefits of it compared to only having agents.md"; "calculate prompt and context impact estimation between the RFC and the raw *.md"Basically, the `*.rfc` has the justifications + rationales: AGENTS.md says don't mock in-repo code. The RFC explains that mocks reimplement behavior, so when real code changes, the test stays green against the stale mock — "worse than no test, because it creates false confidence."
...however the `AGENTS.md` just has the directive(s) "Don't mock in-repo code, ask before mocking, only mock external boundaries, ..."
So on every context turn the agent is getting an abbreviated (low-token) mandate "don't mock by default", but if it starts going off track I say: "Penance! Read AGENTS.rfc, contrast against your proposed code, go fix it, and then propose updates to AGENTS.rfc and AGENTS.md so you don't do it again..."
The rules decay without the "why", and maintaining the "why" gives better guidance. Good rules can take up "too much context" (especially earlier, before 1M context windows...) and most of the time our busy-bee coding assistants don't really need the rationales (unless you're collaborating to update or understand the rules that caused the incident).
Again... this was really effective ~6-9 months ago, but the pace, capacity, and capabilities are increasing so quickly this is probable just another "bitter lesson" moment.
Is it just me, or does AI research increasingly feels obvious, or dated?
Then, universities started feeling left out because web was where all the jobs were at, and bootcamps were becoming a Big Thing, so the departments changed to include more "real experience", going so far as to even include some basics in version control!
Now, we've had a decade or so of research outside of academia utterly leapfrog where a lot of the academia research was in AI, and they're feeling left out again. Sadly, the rigor and process of researching, authoring and publishing an academic paper takes much more time than throwing out some blogspam. Processes designed around understanding immutable facts of nature (everything from laws of physics to chemical interactions to sociological development) don't cope very well with fields that change every time you blink.
In the end I think we create a lot of noise with carelessly crafted agents.
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...
Building good, deterministic guardrails and letting agent go hogwild inside the bounds is faster and if you setup your constraints, better.
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