{
  "id": 21749759,
  "title": "Two editors, one file: how an AI agent edits a project the user has open",
  "url": "https://urgent.news/2026/11/25/two-editors-one-file-how-an-ai-agent-edits-a-project-the-user-has-open",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-25T07:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/vladtarrow/two-editors-one-file-how-an-ai-agent-edits-a-project-the-user-has-open-1cdm"
  },
  "original_language": "en",
  "account": "Kdenlive, a video editing software, currently lacks an automation API. This limitation presented a challenge for AI agents that wished to edit projects open in the software. To overcome this, developers created Movie Engine, a system allowing an AI agent to edit a project while the user remains in control. The key to success lay in ensuring the user's edits were never lost and the AI's edits were always reflected in the open editor.\n\nMovie Engine achieves this through a two-step process: a lock and a check. The lock is a mutex, a unique identifier tied to the project file. When the AI agent or the user attempt to edit the project, they must first obtain the lock. The lock ensures both entities edit the project sequentially, preventing interleaving. This is crucial because the user's edits must not be overwritten by the AI's edits.\n\nAfter obtaining the lock, the system checks for unsaved edits. If Kdenlive has unsaved edits, the system saves them using UI Automation, a method that doesn't steal focus from the user. The system waits until the Save button is disabled again, indicating Kdenlive has finished saving. The system then checks the file's hash, a unique string derived from the file's content. This hash is used to verify that the file's content hasn't changed while the edit command was running. If the hash has changed, the system throws an error and asks the user to re-run the command, ensuring the user's edits are not lost.",
  "summary": "Part 6 of a series on Movie Engine, where an AI agent edits Kdenlive video projects while the editor stays open. Earlier parts: 1, overview , 2, UI Automation without stealing focus , 3, menu names from translation files , 4, rendering what Kdenlive can't , 5, captions timed to the spoken word . Here is the situation Movie Engine is built for. Kdenlive is open with a project. I am trimming clips…",
  "key_points": [
    "Kdenlive lacks automation API for AI editing",
    "Movie Engine enables AI to edit projects safely",
    "Lock and check system preserves user edits"
  ],
  "editors_take": "By implementing a lock and check system, Movie Engine overcomes software automation limitations to allow seamless, sequential collaboration between human editors and AI agents without risking data loss.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}