My blog workflow so far
I haven’t exactly been consistent with this blog. I’ve always ended up putting other things first and leaving it pretty much aside. What’s interesting about leaning on AI to publish is that I’m less tempted to put it off, because some parts of the process have become much lighter.
I won’t say that writing has become trivial, but it has certainly become much more comfortable. Sometimes I ask the AI to help me draft; other times I simply dictate the post to it, or have a conversation with Claude and ask it to keep writing down the conclusions as we go.
In fact, one of the big advantages of writing with AI is that the starting point no longer has to be me sitting in front of a keyboard. This very post started as a spoken conversation with Claude. The series on events grew out of a training session recorded on video. The idea for You don’t need a harness came to me while driving back from TRGcon, and the post grew out of a conversation with Claude over the car’s hands-free. It could just as well be a talk of mine that’s published online, or anything along those lines.
That’s what is changing my relationship with this blog. I don’t think I’ll become a very prolific writer, but a barrier that used to hold me back from publishing more is gone.
The text comes out fast. The bottleneck comes later, in the review. That’s why improving my workflow has been so important: otherwise, the process becomes a drag, and I’m back where I started, putting off writing.
The problem: reviewing while jumping between three windows
That workflow worked really well for writing, but when it came to reviewing I kept jumping between three places: the conversation with Claude, the post preview in the browser, and the Markdown editor in Visual Studio Code.
When I asked Claude to review some part of a post, its comments pointed to specific fragments of the document, and I had to go and find them by hand. Sometimes it wasn’t clear which part it was talking about, and the whole thing felt a bit awkward.
On top of that, I edited the Markdown in VS Code, whose preview looks nothing like the published post and doesn’t render the diagrams, so every change meant going back to the browser to see how it really looked.
The result was a slow, awkward review cycle: read Claude’s comment, find the fragment it refers to, edit it, see how it looks in the browser, realize I want to nuance something else… and start all over again.
The solution: connecting the dev server to T3 Code
In the end I realized I could tackle the problem from the blog itself: change the server I use in development mode and connect it to T3 Code, the app I use to interact with Claude. I love T3 Code, to the point of running my own customized fork of it, but that’s another story.
With that connection, I now work only on the post preview, the same one readers will see. From there I can select any fragment of the text and ask T3 for things directly about that selection. For example:
- Rephrase a sentence.
- Suggest three alternatives to a sentence.
- Insert some kind of new content at that point.
- Find something on the web and link it, like the URL of T3 Code in the previous paragraph.
- Translate from Spanish into English.
That last one is especially useful for me. I write the blog in English, but I’m not a native speaker, so it’s often easier for me to do what I’m doing right now with this post: lay out the ideas in Spanish and let the translation come later.
And the best part is that everything I ask for shows up right away: T3 writes it into the Markdown as a suggestion, and the preview updates without me touching anything. When I ask for several alternatives to a sentence, all three show up one below the other, each marked with a code that lets me accept or reject it with one click.
How I built it
Under the hood there’s less magic than it seems. It’s all an Astro integration, about 1,400 lines of TypeScript in src/lib/editor/, that only hooks in when the command is astro dev. None of it reaches the published site: astro build produces exactly the same static pages as before.
The first problem was knowing where each fragment comes from, that is, mapping a selection in the browser back to the Markdown. Astro renders posts through a Markdown processor, and I added a small plugin to it that, in dev only, tags every block (paragraphs, list items, headings, table cells, code blocks, diagrams) with a data-editor-src attribute holding the file and lines it came from, like src/content/posts/2026/my-post.md:12-15. Astro hands the processor the body without the frontmatter, so the plugin looks up where the body starts in the file and shifts the line numbers to match.
With that in place, the editor itself lives in the page. The integration uses Astro’s injectScript to add a client script to every page, again only in dev. It listens for text selections and shows the Feedback and Rephrase buttons, or Accept, Reject and Comment when I hover over a suggestion code. Each item records the selected text, the data-editor-src of its block, and the nearest heading. The batch is kept in localStorage, so it survives a reload.
To get from the browser to T3, the integration also adds a few endpoints under /__editor/ to Astro’s dev server, as Vite middleware. When I click Send to T3, the browser posts the batch, and the server turns it into a single prompt, with the file, lines, section and quoted text of each item along with my comment. Then it runs T3 Code’s command-line tool, t3 thread send <thread> -, passing the prompt through standard input.
A single feedback item, for example, reaches the thread like this:
Editor feedback from the dev server (http://localhost:4321/posts/improving-my-blog-workflow-with-ai/), 1 item.
Answer feedback, rephrase and comment items as review suggestions in the post (<del>/<ins> with suggestion codes, following "Reviewing a post" in CLAUDE.md), not as direct edits. Accept and reject items are applied directly. Then summarize the new suggestions by code.
1. **Feedback** on `src/content/posts/2026/improving-my-blog-workflow-with-ai.md`, lines 50 (section "How I built it")
> How I built it
Comment: the format feels a bit austere now, can you rework this section's formatting?
That leaves one question: which thread should the feedback go to? The answer lies in a few environment variables that the server reads when it starts:
T3CODE_THREAD_ID: the T3 thread the server was started from, which is where feedback goes by default.T3CODE_CLI_PATH: where T3 Code’s command-line tool is installed.BLOG_EDITOR_THREAD: my own override, for when I want the feedback to go to a different thread.
T3 Code sets the first two in every process it starts from a thread. So when I ask Claude to start the dev server from the thread where I’m working on the post (the project has a launch configuration that runs npm run dev), the server inherits them and knows where to send the feedback, with no configuration at all. Before running the CLI, the server checks that the thread id only contains safe characters, and the message itself never goes on the command line: it always travels through standard input.
The lookup itself is just a few lines. If the server was started outside T3, it falls back to the CLI’s default install location, and then to t3 on the PATH:
function threadId() {
return process.env.BLOG_EDITOR_THREAD || process.env.T3CODE_THREAD_ID || '';
}
function t3Cli() {
if (process.env.T3CODE_CLI_PATH) return process.env.T3CODE_CLI_PATH;
const installed = join(homedir(), '.t3', 'bin', process.platform === 'win32' ? 't3.cmd' : 't3');
return existsSync(installed) ? installed : 't3';
}
On the agent’s side, the prompt asks the agent to answer with suggestions, not direct edits, and the format is described in the repository’s CLAUDE.md: <del> for what to remove, <ins> for what to add, and a code like S3 in front of each one. Since they’re plain HTML inside the Markdown, the same preview renders them in red and green with no extra tooling.
Accepting and rejecting, on the other hand, don’t go through T3 or the agent at all. Applying a suggestion is a simple, mechanical operation, and handing it to an LLM would only spend tokens and slow down the feedback loop for no reason. The browser calls another endpoint, which finds the code in the file, keeps the contents of the <ins> or the <del>, and cleans up the spaces and blank lines left behind, so the change shows up almost instantly. The more complex cases, like choosing between two versions of a diagram or changing a frontmatter field, do go through T3, and the agent applies them like any other item.
The last piece was refreshing the preview without losing my place. Every change to the Markdown makes Astro reload the whole page, which throws away the scroll position and anything I’m typing. So for a few seconds after a post changes, whether through Accept and Reject or because the agent wrote to the file (which the server catches through its file watcher), the integration intercepts Astro’s full-reload message on the hot-reload channel and sends its own blog-editor:refresh event instead. The client fetches the page again, compares its blocks with the ones on screen, and replaces only those that changed. Everything else, including diagrams that are mid-animation, stays where it was.
An example: asking for an addition
Here’s a typical inline feedback flow, one where I ask for something to be added. I select a piece of the post, in this case the “For example:” right above the list, and write what I want in the box that opens. I can send it right away or add it to a batch with other comments:

A few moments later, the new item shows up in the list as a suggestion with its own code, and I decide what to do with it right there, in the same preview:

Even these two images went in the same way. I took the screenshots, but I didn’t have to save them to disk or insert them into the post myself. I left each one on the clipboard, selected the spot where it should go, and left inline feedback asking T3 to insert the image from the clipboard, explaining what I wanted it to show.
That makes the review cycle even shorter. There’s no more hunting for fragments, copying and pasting, or imagining how the text will look: I see it, decide, and move on.
Diagrams too
Diagrams work exactly the same way. I can ask T3 to rework a diagram or make changes to it, and I see them reflected live, rendered just like in the published post.
If I ask for an alternative version, it duplicates the diagram and shows me both versions together so I can compare them. I pick the one I want to keep and discard the other, just like with sentences.
For example, I asked for a diagram of the editing flow this post describes, in the style of the ones in the series on events, and this is what came back:
Reviewing the whole post
Where the difference really shows is when I ask for a full review of a post. For example, in the series on events I’m writing, I can ask T3 to review the whole post, check that its examples are consistent with the earlier posts in the series, look for inconsistencies or inaccuracies, and so on.
That used to be the most tedious part: a list of comments pointing to parts of the text that I had to track down one by one. Now each suggestion shows up in its place, on the real preview, and I go through them one at a time, accepting or discarding them. It’s a completely visual review.
Conclusion
This is just one example, and building it took me about half an hour of iterating with T3. But we can do the same in many other areas, with the goal of removing the small frictions we run into every day. Not long ago, the cost of building this kind of solution was probably high enough to put us off. Now it’s within reach.
And it doesn’t have to be an inline editor for a blog. It could be a browser extension that helps with something we do every day, or a desktop app that saves us ten minutes a day on tasks we used to do by hand, or gathers information we still go looking for ourselves. It isn’t always about thinking big. Sometimes something as silly as being able to see the battery level of my mouse and headphones (a real case) is already saving me time.