AI coding agents are good at structure, timing and repetition — exactly the boring parts of video editing. But video editors are built for a mouse, and an agent that clicks through a GUI takes over your desktop. I wanted Claude Code to edit my videos while I keep using the same editor.
The problem
Kdenlive is a great open-source editor, but on Windows it has no automation API: D-Bus control is compiled only on Linux. The forks that add an API are unmaintained or unsafe.
The approach: edit the file, then ask the editor to re-read it
A .kdenlive project is MLT XML. Movie Engine edits it with a command line tool (kdp.ps1, about 120 commands). Every command:
- asks the running Kdenlive to save the user's unsaved edits, through the toolbar Save button via UI Automation, and confirms it;
- edits the XML under a lock, after a hash check, with an undo snapshot;
- lets a watcher trigger File > Revert in the open editor, and counts it as done only when the timeline widget has really been rebuilt.
UI Automation patterns (Invoke, ExpandCollapse) work without focus or keystrokes, so the agent never steals the keyboard. Test editors run on an invisible Windows desktop with their own profile.
Two surprises
- Opening a project with
kdenlive.exe project.kdenlivemade each UI Automation call walk every timeline item: about 12 minutes on a 1000-clip project. Starting empty and opening via File > Open Recent took 139 seconds. - Kdenlive's menu names depend on the interface language, so the tool reads them from Kdenlive's own translation files (.mo/.qm) — 31 languages, each checked on a hidden desktop.
What Kdenlive can't do, render outside
Per-letter kinetic text, hand-drawn annotations, 3D UI scenes and long explainer films are rendered with headless Edge and canvas (with real motion blur) and placed on the timeline as ordinary clips. Word timings from Edge TTS make captions and actions fire on the exact spoken word.
Try it
git clone https://github.com/vladtarrow/movie-engine.git
cd movie-engine
.\setup.cmd
Or in Claude Code: /plugin marketplace add vladtarrow/movie-engine. Windows only, MIT licensed.
vladtarrow
/
movie-engine
AI agents (Claude Code, Codex) edit real Kdenlive projects live in the open editor: films, explainers and vertical shorts. Portable, Windows.
Movie Engine
An AI agent edits your video in Kdenlive while you watch, and you can take over at any moment.
AI coding agents (Claude Code, Codex) build and change real Kdenlive projects: films, explainers and vertical shorts. The edits show up live in the editor you have open. Portable, Windows, no editor patches.
English · 简体中文 · 繁體中文 · हिन्दी · Español · Français · العربية · বাংলা · Português · Русский · اردو · Bahasa Indonesia · Deutsch · 日本語 · Türkçe · 한국어 · Українська · Italiano · Polski · Tiếng Việt · فارسی · ไทย · Kiswahili · አማርኛ · Avañe'ẽ · Setswana · Shqip · Беларуская · Български · Bosanski · Hrvatski · Српски · Crnogorski · Македонски · Slovenščina · Slovenčina · Čeština · Magyar · Română · Dansk · Norsk bokmål · Norsk nynorsk · Svenska · Íslenska · Suomi · Eesti ·…
Feedback welcome, especially from people who edit video.
Top comments (1)
Agreeing with the framing here: structure, timing and repetition are the boring parts, and that's where automation pays off. What made agent-driven edits reliable for us was giving the agent an edit decision list it could diff, rather than letting it drive the timeline directly. Reviewing a text diff of cuts is far faster than scrubbing a render.