My Most Boring Project Is My Most Valuable

The most valuable code I’ve ever written is a folder full of Markdown files that only exists on my machine. The setup is boring, and plenty of people have landed on something similar. This post is about the parts that weren’t obvious: two rules I got wrong, why a small map over a large archive works, and the one line in my agent’s “dream” cycle that I think matters most.

Context

Earlier this year I went through the same journey a lot of people did. AI coding agents went from a novelty to something that entirely changed how I write software, and I found myself looking at every step of the software development process through the lens of the powerful new tools available to me.

Like any tool, it rewards the time you put into understanding it. So I treated it that way. I invested the time to learn how it actually works, where it falls short, and how to get the best out of it day to day with as little wasted effort as possible.

I was spending too much of my day as a very expensive copy and paste machine, explaining the same codebase to a new session every morning. The goal I set myself was to climb one rung up the abstraction ladder. Instead of directing each session, I wanted to describe where our architecture needed to go, and have agents plan and do the work themselves, with me able to step in whenever I needed to.

My worry was never really whether the agents were capable. They’re very capable. My worry was the code they were working in. Like most codebases that have been around a while, ours is full of decisions that made sense at the time and aren’t written down anywhere.

The example I keep coming back to: an agent was asked to tidy up some code and found a number that had been hardcoded. It did the sensible thing and replaced it with a query that calculated the real value. What it couldn’t know was that the table behind that query had hundreds of millions of rows, and the number was hardcoded on purpose. Nothing in the code said so. A perfectly reasonable change took the service down.

A new human engineer would have made exactly the same change. What was missing was context.

ℹ️ I use a few different agent tools. Most of this post applies to any of them, and where something is specific to one tool I’ll say so. I’m deliberately not going to talk about the details of the systems we build at work.

The Setup, Briefly

The core of what I built is boring, which I think is a good thing. It’s a folder of Markdown files in Git on my laptop, and every agent tool I use reads and writes it.

I’m far from the only person to land here. Plenty of people have settled on a folder of Markdown in Git as memory for their agents. Coding agents already search with grep rather than a vector database, and coding tools are close to interchangeable, so keeping the memory outside any one of them is the obvious move. I won’t argue for any of that again. It’s the same instinct as Just Use Postgres for Everything. PostgreSQL is around 30 years old, rock solid because it needs to be, and boring because it needs to be.

The folder has four parts.

The setup took an afternoon. Learning what to put in it took months, and that’s the part worth writing about.

Two Rules I Got Wrong

Write Down How to Find a Fact, Not the Fact

It’s well known that an out of date instructions file is worse than none, because agents trust it. I’d seen it happen. A page lost the person’s place after signing in because the project’s instructions file said it had to navigate to a new URL. That wasn’t true, but the code followed the file faithfully.

What I didn’t expect was how hard it is to keep even one line true. My own instructions file said which time zone the log timestamps were in. Four days later my laptop was in a different time zone, and the line was wrong. I corrected it to name the boundary. That was wrong too, and so were the next three attempts. The version that finally stuck doesn’t name a time zone at all. It tells the agent to run date and find out.

That’s the rule I’d pass on. A line that states a fact about the environment freezes it, so write down how to find the fact instead: a command to run, a file to read, a query to check. The environment changes. The way to look it up rarely does.

Give Every “Don’t” Rule a Floor

I keep a file of open questions that only I can answer, and any session that has my attention is meant to raise one. After two sessions asked me the same question 17 minutes apart, I added a rule: don’t ask again about an item that’s waiting for a reply.

Four days later every item in the file was waiting for a reply. Sessions read the file, applied the rule correctly, and raised nothing for two days, while one of the items had a deadline running. The duplicate question had cost me a few seconds. The silence cost two days.

Most of what’s written about agents and “don’t” rules worries about the opposite problem: an agent that ignores the rule. This one obeyed it perfectly. So the test I use now for any “don’t do X” rule is: if an agent obeys this perfectly, every time, what does it end up doing? If the answer is “nothing”, the rule needs a floor. Here, the floor is to ask again once an item has waited a day.

A Small Map Over a Large Archive

The common advice right now is that less is more. Big instruction files make agents worse and cost more. Geoffrey Huntley keeps his agent’s notes brief and throws its plans away often. My folder looks like the opposite: about 650 files and nearly three million words, and it only grows.

