cutscene

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Video editing for Claude Code, Codex and other AI agents. An open-source, non-generative editor that runs as an MCP server and CLI: the agent writes an edit decision list, FFmpeg renders your real footage, and cutscene reports the edit's cost in tokens, dollars and minutes. Exports OpenTimelineIO, FCP 7 XML, SRT, VTT, Remotion and a CapCut handoff.

README.md

cutscene

Video editing for Claude Code, Codex and any MCP client.

Quickstart · Use it from your agent · Talk · Demo edits · Measured · Cost · Exports · Limits · Docs

CI
License: MIT
Python 3.10+
Platform: macOS and Linux
Tests need no API keys
MCP tools: 9 core, 12 in all

Bryce Bailey presenting Edit With Agents at Gen AI DC: editing real footage with Claude Code, Codex and FFmpeg.

Watch the talk: Edit With Agents, Gen AI DC, Dec 1, 2026. How cutscene came out of editing real shoots with agents, six models on the same editing jobs and what each one cost. The video itself was edited with cutscene. Nothing in it is generated.

cutscene is an open-source, non-generative video and photo editor for coding agents. Your agent writes the edit as a JSON file, an edit decision list. cutscene checks that file before anything renders, renders it from your own footage with FFmpeg, measures the finished video, and reports what the edit cost in tokens, dollars and minutes.

Point your agent at a folder of clips and get back a vertical cut with music, captions, a logo and an end card, in every size you asked for. No frame, voice or music is generated, and cutscene uploads nothing.

What it does Turns footage into small text and a few images an agent can read, validates the agent's edl.json, renders it with FFmpeg, runs 30 checks on the rendered files, and exports to editor formats.
Why not ffmpeg by hand The edit is a file you can read, diff and render again to the same frames. Every output frame has a row naming its source frame. The checks measure the file and do not take the agent's word.
What it costs cutscene spends no tokens and has no account or paid tier. Your agent is the paid part: two recorded sessions cost $2.21 and $1.25 for a 7-second reel. Cost.
Works with Claude Code and Codex, each recorded finishing an edit through the MCP server. Any other MCP client over stdio. Any agent with a shell, since every tool is also a CLI command. macOS and Linux.
Will not do Generate frames, voices or music. Drive Premiere, Resolve or CapCut. Judge taste. Upload anything. Limits.

Quickstart

No API key, no account, no tokens spent. You need ffmpeg 6 or newer and uv (brew install ffmpeg uv; on Debian or Ubuntu, sudo apt-get install ffmpeg, then install uv).

git clone https://github.com/BryceOB13/cutscene && cd cutscene
uv run cutscene demo
open out/demo/out/lineup_reel/lineup_reel_9x16.mp4        # Linux: xdg-open

Or without a clone: uvx --from git+https://github.com/BryceOB13/cutscene cutscene demo writes the same files under ./out/demo.

