Skip to content

feat: automatic demos from a recording (prototype) - #4636

Draft
richiemcilroy wants to merge 7 commits into
mainfrom
feat/auto-demo-director
Draft

richiemcilroy wants to merge 7 commits into
mainfrom
feat/auto-demo-director

Conversation

@richiemcilroy

Copy link
Copy Markdown
Member

Prototype of automatic demos: give Cap a Studio recording and it cuts it into a short demo with title cards, framed shots and music, as an ordinary editable timeline.

How it works

  1. Signals (crates/director): reads the cursor, keyboard and screen tracks and groups them into numbered moments. A moment is one click or one run of typing, with the cursor's approach and the screen settling after it, plus the area of the screen it happened in.
  2. Beat sheet: a planner picks the story: which moments to keep, the shot for each (wide, close-up, element card, full bleed) and any title cards. It never writes timings or camera numbers.
  3. Compile: turns the beat sheet into a normal project configuration. Dead time is cut, typing is sped up, every shot gets a slow push, and a click whose effect shows up elsewhere on screen cuts from the click to the result.

The planner can be:

  • Cap AI for Pro: POST /api/desktop/demos/plan, on the same model chain and request budget as meeting notes.
  • Your own agent over MCP: demo_signals returns the moments, a frame of each and the guide; demo_apply takes the beat sheet.
  • No model: cap demo auto --local keeps every click and typing run in order.

cap demo undo restores the timeline the recording had before.

What is not here yet

  • No button in the editor. This is CLI and MCP only.
  • The focus of a moment comes from what changed on screen. Recording the element under each click at capture time would make it exact; the director already reads such hints when a project has them.
  • Narrated recordings are not handled: the planner sees no transcript.

Testing

  • cargo test -p cap-director: 9 tests.
  • cargo clippy -p cap-director -p cap --all-targets -- -D warnings: clean.
  • cargo test -p cap --test cli: 75 pass. agent_installer_dry_run_is_machine_readable fails the same way on main on the test machine.
  • Ran cap demo signals, apply and export on a 62 s recording and checked frames of every shot and of the card boundaries.
  • Drove demo_signals and demo_apply through an MCP session.
  • Ran the planner code against the gateway model with 18 frames.
  • The route itself and the web unit tests have not been run locally; CI runs the unit tests.

@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Nov 29, 2026 1:53am UTC

This branch was successfully deployed

1 active deployment
Preview – cap-web — b039d7e0 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant