Open source CapCut alternative.
TypeScript
docs: cut guides reflect omni-only video and scene-run steering
David Le1abefcc20785
diff --git a/docs/guides/cut/ai-assistant.md b/docs/guides/cut/ai-assistant.mdindex d5be3bf5..3136623a 100644--- a/docs/guides/cut/ai-assistant.md+++ b/docs/guides/cut/ai-assistant.md@@ -37,16 +37,16 @@ Every knowledge surface is defined once — the catalog file ships in the engine| Surface | Size today | When it enters context || --- | --- | --- |-| System prompt | ~3.1K chars (~750 tokens) | Claude: replaces the Agent SDK default. Codex: prepended to the first turn (a resumed session already has it). Gemini: the instructions field, every round. |-| Tool catalog (55 tools) | ~35K chars (~8.7K tokens) | Claude/Codex: the MCP tool listing. Gemini: function declarations on each request. |-| Skills library (8 docs) | ~16.5K chars (~4K tokens) total | On demand only, via the list-skills and read-skill tools. |+| System prompt | ~4.6K chars (~1.1K tokens) | Claude: replaces the Agent SDK default. Codex: prepended to the first turn (a resumed session already has it). Gemini: the instructions field, every round. |+| Tool catalog (65 tools) | ~43K chars (~11K tokens) | Claude/Codex: the MCP tool listing. Gemini: function declarations on each request. |+| Skills library (10 docs) | ~21K chars (~5.2K tokens) total | On demand only, via the list-skills and read-skill tools. || Editor snapshot | Grows with the project; media list and subtitle cues capped at 60 each | Attached to the newest user message as `<editor_state>`, rebuilt fresh every turn. || Attachments | Metadata JSON per asset | `<attached_assets>` on the message that carried them; on the Gemini path the newest message also carries the actual payloads (frames, images, text contents). || Full state | Uncapped | The get-state tool — the model calls it when the snapshot is stale or truncated. || The rendered frame | One 640px JPEG | The capture-frame tool, for visual judgment at the playhead. || The footage itself | Up to four 3×3 contact sheets per call | The watch-video tool: the engine samples a source at scene changes plus a steady floor (ffmpeg), the page stamps each cell with its source time, and the result carries the scene-change times. Detect-silence reports dead air the same way, numbers only. |-The system prompt is deliberately small: the voice, the deliverable rule (below), id discipline, the undo-versus-credits asymmetry, and pointers into the skills. The skills carry the deep per-area documentation — editor overview, timeline editing, watching and cutting by content, transitions, titles, audio and subtitles, stock and generation, publish and export — so the always-on cost stays near 8.5K tokens and detail is pulled only when the model works in that area.+The system prompt is deliberately small: the voice, the deliverable rule (below), id discipline, the undo-versus-credits asymmetry, and pointers into the skills. The skills carry the deep per-area documentation — editor overview, timeline editing, watching and cutting by content, transitions, titles, audio and subtitles, stock and generation, publish and export — so the always-on cost stays near 12K tokens and detail is pulled only when the model works in that area.The snapshot is a compact JSON picture of everything user-visible: project meta, playhead, selection, every media asset with its origin tag, the video track with gaps and transitions, overlay video, soundtrack, titles, subtitle tracks with the first 60 cues, publish metadata, and view state. Numbers are rounded to two decimals and empty fields are omitted. When a list is truncated the snapshot says so, which is the model's cue to call get-state.@@ -76,7 +76,7 @@ Tool calls execute in the open tab against the same store the user is editingMost generation tools make one asset. `generate_scene` makes a whole cut: it writes a script, voices it, breaks it into shots, and — once the user approves — renders each shot and lays them on the timeline under the narration. It is genre-agnostic; the look comes from the brief and any references. It can also animate audio the project already has (`from_audio_asset_id`), tiling shots over that spine instead of writing a script.-Because a scene renders many paid shots, the tool plans and then stops. `generate_scene` returns a shot list and waits; `approve_scene` starts the renders; `regenerate_shot` and `restyle_scene` revise afterward. The plan the user approves is the plan that renders: voicing runs after the gate and only rescales the approved shots to the real voice lengths (a line longer than one clip splits its shot). The run is browser-side like every generation here, held in a small store beside the panels (`lib/genScene.ts`) so switching tabs never orphans it; leaving the project pauses it, its persisted plan (`ProjectDoc.genvideo`) resumes on the next open, and dismissing an unrendered plan clears it. Progress shows on a card in the chat while the timeline fills on its own. The shots ride under one consistent AI voice with the video model's own audio off; this version has no talking-head lip-sync.+Because a scene renders many paid shots, the tool plans and then stops. `generate_scene` returns a shot list and waits; `approve_scene` starts the renders; `regenerate_shot` and `restyle_scene` revise afterward; `cancel_scene` kills the active run. The plan the user approves is the plan that renders: voicing runs after the gate and only rescales the approved shots to the real voice lengths (a line longer than one clip splits its shot). The run is browser-side like every generation here, held in a small store beside the panels (`lib/genScene.ts`) so switching tabs never orphans it; leaving the project pauses it, its persisted plan (`ProjectDoc.genvideo`) resumes on the next open, and a run that dies persists as failed so a reload never resumes it. Nothing runs behind the user's back: cancelling, dismissing an unrendered plan, or deleting the chat thread that asked all stop the run and clear its plan — clips already placed stay on the timeline. Progress shows on a card in the chat while the timeline fills on its own. The shots ride under one consistent AI voice with the video model's own audio off; this version has no talking-head lip-sync.## Context across turnsdiff --git a/docs/guides/cut/brief-to-video.md b/docs/guides/cut/brief-to-video.mdindex 2b681c50..5fcf536a 100644--- a/docs/guides/cut/brief-to-video.md+++ b/docs/guides/cut/brief-to-video.md@@ -53,8 +53,10 @@ exact wording belongs in title and subtitle overlays after assembly.## Visual consistency-Identity lives in images, never in prose. Text describes what happens in a-shot; what people and places *look like* rides as reference media:+Identity lives in images first. Text describes what happens in a shot; what+people and places *look like* rides as reference media, and any render an+image can't ride carries that sheet's written description in its prompt+instead — the same fixed words every shot:1. **Sheets first.** Each character and location gets one canonical referenceimage, designed once from the style bible and the user's references. The@@ -64,8 +66,8 @@ shot; what people and places *look like* rides as reference media:better than video models.3. **The identity ladder.** Each shot renders from its strongest availableanchor and falls one rung on failure: keyframe as the literal first frame →- reference-conditioned video from the sheets → text-only, where identity- rides the prompt and drifts.+ reference-conditioned video from the sheets → text-only, where the cast's+ full written descriptions ride the prompt and identity drifts the most.## Where it's going@@ -82,4 +84,6 @@ that planned the story.The orchestrator, plan types, and coverage invariant live in the site's Cutgenvideo area; its planning and media roles are the hosted-model adapters-beside it, and the chat tool that drives it is generate_scene.+beside it, and the chat tool that drives it is generate_scene. The assistant's+steering for scene runs — references and look, aspect, the from-audio flow —+is the chat skills library's scene-productions doc.