The demo runs the calls an agent would make, on the sample media in examples/media, with the edit lists in examples/demo. In a fresh clone on an Apple M4 Mac on Nov 25, 2026 it took 22.6 seconds from the command to the last line, with the install (packages already in uv's cache), and printed:

probe               ok              0.20 s     537 tokens  16 media files (1 audio, 8 image, 7 video)
beat_grid           ok              0.91 s     217 tokens  125.0 BPM, 64 beats, first beat 0.004 s, bar 1.92 s
load_context        ok              0.03 s   1,516 tokens  [email protected]: brief of 1322 tokens, 13 style targets, 11 assets
contact_sheet       ok              0.35 s     179 tokens  7 tiles, 1564x448 px, about 896 image tokens
render lineup_reel  ok             14.09 s     219 tokens  1 file(s), 245 frames, 8.17 s, -14.0 LUFS, 6 of 6 cuts on the beat, provenance written, hard checks 18 of 18, style targets 9 of 13
render ramp_reel    ok              9.42 s     220 tokens  1 file(s), 230 frames, 7.67 s, -14.1 LUFS, 5 of 5 cuts on the beat, provenance written, hard checks 18 of 18, style targets 6 of 13
export srt          ok              0.05 s     149 tokens  1 file(s), 1 parts kept, 0 approximated, 2 dropped, reads back the same
export fcpxml       ok              0.33 s     196 tokens  3 file(s), 13 parts kept, 1 approximated, 4 dropped, reads back the same
estimate_cost       ok              0.03 s     123 tokens  range from 3 reference jobs (min, max), not a forecast: 2,008,000 to 9,793,000 tokens, $0.37 to $1.76 at claude-sonnet-5-5 list prices
skipped: transcribe: no transcript fixture names a file of the set

tokens handed: 3,356
image tokens: 896
model tokens: 0 (no model runs in the demo)
profile: quality (quality_max)
elapsed: 19.8 s
result: ok

result: ok and model tokens: 0 mean it worked, and the reel plays with its cuts on the beat. Hard checks are the ones a delivery must pass. Style targets are soft: they compare the edit with the example pack's house style, which was measured from a different kind of edit. The demo reels are 288x512 on purpose, so that CI can run the whole demo inside 60 seconds; the same edit lists render at any size you set. More, with cutscene doctor and the extras: docs/quickstart.md.

Use it from your agent

One line adds the server to Claude Code. Run it in the folder that holds your footage:

claude mcp add cutscene -- uvx --from git+https://github.com/BryceOB13/cutscene cutscene mcp --root . --out ./out

For Codex, in ~/.codex/config.toml:

[mcp_servers.cutscene]
command = "uvx"
args = ["--from", "git+https://github.com/BryceOB13/cutscene", "cutscene", "mcp", "--root", ".", "--out", "./out"]
startup_timeout_sec = 60
tool_timeout_sec = 900

Claude Desktop, Cursor and other clients that read an mcpServers block take the same command and arguments, with absolute paths for --root and --out. From a clone, replace uvx --from git+... with uv run --project /path/to/cutscene; that is the form the two recorded agent sessions used. The uvx form was run with the MCP SDK's own client on Nov 25, 2026: nine tools listed, probe and contact_sheet called from a footage folder. Codex stops a server that takes more than 10 seconds to start and a call that takes more than 60 by default, which is why the block raises both. Every flag and client: docs/mcp.md.

Then ask for an edit:

Use the cutscene tools. Cut a 15-second vertical reel from the clips in this folder to the
music in audio/, with every cut on the beat. Probe first, look at one contact sheet instead
of whole clips, write edl.json, render a draft, fix what the checks report, then render the
final. Tell me where the files are.

The agent calls probe, beat_grid and contact_sheet, writes edl.json, calls render once or twice, and finishes with file paths. What you get back: the video in each size you asked for, edl.json, provenance.csv, checks.json, and on request an export for your editor. What you still do yourself: judge the cut, and finish it in your editor if you want to.

For clips with speech the loop is the same with transcribe in place of beat_grid: the agent cuts on word edges and writes captions from the transcript. The sample media has no speech, so this path is measured (below) but has no demo you can run, and no agent session on speech footage has been recorded yet.

MCP server and tools

Tool What it does
probe Read duration, frame rate, size, rotation and HDR tags of media files, as one table.
transcribe Transcribe speech on this machine and return packed text with times.
contact_sheet Make one image of labeled frames from one or more videos.
beat_grid Find a music track's tempo and beat times.
load_context Get a context pack's brief: house rules, style targets and licensed assets.
validate_edl Check an edit list before rendering. Every error comes back at once, each with a fix.
render Render an edit list to video files with a provenance row per frame. One call can validate, render, run the checks and return a review sheet.
run_checks Run delivery, content and brief checks on rendered files and list what failed.
export Export an edit list to another format and report what was approximated or dropped.
estimate_cost With --tools all: estimate tokens, dollars and minutes for an edit before running it.
reference_analyze With --tools all: measure a reference video's edit style.
style_match With --tools all: score how closely a rendered edit matches a measured style.

The nine core tools are 1,692 tokens as a client receives them, and 2,560 with output schemas; a test fails the build if that passes 2,600 (tests/test_tool_budget.py). The edl/1 schema is a resource the agent reads once, not part of every tool definition. The server reads only inside --root, writes only inside --out, refuses links that point outside, and runs no shell commands. Your agent sends what it reads (transcript text and contact-sheet images) to its model provider; cutscene uploads nothing.

What you get

  • The edit is a file. edl/1 is a JSON format with a published schema (docs/edl.md). Every feature of the format is rendered, and a test fails if the schema gains one without a renderer.
  • Problems come back before the render, all at once. An edit list with 18 planted mistakes came back with 17 errors in one call, each with a value that would pass; the 18th depended on one of them.
  • The same file gives the same frames. Two renders of one edit list decode to identical frames, checked in CI on Linux and macOS.
  • Every output frame has a receipt. provenance.csv has one row per frame, and the render fails if the decoded file disagrees with it.
  • Checks run on the files. 30 checks, from loudness and true peak to caption sync and logo persistence, plus 14 for photo posts (docs/checks.md).
  • Cost is counted per edit. Tokens by type, list-price dollars and minutes, read from Claude Code and Codex transcripts at a dated price snapshot in prices/.

Demo edits

Two renders straight from cutscene, shown at their full 30 frames a second. Each one's MP4, with sound, is linked under it.

One wide shot of a person in a printed sweatshirt in a white studio, split down the middle: the left half is flat grey camera log, the right half is the same moving frames graded, with a label on each half. A vertical reel that cuts on the beat between shots of people in printed sweatshirts and tees in a white studio, including a half-speed shot, ending on a text card.
Grade before and after. One render of a camera-log clip: the left half as shot, the right half through a log-to-Rec.709 LUT. MP4 · edit list Beat-cut reel. Five clips cut on a 125 BPM beat, one at half speed from 59.94 fps footage. MP4 · edit list

cutscene demo renders the reels from the sample media. Every edit list:

Edit list What it shows Hard checks
examples/demo/lineup_reel.json Beat-cut reel. Seven segments on a 125 BPM beat: five clips, one of them at half speed from 59.94 fps footage, a photo and an end card, with captions and a logo. 6 of 6 cuts on the beat. 18 of 18
examples/demo/ramp_reel.json Speed-ramp reel. Speed curves scaled so each cut lands on the beat. Only the 59.94 fps clip goes below real time, so every slowed frame is a camera frame. 5 of 5 cuts on the beat. 18 of 18
docs/assets/grade_match/edl.json Grade before and after. One render: the camera-log clip on the left, the same frames through a log-to-Rec.709 LUT on the right. 18 of 18
examples/demo/carousel.json Photo carousel. Six photos cropped to 4:5 at 1080x1350 under one grade, with alt text and a caption in the file. The other two of 13 checks are soft. 11 of 11

The sample media has its own license: LICENSE-MEDIA.md.

Measured on real footage

No model ran in these measurements. They are cutscene's own tools on real footage, on an Apple M4 Mac, Nov 23 and 24, 2026.

What Result How it was measured
Frame provenance The named source frame was the closest match in 10 of 10 samples PSNR against the neighbouring source frames, on 4K HLG phone video and on a beat-cut reel.
Word timing Median error 13.5 ms, against 252.5 ms for the recognizer's own times An independent onset scan of 10 phrase starts. cutscene moves each word edge onto the audio.
Clipping below full scale 131 flattened crests on a clip a peak meter called clean at -4.9 dBFS None found on three clean finished videos or on 12 limiter-mastered test files.
Reading footage 43 camera files (65 minutes) in 2,599 tokens Default ffprobe output for the same files is 40,682 tokens.
A talking-head cut from one phone clip Three passes; the third passes all 38 hard checks The first pass failed four, all from the edit: two cuts too close to words, a cut into a word, and captions off by 0.185 s.

All ten measurements, with cuts on the beat, beat grids, the audio master and a delivered cut checked with no edit list: docs/measurements.md.

What an edit costs

cutscene itself spends nothing. Dollar figures are list prices times token counts, not invoices.

  • Two recorded sessions, each cutting a 7-second, 6-cut reel from the sample media through the MCP server: $2.21 and 2.7 minutes (GPT-6 Astra in Codex CLI, 1.07M tokens), and $1.25 and 2.3 minutes (Claude Opus 5.5 in Claude Code, 1.26M tokens). One run each, on different setups, so they do not compare the models.
  • Most of that is context read again on each turn, not output: cached input was 89% and 91% of the tokens. Cost follows the number of turns, which is why cutscene returns every problem in one call and keeps its tool list at 1,692 tokens.
  • No claim that cutscene lowers cost. The same brief with and without cutscene has not been run. The experiment that would measure it is described in docs/benchmark.md, and a baseline edit made before cutscene existed is measured in full in docs/cost.md.
  • Before you run, cutscene estimate --model MODEL --task TASK prints a labeled range and says when it is not a forecast. The range moves with the model's prices and with how the job is sized: the demo's line sizes its own edit list at Claude Sonnet 5.5's prices ($0.37 to $1.76), and --model gpt-6-astra --harness codex --task lineup_reel --variant mcp prints $2.41 to $11.66. The recorded Codex run, at $2.21, came in under that.

--profile lean, quality (the default) or max sets how much the agent is handed: docs/profiles.md.

How it works

  footage, photos, music
          |
          v
  probe, transcribe, contact_sheet, beat_grid     small text and a few images for the agent
          |
          v
  the agent writes edl.json  <------------------+
          |                                     |
          v                                     |  every problem, each with a fix
  validate  ------------------------------------+
          |                                     |
          v                                     |
  render with FFmpeg                            |
     video files, provenance.csv, receipt.json  |
          |                                     |
          v                                     |
  checks measure the files  --------------------+
          |
          v
  export: OpenTimelineIO, FCP 7 XML, SRT, VTT, Remotion, CapCut handoff

A worked example on an edit list an agent wrote (a crop the validator corrects, the rows of provenance.csv) is in docs/edl.md. The modules: docs/architecture.md. Why it is built this way: docs/decisions.md.

Exports

cutscene export edl.json --target NAME --out-dir out/export. Each export is read back after it is written and lists what it kept, approximated and dropped.

Target --target How it was checked
SRT and VTT captions srt, vtt Read back. 80 caption files written by another tool also parse, into 266 cues with no failures.
OpenTimelineIO otio Read back: 300 of 300 frames and 17 of 17 source ranges. Needs the otio extra.
Final Cut Pro 7 XML fcpxml Read back: 60 of 60 crops within 1 px.
Remotion project remotion Rendered in CI with node 20. Its frames match cutscene's own render at 39.5 dB mean PSNR (10 frames).
CapCut handoff capcut One file per segment, each with exactly the frame count in the plan, plus an SRT and a cut list.

These files were checked by reading them back with cutscene. No import into Premiere, Resolve or CapCut has been recorded yet, and exports are one-way. Per target: docs/export.md.

How it differs

Each cell about another project is from that project's README as read on Nov 24, 2026.

cutscene An agent with a shell and ffmpeg video-use HyperFrames editly auto-editor
What it is An MCP server and CLI that an agent calls The agent's own commands An agent skill A composition renderer with agent skills A command-line renderer A command-line editor that cuts by analysis
What gets written A typed edit list, validated before the render Shell commands A final MP4 HTML, CSS and JavaScript compositions A JSON5 or JSON spec Flags on a command
Where pixels come from Your footage Your footage Your footage Composed graphics Your footage Your footage
Trace from output frame to source frame A row per frame None Not in its README Not in its README Not in its README Not in its README
Leaves in an editor format OTIO, FCP 7 XML, SRT, VTT, Remotion, CapCut handoff Whatever the agent scripts Not in its README Not in its README Not in its README Premiere, Resolve, Final Cut Pro, ShotCut, Kdenlive
Reports agent tokens and dollars per edit Yes No Not in its README Not in its README No agent involved No agent involved
Needs An agent and ffmpeg An agent and ffmpeg An agent and a paid speech API key Chrome and FFmpeg Node and ffmpeg No agent
Stronger than cutscene at No install, and anything ffmpeg can do A self-check loop with retries, notes kept between sessions, far more users Motion graphics, and a desktop app A simple spec with years of use Cutting silence with no agent at all, and more editor targets

Your footage, your style

The CLI reads the folder you run it in and writes to ./out, so run it from your footage folder:

cd ~/Footage/shoot
alias cutscene='uv run --project /path/to/cutscene cutscene'    # the clone
cutscene probe .                                    # one table for the whole folder
cutscene sheet a.mov b.mov                          # one image of labeled frames
cutscene transcribe .                               # on your machine; needs a speech extra, and the result says which
cutscene context example-studio --task talking_head # the brief an agent would get
  • Context packs. A pack is a folder with brand colors, a logo, caption styles, a grade, sound effects, end cards and house rules. cutscene turns it into a brief cut to a token budget, and into checks. Copy packs/example-studio to start your own: docs/packs.md.
  • Reference edits. cutscene reference FILE measures a finished video you have the right to use into style targets, and cutscene style-match scores a render against them. Nothing is copied from the reference: docs/reference-edits.md.
  • Photo carousels. cutscene photo validate, render and check do the same loop for a post/1 file: docs/photo.md.
  • Your own agents on your own footage. cutscene bench prep, run, review and report freeze a footage set, run a task with a model, build a blind review page and write the tables. Four adapters need no key, so the loop runs offline: docs/benchmark.md.

Limits

  • The sample media has no speech, so the talking-head path has measurements but no demo and no recorded agent session.
  • The demo and gallery are small: the sample clips are 1080x608, so their 9:16 window is 342x608.
  • No timeline app, no mobile app, no Windows build. A CLI and an MCP server for macOS and Linux.
  • Does not generate or interpolate frames, voices or music, and does not judge taste. The checks catch a broken file, not a dull cut.
  • Does not drive Premiere, Resolve or CapCut. It writes files and does not read your changes back.
  • A language model plans the edit and reads your transcript, so a contract that bans AI at any step is not satisfied.
  • Samples are small. Read the counts. This release has no comparison between models or between cutscene and a shell.
  • HDR sources are converted to SDR.
  • Not on PyPI. Version 0.1.0.dev0, installed from this repository.

Where agents failed, and what each failure changed in the code, is in docs/failures.md. Three of them:

  • A cut that passed every file check was rejected on first viewing. It opened on 1.7 s of room sound. The standard is a check now (speech_at_start).
  • Four checking agents missed what a person caught, and cost 92% of the edit's dollars. Those standards are code now.
  • An agent patched cutscene to get its work done (Nov 24, 2026). A fenced Claude Code run started with no MCP server connected, and inside the client's sandbox ffmpeg could not write to a file handed over as a descriptor. The edit still passed 19 of 19 checks, because the harness renders and checks the edit list itself. Both causes are open defects.

Questions people ask first (ffmpeg, privacy, repeatability, plans): docs/faq.md.

Docs

Page What it answers
docs/quickstart.md Install, cutscene doctor, the demo, a first edit on your own folder
docs/mcp.md Client setup, server flags, resources, every tool's inputs and outputs
docs/edl.md The edl/1 reference: every field, the anchors, the validator's rules
docs/checks.md Every check: what it measures, its threshold, hard or soft
docs/export.md Per target: what is kept, approximated and dropped
docs/packs.md Context packs, caption styles, style targets
docs/cost.md and docs/profiles.md How cost is counted, and how results stay small
docs/benchmark.md Tasks, adapters, blind review, running it on your footage
docs/measurements.md Every measurement on real footage, with its method
docs/failures.md Where agents fail, in full
docs/decisions.md The design decisions, each with the measurement behind it
docs/internals/contracts.md Every module's public functions, error codes and check names

Contributing

Add a task, an adapter or a check: CONTRIBUTING.md says how, and AGENTS.md is the guide for coding agents working in this repository. make check and make test must pass. A feature is absent from this README until it is built and measured. To report a security problem, see SECURITY.md.

License

The code is MIT: LICENSE.

The sample media in examples/media/ and docs/assets/grade_match/divider.png are not MIT. They belong to Bryce Bailey and are licensed CC BY-NC-ND 4.0: LICENSE-MEDIA.md. You may run the examples and edit the files on your own machine. You may not use them commercially or share edited versions.

Acknowledgments

cutscene stands on FFmpeg, OpenTimelineIO, mlx-whisper and faster-whisper, the MCP Python SDK, Remotion for one export target, and uv. The idea of a JSON spec you can read beside its output is editly's. The benchmark can write its tasks as Harbor task folders, and auto-editor is one of its key-less adapters.

It was written with coding agents under human review, against the module contracts in docs/internals/contracts.md.

Yorumlar (0)

Sonuc bulunamadi