Scouter
A darktable photo pipeline with an MCP adapter and an honest-write rule. A fork of w1ne/darktable-mcp.
- 234 Test files
- 584 Of 677 commits are mine
- 5.4.1 darktable engine
scouter repo, 2026-11-26; scouter repo, git log, 2026-11-26; scouter repo, 2026-11-26
Honest write
Drag the exposure and white-balance sliders on a sample scene. Each slider shows the value requested beside the value actually stored, and anything past the honest limit is clamped.
Problem
I wanted to automate repeatable photo edits without handing my photos to an AI re-render. The edits had to stay inside a professional tool, so the result is still a normal darktable edit that I can open, check and change by hand.
The second problem is trust. When an automation says it set an exposure or applied a preset, how do you know darktable stored it? I wanted a pipeline that measures whether its writes land.
Constraints
- darktable 5.4.1 is the editing engine (scouter repo, 2026-10-24). Scouter works as a Lightroom replacement, not as an AI image generator.
- Every function has to work without AI. AI is a second layer on top, not the foundation.
- The Python core uses only the standard library, apart from the MCP adapter.
- It started from an existing project, so the upstream author's work needs to be credited and the fork kept clear about what is mine.
- The repo is public on GitHub (github.com/pratikgh0se/scouter).
Approach
Credit. Scouter is a fork of w1ne/darktable-mcp, which is MIT licensed. I started from that project and built on top of it. Upstream has 81 commits and I have 508 of the 599 in Scouter (scouter repo, 2026-10-24). The darktable MCP idea and the base are the upstream author's.
Layers. A Lua bridge runs inside darktable. A Python core talks to it. A CLI, the darkroom command, exposes the operations as verbs, and an MCP adapter exposes the same verbs to an agent. A person can use the CLI directly, and an agent uses the adapter. Both sit on the same core.
Honest writes. This is the rule that defines the project. A verb reports what darktable stored, not what the caller asked for. If the stored value differs from the request, the report shows the stored value, so an agent that reads it is not misled about the state of the edit.
Gauntlet. A set of live evaluations, kept in gauntlet.json, runs the verbs against darktable and checks the stored result. The first full run was a night run. It is how I find out whether the honest-write rule holds in practice.
What shipped
- The Lua bridge, the Python core, the
darkroomCLI and the MCP adapter, on Python 3.10 or later with Lua inside darktable (scouter repo, 2026-10-24). - The honest-write rule across the verbs.
- The gauntlet of live evaluations, with a night-1 run.
- A changelog and gauntlet results, kept as text.
The repo has 599 commits between 2026-04-25 and 2026-10-20, and 234 real test files (scouter repo, 2026-11-26). It has no screenshots.
Outcome
A verb goes through the CLI or the MCP adapter, into the Lua bridge, and back with the value darktable stored. The test count of 234 files and the live gauntlet are the evidence I would point to.
Status: released. Scouter v0.3.0, the first public release, came out on 2026-11-11 (gh release list). Its release gauntlet on 2026-11-11 ran 6191 cases with 0 crashes and 0 wrong edits (per CHANGELOG). Earlier, a rerun of 40 gauntlet cases passed 40 of 40 on 2026-09-29, but the full run on 2026-09-28 was judged not releasable. At that time four fix cards were still queued, and I had not run a third full night (vault Projects/Scouter and the scouter handoff note).
I have not yet got a headline number for it, such as time saved per edit, and I would rather leave it out than invent one.
What I learned
A status that comes from the component that set it is not evidence. For weeks the commit path reported "committed" while nothing landed, and every check passed because every check asked the same code. That led to two rules: confirm every write by reading the stored sidecar, and observe each checked fact through two independent oracles (docs/ZENKAI.md).
I also learned to keep tests away from my real files. Early tests wrote a 1.7 MB job note into my real notes folder because my shell exports the vault path, so the tests now force every path to a temp directory (vault Dev Log 2026-09-14). Every function stays usable without AI.
How AI built this
Scouter was built with subagent-driven development (scouter repo, docs/superpowers).
- Models. An Opus orchestrator, Sonnet implementers and keepers, and Opus reviewers, with Fable for risky reviews and final calls.
- Tests. Not code-blind. Implementers wrote them with the code, and a gate checks that they are honest: a mutation check, plus intent examples whose expected outcomes come from named sources. The live gauntlet adds an outside check, because it scores each verb against the sidecar darktable actually stored.