Skip to main content
Back

Diffusion Studio's DAPI Turns Any Coding Agent Into a Video Editor

Diffusion Studio open-sourced a video editor and CLI that lets Claude Code, Cursor, and other coding agents write, cut, and generate video by talking to them.

Repo, Full Access
  • Diffusion Studio open-sourced its video editor and released DAPI, a CLI for coding agents, under MPL 2.0.
  • Works with Claude Code, Codex, Cursor, Copilot, and Gemini CLI via npx skills add diffusionstudio/skills -g.
  • Agents write compositions in SolidJS TSX; every element becomes an editable node in the timeline.
  • Ships multimodal inspection tools: probe, filmstrip, waveform, transcribe, and ask-a-model on any clip.
  • Editor is built on WebCodecs and WebGPU, with a macOS desktop app and browser version available.
  • JSON Lines output, stderr errors, and exit codes make every command pipeable and agent-friendly.

Video editing has long resisted the agent revolution. Timelines are visual, footage is opaque to text-only models, and most professional tools live behind closed scripting APIs. Diffusion Studio took a different approach: they open-sourced their entire editor, shipped a macOS desktop app, and released DAPI, a command-line interface that turns any coding agent into a video editor.

The agent writes a composition in TSX, the dapi CLI mounts it into the editor, and every element stays editable. The team frames it as FFmpeg for agents with generative AI and multimodal understanding built in. The whole stack, including the web editor, desktop app, CLI, and skills, ships under MPL 2.0.

How the agent drives the editor

The wiring is deliberately unglamorous. Install a skill once with npx skills add diffusionstudio/skills -g, and from then on Claude Code, Codex, Cursor, Copilot, Gemini CLI, and any other coding agent can work with Diffusion Studio once you install the macOS app, activate dapi from the Diffusion Studio menu, and add the skill.

The core loop is three commands:

dapi open                       # launch editor (add -b for headless)
dapi mount hero.tsx             # compile a JSX composition into the timeline
dapi node render -o hero.mp4    # encode the scene to disk

Compositions are SolidJS modules.