HARSH KAWATRA

DOSSIER 02

Editing is compilation

An AI-native video-editing operating system: describe intent in natural language, and a Claude-powered agent plans, compiles, and renders the result — while every edit remains structured data, versioned and reversible.

TypeScript · Node 24 · Claude CLI · MCP · FFmpeg · Remotion · Next.js


The setup

Professional video production demands manual NLE skill; AI video tools are cloud toys that hide every decision. Neither treats an edit as what it actually is: a structured, reviewable, reproducible artifact.

OpenVideo’s thesis: editing is compilation. Intent becomes a plan, the plan becomes a versioned Edit Decision Document — a video AST — and only the compiler pipeline turns that document into frames.

The model may reason freely. It may only act through a validated document.

The machine

edd_apply_patch (validated)Natural-language intent“turn this into a premium reel”Director agentClaude CLI, headless, MCP toolsEDD — the video ASTschema-validated patch, git-versionedCompilerEDD → IR → execution DAGRender engineFFmpeg · Remotion · PNG-seq fallback
PLATE 02 — The typed boundary between reasoning and execution. The Claude CLI, spawned headless, can only patch the EDD through a validating MCP tool; deterministic tools compile and render the document. Free-form model output can never reach FFmpeg.

The hard parts

On the record

The invariant that makes the system trustworthy is a typed boundary: the model authors and patches the Edit Decision Document; deterministic tools execute it. The contract is the validated EDD, never free-form shell output — edd_apply_patch validates every change before it touches disk 1. Hallucination cannot render, because rendering only reads the document.

Everything downstream is compiler engineering. The EDD lowers to an intermediate representation, then to a content-addressed execution DAG, which makes re-renders incremental and reproducible. The render layer keeps two paths healthy — Remotion for React-composed captions and graphics, FFmpeg for media — with a PNG-sequence fallback selected by health check, because the native compositor crashed in the proof of concept and again, independently, during the build 2.

The build discipline is written into the repository: unit-test pure logic offline, exercise the real binaries in integration, and never claim something works without having run it. The project maintains its own memory folder so that future AI collaborators inherit prior decisions and previously fixed bugs 3. It is early — a single Director agent, an alpha feature set — and it is the most ambitious thing in this issue.

The numbers

MeasureValueSource
Design record32-section PRD · 25 deep-dives · 13 ADRsdocs/, PRD
Agent surface8 typed MCP toolspackages/mcp-server
Reproducibilitygit-backed projects; every edit = validated patch + commitPRD §12, §17
Auth modelreuses the user’s Claude subscription — no API keyADR-0002

Errata & Failures

The docs outran the build

For a stretch, the architecture set described a system that did not exist yet. The correction was a standing rule: the PRD is the source of truth for intent, the code for behavior — when they disagree, fix the wrong one rather than assuming either is right.

The compositor that kept crashing

Remotion’s native compositor failed twice, independently, months apart. The PNG-sequence path is therefore the default-assumed-healthy render route until there is new evidence — a fallback promoted to a policy.

■ References

Repository (private during alpha) ↗