Built for agents

Agents see frames, not screenshots.

Every edit in Cutweave is a command. Every command is an MCP tool. The agent gets structured state, and rendered frames once render_frame lands, so it works on the same timeline you do without guessing at pixels.

Pre-alpha, Phase 1 of 7MCP server: built (v0)Frames: planned · WP-1J.02

An agent can edit the timeline over MCP today. It cannot see a rendered frame yet.

  1. Commandclip.splitOne registered command, applied through one transaction.
  2. MCP toolclip_splitThe same schema, reachable by any MCP client. A CI test checks parity.
  3. Agent getsrev + stateThe new revision and what changed. A rendered frame joins it when render_frame lands (planned, WP-1J.02).

Watch it work

Watch an agent edit

A scripted session about the plan: tool names are real or planned, values are invented, frames are not built yet.

Built today

A real run, no frames yet

This session was recorded from the MCP server in a headless engine, then trimmed for reading. An agent imports two clips, places them, cuts one, checks the timeline and undoes a delete.

Real runBuilt, pre-alpha13 tool calls, 0 errors, 2026-11-23.

Command
cutweave mcp --headless --dev-stub-media --deterministic-ids 1 --allow-root D:\footage --no-log

cutweave 0.0.0 (engine 0.0.0, schema 63d6427a6719b03fc2800b86a71f2591d4132d3813a2f0ed812974679076c3d4)

  1. initialize

    Request

    {"protocolVersion":"2025-11-25","clientInfo":{"name":"capture-mcp-run","version":"1"}}

    Result

    Server: cutweave 0.0.0, protocol 2025-11-25

    {"capabilities":{"tools":{}},"instructions":"Cutweave video editor. Look before you edit: project_info, timeline_get (sequence, track and item ids) and media_list.…"}

    Trimmed: instructions cut to the first sentences.

  2. tools/list

    Request

    {}

    Result

    18 tools

    clip_split, clip_trim, edit_undo, item_delete, item_move, item_set_props, job_status, job_wait, media_import, media_list, project_info, project_open, timeline_get, timeline_insert, cutweave_search_commands, cutweave_describe_command, cutweave_execute, cutweave_query

    Trimmed: input schemas and annotations omitted.

  3. project_infotools/call

    Arguments

    {}

    Result

    project.info: ok (document at rev 0)

    {"name":"Untitled","schema_version":1,"created":"1970-01-01T00:00:00Z","default_format":{"width":1920,"height":1080,"frame_rate":{"num":30,"den":1},"sample_rate":48000,"color_space":"rec709","background":"#000000"},"media_count":0,"sequences":[]}
  4. cutweave_search_commandstools/call

    Arguments

    {"query":"new project"}

    Result

    13 match(es) for "new project"

    {"matches":[{"name":"project.new","summary":"Initialize an empty project with one sequence (V1 + A1)","kind":"command"},{"name":"project.save_as","summary":"Save the document as a new project folder and continue there","kind":"engine"},…],"total":13}

    Trimmed: omitted: call, transactional; lists cut to 2 entries.

  5. cutweave_describe_commandtools/call

    Arguments

    {"name":"project.new"}

    Result

    project.new: Initialize an empty project with one sequence (V1 + A1)

    {"name":"project.new","summary":"Initialize an empty project with one sequence (V1 + A1)","kind":"command","call":"cutweave_execute {\"steps\":[{\"cmd\":\"project.new\",\"args\":{...}}]}","description":"Initializes an empty project: sets the project name and default format and creates one\nsequence with a video track `V1` on top of an audio t…","undoable":true,"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}}

    Trimmed: omitted: input_schema, output_schema; long text cut.

  6. cutweave_executetools/call

    Arguments

    {"steps":[{"cmd":"project.new","args":{"name":"Harbor interview"}}]}

    Result

    1 step(s) applied as one undo step; document at rev 1

    {"rev":1,"committed_rev":1,"changed":true,"steps":[{"cmd":"project.new","output":{"sequence":"seq_0000000000017e999cdbc20a2319b9cb","video_track":"trk_0000000000027f8989dde9c8c6ffc150","audio_track":"trk_00000000000376d1902a7aa83bfaaa17"}}]}
  7. media_importtools/call

    Arguments

    {"paths":["D:/footage/interview_a.mp4","D:/footage/broll_harbor.mp4"]}

    Result

    media.import: done; document at rev 2 (edit_undo reverts your last change)

    {"media":[{"path":"D:/footage/interview_a.mp4","media_id":"med_000000000004771ba4a23020bc56afc3","kind":"video","duplicate":false},{"path":"D:/footage/broll_harbor.mp4","media_id":"med_0000000000057d3189891744bd0efe34","kind":"video","duplicate":false}],"media_ids":["med_000000000004771ba4a23020bc56afc3","med_0000000000057d3189891744bd0efe34"],"failed":[],"job_ids":[]}
  8. media_listtools/call

    Arguments

    {}

    Result

    media.list: ok (document at rev 2)

    {"media":[{"id":"med_000000000004771ba4a23020bc56afc3","kind":"video","path":"D:/footage/interview_a.mp4","duration":7056000000},{"id":"med_0000000000057d3189891744bd0efe34","kind":"video","path":"D:/footage/broll_harbor.mp4","duration":7056000000}],"next_cursor":null,"total":2}

    Trimmed: omitted: has_video, has_audio.

  9. timeline_inserttools/call

    Arguments

    {"sequence":"seq_0000000000017e999cdbc20a2319b9cb","track":"trk_0000000000027f8989dde9c8c6ffc150","media":"med_000000000004771ba4a23020bc56afc3","at":0}

    Result

    timeline.insert: done; document at rev 3 (edit_undo reverts your last change)

    {"at":0,"duration":7056000000,"clips":["itm_0000000000077405950ad8d9f69f2c6f","itm_00000000000874918ac913f3f46b919e"],"linked_group":"grp_0000000000067e09902721405ac105a0","created_tracks":[]}
  10. timeline_inserttools/call

    Arguments

    {"sequence":"seq_0000000000017e999cdbc20a2319b9cb","track":"trk_0000000000027f8989dde9c8c6ffc150","media":"med_0000000000057d3189891744bd0efe34","at":"10s"}

    Result

    timeline.insert: done; document at rev 4 (edit_undo reverts your last change)

    {"at":7056000000,"duration":7056000000,"clips":["itm_00000000000a7677ac4d118e2be6e1b9","itm_00000000000b7ce789996e9998b9dcff"],"linked_group":"grp_0000000000097031b0cbdfaef85bafd1","created_tracks":[]}
  11. clip_splittools/call

    Arguments

    {"item":"itm_0000000000077405950ad8d9f69f2c6f","at":"4s"}

    Result

    clip.split: done; document at rev 5 (edit_undo reverts your last change)

    {"left":"itm_0000000000077405950ad8d9f69f2c6f","right":"itm_00000000000d7dd9a684ad64aee82988","at":2822400000,"linked":[{"left":"itm_00000000000874918ac913f3f46b919e","right":"itm_00000000000e76f98b67b4ebc71eb31a"}],"right_group":"grp_00000000000c7747a89c0a860404da19"}
  12. item_deletetools/call

    Arguments

    {"items":["itm_00000000000d7dd9a684ad64aee82988"]}

    Result

    item.delete: done; document at rev 6 (edit_undo reverts your last change)

    {"deleted":["itm_00000000000d7dd9a684ad64aee82988","itm_00000000000e76f98b67b4ebc71eb31a"]}
  13. timeline_gettools/call

    Arguments

    {"sequence":"seq_0000000000017e999cdbc20a2319b9cb","depth":2}

    Result

    timeline.get: ok (document at rev 6)

    {"id":"seq_0000000000017e999cdbc20a2319b9cb","duration":14112000000,"tracks":[{"id":"trk_0000000000027f8989dde9c8c6ffc150","kind":"video","items":[{"id":"itm_0000000000077405950ad8d9f69f2c6f","kind":"clip","start":0,"duration":2822400000,"media":"med_000000000004771ba4a23020bc56afc3"},{"id":"itm_00000000000a7677ac4d118e2be6e1b9","kind":"clip","start":7056000000,"duration":7056000000,"media":"med_0000000000057d3189891744bd0efe34"}]},{"id":"trk_00000000000376d1902a7aa83bfaaa17","kind":"audio","items":[{"id":"itm_00000000000874918ac913f3f46b919e","kind":"clip","start":0,"duration":2822400000,"media":"med_000000000004771ba4a23020bc56afc3"},{"id":"itm_00000000000b7ce789996e9998b9dcff","kind":"clip","start":7056000000,"duration":7056000000,"media":"med_0000000000057d3189891744bd0efe34"}]}]}

    Trimmed: omitted: name, format, track_count, item_count, muted, hidden, locked, solo, gain, end, linked_group, enabled.

  14. edit_undotools/call

    Arguments

    {}

    Result

    edit.undo: done; document at rev 7 (edit_undo reverts your last change)

    {"tx":"tx_7","entry":"tx_6","actor":"agent:mcp","label":"item.delete","rev":7,"committed_rev":7}
  15. timeline_gettools/call

    Arguments

    {"sequence":"seq_0000000000017e999cdbc20a2319b9cb","depth":2}

    Result

    timeline.get: ok (document at rev 7)

    {"id":"seq_0000000000017e999cdbc20a2319b9cb","duration":14112000000,"tracks":[{"id":"trk_0000000000027f8989dde9c8c6ffc150","kind":"video","items":[{"id":"itm_0000000000077405950ad8d9f69f2c6f","kind":"clip","start":0,"duration":2822400000,"media":"med_000000000004771ba4a23020bc56afc3"},{"id":"itm_00000000000d7dd9a684ad64aee82988","kind":"clip","start":2822400000,"duration":4233600000,"media":"med_000000000004771ba4a23020bc56afc3"},{"id":"itm_00000000000a7677ac4d118e2be6e1b9","kind":"clip","start":7056000000,"duration":7056000000,"media":"med_0000000000057d3189891744bd0efe34"}]},{"id":"trk_00000000000376d1902a7aa83bfaaa17","kind":"audio","items":[{"id":"itm_00000000000874918ac913f3f46b919e","kind":"clip","start":0,"duration":2822400000,"media":"med_000000000004771ba4a23020bc56afc3"},{"id":"itm_00000000000e76f98b67b4ebc71eb31a","kind":"clip","start":2822400000,"duration":4233600000,"media":"med_000000000004771ba4a23020bc56afc3"},{"id":"itm_00000000000b7ce789996e9998b9dcff","kind":"clip","start":7056000000,"duration":7056000000,"media":"med_0000000000057d3189891744bd0efe34"}]}]}

    Trimmed: omitted: name, format, track_count, item_count, muted, hidden, locked, solo, gain, end, linked_group, enabled.

Recorded from cutweave mcp --headless at 7728d7c, with dev stub media (made-up probe data until the FFmpeg backend lands). No frames yet: render_frame arrives with WP-1J.02.

Times are integer flicks, 705,600,000 per second, so 2822400000 is 4 s. Ids are deterministic: the same script gives the same ids. Trimming only drops whole fields, cuts lists and shortens long text; nothing is reworded.

Why frames

Two loops, side by side

A screen-driving agent works from pixels. An agent in Cutweave asks the engine.

A screen-driving agent

Works on any app, with no help from the app. The cost is that it infers state from pixels.

  1. Take a screenshotPixels of the whole window.
  2. Guess the coordinatesFind the button or clip edge by sight.
  3. Click or dragThe agent does not know whether it landed.
  4. Take another screenshotCompare, then repeat.

Back to the first step until it looks right.

An agent in Cutweave

The app exposes its own state and its own renderer, so the agent asks instead of guessing.

  1. Query statetimeline_get returns clips, tracks, times and the revision.timeline_get
  2. Send a commandclip_split with an item ID and a time. The reply says what changed.clip_split
  3. Render a frameAn image plus metadata: time, items visible, captions on screen.render_framePlanned, WP-1J.02

Every edit is attributed to one actor and undoable as one step.

The tool surface

14 tools listed today, and four for everything else

Every non-view command is reachable over MCP with an identical schema. The core tools are always listed. The rest are one search away.

Built, v0

Listed tools are what tools/list returns from the engine today. Planned names are marked with the work package that adds them.

Listed today (14 tools on the standard profile)

Always visible to the agent. Each carries annotations for read-only, destructive and idempotent. The minimal mark means the tool is also on the minimal profile, which lists 9 tools in all for small context windows.

Project

  • project_openOpen a project folder or .cutweave file.
  • project_infominimalGet project name, default format and a summary of its sequences.

Media

  • media_importImport media files: probe and register them now, return media ids and analysis job ids.
  • media_listminimalList the project’s media, paged.

Timeline and clips

  • timeline_getminimalGet a sequence: summary, tracks, or tracks with items.
  • timeline_insertInsert a media clip at a time on a track. Video with sound adds linked audio.
  • clip_splitSplit a clip, and its linked partners, at a timeline time.
  • clip_trimTrim the start or end edge of a clip. No ripple.
  • item_moveMove an item in time or to another track. Linked partners follow.
  • item_deleteDelete items and their linked partners. No ripple.
  • item_set_propsSet an item’s name, enabled, opacity, audio gain or transform.

Jobs

  • job_statusGet a background job’s state, progress and error.
  • job_waitminimalWait up to 60 s for a background job to finish.

History

  • edit_undominimalUndo your last change, or another actor’s.

Four generic tools for the long tail

Every other command is reached through these, so the tool list stays small. Both profiles list all four. The budget is 12 tools or 3k tokens for the minimal profile and 36 tools or 8k tokens for the standard one.

  • cutweave_search_commandsFind commands and queries by keyword, including ones not listed as tools.
  • cutweave_describe_commandGet one command’s docs, annotations and full input and output schemas.
  • cutweave_executeRun commands as one all-or-nothing transaction and one undo step. Takes dry_run and expected_rev; steps can reference earlier results with $ref.
  • cutweave_queryRun a read-only query by name, such as item.get or edit.history.

Reached through cutweave_execute (28 commands)

Registered commands that are not listed as tools. Find one with cutweave_search_commands, read its schema with cutweave_describe_command, then run it as a step. Several steps in one call are one transaction and one undo step. The full list is in the command reference.

Project

  • project.new
  • project.rename
  • project.save
  • project.save_as
  • project.close
  • project.recover
  • project.discard_recovery

Tracks, media and jobs

  • track.add
  • track.remove
  • track.set
  • media.remove
  • item.get
  • job.list
  • job.cancel

History and transactions

  • edit.redo
  • edit.history
  • edit.checkpoint
  • edit.list_checkpoints
  • edit.restore
  • edit.begin_tx
  • edit.commit_tx
  • edit.cancel_tx
  • edit.locks

View state

  • view.get
  • view.set
  • view.select
  • view.set_playhead
  • view.set_zoom

Planned (not listed yet)

Planned The tools that let an agent see a frame or export arrive with their work packages. A real agent can edit the timeline today, but it cannot see rendered frames until render_frame lands. The long tail beyond Phase 1 is named in the architecture and may change.

See the result

  • render_frameImageWP-1J.02Render one frame as an image plus metadata.
  • render_contact_sheetImagePhase 2Render a grid of frames as one image.
  • media_filmstripImagePhase 2Filmstrip of a media file.
  • audio_waveformImagePhase 2Waveform of an audio source.

Export

  • export_startWP-1E.03Start an export job.

Text, captions, motion and audio

  • text_addPhase 3Add a text item.
  • caption_generatePhase 3Transcribe media into captions.
  • caption_stylePhase 3Style captions.
  • keyframe_setPhase 2Set a keyframe.
  • audio_setPhase 2Set audio properties.

AI

  • ai_generatePhase 5Generate media. Priced before it runs.
  • ai_modelsPhase 5List the models the gateway can use.

Resources (planned)

  • cutweave://project
  • cutweave://sequence/{id}/timeline
  • cutweave://transcript/{id}
  • cutweave://catalog/models

MCP prompts (planned)

  • make-short
  • caption-pass
  • rough-cut
  • tighten
  • add-broll
  • script-to-video
  • dub
  • audio-polish
  • color-match
  • review-cut
  • brand-apply
  • export-for
  • explain-project

Transports (built)

  • Streamable HTTP

    http://127.0.0.1:<port>/mcp

    Served by a running engine on localhost, with an agent token from its run-file. /mcp/minimal and /mcp/full pick the profile.

  • Attach to the app

    cutweave mcp --attach

    A stdio proxy to the running engine, so the agent edits the project you have open and you watch it happen.

  • Headless

    cutweave mcp --headless --allow-root <folder>

    An engine inside the MCP process, no GUI. For CI, servers and scripted runs.

Built on the official Rust MCP SDK, rmcp. Both spec revisions work, 2025-11-25 and 2026-07-28. The recorded run below uses 2025-11-25 over stdio.

Proposals and undo

An agent turn is one thing you can accept or reject

Agent edits are held as a proposal until you decide. Then they are one undo step, attributed to the agent that made them.

  1. The agent turn runs in a proposal. An ephemeral transaction soft-locks the items it touches, so your own edits to other items still work.
  2. You see the diff. Changes appear on the timeline as dashed, hatched agent-blue ghosts, with before and after frames.
  3. You decide once. Accept commits one undo step tagged with the agent. Reject rolls it back. A proposal has no idle timeout and can be cancelled.
IllustrativePlanned, Phase 6
Agent

Agent proposes 6 changes: remove 14 silences, add captions

Cost ~$0.04 to transcribe. Illustrative.

Pending. Nothing is committed until you accept.

History shows who did what

The actor comes from the credential, never from the client. You can undo the agent’s last change without touching your own.

  • userTrim intro clip
  • agent:claude-codeRemove 14 silences, add captions (proposal)
  • plugin:<id>Apply a plugin effect
  • userMove title card

Checkpoints are cheap

The document uses persistent snapshots, so naming a state costs almost nothing and restoring it is one command.

  • edit_checkpoint { name: "before-cuts" }
  • edit.restore { checkpoint: "before-cuts" }

Spending authority

Say what it costs before it runs

The engine enforces three tiers of authority. The model cannot talk its way past them.

Planned, Phase 5 Enforced by the engine, not by the model.

  1. Tier 1

    Auto

    The action is under the per-action and per-session agent budget. The default budget is $0, so tier 1 is off until you set a budget.

  2. Tier 2

    Agent-confirmed

    A dry run returns a cost_estimate and a confirm_token. The token proves the agent saw the price, but it cannot take the agent past the remaining budget.

  3. Tier 3

    Human-approved

    Over budget, or marked requires_human (publishing, deleting originals). The engine returns approval_required with an approval_id. Only the desktop UI can mint an approval; agent credentials cannot. Headless mode uses tiers 1 and 2 with an explicit --budget flag.

What you see when an agent goes over budget Illustrative

Needs approval~$2.10

This costs ~$2.10, above your $1.00 agent budget. Approve to continue.

Provider keys stay in the OS keychain. The engine makes every provider call, and keys never reach agents, plugins or the renderer.

Agent Kit

A kit that makes agents good at video

Tools give an agent hands. The kit gives it the craft: skills, workflows, presets and a way to measure whether it works.

Planned, Phase 3 first slicePlanned, Phase 6 full kit

Skills (about 14)

Spec-valid SKILL.md files that teach an agent how to do video work, not just which tools exist.

  • cutweave-basics
  • transcript-editing
  • shorts-from-longform
  • captions-and-styling
  • b-roll-insertion
  • script-to-storyboard
  • generate-shots
  • dubbing-and-translation
  • audio-polish
  • color-and-look-matching
  • reframe-and-aspect
  • brand-kit-apply
  • review-and-critique
  • export-and-delivery

MCP prompts (13)

Slash-style workflows, such as make-short and rough-cut.

Preset and prompt packs

A model-agnostic intent layer (shot, subject, camera move, style, mood) with per-model adapters. Plus camera-motion vocabulary, platform specs, caption styles and storyboard templates.

Client installers

One command writes the MCP config and installs the skills for your client. A Claude Code plugin bundles both.

  • claude
  • codex
  • gemini
  • cursor
  • vscode

Eval harness

About 15 task suites. State-based assertions come first; a pinned vision-rubric judge comes second. Safety tasks include transcript prompt injection, over-budget generation and an ambiguous destructive request. Runs nightly in CI.

Target: at least 80% task success on at least two different agent clients.

Connect your client

Point your agent at Cutweave

The MCP server works today, over stdio. There is no installer yet, so you build the binary from source.

Built, pre-alpha Tested in the product repository. Nothing is packaged or signed.

No installer yet. Build cutweave from source and put the binary on your PATH, or put its full path in your client’s command. Setup for Rust and the other tools is in the dev process doc.

Build from source
git clone https://github.com/cutweave/cutweave
cd cutweave
cargo build -p cutweave-cli
# The binary is target/debug/cutweave. Put it on your PATH.

Claude Code

Run in a terminal. Add --scope project to write the server to the repository’s .mcp.json instead.

Attach to the running app
claude mcp add cutweave -- cutweave mcp --attach
Headless, no app needed
claude mcp add cutweave-headless -- cutweave mcp --headless --allow-root /path/to/footage

Claude Desktop

claude_desktop_config.json (Settings, Developer, Edit Config).

Attach to the running app
{
  "mcpServers": {
    "cutweave": { "command": "cutweave", "args": ["mcp", "--attach"] }
  }
}
Headless, no app needed
{
  "mcpServers": {
    "cutweave": { "command": "cutweave", "args": ["mcp", "--headless", "--allow-root", "/path/to/footage"] }
  }
}

Codex

~/.codex/config.toml

Attach to the running app
[mcp_servers.cutweave]
command = "cutweave"
args = ["mcp", "--attach"]
Headless, no app needed
[mcp_servers.cutweave]
command = "cutweave"
args = ["mcp", "--headless", "--allow-root", "/path/to/footage"]

Gemini CLI

~/.gemini/settings.json, or .gemini/settings.json in a project.

Attach to the running app
{
  "mcpServers": {
    "cutweave": { "command": "cutweave", "args": ["mcp", "--attach"] }
  }
}
Headless, no app needed
{
  "mcpServers": {
    "cutweave": { "command": "cutweave", "args": ["mcp", "--headless", "--allow-root", "/path/to/footage"] }
  }
}

Cursor

~/.cursor/mcp.json, or .cursor/mcp.json in a project.

Attach to the running app
{
  "mcpServers": {
    "cutweave": { "command": "cutweave", "args": ["mcp", "--attach"] }
  }
}
Headless, no app needed
{
  "mcpServers": {
    "cutweave": { "command": "cutweave", "args": ["mcp", "--headless", "--allow-root", "/path/to/footage"] }
  }
}
  • Attach proxies to a running engine, so you watch the agent edit your open project. The desktop app is not released, so today that means running cutweave engine yourself.
  • Headless runs an engine inside the MCP process. The agent can only import from the --allow-root folders. Until the FFmpeg backend lands, add --dev-stub-media to import files with made-up probe data (dev only).
  • Profiles. --profile minimal lists fewer tools for small context windows. The default is standard.
  • Planned cutweave agent-kit install --client … would write the config and install skills for you. That command does not exist yet (Agent Kit, Phase 3 and 6).

Read the client setup doc

Earlier evidence

The Phase 0 spike: three of three, with frames

In a Phase 0 spike, Claude Code ran headless against a spike MCP server. The prompt: import a fixture video, cut it at 2 s, and show the frame at 3 s.

  1. media_import
  2. timeline_insert
  3. clip_split
  4. render_frame
  • 3 of 3runs passed, each with exactly four calls and no screenshots.
  • ~$0.035per warm run.
  • ~2.7ktokens for tools/list with 13 tools, against a 3k budget for the minimal profile.
  • 1 actorevery edit was attributed to agent:claude-code. The frame came back as an MCP image block.

Caveat. This was a spike server with a stub import. It is not the product, and it has only been seen from one host and one spec revision. Informal, one Windows laptop.

Read the run report

Follow the build

The design is public and so is the work. Read the MCP design, then watch the repository.