Claude Code · ComfyUI · MiniMax H3

Claude Code and ComfyUI: how an AI agent made a MiniMax H3 video, from the session log

Published 13 min readby
Claude Code · MiniMax H3 video: 7 hours, 680 tool calls · 18 test setups · 8 messages from me Watch the video · I Let Claude Code Run ComfyUI and Make My Whole MiniMax H3 Video

Claude Code by Anthropic ran ComfyUI and made my 10:28 MiniMax H3 video in about 7 hours of session time on an RTX 5090: 680 tool calls and 8 typed messages from me up to the finished file (10 with the wrap-up). It ran the tests, narration and edit. The calls made by eye and ear stayed mine.

Short answer
  • Claude Code, running Claude Opus 5.5, made my MiniMax H3 RefMods video in about 7 hours on 2026-10-23 and 2026-10-24: about 1 hour of prep, then 6 h 8 min from my go to the finished 10:28 file.
  • By its session log, with repeated lines removed, Claude Code made 680 tool calls on that MiniMax H3 video up to the finished file. I typed 8 messages in that time and 2 afterwards, 10 in all.
  • On one RTX 5090, Claude Code ran 18 MiniMax H3 test setups on 3 seeds each in ComfyUI, scored every clip with face recognition, rewrote the script from the scores, made about 300 takes in my cloned voice and cut the video with ffmpeg.
  • Claude Code ran this October 2026 ComfyUI batch without the ComfyUI MCP server: no call went through it. Python scripts it wrote posted each workflow to ComfyUI's API.
  • In my use, Claude Code can't hear or watch motion. On earlier projects of mine, a slowed cloned voice passed all its checks and sounded robotic, and it missed a morphing leg in a take, so those stay a person's job.

What is Claude Code?

Claude Code is an AI agent from Anthropic that can run on your computer: you say what you want in plain English, and it writes code, runs programs, opens files, checks the result and fixes what's wrong. Its GitHub page calls it "an agentic coding tool that lives in your terminal".

Here it drove ComfyUI, a free, open-source program that runs image and video models on your own computer, to test MiniMax H3, MiniMax's video model with sound. The video it made is my test of RefMods against reference images; a RefMod is a set of pictures of one character, saved as one small file. That video had 3,419 views after about a day (vidIQ, 2026-10-25).

How long did Claude Code take to make a whole MiniMax H3 video?

About 7 hours of session time: 1 h 1 min of prep on 2026-10-23, then 6 h 8 min on 2026-10-24 from "Ok gpu is free" to the finished file. That covers 680 tool calls, but not all of it was the agent working: about 3 h 45 min of the second day was batch jobs running.

The MiniMax H3 video's session log, local time, each tool call counted once
StageWhenLengthTool callsMy messages
Prep: titles, script v1, test, voice and thumbnail code10-23, 03:22 to 04:231 h 1 min1542
Production: tests to finished file10-24, 13:07 to 19:156 h 8 min5266
Up to the finished fileBoth sittingsabout 7 h 9 min6808
Wrap-up: clean-up, README10-24, 19:44 to 19:5915 min392

The batch jobs were the main test chain (13:10 to 15:03), the first 300 narration takes (5,285 s) and one extra test (17:06 to about 17:31). The table leaves out about 33 hours between the two sittings: a LoRA training of mine, and a failure I come back to below.

From the Claude Code session log and the run's chain.log. Renders on an RTX 5090 (32 GB), 96 GB RAM, Windows 11 (how I test).

What did Claude Code do on the MiniMax H3 video, step by step?

Claude Code worked through nine steps: plan, tests, script rewrite, voice, screen captures, edit, sound, captions and packaging. I set the direction, changed it in the middle and picked what went up. The table shows its part and mine at each step.

The nine steps on the RefMods video: Claude Code's part and mine
StepWhat Claude Code didWhat stayed mine
1. PlanResearched demand, wrote script v1 (1,284 words), recommended a new characterThe topic; approving the plan
2. TestsMade the character with Qwen-Image 2.1 by Qwen, built the RefMods, queued 18 setups on 3 seeds each, scored every clip with face recognitionThe GPU go; yes to one extra test
3. Script againRewrote the script from the scores and listed every claim that changedChecking that list
4. VoiceMade every sentence on 3 seeds, had Whisper read each take back, kept the one matching the script: 312 takes, 102 keptAsking for an AI voice
5. ScreensDrove the workflow windows in headless Chrome and captured themNothing typed
6. EditPlanned cuts on word times, rendered cards from code in my brand colours, built every shotNothing typed
7. SoundClip sound 22 dB under the voice; measured -14.7 LUFS, -1.7 dBFS peakNothing typed
8. Captions145 cues in the script's own words, plus chapters, with names Whisper mishears fixed ("config UI" for ComfyUI)Nothing typed
9. PackagingScored titles with vidIQ, built thumbnails from real frames, wrote the description, tags and pinned commentRedirecting the thumbnail; picking it and the titles; the upload
Grid of 312 narration takes for the MiniMax H3 RefMods video, shown as small waveform tiles, with the 102 takes Claude Code kept lit in pink
Every narration take for the RefMods video in my cloned voice (Fish Audio Drama 3). Whisper read each one back, and the agent kept the take that matched the script.

