rawroom: a Lightroom for AI agents
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:
-
Photo editors (darktable, RawTherapee, Lightroom)
do everything, but for a person. Their command lines take settings
as XMP or
.pp3sidecar files, start slowly, and process a folder one image at a time. - Image toolkits (ImageMagick, libvips) are fast and scriptable, but they have no photo controls like highlights or vibrance. libvips 8.14 does not read RAW files at all.
- RAW libraries (LibRaw, rawpy) decode the sensor data. Editing is left to your own code.
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 endrawroom 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
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:
"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.
before: as shot, mean −0.65 EV
after: rawroom auto, +0.28 EV
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
The same order holds on the four other formats tested (Canon CR2 and CR3, DNG, Panasonic RW2). For the full-size JPEG, rawroom is:
- 1.3 to 1.9× faster than rawpy, the closest;
- 2.8 to 3.3× faster than LibRaw;
- 3.4 to 5.2× faster than darktable and 3.7 to 4.5× faster than ImageMagick;
- 6.6 to 8.9× faster than RawTherapee.
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
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
- Speed, not looks. Each tool has its own default rendering. The benchmark compares time, not which output is nicer.
- Memory. rawroom trades memory for speed: 0.5 to 0.8 GB for one 24 MP photo, against 0.34 GB for rawpy, and 7.4 GB peak for the full-size batch of 20. libvips stays under 100 MB.
- CPU only. darktable ran without OpenCL. With a GPU it would be faster.
- Five RAW families. Canon CR2 and CR3, Sony ARW, Panasonic RW2 and DNG, including iPhone ProRAW. Nikon NEF, Fujifilm RAF and Olympus ORF are recognised but cannot be developed yet.
- rawpy pays Python. Its times include about 0.15 s of interpreter start-up, which is part of the real cost for a CLI call.
Try it
sh | install, or plug it into Claude Codecurl -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.