work/docugen

Documentary production workflow

Docugen

One place for a documentary's script, research, shots, files and review decisions, with a hand-holding wizard to start or import a film and an unchangeable history behind every edit.

Live

A cut of the film, with the next-step coach and the stage checklist.

Making a documentary with agents means a lot of moving parts and one rule: machines do the work, people decide. Docugen is the service that holds it all together, and it never confuses a submission with an approval.

Runs on
Web app on the home server, over TLS on the local network
Built with
Python 3.11 standard library only, SQLite, a content-addressed file store
Started
October 2026

Workflow

A submission is not an approval

  1. Diagram of Docugen. A film starts in the eight-step wizard or comes in through the import checker, which also takes a script written by a colleague's AI assistant from the prompt kit. The Docugen service on the home server, Python standard library only, keeps every object as an append-only revision chain with immutable bytes in a content-addressed store. It never runs production tools itself: it hands out work packets with the planned command to an agent on the machine that has the tools, and gets back a submission. Everything waiting goes to a person, whose approval names the exact revision approved; change requests go back to agents through a refinement queue.
    Machines do the work, people decide: agents get work packets and hand back submissions, and only a person's approval, tied to an exact revision, moves a film on.

Starting a film

Start a film asks one question at a time across eight short steps (idea, audience, language, footage, research, script, shots, final check) and can be paused and resumed. Import a film I already have accepts a structured JSON format (or Markdown, Fountain screenplay or CSV), checks it, explains problems like a teacher ("the shots add up to six seconds but the target is three minutes; here's how to fix it"), previews exactly what will be created and only then creates it. A prompt kit lets a colleague's AI assistant research and write an importable script.

Start

Import what you have

  1. Start a film, or import one you already have.
    Start a film, or import one you already have.
  2. The import wizard.
    The import wizard.
  3. Import preview: heads-ups explained, and exactly what will be created.
    Import preview: heads-ups explained, and exactly what will be created.
  4. The new film wizard, eight steps with example answers.
    The new film wizard, eight steps with example answers.

Working on it

Each film has a "your next step" coach, a production checklist from idea to approval, and tabs for watching, script, shots, research, files, requests, history and tools. Review is built for humans: one page lists everything waiting across all films, the player takes frame-accurate timecoded notes, the reader takes notes on selections and shows diffs, and images take region notes. Approve, reject or request changes; requests go back to agents through a refinement queue. Editing hides behind an explicit Edit mode.

Exports go to the editing suite as EDL or FCPXML, or out as a CSV shot list, a printable script or Docugen's own JSON, at a chosen frame rate.

The film

One page per film, one per cut

  1. A film page.
    A film page.
  2. A cut of the film, with the next-step coach and the stage checklist.
    A cut of the film, with the next-step coach and the stage checklist.
  3. The review home: everything waiting for a person.
    The review home: everything waiting for a person.
  4. The film library.
    The film library.

Inside a film

Script, shots, research, files

  1. The script.
    The script.
  2. The shot list.
    The shot list.
  3. Shots in Edit mode.
    Shots in Edit mode.
  4. Research and sources.
    Research and sources.
  5. Files.
    Files.
  6. History: every revision kept.
    History: every revision kept.

Out

To the edit, and to the agents

  1. Export buttons: EDL, FCPXML, CSV, script and JSON.
    Export buttons: EDL, FCPXML, CSV, script and JSON.
  2. Recipes: typed production tools agents can run.
    Recipes: typed production tools agents can run.
  3. The film created.
    The film created.

How it's built

  • Python's standard library only: its own HTTP server, SQLite and a content-addressed blob store, with around 170 tests and browser specs.
  • Every object has an append-only revision chain, and every approval names the exact revision approved. Bytes are immutable; nothing is replaced and no path is guessed.
  • The service never runs production tools itself. It hands out work packets with the planned command, an agent runs them on the machine that has the tools, and only a person can accept the result.
  • The wizard overhaul and the import format with its exporters and prompt kit were developed in parallel and released together.
  • Screenshots come from a scratch instance with the repository's fictional example film, "The Water Vote"; shot pictures are placeholders.

1 / 18

Diagram of Docugen. A film starts in the eight-step wizard or comes in through the import checker, which also takes a script written by a colleague's AI assistant from the prompt kit. The Docugen service on the home server, Python standard library only, keeps every object as an append-only revision chain with immutable bytes in a content-addressed store. It never runs production tools itself: it hands out work packets with the planned command to an agent on the machine that has the tools, and gets back a submission. Everything waiting goes to a person, whose approval names the exact revision approved; change requests go back to agents through a refinement queue.
Diagram of Docugen. A film starts in the eight-step wizard or comes in through the import checker, which also takes a script written by a colleague's AI assistant from the prompt kit. The Docugen service on the home server, Python standard library only, keeps every object as an append-only revision chain with immutable bytes in a content-addressed store. It never runs production tools itself: it hands out work packets with the planned command to an agent on the machine that has the tools, and gets back a submission. Everything waiting goes to a person, whose approval names the exact revision approved; change requests go back to agents through a refinement queue.