The first script came before the tests, and parts of it didn't survive them: the character's own footage scored 0.85, not 0.74; "louder with the character" was removed; the RefMod's slowdown in PDMD mode went from +3% to +13%.

What stayed my call when the agent made the video?

The topic, the go for the GPU, the thumbnail direction, one extra test, the title pick and the upload stayed mine. I typed 10 messages for the RefMods video, all listed below. The video says I made maybe 8 decisions during production; the log shows they came in 6 messages.

Every message I typed for the video, by the session log, local time
WhenWhat I typedWhat it settled
10-23 03:22"prep the refmod video, this one will be ai voiced"Topic, AI voice
10-23 03:59"go with your recommendations, start after the training"Plan, character, script v1
10-24 13:07"Ok gpu is free, you can start now"The go
10-24 15:35A note: mentioning pictures reads as basic, so RefMods vs reference imagesThumbnail angle
10-24 15:56"versus, and yes run the test", plus two points for the scriptThumbnail, one more test, two script points
10-24 16:38"yes, draft some RefMods titles"New titles
10-24 18:30"What were the title options? I lost it in this long chat"Nothing
10-24 18:33"go with A, B and C. Three titles for testing"The titles
10-24 19:44"yes, clean up the leftovers"Clean-up
10-24 19:54"update the README with the fisherman numbers. Video uploaded"README; the upload was mine

Does Claude Code need the ComfyUI MCP server to run ComfyUI?

No, not for this run. The setup in the video has Comfy Org's free ComfyUI MCP server between the agent and ComfyUI, but the session log shows no call through a ComfyUI MCP tool. Python scripts the agent wrote posted each workflow to ComfyUI's HTTP API at /prompt.

The ComfyUI MCP server is a free Comfy Org tool that lets an agent queue a workflow, wait for it and fetch the result. It's the route the video's description links. The long batch went another way:

  • The scripts load Stubelius Ultimate H3 as an API graph and change it for each test.
  • The agent compared the saved node specs with the live server and dry-ran every graph first.
  • It started the run as a detached background process writing to chain.log, with PAUSE and STOP flag files, then kept checking for failures or a dead process.
Terminal view of the Claude Code session on the MiniMax H3 video after the message "Ok gpu is free, you can start now": tool calls that check ComfyUI's queue, compare node specs with the live server, dry-run every graph and start the run as a detached background process
Some of the agent's calls after my go on 2026-10-24, as it described them in the log. None is an MCP tool.

I did not compare the two routes, so I can't say one is better.

Which tools did Claude Code use to edit the video?

ffmpeg did the cutting, Whisper the listening and ComfyUI the rendering, with Python tying them together and Fish Audio Drama 3 making my cloned voice. Of the 680 tool calls, 396 were shell commands, 121 file reads and 92 file writes or edits.

What each tool did on the RefMods video
ToolIts job in this run
ComfyUI, Ultimate H3Tests and finished clips; RefMods with ComfyUI-MiniMaxH3Mod by Luisacaotica
Fish Audio Drama 3Narration, 5,285 s for the first 300 takes
Whisper (faster-whisper)Word times and read-back, on the CPU
ArcFace in InsightFaceThe face-match score
ffmpegCuts, the mix, loudness measurement, the final join
RemotionThe channel's call-to-action graphics only
vidIQ19 title scores
DaVinci ResolveNot used here: the agent can write a timeline for its free version, but this edit went straight to a file

Where did Claude Code go wrong on video work?

On my projects, Claude Code goes wrong on anything you have to hear or watch in motion, because it reads instead: the transcript, numbers such as loudness, and still frames. The costliest failure on the RefMods video was a background script that stopped without telling anyone.

  • Sound (my course). Asked for a slower pace, it slowed 175 lines of my cloned voice to 0.88. Words, pace, pitch and level all passed. It sounded robotic and broken.
  • Motion (a short). It sent me a take where a hiker's leg morphs during a turn and another with a hidden cut. It noticed neither; I saw both on the first watch.
  • The dead watcher (the RefMods video). It left a script waiting for my training to finish. chain.log stops at 04:16 on 10-23 with no reason given; the training ran 05:31 to 19:02, nothing started, and I only found out by asking the next morning. I lost a day.
