Journal · The AI Architect · 2026-08-21

Give your project a memory: write the rule you learned the hard way into a notes file so you never relearn it.

Give your project a memory: write the rule you learned the hard way into a notes file so you never relearn it.

The real tension isn’t that we forget things. It’s that forgetting feels cheap in the moment and expensive only later, in a currency we’re bad at pricing: the hour you’ll lose next month re-discovering something you already paid to learn today. Every project has a shadow ledger of debts like this, and almost nobody keeps books on it.

The lesson doesn’t count until it’s written down

Here’s what actually happens. You hit a bug, or a weird edge case, or a decision that took an hour of debate to settle. You fix it, you move on, and your brain quietly files the experience under “things I now know.” But that filing system is unreliable. It’s tied to mood, to sleep, to whether anything else memorable happened that week. Three months later you’re in the same spot, and the lesson doesn’t surface. Not because you’re careless, but because a lesson that lives only in your head isn’t actually learned by the project — it’s learned by a person, and people are temporary custodians of context.

The fix is almost insultingly simple: when you learn something the hard way, write one sentence about it in a file that lives with the project. Not a journal entry, not a retrospective essay — a plain, flat rule. “Don’t run the migration script twice; it silently duplicates records.” “The API times out under 3 seconds if you don’t set the header explicitly.” “We tried caching this and it caused more bugs than it solved — leave it alone.” These aren’t insights. They’re scar tissue, written down so the next person (who might be you) doesn’t have to get cut again.

Try this: create a file called LESSONS.md or gotchas.txt at the root of your project right now, before you finish reading this. Put one thing in it — the most recent mistake you made that cost you more than twenty minutes. Just one line. That file will feel useless today. It will not feel useless in four months.

Make the memory cheaper to check than the mistake is to repeat

A notes file only works if checking it is easier than not checking it. If the file is buried, unsorted, or written in the voice of someone explaining things to a stranger, you won’t open it under pressure — and pressure is exactly when you need it. So the second discipline isn’t writing the note, it’s making the note findable.

Keep entries short and scannable. Group them by area if the file gets long — “database,” “deploys,” “third-party APIs” — but resist the urge to make it tidy before it’s useful. A messy list you actually read beats an organized one you don’t. And put it somewhere it will physically cross your path: at the top of your README, linked from your task board, or as the first thing your setup script prints. The goal isn’t a museum of past mistakes. It’s a habit of glancing at the ledger before you repeat a transaction you’ve already paid for once.

Try this: the next time you’re about to do something that gives you a flicker of “wait, didn’t this bite me before?” — stop and check the file before you proceed, even if it takes ten extra seconds. That small pause is the entire practice. Everything else is just bookkeeping.

The file is for your team, including the future version of you

There’s a quieter reason this matters, beyond saving time. A shared lessons file changes how a team relates to mistakes. Instead of an error being a private embarrassment someone quietly fixes and never mentions, it becomes a contribution — something that makes the whole project slightly more resilient. That reframing costs nothing and pays out constantly. People stop hiding the moments they got something wrong, because writing it down is treated as normal maintenance, not confession.

And if you work alone, the “team” is just you across time. The person who wrote the note in March is doing a favor for the person debugging in October, and that October version of you will not remember March nearly as well as March-you assumes. Write for that stranger. They’re less capable than you think, and more grateful than you’ll ever hear.

None of this requires tooling, discipline you don’t have, or a system overhaul. It requires one file and the willingness to spend thirty seconds after a hard-won fix, instead of trusting your memory to do a job it was never built for.

This is a small piece of a larger habit — one about building projects that hold their own knowledge instead of leaning entirely on the people who happen to be present. I go into that idea more fully, with more of the mechanics and the failure modes, in the book. But the notes file alone is worth starting today.


Go deeper. The full method is in The AI Architect. New here? Start with the free companion pack, or explore the series.

The The AI Architect newsletter

One calm email now and then — new books, the occasional essay, and companion pack updates. No spam. Unsubscribe anytime.