Skip to content

legends-capcut v0.1.0

Choose a tag to compare

@avalonreset avalonreset released this 27 Nov 01:20
· 1 commit to main since this release

legends-capcut v0.1.0 (Early Public Release)

Agent-native editing for CapCut Desktop: compile a plain JSON timeline spec into a real CapCut Desktop project, read any project back into scenes (S01, S02, ...), surgically patch one scene at a time, generate six-frame storyboards, audit reveal-aware text readability, and expose every operation over both CLI and stdio MCP.

Highlights

  • Bidirectional Draft Compiler & Reader: Compile a timeline spec with video, overlay, text, and audio tracks, transitions, in/out animations, source-window keyframes, beat markers, audio fades/ducking, and review burn-in into a complete CapCut Desktop project, or run inspect read-only on any project (including hand-cut projects) to decode scenes.
  • Surgical Single-Scene Patcher: Replace, trim, extend, shorten, rewrite statements, toggle scale punches, or hide individual scenes with ripple sync, byte-identical untouched tracks, in-memory pre-write validation, zero-orphan copy semantics on refused patches, and atomic multi-copy saves across root draft_content.json, .bak, and Timelines/.
  • Strict Safety Guards: Read-only by default on hand-cut projects; writes are restricted to tool-generated drafts carrying .legends_capcut_generated.json, with protected-draft refusal, symlink/junction checks, and draft-confined path validation.
  • Perpetual Storyboards & Readability Critic: Render six-frame per-scene contact sheets with timecodes, motion deltas, and copy, and run reveal-aware readability and overstay audits before opening the editor.
  • Beat Sync, Local Effect Catalog & Keymap Reader: Analyze music tempo, beats, downbeats, and sections ([beats] extra), catalog locally cached CapCut effects/transitions/animations, and resolve your active CapCut shortcut preset.
  • CLI + Stdio MCP Server: All 21 operations are exposed identically via legends-capcut CLI and legends-capcut mcp (capcut_* tools), plus routes.json agent route map.
  • Optional Windows GUI Control: Launch CapCut, open projects (including --allow-maximized-home), scrub, capture playback contact sheets (gui watch), and dispatch active keymap actions when paired with a local Windows desktop bridge (LEGENDS_SHELL_PS1).

Early Release Notes

  • Core draft compiler, reader, validator, patcher, beat sync, storyboards, and readability critic are cross-platform Python (3.11+, zero mandatory pip dependencies).
  • Tested live against CapCut Desktop 9.2.8 on Windows; optional gui commands are Windows-only.

Install

Via cto-legends:

cto-legends install legends-capcut --apply
cto-legends handoff legends-capcut

Or standalone from source:

pip install "legends-capcut @ git+https://github.com/avalonreset/legends-capcut"

Checksums

See attached SHA256SUMS.txt for SHA-256 verification of the wheel and source distribution.