The difference is what gets loaded. Every session loads the instructions file, which works as a map. It holds the rules that apply everywhere, and links to about 180 notes by topic, so an agent about to touch, say, Terraform knows which notes to open first. Everything else stays on disk until an agent goes looking for it. Finding every note about advisory locks is one grep, and it takes about 15 milliseconds.

I’ll be honest that the map has grown. It’s about 12,000 words, which is too long, and I’m still cutting it. But it’s under half a percent of the folder, and the rest costs nothing until it’s needed. A short lived loop like Huntley’s should forget almost everything. Memory that has to last for months, across tools and models, has to keep it somewhere. The trick is keeping it out of the context window until it’s asked for.

Plain text search finds words, not meaning. A search for “deadlock” won’t find a note that only says “the suite hung”. Agents try a few words before they give up, and I write notes with the words I’d search for. If that ever stops being enough, I’ll add better search on top and keep the files.

Every Repository on One Disk

Early on I cloned every repository at work onto my laptop, close to a hundred of them, side by side in one folder. Instead of starting an agent inside the one repository I’m working in, I start it in my home folder, where it can see all of the code and the notes at once.

That turned out to matter more than I expected. Most interesting questions cross a repository boundary: who calls this endpoint, which services still read this column, how another team already solved the same problem. With everything on disk, each of those is one grep, and the agent answers it the same way it searches the notes. Every repository also has an AGENTS.md in the same structure, so wherever the agent lands, it knows where to start.

The catch is that a local copy goes stale. A hook checks whether a repository is behind before an agent reads it, and warns the agent if it is, so it doesn’t plan against last month’s code.

Three Mentions Before It’s a Fact

The daily log exists because a stop hook in Claude Code won’t let a session finish until it has written to it. The logs roll up into weekly summaries, and the dream cycle reads them a few times a day, on a schedule and whenever I end the day by typing “sweet dreams ♥️”. It’s a slightly silly prompt, and I’ve grown quite attached to it.

I’m honestly not sure how much value the dream cycle adds. It’s what produces most of the longer lived lessons in the folder, but mostly because I haven’t written anything else that does. I think its real value is one line in its instructions: only write something down as a fact once it has come up three times.

A single session is often wrong. It misreads a log, trusts a stale line, or generalises from one case. Three separate sessions running into the same thing usually aren’t. That one rule keeps a lot of confident nonsense out of the folder, and it’s the difference between a memory and a pile of guesses. OpenClaw has a fuller version of the same idea, which it also calls dreaming, and it scores how often something comes up before it promotes it to long term memory.

What the Next Model Won’t Eat

Stanislav Zmiev’s The Bitter Lesson Ate Your AI Factory argues that every workflow we wrap around a model is a bet on its weakness, and the next model makes it useless. I think he’s right, and I think it splits this folder in two.

The rules are scaffolding. Both rules I got wrong were attempts to steer behaviour, and a better model needs fewer of them. My map will keep shrinking, and if the dream cycle’s lessons stop earning their place, it will go too.

The facts aren’t. No model can work out from the code that a constant is hardcoded because the table behind it has hundreds of millions of rows, or what I decided last week and why. Sutton’s bitter lesson says general methods like search beat hand built knowledge. So I give the model more to search, not more rules: every repository on one disk, and a growing archive of what actually happened.

If I had to keep one line from all of this: write down what the model can’t know, not how it should think.

What I’d Tell Someone Starting Out

The work hasn’t gone away. A lot of it has moved from writing code to writing down what the code can’t tell you, and checking that what I wrote down is still true. That turns out to be most of the job of a senior engineer anyway. It’s just a lot more obvious when your team doesn’t remember yesterday.

The only recommendation I will make is to take the time to learn and understand the tools you are working with. Agents are tools too, and the ones I work with read every word I write down. That’s worth taking seriously.

References

AGENTS.md

Just Use Postgres for Everything | Amazing CTO

Markdown as agent memory | The New Stack

Ralph Wiggum as a “software engineer” | Geoffrey Huntley

The Bitter Lesson Ate Your AI Factory | Stanislav Zmiev

The Bitter Lesson | Rich Sutton

Dreaming | OpenClaw