What happened
I wanted my blog to keep publishing in the weeks I had no time to write. The obvious version, an LLM on a schedule posting straight to production, is also the version that eventually puts something embarrassing under my name.
So the design question was not whether an LLM can write a blog post. It was: how much of the loop can I hand over while keeping a veto I will actually use?
The answer was a pipeline. Ideas came from me or from public feeds, a model drafted, two separate safety stages reviewed, and I got a Telegram message with four buttons. If I approved, the post shipped. If I ignored it, it shipped anyway after two hours, unless the safety gate had said no. The first AI-written post went live in February 2026.
How we built it
Four scheduled jobs on Supabase (pg_cron plus Deno edge functions), one shared posts table, and a Telegram bot as the control surface: a morning topic pulse, a draft run an hour later, an auto-publish check every 15 minutes and a daily site rebuild.
Topic pulse. Every morning a fetcher pulled five public feeds on AI and product, removed duplicates and let a cheap model rank the candidates against what had already been written. Any pick whose link was not in that morning's fresh set was thrown away. That one check removed made-up sources.
The drafter. My own ideas always went before feed ideas. The drafter claimed an idea with a conditional database update, so two overlapping runs could never draft the same topic, and it rejected near-duplicates of existing posts before spending any tokens. Claude then wrote roughly 2,000 words of markdown, including an FAQ.
The safety gate. Two stages, two different models:
- Moderation for hard-harm categories, with room to discuss a topic in an educational frame.
- Brand safety: a rubric check for what hurts a personal brand rather than a content policy, such as invented statistics, made-up case studies or takes I would not sign.
Any error (a network failure, a missing key, unreadable output) counted as a flag, never as a pass. Every verdict was logged to a table.
Telegram as the control surface. A passing draft reached my phone with four buttons: approve, reject, edit (a link into the admin screen) and two more hours. Each button was a conditional update on the post's current status, so a tap and the auto-publish job could not overwrite each other: whichever landed first won.
Prompt-injection defence. Feed content is untrusted input that ends up in a prompt. All external text was cleaned of hidden characters and wrapped in delimiters it could not break out of. At the database level, drafts were invisible to anonymous readers.
Outcomes delivered
- A daily publishing rhythm with no required human step, and a one-tap veto when I wanted one.
- A safety gate that failed closed, with every verdict queryable in SQL.
- An admin screen with drafts and countdowns, an editor and an idea backlog.
- 44 unit tests on the pure helpers.
- A disclaimer on every post saying a robot wrote it.
The machine did what it was built to do. The result did not follow: from February to November 2026 it published 196 AI posts, and those posts earned 5 clicks from Google. The full numbers are in 196 AI Blog Posts, 5 Clicks.
What we learned
The approval window is the product. "Human in the loop" usually means a human blocking the loop. A two-hour default-publish window made my attention an optional upgrade instead of a bottleneck.
Fail to flag, never to pass. A wrong verdict is a smaller risk in an LLM safety layer than a crashed check that counts as a pass.
Check LLM output against your own inputs. The ranker could only pick links from the fresh batch. Cheap, predictable, and it removed a whole class of made-up sources.
Conditional updates beat locks. Every state change was an update that only applied if the status was still what it expected. No queues, no locks, no coordinator.
Silent schedules are broken schedules. The auto-publish job alerted Telegram on failure, and the feed fetcher returned an error if all five feeds came back empty at once, so a broken feed and a quiet news day never looked the same.
Output is not outcome. The pipeline hit its own measure, posts shipped, while Google mostly ignored what it shipped.
How we did it
Designed and built with Claude Code in two days: a written design spec, a 27-task implementation plan, then execution task by task.