Work / CS-15
Running infrastructure with AI, and making it document itself
- Year
- 2026
- Type
- Personal project
- Themes
- AI, Platform/DevOps, Personal
- Stack
- Claude Code, hooks, runbooks
Result, up front
- ~25runbooks, each with a last-verified date
- Dailyinventory regenerated from live state
Situation
I operate the home platform with an AI coding agent. AI-run operations drift fast if nobody writes down what changed.
What I did
Wrote a hook that won’t let an AI session finish until any change to the server is recorded in the docs. Built about 25 runbooks, each with a last-verified date, plus a log of rejected approaches. A daily job regenerates the server inventory from live state and flags anything undocumented.
Result
The documentation stays true, and I can hand a task to an agent and trust the record of what it did.