My (agentic) take on blogs
Classic blogging engines treat a post as a document. With agentic coding, a post can be whatever the idea needs: text, a tool, a simulation or a small app. Here's why, and how this blog is built.
For as long as I’ve been reading blogs, a post has meant text with a few pictures. If an author wanted to show how something behaves, they took a screenshot, drew a diagram, or linked to a demo somewhere else.
This blog works differently. Every post can be a small application. Some posts will still be plain text, and that’s fine: when words are enough, words are the best format. But when an idea is easier to understand by trying it, the post can let you try it.
The static boundaries of classic blogging engines
WordPress, Ghost, Medium, Substack and static site generators like Hugo or Jekyll all share one assumption: a post is a document. The content is rich text or Markdown, a theme decides how it looks, and the engine turns it into pages. That’s a great model for writing, and it has edges you notice as soon as you want more than a document:
- Content is a fixed set of blocks. Paragraph, heading, image, quote, code, embed. Anything else needs a plugin, a custom block or a shortcode that someone has to build and maintain, for the whole site rather than for the one post that needs it.
- Interactivity is outsourced. The usual way to show something live is an embed: a code sandbox, a video, a widget from another service. Those are iframes from third parties that load their own scripts and often set their own cookies, which in Europe usually means a consent banner before anything appears.
- Hosted platforms don’t run your code. On Medium or Substack you can’t add your own JavaScript at all. Self-hosted engines let you paste HTML and scripts into a post, but they end up in a database field: no version control, no tests, no build step.
- The editor shapes the content. A visual editor is the right tool for text and the wrong tool for a simulation. What’s easy to make in the editor is what gets made.
- Every post wears the same theme. A post can’t bring its own layout or styles without touching the theme for everyone.
- Anything with state is a separate project. A live counter, a shared whiteboard or an AI feature means another app with its own hosting, accounts and maintenance.
None of these limits are bugs. They’re the price of a tool that lets anyone publish without writing code, and for a long time that was the right trade-off: a custom interactive piece for a single post took days of work.
What changes with agentic coding
I, like many others, now write software together with a coding agent (Claude Code). I describe what a post should show, and the agent writes a first draft of the text and the code behind it: components, diagrams, simulations, and a server endpoint if the post needs one. A custom interactive piece for one post is no longer a project. It’s a conversation.
That flips the trade-off. When one-off code is cheap, the document model stops being the safe default and becomes the limiting factor. So this blog is a codebase, not a CMS. Each post is a folder: the text in MDX, and next to it the components only that post uses. The agent can build whatever the post needs, and I keep control of the words.
What that makes possible:
- Posts that are tools. A calculator, a checker or a configurator that you can actually use.
- Explanations you can play with. Change a parameter and watch the result, instead of reading about it.
- Diagrams that move. A flow diagram can show the traffic it describes, not just boxes and arrows.
- Posts with a small backend. Live data, shared state or an AI call, on the same platform, only for the posts that need it.
- And plain text, whenever that’s the best way to say something.
Try it: x-ray this page
This post is an example. Switch on the x-ray to see how it’s made: which parts are Markdown, which were rendered by a component when the site was built, and which are islands of JavaScript running in your browser. The numbers below are measured live from what your browser loaded for this page.
Measured with your browser’s Resource Timing API; script sizes are compressed. Nothing is sent anywhere or stored.
Architecture and creator’s workflow
Here’s what’s behind this blog, and how a post moves through it, from an idea to your browser. Press play to walk through the steps, or pick one from the list.
- Me (Me): Ideas at random moments
- Claude Code (My laptop): Writes drafts and code
- Git repository (My laptop): Private: posts, components, drafts
- Astro build (My laptop): MDX + Preact islands → static files
- Cloudflare Access (Cloudflare · private): Only I get in
- Preview Worker (Cloudflare · private): Drafts, text editor, assistant
- Durable Object (Cloudflare · private): My edits and chat, one per post
- Workers AI (Cloudflare · private): Writing assistant
- Public site (Cloudflare · public): Workers static assets at the edge
- Per-post backend (Cloudflare · public): Durable Objects, KV, D1, AI: only if needed
- Readers (Browser): HTML and small islands, no tracking
- Idea. An idea shows up, wherever I am. I describe it to Claude Code: what the post should show, and what a reader should be able to try.
- Draft and code. The agent writes a first draft of the text and the code the post needs, in one folder of a private Git repository: the post in MDX, its components next to it. Astro turns that into static HTML, with JavaScript only for the interactive islands.
- Private preview. Drafts go to a separate preview Worker behind Cloudflare Access. The Worker checks my Access token on every request, and the public site never contains drafts.
- My edits. I read the post where it will live and edit the text right on the page. A writing assistant on Workers AI sees what I’m working on and proposes changes I can take or leave. My edits and our chat are stored in a Durable Object for the post.
- Merge and publish. The agent folds my edits back into the source and shows me the diff. The same build then goes live as static files at the edge, with a small backend only for posts that need one. Readers get HTML, a few kilobytes of JavaScript, and nothing from other sites.
The step I like most is the fourth. The agent is good at code and fast at drafting, but the voice of a post should be mine.
AI on both sides of the page
So far, AI has helped me build this blog. Now it also helps run it, in three places.
- When I write. On the private preview, a writing assistant sits next to the post. It sees which paragraph I’m working on and proposes changes I can take or leave. It runs on Workers AI (GLM-5.3), so my drafts stay on Cloudflare.
- When you comment. Every comment is checked before it appears. A small classification model (Clef-flash on Workers AI) sorts it into acceptable, offensive, discriminatory, inappropriate or spam, usually in well under a second. When it isn’t sure, a larger model (GLM-5.3) reads the comment against written comment rules and decides. If your comment isn’t published, you see why and can rephrase it, and rejected comments aren’t stored. Every comment can be reported; a report triggers a slower, more careful review that tells sharp criticism apart from attacks on people. Before any of that, Cloudflare Turnstile checks that a person is writing.
- When an agent reads. Every page also exists as Markdown: an agent that asks for
text/markdowngets the text, the diagrams as lists and a description of the interactive parts, converted at the edge by Cloudflare. A small index at /llms.txt lists all posts.
Of course, I can manually hide, restore or respond to comments, but AI helps me to minimize the effort.
What stays the same
Some things don’t change just because building got easier. Pages should load fast and work without JavaScript wherever the content allows. There’s no tracking, and nothing loads from other sites unless you start writing a comment (then Cloudflare Turnstile does its check). Every post is versioned in Git, so every change is traceable.
Classic blogs answered the question “how can anyone publish text?”. Agentic coding lets me ask a different one: what’s the best way to show this idea? Sometimes the answer is still a few paragraphs. Sometimes it’s an app.
I work at Cloudflare, and this blog runs on Cloudflare products. It’s my personal blog: the views are my own, and Cloudflare hasn’t reviewed or endorsed it.