Docs / Guides

Edit an episode

Run the Edit loop, change the cut with the timeline commands, and render the finished episode as a video file.

The edit turns the picked takes into one cut: the shots in order, the voice lines, the captions and the music. Your agent runs the Edit loop. You watch the cut and say yes.

Start after you approve the Videos loop. See Generate and pick video takes. Every command here needs a signed-in computer. The commands that change or render the cut run in the episode folder, so start with:

Terminal
cd rain-shop/episodes/ep01

Open the cut

  1. Open the episode in the MiniCut app, on the editor tab. The project is rain-shop:
Terminal
minicut open rain-shop --episode ep01 --tab editor
  1. Open the address it prints. The editor shows the cut.
  2. If the app does not start, run minicut edit rain-shop --episode ep01. See Editor.

Change the cut

Change the cut in the editor, or with minicut timeline. Never write the cut file index.html by hand. The Edit loop fails a hand-written cut, and in Claude Code and Codex a hook refuses the write.

  1. List the cut: every track and clip, with its start and end.
Terminal
minicut timeline
  1. Change the words of a caption, title or card:
Terminal
minicut timeline set '#cap-c05-l01' --text "I never left."
  1. Fix the captions after you change words or timing. This keeps the words, splits them again and times them to the voice:
Terminal
minicut captions
  1. If a take is shorter than its shot, the cut holds the take's last frame still. Cut the shot down to its take. Look at the plan first, then apply it:
Terminal
minicut timeline fit --plan
minicut timeline fit
  1. To undo the fit, run minicut timeline fit --undo. To undo another change, run minicut timeline undo RECEIPT. RECEIPT is the undo receipt that the change printed.
  2. To look at the cut without a render, save stills:
Terminal
minicut snapshot --at 1,3,5 -o snapshots

Run the Edit loop

  1. Your agent runs this:
Terminal
minicut loop run edit
  1. The command renders the cut to renders/edit-r1.mp4 in the episode folder. The number is the round. Then it checks the cut and the render.
  2. Each failure prints as FAIL with a label and a fix:
LabelWhat it means
hand editindex.html was changed by hand. Change the cut with minicut timeline or in the editor
held frameA shot is longer than its take. Run minicut timeline fit
music fitThe music was written for a cut more than 1 s longer or shorter than this one. Run minicut music cuts for the new shot times, write the song again, then run minicut music render
repeatThe same picture plays in two shots. The fix is minicut timeline trim
cutThe picture changes inside a shot the shot sheet did not ask for. The fix is minicut timeline trim
read-backThe speech in the render does not say a line
renderThe cut did not render. The fix is minicut render lint

The loop also checks the captions and the timeline itself.

  1. Your agent applies each fix and runs the command again. After 3 rounds the loop prints CAP REACHED, stop and show the user what is still failing, and you decide.

Render the finished episode

  1. Render the final file from the episode folder:
Terminal
minicut render -o renders/ep01.mp4 --quality delivery

--quality is draft, looks or delivery. 2. Check the finished file from the project folder:

Terminal
minicut check render episodes/ep01 episodes/ep01/renders/ep01.mp4

It prints each failure with its fix, then RESULT: PASS or RESULT: FAIL, and saves the result beside the video file.

Approve the cut

  1. Open the cut with minicut open rain-shop --episode ep01 --tab editor and watch it.
  2. If it is right, say yes. Your agent runs:
Terminal
minicut loop approve edit

Check it worked

Run minicut loop in the project folder. Every loop shows as approved or done. The file episodes/ep01/renders/ep01.mp4 is the finished episode.

Errors

MessageWhat to do
no index.html yetThe episode has no cut. Your agent lays the first cut, then runs the loop again
index.html was changed by handUndo with minicut timeline undo RECEIPT, or redo the change with minicut timeline or in the editor
minicut loop runs inside a project folder (the one with series.json, or any folder under it).Run the loop in the project folder
You are not signed in. Ask your agent to run minicut login.Sign in. See Account

Next