ai agents
Every Stage My AI Runs to Edit a Video
209 seconds of raw footage in, 35 seconds of finished reel out, with no human editor and no CapCut. Here is the pipeline stage by stage, the three things it got wrong on this exact video, and the one job I kept.
The reel attached to this article started as one take, 209 seconds long. Three minutes and twenty nine seconds of me talking, restarting, pausing to think, and saying the same line three times until one of them came out right.
What went out was 35 seconds. Twelve kept pieces of that take, stitched in order, captioned word by word, graded and finished. No human editor opened it. No CapCut. I did not touch a timeline.
I want to walk you through exactly what happened in between, because "my AI edits my videos" is the kind of sentence that sounds like marketing until someone shows you the receipts. So the numbers below are all from this one video's own edit record, not from a good week I picked out.
The finished reel is right below, and the rest of this is how it got made.
If you came for the setup you can run yourself, the tools, the folder and the four prompts are right under the video.
Update, 4 November 2026: how do you set up Claude Code for video editing?
To edit video with Claude Code, open one folder in the Claude desktop app's Code tab, have Claude install FFmpeg and Whisper, give it three to five reels so it can write down their editing style, then drop in your footage. It cuts the pauses, adds captions and music, and shows you a storyboard before it renders.
You don't need my system for any of this. Everything below uses public tools, and the prompts were run end to end in Claude Code on a Mac on 4 November 2026, on a 45-second take and three reference reels.
What tools do you need?
| Tool | Its job | Cost on 4 November 2026 |
|---|---|---|
| Claude desktop app, Code tab | Works inside your folder and runs the other tools | Paid plan: Pro is US$17 a month billed yearly, or US$20 monthly |
| FFmpeg | Cuts, captions, music and the final render | Free and open source |
| Whisper | Turns your speech into words with timestamps | Free, MIT licence |
So the editing tools are free, and Claude is the part you pay for. If you've never opened the Code tab, Claude Code without coding walks through the app.

