The problem
One AI agent session is easy. Many sessions across many projects forget what was decided, repeat work and lose the thread. Engineering organisations solved this long ago with structure and written records.
What I set out to do
- One place for the truth. Every task, decision and handover in one database, not scattered notes.
- Every session picks up where the last stopped, with a brief of the course, the open tasks and the last handover.
- Agents record their work as they go, so I can see it.
How I worked
I designed it like the engineering organisations I’ve run: clients have projects, projects have phases, and tasks sit in a phase. Each task carries a goal, a definition of done, a next step and a blocker. A “First Officer” agent keeps watch over it all.
The hard parts
Making agents keep the record
Agents fall back on habit. Hooks now stop it: notes can’t go into stray files, a session can’t end while code has changed since its last note, and every commit must name a task.
One source, two doors
The web page and the terminal command share one database and one set of rules, so they can’t disagree.
Real work, moved in
A real client project was moved in from its old documents, so the system was proven on real work, not a demo.
What was built
A local operations system: clients, projects, phases and tasks, the decision log and handovers, and a terminal command agents use as they work.


How it was made
Python and SQLite on my own machine, driving Claude Code sessions. HeartBeat Village is its graphical front end.
