How this blog gets built: one harness, a handful of AI workers, and Astro
October 8, 2026
Who writes this blog? The honest answer: I do. Mostly. With a small crew of AI workers doing the heavy lifting under supervision — and a website that assembles itself every time one of them touches something.
Back in January I wrote about my “private army of interns” — the subscription carousel of ChatGPT, Claude, Copilot and Perplexity, each good at one thing, each wanting its own monthly fee [1]. That post ended with me annoyed at renting five brains instead of owning one workshop. I stopped renting. Here is how it actually works, without magic.
The harness: pi
At the core sits pi [1], an open-source coding agent that runs in my terminal. “Coding agent” undersells it — in this house it’s the foreman: it reads files, runs commands, edits posts, builds the site, and coordinates the workers. It doesn’t write the prose itself.
The interesting part isn’t pi. It’s what pi is allowed to do. Two rules keep it sane. First, exactly one context optimizer, lean-ctx: it compresses every file the agent reads before it reaches the model — a session that would blow up a normal AI chat stays affordable — and it searches the repo by meaning.1 Second, a deliberately short package list: every installed extension has to earn its place, and anything that duplicates what the optimizer already does gets evicted. That discipline is the only reason the setup survives my experimentation habit.
The models: OpenRouter and a local spare
The elfs that do the job need brains — little magic — and I route them through OpenRouter [2]: one account, one invoice, every model worth using in a catalog. No subscription carousel — the model behind a task is a config line, and swapping it is cheaper than swapping vendors.
The default slot changes constantly — DeepSeek V4 Flash ran nearly everything for months, then GLM 5.3 Flash took over within a day.2 The architecture doesn’t: flash-tier models for the volume work, heavier ones only where mistakes are expensive — DS Pro and MiMo carry the reviewer and planner roles now.
For a blog about community and data ownership it felt wrong to build the thing entirely on rented remote inference, so there is a second path: OMLX — quantized models served off the Mac, slower, dumber, free, private, and there when the internet is being unreliable.3
And the second brain feeds all of this: my own custom knowledge layer with a long-term wiki, durable memory, and dedicated deep-researcher agents. Research doesn’t start from zero every time. Sources get gathered, checked and filed. When this post started, the system already knew how the blog works.4
The workers
Pi can spawn subagents — separate model sessions with their own instructions, tools and context, one job each. Over the last weeks this turned into a small crew:
| Worker | Job | Model profile |
|---|---|---|
| planner | Breaks a task into steps, decides what needs a human | MiMo Pro, medium thinking |
| worker | Does the actual work: writes, migrates, fixes | GLM Flash |
| reviewer | Checks the worker’s output against the task, PASS/FAIL | MiMo Pro, high thinking (DS Pro fallback) |
| critic | Audits the whole chain before anything ships | different model again, deliberately adversarial |
| writer | Ghostwrites prose in my voice | GLM Flash, high thinking |
Two design decisions matter more than the model names. First, reviewer and critic run on different models than the worker — a model checking its own homework finds its own mistakes charming. Second: agents have capability, not authority. A worker can edit the site, a reviewer can approve the work — neither can publish it. The result looks less like one very clever chatbot and more like a tiny organization: specialist roles, independent review, and a human with publishing rights.
The writer produced the first version of what you’re reading now. It ghostwrites prose from my three registered voices — essays, short notes, community pieces — and marks anything it can’t verify with an explicit TODO-DANIEL instead of inventing a fact. Everything it writes goes back through me before it goes anywhere near the publish button.5 The badge under the title renders from the post’s frontmatter; this one reads ‘Human + AI assist’.
The pipeline
Before any of the machinery, there was the blog itself: the old site ran on WordPress, and instead of upgrading it a fourth time I recreated it from scratch on Astro over one weekend — posts, images, tags, the twenty years of URL structure, all moved. The decision-making was already a collaboration back then, the agents just weren’t wired into a system yet. The system came later.
The daily work runs as a tracked workflow called blog-post, stored as a formula in the task system. The chart below is not an image: it is an Astro component rendered by the same build pipeline it describes — pure CSS, zero client JavaScript:
- Idea, dictatedSTT transcript → structured first pass with layout + cross-references
- ResearchChatGPT + Gemini + own deep-research agents, through quality gates
- First draftwriter subagent drafts the markdown, draft: true, invisible to RSS
- Gate: Daniel reads ithuman gateapprove, or send back with feedback
- Imagestwo-tier generation, contact sheet for review (skipped for text-first posts)
- Gate: Daniel picks the visualshuman gateincluding alt text + captions
- Assemble + verifyfigures, taxonomy, SEO — astro check + clean build required
- Publishdraft: false, commit, deploy to Cloudflare Pages
Three parts of it are worth explaining:
- Idea, dictated. The idea is mine, but the raw material isn’t typed — I talk, local speech-to-text turns the ramble into a transcript,6 and the agents turn that into a structured first draft, cross-referenced against existing posts. This post started as dictated thoughts.
- Research plus draft. ChatGPT and Gemini for breadth, my own deep-researcher agents for anything that has to survive fact-checking — then the part no tool can do for me: digesting, revising, rephrasing until it actually says something. The writer turns the result into markdown as a
draft: truepost, visible only on the drafts page. - Two gates, then publish. Gate one: I read it — “rewrite the opening, kill the third section” goes back through the writer, and the image workers’ contact sheet waits for my pick.7 Gate two: alt text, captions,
astro check, a clean build. Onlydraft: false, commit, deploy makes a post public.
The whole thing lives in beads [3], a local-first issue tracker with one workspace per project. Conversation is temporary; workflow state isn’t — where a post stands is a database record, not a chat memory, and no agent can “forget” where it is.
The Astro half
I deliberately made the public side boring. The finished markdown lands in an Astro content collection [4], where a set of small plugins typeset the site at build time — typography, citations, images, link cards. Related posts are computed from content, not hand-picked — so when this post publishes, the pipeline links it next to the earlier AI-and-writing pieces without me remembering to.8
Everything ships as static HTML to Cloudflare Pages [5]. No server, no database on the public side, nothing to break when a model hallucinates. Under this pipeline, an agent cannot publish without my approval — the worst it can do is propose a bad commit, which I review like any other.
Data stories get their own corner as in-post components — animated charts, counters, timelines, or built with other tools entirely. The 17-years-of-TMD data story [12] is the proof of concept: 3,383 events and 761 cities from seventeen years of marathon data, interactive, inside a blog post.
The gate
The elfs don’t publish. Every post passes the two human gates above, and I still read every word before it ships — the agents removed the typing, not the judgment. Which leaves the meta-question you’re probably holding: this post describes the machine that produced it. The writer drafted it inside the pipeline, the workers assembled it, and I am the gate between this draft and your feed reader. Where does authorship lie in a system like this? If the distinction doesn’t hold anywhere, tell me where it breaks.
Footnotes
-
That is what digs up cross-reference candidates while a draft is being written. The alternative is grep-and-pray. ↩
-
DeepSeek V4 Flash 0731, replaced by GLM 5.3 Flash from Z.ai on 2026-09-27. The comparison isn’t close: GLM writes better prose and wastes fewer tokens getting there — better output, less time, less bill. ↩
-
DeepSeek R1 distills, Qwen and Gemma, in 4-bit and 8-bit quantizations, served straight from the Mac. ↩
-
Facts the agents learn about my setup, my projects and my writing get filed into the wiki and resurface in later sessions — the crew remembers across sessions, because the memory lives outside any single chat. ↩
-
The three voices were derived from my actual writing corpus, with the AI-assisted Facebook posts excluded — so it learns my style, not an AI’s imitation of my style. ↩
-
The Parakeet model [6], running locally through VibeSonic [7] on the Mac. ↩
-
A fast cheap Gemini model first, escalating to the heavier one only when a concept needs it. Documented in the tango-image series [8]. ↩
-
Curly quotes and em dashes from plain ASCII; citations deduplicated, renumbered and resolved into a Sources section with backlinks; lazy-loaded images; external-link cards. Related posts come from BM25 over title and body plus a shared-tag tiebreaker. ↩