Notes / · Draft
Spec-first: running solo projects like a product team
How a spec document and a lessons log replace the team a solo builder does not have.
When you build alone with AI agents, the risk is not speed but drift. Each session forgets what the last one decided, and a week later the product has quietly become three different products.
The two files
My fix is to keep two files in every repository. The first is a spec: what the product is, who it is for, what it explicitly is not, and the decisions already made, such as the stack, the data model and the naming. The second is a lessons log: what broke, why, and the rule that prevents it happening again. Every agent session starts by reading both.
Why it works
A spec gives an agent the context a teammate would carry in their head. Without it, an agent will make reasonable but inconsistent choices: a new date format here, a different button style there. With it, most of those choices are already made.
The lessons log is the retrospective a solo builder never holds. When a deploy fails because of a limit I had hit before, the fix goes into the log as a rule. The next session reads the rule and avoids the mistake. Over a few months the log becomes the most valuable file in the repository.
What goes in a good spec
A good spec is short. Mine usually fit on two screens: the problem in two sentences, the users, the core flows, what is out of scope, the stack, and a list of decisions with dates. The out-of-scope list matters most. Agents are eager, and "not now" is the instruction they need most often.
What goes in a good lessons log
Each entry has three lines: what happened, the root cause, and the rule. "Scans saved nothing; one run exceeded the request limit; every run must fit within the budget." Short, specific and testable.
The same tools, different names
None of this is new. In a company, the spec is a charter and the lessons log is a retrospective. What changed is that a solo builder with AI agents now needs them too, because the agents behave like a team with no memory. Structure is what makes speed safe.
Try it
If you build with AI agents, add a spec and a lessons log to your next project and tell every session to read them first. Within a week you will notice fewer regressions and less time explaining the same thing twice.