online lostsh.github.io rawroom | 2026-12-01 rfc 3514: evil bit not set
post 17 2026-12-01 ai agents | photo | raw | go 1.06 s

rawroom: a Lightroom for AI agents

AI agents | Photo | RAW | Go 5 min read

Ask an AI agent to fix the exposure on 200 photos from a shoot, and it gets stuck. The tools that develop a RAW file or adjust colour and brightness are built for people: a GUI, sliders, sidecar files, text output meant to be read by eye. The agent ends up chaining four tools and guessing settings it cannot see.

I wrote rawroom to fill that gap. One command line, JSON in and JSON out, from the RAW file to the finished JPEG. On my laptop it develops a 24 MP Sony raw in 1.06 seconds, and edits 20 photos in 4.3 seconds where darktable and RawTherapee take more than 30.

The missing piece

Editing a photo takes three things: decode the RAW, apply settings (exposure, white balance, contrast, colour), and look at the result. Today each of these lives in a different kind of tool:

Take the simplest request: "make this photo look normal". With these tools, an agent writes a script to measure the histogram, guesses an exposure and a white balance from it, renders, looks at the result, and starts again. That is several tools, code to write and debug, and settings chosen blind. With rawroom it is one call, rawroom auto IMG.ARW --look natural --render out.jpg, which measures, solves the settings and renders a full-size 24 MP photo in about 6 seconds. The same command takes a whole folder.

That is the part rawroom adds. It is one static binary, written in Go with the standard library only, and works offline. It is MIT licensed, except three files ported from LibRaw that stay under the CDDL.

How an agent uses it

Every step is one command. The agent measures, decides, checks one picture, then applies the same recipe to the whole folder.

sh | one shoot, end to end
rawroom analyze IMG.ARW --json                  # exposure, clipping, colour cast, noise
rawroom auto IMG.ARW --look natural -o r.json   # solve a recipe toward a look
rawroom preview IMG.ARW check.jpg --recipe r.json
rawroom batch --recipe r.json --out-dir out/ shoot/*.ARW
rawroom contact out/*.jpg -o sheet.jpg          # the whole batch in one image
Six boxes in a row, one per rawroom command, with the time each took on a 24 MP JPEG: info 7 ms for metadata, analyze 0.73 s for exposure, cast, clipping and hints, auto 2.9 s to solve a recipe for a look, preview 0.45 s for a 1024 px render, batch 4.4 s for 20 photos with one recipe, contact 0.21 s for 20 photos in one image. A dashed arrow goes from contact back to auto: if something looks off, change the recipe and run again. On a raw file, info takes 4.8 ms, analyze 0.43 s and preview 0.13 s.
Figure 1: the whole loop on 20 photos takes under ten seconds, so an agent can afford to go round it twice

analyze is what replaces the eye. It returns about 1.8 KB of JSON, around 500 tokens, and ends with hints that name the setting to change. On a dark 24 MP test picture:

json | rawroom analyze, end of the output
"mean_ev": -0.65,
"cast": { "verdict": "neutral" },
"hints": [
  "underexposed: median luma 0.31; try exposure +0.9 (or run rawroom auto)",
  "visible noise (sigma 5.2 levels at 17% scale): nrLuma 15..30, nrColor 20; no sharpening"
]

auto then wrote a recipe on its own: exposure +1.17, blacks −60, a warmer white balance and some colour noise reduction. The recipe is a plain JSON file. The same recipe always gives the same pixels, so it can be replayed on a thousand files, or on several machines.

A park seen from a window on an overcast day: bare trees, a large pine on the right, a roof in the foreground. The picture is dark and grey, the sky is dull. before: as shot, mean −0.65 EV
The same park after rawroom auto with the natural look: brighter, greener grass, a lighter sky, more detail in the shadows of the pine and the roof, no blown highlights. after: rawroom auto, +0.28 EV
Figure 2: analyze said "underexposed", auto fixed it, and no human touched a slider

The last step is contact. It puts 20 results on one labelled 1592 × 1144 px sheet in 0.21 s. A vision model reviews the batch in one image instead of twenty. rawroom also runs as an MCP server, so Claude or any MCP client gets these commands as tools.

Benchmarks

Setup. An 8-core Intel Core Ultra 7 258V laptop, 30 GB of RAM, Linux, idle. rawroom against darktable 5.6.2, RawTherapee 5.13, ImageMagick 7.1.2, libvips 8.14, LibRaw 0.22.3 and rawpy 0.28. Each number is the mean wall time of the whole command, from process start to file written, measured with hyperfine after a warm-up. The harness and every command are in the repository's bench/ folder.

Developing a RAW

Two bar charts for one 24 MP Sony A7 III raw file. Full-size JPEG: rawroom 1.06 s, rawpy 1.41 s, LibRaw 2.95 s, darktable 4.52 s, ImageMagick 4.61 s, RawTherapee 8.84 s. 1024 px preview: rawroom 0.12 s, rawpy 0.76 s, LibRaw 0.57 s, darktable 2.32 s, ImageMagick 3.69 s, RawTherapee 7.34 s.
Figure 3: a full-size JPEG in 1.06 s, a preview in 0.12 s, 61 times faster than RawTherapee

The same order holds on the four other formats tested (Canon CR2 and CR3, DNG, Panasonic RW2). For the full-size JPEG, rawroom is:

The preview is where an agent spends most of its time, and where the gap is widest. rawroom uses the camera's embedded preview or a half-size develop, whichever is valid. On Sony and Panasonic files that takes 0.11 to 0.14 s. On a Canon CR3, rawpy comes close: 0.55 s against 0.50 s.

Editing a batch

Two bar charts for a batch of 20 JPEGs, ten of 24 MP and ten of 12 MP, with the same edit. Edit plus resize to 2048 px: rawroom 4.27 s, libvips 5.13 s, ImageMagick 9.79 s, darktable 30.80 s, RawTherapee 31.63 s. Edit at full size: rawroom 10.62 s, libvips 18.84 s, ImageMagick 40.72 s, darktable 43.88 s, RawTherapee 51.52 s.
Figure 4: 20 photos in 4.3 s; the two photo editors need more than 30 s for the same job

The edit is the kind an agent asks for: exposure +0.3 EV, contrast +10, saturation +10, light sharpening. libvips is the only one close, 1.2× behind with the resize and 1.8× behind at full size, and it has no RAW support or photo controls. rawroom keeps several photos in flight and splits each one across all cores, while darktable and RawTherapee go one image at a time.

Re-run. I ran the JPEG tasks again on the same machine for this post. One 24 MP edit with resize took 0.56 to 0.61 s (0.56 s in the report). The batch of 20 took 4.4 to 4.8 s (4.27 s in the report). The RAW files were not at hand, so the RAW numbers are the repository's.

Limits

Try it

sh | install, or plug it into Claude Code
curl -fsSL https://raw.githubusercontent.com/lostsh/rawroom/main/install.sh | sh
claude mcp add rawroom -- npx -y rawroom mcp

The repository has an AGENTS.md manual and a ready-made Claude Code skill. It also imports Lightroom, RawTherapee, Capture One and darktable presets, and reads the usual LUT formats (.cube, .3dl, HaldCLUT, CLF), so an existing look can move to an agent without being rebuilt.