import { useMode } from "#/components/layout/ModeContext"; export default function VideoMode() { const { mode } = useMode(); if (mode !== "video") { return (
Switch to Video mode in the sidebar to access the video editor.
Remotion-powered mode — compose and render video in the sandbox.
Sandbox needs Node 18+, FFmpeg, and @remotion/* installed. Add them to the sandbox image before running renders.
Describe the video you want to create in the chat panel. The agent will plan scenes, write Remotion React components, and render the result. Start with something simple:
Composition canvas
Agent renders Remotion projects here — output appears in the artifacts drawer as .mp4.
system prompt: video-editor
video-editor system prompt.
npx remotion render or FFmpeg in
the sandbox.
For advanced video workflows, the agent can use{" "} OpenMontage — a programmatic video composition framework built on Remotion.
See the OpenMontage README for template reference and CLI usage.