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.

); } return (
{/* ── Header ── */}

Video Editor

Remotion-powered mode — compose and render video in the sandbox.

mode: {mode}
{/* ── Content area ── */}
{/* Dependency check */}

Sandbox needs Node 18+, FFmpeg, and @remotion/* installed. Add them to the sandbox image before running renders.

{/* Getting started guide */}

Getting Started

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:

"Create a 10-second animated logo reveal with a dark gradient background"
"Make a product demo video from these screenshots — 30 seconds, with voiceover"
"Generate a data-driven chart animation showing Q1 revenue growth"
{/* Composition canvas placeholder */}

Composition canvas

Agent renders Remotion projects here — output appears in the artifacts drawer as .mp4.

system prompt: video-editor

{/* How it works */}
How this mode works
  1. Agent receives the video-editor system prompt.
  2. You describe the video — topic, style, duration, voice.
  3. Agent plans scenes, sources assets, writes Remotion React components.
  4. Agent renders via npx remotion render or FFmpeg in the sandbox.
  5. Rendered .mp4 appears in the artifacts drawer for preview or download.
{/* OpenMontage integration */}
OpenMontage integration

For advanced video workflows, the agent can use{" "} OpenMontage  — a programmatic video composition framework built on Remotion.

  • Pre-built templates for explainers, promos, and data videos
  • Asset pipeline with automatic sourcing
  • Voiceover integration (TTS or recorded)
  • Multi-scene storyboarding with transitions

See the OpenMontage README for template reference and CLI usage.

); }