Log of the run for the MiniMax H3 video: one line at 04:16 on 2026-10-23 waiting for a training to start, then nothing until 13:10 on 2026-10-24, with the rule added since that anything in the background writes a heartbeat
The watcher stopped after 04:16 without saying why, so my training ran unseen and the tests started a day late. The dates in the log are 2026-10-23 and 2026-10-24.

What rules keep Claude Code from wrecking a video?

Five rules: packaging before the script, checked work before it says done, a person's eye and ear on how things look and sound, permission before it touches the GPU, and notes it reads first. The notes matter most: after a few weeks, it stops making the same mistake twice.

  1. Packaging first: title and thumbnail before the script.
  2. Done means checked: it reads the words back, measures the sound and looks at the frames.
  3. Eye and ear are mine: full size and playing, not a contact sheet or a sharpness score.
  4. It asks before touching the GPU, because I'm usually rendering something myself.
  5. It keeps notes: each correction becomes a rule in a memory file it reads first. Since the watcher, anything in the background also writes a heartbeat that the agent checks.

How do you start using Claude Code for video editing?

Start with one recording and one job, not "make my whole video". Pick the job you hate most, which for me was captions, and give the agent only that. Check what it made by eye and ear, then add the next step.

  1. Get Claude Code, which the free Claude plan doesn't include, and ask it to install ffmpeg, Whisper and Python.
  2. Give it a small brief: "Here's my recording. Cut every pause longer than half a second, make captions, and spell ComfyUI right."
  3. Check the result yourself, by eye and ear.
  4. To render, add ComfyUI and the MCP server. New to ComfyUI? Start with the free Part 1 of ComfyUI From Zero, and keep the beginner errors guide open.

What are the limits of this test?

This is one video, one person, one session log and one RTX 5090: a record of what happened, not a benchmark.

  • No other agent or human editor was compared.
  • Claude Opus 5.5 in Claude Code 2.1.308, by the log.
  • Tool calls are counted once each, because the log repeats some lines. The count leaves out 29 calls between the sittings (status checks and other work) and 60 read-only calls by one research sub-agent during production.
  • The video's cards show 565 tool calls, 19:25 and 6 h 18 min for the production; the session log and the file's timestamp give 526 calls (565 with the 39 wrap-up calls), 19:15 and 6 h 8 min.
  • The video's setup diagram shows the ComfyUI MCP server between Claude Code and ComfyUI; the session log shows no call through it on the RefMods video, where Python scripts posted each workflow to ComfyUI's /prompt API.
  • The tests ran on Ultimate H3 0.14; the pack is now at 0.15.1.
  • The 10 messages leave out three short status messages between the sittings, and unrelated work in the same chat.
  • The log shows what I typed, not what I watched, so it can't prove an eye or ear check. The sound and motion failures came from other projects.

Sources and files

Common questions

Can Claude Code run ComfyUI?

Yes. On my Windows 11 PC it ran ComfyUI through Python scripts it wrote, which posted each workflow to ComfyUI's HTTP API. The other route is Comfy Org's free ComfyUI MCP server, which the video's setup shows but this run didn't call. I did not compare the two.

How much VRAM do I need to run Claude Code with ComfyUI?

No minimum comes out of this run, which used one RTX 5090 with 32 GB of VRAM. The need comes from what you render: MiniMax H3's files are about 51 GB on disk, and in my three-model test the whole card peaked at 30.4 GB with it in PDMD mode on that 32 GB card, which isn't a minimum.

Is Claude Code video editing free?

Partly. The free Claude plan doesn't include Claude Code: by Anthropic's setup docs, it needs a paid plan, an Anthropic Console account or a third-party API provider. ComfyUI, the ComfyUI MCP server, ffmpeg, Whisper, Python and the free version of DaVinci Resolve cost nothing, by the video's list.

Can Claude Code watch a video?

No, not the way a person does. It reads the transcript and numbers such as loudness, and looks at still frames, so it missed a leg morphing during a turn in one of my takes.

Does Claude Code replace a video editor?

No, not in my use. It did the rendering, cutting and captions on the RefMods video, but the direction and the eye and ear calls were mine. As the video puts it, it's a very fast editor that still needs a director.

Whose voice narrates the Claude Code video?

A clone of my own voice, made with Fish Audio Drama 3 on my own PC. I recorded nothing for that video, and the RefMods video used the same kind of clone.

StuubzzzBuilds self-hosted AI image and video pipelines and the Stubelius nodes for ComfyUI, and teaches them in the ComfyUI From Zero course. My own tests run on one RTX 5090. About
Want the why, not just the workflow?

Learn it, fix it live, or have it made.

The ComfyUI From Zero course explains the machine from the first node to training your own LoRA, and Part 1 is free. If something is fighting you right now, bring it to a 60-minute 1-on-1.