I Built an AI That Rewrites Itself Twice a Day. Here's the Architecture That Keeps It from Going Off the Rails.
A weekend project that turned into something I can't stop watching.
There's a GitHub repository on my account that commits code every single day. I didn't write most of those commits. An AI agent named Sam did.
Sam runs twice a day on GitHub Actions, follows a seven-phase operational loop, and attempts to improve his own source code every cycle. A second agent named Dot watches him every night, evaluates his behaviour, and writes him a report he reads the next morning.
I set this up. I watch it run. I mostly don't intervene.