What does the folder look like?
Make one empty folder anywhere you like. In the app, open the Code tab, click the project folder control and choose that folder. Prompt 1 builds this inside it:
my-video-editor/
raw/ your footage, never changed
reference/ 3 to 5 reels you want to learn from
music/ tracks you have the rights to use
style/ the style sheet Claude writes
work/ transcripts, frames, storyboards (safe to delete)
finals/ finished videos
Anthropic's docs say that in Manual mode Claude asks before it edits a file or runs a command, so you'll be clicking yes a lot on the first run.
Prompt 1: set up the folder
This folder is my video editing workspace. Create these subfolders if they don't exist yet: raw (my untouched footage), reference (reels whose style I want to learn from), music (tracks I have the rights to use), style (the style sheet you'll write), work (transcripts, frames and test renders you can delete later) and finals (finished videos).
Then write a CLAUDE.md file in this folder with these rules:
- Never change or delete anything in raw or reference.
- Put every working file in work.
- Never render a final until I have approved a storyboard.
- Finished videos go in finals.
Show me the folder when you're done.
Prompt 2: install the free tools
Copy one of your clips into raw first, because the last line of this prompt tests on it.
Install the free tools I need to edit video on this computer: FFmpeg for cuts and rendering, and OpenAI's Whisper for transcribing speech with word timestamps. Check what's already installed first, then use the simplest install for this operating system. Tell me before any big download, and if a step needs my password, stop and give me the exact line to paste into Terminal.
Then check that this FFmpeg can burn captions into a video: look for the subtitles filter in the output of ffmpeg -filters. If it's missing, ask me, then install a build that has it. On a Mac with Homebrew that's ffmpeg-full, which doesn't add itself to the PATH, so use its full path from then on.
Use Whisper's base model. Test both tools on the first 20 seconds of a clip in raw, using a copy in work. Then add the exact commands that worked to CLAUDE.md.
Prompt 3: learn a style from three to five reels
This is where it starts to look like your favourite creator. Save three to five of their reels into reference (a screen recording works). They're only there so Claude can read the style, so nothing from them goes in your video.
The videos in reference are reels whose editing I want to learn from. Study each one and write what you find to style/style-sheet.md.
For each reel, use FFmpeg to save one frame per second to work/reference and look at them, use FFmpeg's scene detection to measure the time between cuts (try thresholds of 0.3, 0.1 and 0.05, because many reels change layout without a hard cut), and use Whisper to get the words and the speaking pace.
The style sheet covers captions (where they sit, how big, colours, words per line, how they appear, and the closest free font), cut pace (average, shortest and longest shot), how the first three seconds are built, framing and zooms, on-screen graphics, music and sound effects, and how the video ends.
Say where the reels agree and where they differ, and mark what you measured versus what you're guessing. You can't hear audio, so measure loudness with FFmpeg instead of describing the music. Write down the style only: no lines, footage or graphics copied from these reels. Keep it to one page.
Here's part of what it wrote in that test, from three 14-second reels. M means measured and G means guessed, and the (…) marks where I've trimmed it:
## Cut pace
- Almost no hard cuts. FFmpeg scene detection (threshold 0.05)
fires only 3-6 times per reel; at 0.3 it fires zero times (M).
Change comes from layout switches, not new shots.
## First 3 seconds
- Speaker full frame, hands moving, headline pill already on.
Around 1.8-2.5 s the picture switches to a split (…)
## Agree / differ
- Agree: pill, word captions, split layout, loudness. (…)
Prompt 4: cut it, caption it and show the storyboard
Drop your footage in raw, swap take-01.mp4 for your file's name, and put a track you have the rights to in music.
Edit raw/take-01.mp4 using style/style-sheet.md. Make a vertical 1080x1920 video.
- Transcribe it with Whisper, with word timestamps.
- Plan the cuts. Find pauses with FFmpeg's silencedetect and take out anything over about half a second, keeping a little air so no word gets clipped. Place the cuts from silencedetect, because Whisper's word times can be a little off. Where I said a line more than once, keep the last complete version. If a sentence trails off, cut it.
- Plan the captions from the word timestamps, styled from the style sheet, using only words from the parts you're keeping.
- If there's a track in music, plan to use it about 18 dB quieter than my voice and fade it out at the end. If there isn't one, leave music out and tell me.
Before you render anything, make a storyboard at work/storyboard.html: one row per kept section with a frame from it, its start and end time, and its words, then a list of everything you cut and why. Give me the path so I can click it, then stop and wait for my OK.
When I say go, render to finals, check the captions on frames from the finished video, and tell me the final length.
Anthropic's docs say that in a local session you can click an HTML, PDF or video path in the chat and it opens in the app's Browser pane, so the storyboard and the finished video both open right there. Read the list of cuts before you say go, because that's the cheap place to catch a mistake.
How do you change something after the render?
If you don't like something, just tell it, the same way you'd tell a real editor. These are the kind of notes it takes:
- "The captions sit too low. Move them up by about a tenth of the frame's height and re-render as a new file in finals."
- "You cut the pause after my first line. Put it back and re-render as a new file in finals."
- "The music is too loud under the opening. Bring it down 3 dB and re-render as a new file in finals."
When a note should hold for every future video, ask Claude to add it to the style sheet.
What trips people up?
- Captions that won't burn in on a Mac. Homebrew's standard
ffmpegformula didn't include the subtitles filter when this was checked on 4 November, andffmpeg-fullis the formula that lists libass, the caption library. That's why Prompt 2 checks. If you'd rather skip that install, tell Claude to draw the captions as images and overlay them, which worked on the standard build in the same test. - A step that needs your password. Claude can't type it for you, so the prompt tells it to hand you the line to paste into Terminal.
- Whisper's first run. It downloads the model the first time, about 140 MB for base.
- Words Whisper gets wrong. Names and numbers go first. In the test it wrote 50,000 as "50 ,000", so check the words on the storyboard. Three more real examples are further down this page.
The rest of this page is my own version of the same idea, stage by stage.
Why I built this before anything else
Years ago I worked as a video editor at a media company. There were nights I was still cutting at 3am, on videos exactly like this one, and the work was not hard so much as endless. I'd watch each take, find where the sentence actually started, trim the pause, find the good version of the line, type the caption, check it, and move on to the next one.
I knew precisely how many hours that was, which is why the editor was one of the first things I ever built for myself. Not because editing is the most valuable thing I do, but because it was the most repetitive, and repetitive is what these systems are actually good at.
If you want the version of this argument that applies to your business rather than mine, I wrote it up as the difference between a normal AI and an agent. This piece is the specific machine. It runs as a Claude skill, one of dozens in my workspace, and the Claude skills guide explains what that means.
Stage one: the footage files itself
I record on a camera, pull the card, and the footage gets filed automatically into a dated folder for that reel, alongside a small record of what was shot and where it came from. Nothing clever, but it's the stage everyone skips, and skipping it is why most people's footage lives in six places and none of them are findable in a month.
Everything downstream reads from that record, so the machine always knows which take belongs to which video.
Stage two: it listens to the whole take
The take gets transcribed with word-level timestamps, so the system doesn't just know what I said, it knows exactly when each word starts and ends. That timing is what makes everything after this possible. Captions that land on the syllable, cuts that don't clip a word in half, and the ability to find a specific sentence in three minutes of audio.
The tool doing this is whisperX, which is free and open source. It's one of five I lean on constantly, and I broke down what each one gives an AI in the five tools I plug into Claude Code.
Stage three: it decides what to cut
This is the stage that does the actual editing, and it runs three different passes.
Silence. It finds every stretch of dead air and removes it. On this video that came to roughly 173 seconds, which is more than the finished reel by a factor of five. The single longest gap was 46.9 seconds where I stopped, thought, and started again.
Retakes. When I say a line twice, the later version wins. That's a rule I set, not something it worked out, and it exists because the second attempt is almost always the better one. On this reel it dropped two.
Judgment. This is the interesting one. It looks for lines I started and abandoned, or said three ways, and picks the keeper on the meaning rather than the audio. On this video it found the taste line, which I attempted three times. The first attempt was complete and fine. The second trailed off mid sentence. It kept the third, because that was the only one that carried the full contrast I had written, the bit about the machine being fast but having no taste.
It also caught something I would probably have missed. Near the end I said "and if you want a full breakdown of this machine, comment the word" and then trailed off without ever saying which word. If that had shipped, the whole call to action would have been broken. It kept the later attempt that finishes the sentence properly.
Eighteen cuts in total, twelve segments kept, 209 seconds down to 34.9.
Stage four: it writes the captions and checks its own audio
Captions get built from those same word-level timestamps, so each one appears as I say it rather than as a block. Then an audio QC pass runs over the result looking for the failures that are easy to miss on a first watch: words stretched oddly by a cut, gaps that landed in the wrong place, sentences that got clipped. On this video that pass came back clean across the five windows it checked.
Stage five: it builds the visuals and renders
A scene plan decides what's on screen for each beat. Then the whole thing gets rendered in code, not dragged around a timeline. Captions, graphics, transitions, music and sound effects all come out of one render, which is why every reel on my account looks like it came from the same place. It did.
What it got wrong on this exact video
Here's the part most build-in-public posts leave out.
Three captions were wrong and had to be corrected. All three are worth understanding, because they show you the actual shape of the failure rather than a vague "AI isn't perfect".
- It heard "my job strings to just one thing". I said "shrinks".
- It heard "watch every single card before it gets published". I said "cut". A mishearing that is almost reasonable, and completely wrong in a video about video editing.
- On two lines, including the call to action, the opening words got stamped onto the abandoned attempt rather than the one that was kept. So the cut was right, but the caption arrived missing its first few words.
That third one is the failure mode worth knowing about, because it isn't a mishearing at all. The transcription assigned words to a segment that later got deleted, so the caption lost text that the audio clearly contains. No amount of a better model fixes that on its own. It needs something checking the captions against the segments that actually survived.
So the honest version of the claim is this. The machine did the editing. A check ran after it, and the check found three things.
The job I kept
I watch every single cut before it goes out.
That's the whole of my remaining job on the editing side, and I do not intend to give it up. The machine is fast and it has no taste. It cannot tell that a line is technically fine and lands flat, or that a joke needed the pause it just removed, or that I look like I'm about to say something more. I saw the same split show up in how a director cut an NBA Finals ad for $2,000: the AI tools cost him under $100, the other $1,900 was the taste to know which of four hundred takes was the keeper.
There are three points where it stops and waits for me: after the rough cut, after the captions, and before anything goes out. Those exist because I put them there. An editing system with no stop in it is just a faster way to publish something you have not watched.
FAQ
How long was the raw footage before the AI edited this reel?
209 seconds, or 3 minutes and 29 seconds of one take, with restarts, pauses and the same line said three times. Eighteen cuts brought that down to 12 kept segments and a finished reel of 34.9 seconds.
What caption mistakes did whisperX make on this reel?
Three. Shrinks came out as strings, cut came out as watch on the line about checking every card, and two lines, including the call to action, had captions built from the abandoned attempt instead of the take that actually made the final cut.
How long was the longest silent gap the AI cut from this take?
46.9 seconds, the single longest stretch where I stopped, thought and started again. Across the whole take, silence removal alone cut roughly 173 seconds, more than the length of the entire finished reel.
Do you check every cut before an AI-edited reel goes out?
Yes. I watch every single cut before it goes out, and I don't plan to give that up. Three stops are built into the process: after the rough cut, after the captions, and before anything actually goes out.
Can Claude edit videos?
Yes, through Claude Code. Claude has no timeline editor of its own, so it runs free tools on your computer: FFmpeg for the cuts, captions and render, and Whisper for the transcript. The Claude desktop app's Code tab does this with no terminal, on a paid Claude plan.
Is Claude Code for video editing free?
Partly. FFmpeg and Whisper are free, and Claude Code needs a paid Claude plan. Anthropic's pricing page listed Pro at US$17 a month billed yearly, or US$20 monthly, on 4 November 2026.
What this actually replaced, and what it did not
It replaced the hours. Finding the sentence, trimming the pause, typing the caption, checking the caption. All of that is gone and I do not miss any of it.
It did not replace the decisions. What to make, what the hook is, whether the take is any good, whether the thing is worth publishing at all. Every one of those is still mine, and I think that split is going to hold for a while.
The result is that raw footage goes in one end and a finished reel comes out the other, every single video on this account, and my involvement shrinks to filming it and watching it. On a good day that's the difference between a reel taking twenty minutes of my time and taking three hours.
If you run a business and you're wondering what the equivalent is for you, the honest test is narrower than "what could AI do". Find the job you do every week where you already know every step, where you could write the instructions down without thinking, and where you would recognise a bad result instantly. Editing was mine. Yours is probably something duller, and duller is better, because the boring jobs are the ones with clear finish lines.
The stage-by-stage machine is not the impressive part. The impressive part is that it runs whether or not I remember it exists.