<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Tech Sharing on Mason's Blog</title><link>https://masonhu.org/en/tags/tech-sharing/</link><description>Recent content in Tech Sharing on Mason's Blog</description><image><title>Mason's Blog</title><url>https://masonhu.org/images/mason.png</url><link>https://masonhu.org/images/mason.png</link></image><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 30 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://masonhu.org/en/tags/tech-sharing/index.xml" rel="self" type="application/rss+xml"/><item><title>Launched a Multi-Agent Web-Novel Writing Toolkit</title><link>https://masonhu.org/en/post/blog20260630/</link><pubDate>Tue, 30 Jun 2026 00:00:00 +0000</pubDate><guid>https://masonhu.org/en/post/blog20260630/</guid><description>After the video studio, I built an automated novel studio with six AI agents. Let&amp;#39;s talk about why writing fiction also deserves a pipeline, and why &amp;#39;mandatory batching&amp;#39; and &amp;#39;consistency gates&amp;#39; matter so much for long-form work.</description><content:encoded><![CDATA[<p>A while after open-sourcing <a href="https://github.com/masonblog/Video-studio-skills" target="_blank" rel="noopener noreferrer">Video Studio Skills</a>
, I put together a sister project: <a href="https://github.com/masonblog/Novel-studio-skills" target="_blank" rel="noopener noreferrer">Novel Studio Skills</a>
.</p>
<p>It&rsquo;s a multi-agent web-novel writing toolkit built for tools like <a href="https://github.com/anthropics/claude-code" target="_blank" rel="noopener noreferrer">Claude Code</a>
, Codex, and <a href="https://github.com/NousResearch/hermes-agent" target="_blank" rel="noopener noreferrer">Hermes Agent</a>
. Simply put, it lets you form a virtual novel studio with six AI agents that take a story from project planning, worldbuilding, outlines, and setting cards all the way through to the manuscript, the final edit, and cover illustrations. You only need to hand it a rough concept.</p>
<h2 id="why-build-a-pipeline-for-writing-fiction">Why Build a Pipeline for Writing Fiction</h2>
<p>A pipeline for video makes intuitive sense: video is already a divided job—research, scripting, voiceover, editing. But writing a novel sounds like one holistic act. Why break it apart?</p>
<p>Because I&rsquo;ve written long-form with a single large model myself, and I kept hitting the same potholes:</p>
<ul>
<li><strong>It drifts the longer it goes.</strong> At the start it remembers the protagonist has a scar on their left hand; by chapter thirty that scar has vanished. Settings, names, places—they quietly start contradicting each other.</li>
<li><strong>It collapses when asked to write too much at once.</strong> Tell the model to &ldquo;keep going,&rdquo; and it either rushes through a few paragraphs to wrap up, or it starts forgetting earlier events once the context fills up.</li>
<li><strong>A strong &ldquo;AI flavor.&rdquo;</strong> Just like with video scripts, models love to pile on ornate parallelism and grandiose adjectives in prose, and it reads as fake.</li>
</ul>
<p>All of these come down to one thing: a single brain trying to manage the global setting and the line-by-line writing at the same time. So I wanted to try the same trick as the video project—split novel creation into roles that each own one slice, and have them hand off through files rather than relying on one conversation&rsquo;s context to carry everything.</p>
<h2 id="six-agents-each-owning-one-slice">Six Agents, Each Owning One Slice</h2>
<p>In this project, I broke novel creation into six roles:</p>
<ul>
<li><strong>Chief Editor</strong>: The studio&rsquo;s general manager. Receives your concept, drafts the implementation plan, drives the workflow, reports back in stages, and signs off on final delivery.</li>
<li><strong>Architect</strong>: Lays the foundation. Worldbuilding, the synopsis, and chapter outlines all come from here.</li>
<li><strong>Lore Master</strong>: Turns abstract settings into concrete &ldquo;cards&rdquo;—character cards, location cards, key-item cards, key-plot cards—a dictionary the writer can look things up in.</li>
<li><strong>Writer</strong>: Drafts the manuscript in batches.</li>
<li><strong>Editor</strong>: Polishes the prose and checks it item by item against the synopsis and the setting cards for consistency.</li>
<li><strong>Designer</strong>: Produces text-to-image prompts and specs for the cover, character art, and key-scene illustrations.</li>
</ul>
<p>Above all of them sits a shared &ldquo;constitution&rdquo;—the master skill <code>novel-studio</code>—which defines the pipeline&rsquo;s state machine, the project directory layout, the batching rules, and the quality gates. All collaboration happens through files in the project workspace, with <code>project.yaml</code> tracking progress, so even if you write five chapters today and pick it back up next week, it can resume from where it left off.</p>
<h2 id="the-iron-rule-of-mandatory-batching">The Iron Rule of &ldquo;Mandatory Batching&rdquo;</h2>
<p>If &ldquo;de-AI polishing&rdquo; was what I cared about most in the video project, then in the novel project the thing I obsessed over was <strong>mandatory batching</strong>.</p>
<p>A long novel easily runs to dozens or hundreds of chapters. Let the model &ldquo;write it all in one go&rdquo; and the second half will fall off a quality cliff. So I baked in an iron rule: by default, only 5 chapters per batch. When a batch is done, it must stop, the Chief Editor sums up that batch&rsquo;s results and reports back to you, and only after you confirm does the next batch begin.</p>
<p>This buys two things. First, it cuts the quality risk into small chunks—if a batch isn&rsquo;t good, you re-run just that batch instead of starting over. Second, it fits the reality that agents &ldquo;forget&rdquo;: each batch ends by producing a rolling recap and a settings index, and the next batch starts by reading that compressed memory rather than wading through tens of thousands of words of raw text.</p>
<p>To fight the &ldquo;drifts the longer it goes&rdquo; problem, I also set up three consistency gates: once a name is frozen in a setting card it can&rsquo;t be changed → the writer self-checks before submitting → the editor does two passes of cross-checking. Run that gauntlet, and that scar on the protagonist&rsquo;s left hand isn&rsquo;t going anywhere.</p>
<h2 id="a-few-thoughts">A Few Thoughts</h2>
<p>Having built the video studio and then this one, I&rsquo;m increasingly convinced that what multi-agent collaboration actually solves isn&rsquo;t &ldquo;making AI smarter&rdquo;—it&rsquo;s &ldquo;keeping AI from tangling itself up over a long process.&rdquo;</p>
<p>A single model&rsquo;s ceiling is genuinely high, but ask it to carry a whole novel alone and it ping-pongs between the big picture and the fine details, losing one while tending the other. Split the task apart and use files as the handoff surface, and each agent only has to focus on one small thing at a time—which, counterintuitively, makes it steadier.</p>
<p>Of course, it can&rsquo;t replace a genuinely good story. However self-consistent the settings or however smooth the pipeline, whether it moves anyone in the end still comes down to the concept you fed it at the start, and to whether you&rsquo;re willing to stop when it veers off and steer it back by hand.</p>
<p>If you&rsquo;d like to build your own novel studio, take a look at the code and try dropping it into your Claude Code or Hermes Agent.</p>
]]></content:encoded></item><item><title>Launched a Multi-Agent Video Creation Toolkit</title><link>https://masonhu.org/en/post/blog20260610/</link><pubDate>Wed, 10 Jun 2026 00:00:00 +0000</pubDate><guid>https://masonhu.org/en/post/blog20260610/</guid><description>Powered by Hermes Agent, I built an automated video studio using 7 AI agents. Let&amp;#39;s talk about the shifts brought by multi-agent collaboration and the necessity of keeping &amp;#39;de-AI polishing&amp;#39; in a fully automated workflow.</description><content:encoded><![CDATA[<p>I recently open-sourced a new project: <a href="https://github.com/masonblog/Video-studio-skills" target="_blank" rel="noopener noreferrer">Video Studio Skills</a>
.</p>
<p>It&rsquo;s a multi-agent video creation toolkit built for <a href="https://github.com/NousResearch/hermes-agent" target="_blank" rel="noopener noreferrer">Hermes Agent</a>
. Simply put, it lets you form a virtual video studio with 7 AI agents, taking over the entire workflow—from in-depth research, scriptwriting, and TTS voiceovers to Remotion animation rendering and multi-platform SEO packaging.</p>
<h2 id="why-build-this-tool">Why Build This Tool</h2>
<p>As AI capabilities continue to improve, creating short videos with AI has become incredibly easy. Nowadays, we can frequently scroll through various AI-generated videos on TikTok or Bilibili. However, whether it&rsquo;s the advanced Seedance 2.0 or Gemini omni, they share common issues like slow generation speeds and difficulty in control. Sometimes, to generate a satisfactory video, we have to repeatedly roll the dice, constantly picking and splicing, which consumes a vast amount of time—let alone mass-producing short videos.</p>
<p>While I believe AI will eventually solve these problems given the current pace of development, these pain points still exist right now. So I started wondering: could we make AI video generation slightly more controllable through a multi-agent collaborative workflow? At the very least, when we are unsatisfied with the final video output, we wouldn&rsquo;t have to start from scratch but rather tweak a specific node in the workflow, saving a considerable amount of time.</p>
<p>Thus, this project was born. <strong>It is particularly suited for producing batches of popular science short videos. From gathering materials, writing verbatim scripts, recording or configuring TTS, editing, and animating, to packaging titles and descriptions for various video platforms—this entire process can be collaboratively completed by AI agents with diverse characteristics.</strong> You only need to provide the topic, and AI can mass-produce videos for you like an assembly line. Of course, you can do the voiceovers yourself and add your own A-roll footage to achieve even higher video quality.</p>
<h2 id="7-agents-6-stages">7 Agents, 6 Stages</h2>
<p>In this project, I broke down the video production workflow into the collaboration of 7 specific roles:</p>
<ul>
<li><strong>Director</strong>: The general manager of the entire studio, responsible for receiving your topics, breaking down tasks, and dispatching them to other agents.</li>
<li><strong>Researcher</strong>: Responsible for in-depth research and outputting structured research data.</li>
<li><strong>Writer</strong>: Drafts the initial video script based on the research data.</li>
<li><strong>Editor</strong>: Exclusively responsible for &ldquo;de-AI polishing&rdquo; and finalizing the script.</li>
<li><strong>Narrator</strong>: Calls TTS tools to generate voiceovers and outputs timeline synchronization files.</li>
<li><strong>Renderer</strong>: Transforms text and audio into dynamic video frames based on Remotion.</li>
<li><strong>Packager</strong>: Generates titles, descriptions, and tags tailored for platforms like YouTube and Bilibili.</li>
</ul>
<p>The entire pipeline flows completely automatically. You can choose different working modes: if you want to chime in at any time, you can pull them into a &ldquo;group chat&rdquo; and watch them discuss; if you just want to see the results, you can contact the Director one-on-one and let it &ldquo;delegate&rdquo; work in the background; if you need mass production, you can also manage the progress using a Kanban mode.</p>
<h2 id="the-necessity-of-de-ai-polishing">The Necessity of &ldquo;De-AI Polishing&rdquo;</h2>
<p>Throughout the entire pipeline, what I care about the most—and spent the most effort tuning—is the <strong>Editor</strong> stage.</p>
<p>Current large models share a common flaw when writing articles: they love using overly enthusiastic marketing tones filled with grandiose adjectives. This feels disconnected from our daily reading experience. I personally have always preferred restrained, natural, and clear writing. If I were to read the script myself, that strong &ldquo;AI flavor&rdquo; would make me feel very uncomfortable.</p>
<p>Therefore, after the Writer produces the first draft, I forcibly introduced the Editor role. Its task is to perform &ldquo;de-AI polishing&rdquo;: removing pompous vocabulary, breaking long sentences into short ones, eliminating stereotypical patterns, and making the script return to the natural tone of human speech as much as possible.</p>
<h2 id="a-few-thoughts">A Few Thoughts</h2>
<p>After completing this project, I have a very strong feeling: multi-agent collaboration might truly change the survival state of individual creators.</p>
<p>In the past, when we talked about a &ldquo;one-person studio,&rdquo; it often carried a sense of ascetic tragedy. But now, if you know how to orchestrate AI, you can genuinely have your own virtual employees. In Video Studio, you only need to decide on a good topic. AI will automatically run through the rest of the dirty work for you.</p>
<p>Technology is leveling the execution threshold at an unprecedented speed. When tools are no longer an obstacle, what ultimately widens the gap might once again return to those things in our minds that truly belong to humans: your taste, your restraint, and your unique understanding of the world.</p>
<p>If you are interested, feel free to check out the code and try deploying it into your Hermes Agent.</p>
]]></content:encoded></item></channel></rss>