name: lightcraft
description: >-
LightCraft is a native photo library and non-destructive raw developer — an open-source, clean-room
reimplementation of Adobe Lightroom Classic — written in pure Rust, with a macOS/Windows/Linux desktop
app, a separate lightcraft-cli and a WebAssembly web build. Trigger this skill whenever the user
mentions LightCraft, .lcpreset, .lcprint, a LightCraft library folder (catalog.snap /
catalog.log), lightcraft-cli, or LightCraft's control/MCP server; asks what it can import, develop
or export (RAW: DNG/CR2/CR3/ARW/NEF/RAF/RW2/ORF/PEF/SRW/MRW/SR2; export:
JPEG/PNG/TIFF/WebP/AVIF/JPEG XL/PSD/DNG/original); asks about its menus or keyboard shortcuts; wants
to automate, script, batch-render or agent-drive it (CLI run/render/snapshot/merge/calibrate/
denoise-serve, JSON-lines control channel on loopback, MCP tools, print.*/slideshow.* commands);
wants to prepare inputs, migrate a Lightroom Classic catalog (including a backup .zip), repair a
library folder, fit camera colour profiles from raws, or use a lensfun lens database; wants exports,
XMP sidecars or camera colour verified; or troubleshoots it. Trigger even when the app is not named
but the job is photo-library or raw-development work — "cull this shoot", "develop this RAW", "apply
a preset and export JPEGs", "import my Lightroom catalog", "why won't this CR3 open", "make a
lens-blur background" — and prefer this skill over generic Lightroom advice, because LightCraft's
Audit basis. Refreshed 2026-11-12 against tag v0.21.1, commit 361e3bc0c838ffe5e5cea515b1fe5b71951989c6 — git rev-parse HEAD in the pinned checkout confirms, and the installed LightCraft bundle matches (its binary prints lightcraft 0.21.1). The previous release this skill described was v0.19.0 (16636c45a63bff3065a6fd31aecc22a6fc15ca53).
v0.19.0 → v0.21.1 delta. 235 files changed (+9,525/−3,929). The engine registry gains 3 command ids, zero removed (365 → 368 non-test cmd! specs; the previous skill's 388 included test fixtures — see evidence.md): lensBlur.brushReset, lensBlur.brushStroke, lensBlur.findSubject (crates/engine/src/cmd/develop.rs), and UI_COMMANDS gains one, section.lensBlur (⌘6; 194 → 195) (crates/ui-egui/src/menus/ui_commands.rs). New: Lens Blur, a 17th develop section with lensBlur.amount|boost|transition, subject-or-mask focus, Shape and Focus/Blur brush refinement, plus a per-mask Lens Blur block (crates/pipeline/src/lens_blur.rs, crates/develop/src/controls.rs, crates/develop/src/settings.rs, crates/ui-egui/src/panels/edit/lens_blur.rs, crates/ui-egui/src/panels/masking.rs) — P2 partial: no AI depth map, no bokeh shapes, no crs: XMP mapping (docs/parity-checklist.md LR-EDIT-LENSBLUR). Process V7 draws grain from crystal layers (crates/pipeline/src/crystal.rs, docs/grain.md) and V8 takes the Highlights/Shadows base from a detail-free log-luminance filter (crates/pipeline/src/local.rs, docs/process-versions.md). Lightroom catalog backup .zip files import directly (crates/engine/src/lightroom_backup.rs, crates/engine/src/lightroom_folder.rs, docs/lightroom-catalog-import.md). Compressed Olympus/OM ORF sensor support was withdrawn pending provenance review, so those files return to preview-only and the raw coverage is regenerated to 557 verified / 665 unverified / 187 preview-only / 37 unsupported of 1,446 (docs/orf-compression.md, crates/engine/tests/it/orf_withdrawal.rs, docs/raw/coverage.tsv). Survey tiles fit the photos' shapes and glide to new places (crates/ui-egui/src/panels/compare/survey.rs); mask.exportEffects refuses photo originals/XMP sidecars and writes atomically (crates/engine/src/cmd/mask_effect_files.rs), and user-named files are read through the opened regular file under a byte cap (crates/engine/src/read_file.rs).
v0.18.0 → v0.19.0 delta. 479 files changed; +9 engine ids, zero removed — the v0.19.0 registry counts 365 non-test specs, and the previous skill's 388 included test fixtures. New: user DNG .dcp camera profiles, an on-request lensfun database download, a built-in BM3D denoiser that needs no weights, Remove Hot Pixels on for new imports, process V6 colour-noise reduction, Windows monitor ICC profiles, and web page-host mode.
Verify against your installed version — the ArtCraft Launcher auto-updates, so a newer build may differ; every count quoted here was re-measured at this tag, and code paths that moved were re-cited. The measurement method for each count is in evidence.md.
LightCraft is a photo library plus a non-destructive raw developer — an open-source, clean-room reimplementation of Adobe Lightroom Classic 15.5 / Lightroom 9.6 (ROADMAP.md:3, docs/target-app-parity.md), written from scratch in pure Rust with no Adobe assets (README.md, AGENTS.md). Its surfaces are the desktop app (apps/lightcraft, eframe + wgpu + native macOS menus on the shared craft-ui docking), lightcraft-cli (headless render, batch commands, MCP server, headless UI snapshots), and a WebAssembly build of the same UI (apps/lightcraft-web).
Maturity: alpha. At this tag the generated parity summary reports 83.2% of 546 in-scope rows (P0 97.5% of 203, P1 94.2% of 163, P2 57.0% of 179; docs/parity-checklist.md:58), while ROADMAP.md:15 still prints 81.6% of 532 and docs/target-app-parity.md:15 83.2% of 543 — both lag the generated block. The readiness estimate is ~62% overall, ~51% for a mainstream working photographer and ~65% for an essentials user; beta is an estimated ~340–600 agent-hours away (ROADMAP.md:3-22, docs/target-app-parity.md). The gap is quality and coverage — camera colour, render fidelity, some raw variants, AI models — not missing buttons. Source: GitHub storytold/lightcraft, MIT OR Apache-2.0 (Cargo.toml).
catalog.snap (JSON snapshot) + catalog.log (append-only JSON-lines op log: seq, CRC-32, fsynced; a torn final record is repaired; a mid-log is preserved as catalog.log.damaged-<seq>), plus presets.json, view.json, prefs.json, thumbs/ and Originals/ for copy-imported photos (crates/engine/src/library.rs:1-22; crates/catalog/src/journal.rs:1-40). Default: LightCraft Library under the user's Pictures folder; LIGHTCRAFT_LIBRARY overrides (crates/engine/src/library.rs).unsaved and retries. One process per library: catalog.lock refuses a second writer with "This library is already open in …" (crates/catalog/src/lock.rs:86; crates/ui-egui/src/control.rs ui.inspect).⌘L, library.toggleFilters), fielded search (including people named on faces), sort, Photo Grid / Square Grid / People, filmstrip, Compare and Survey culling with synced zoom (Survey tiles fit the photos' shapes, centre an incomplete last row and glide when photos leave or join), Reference view (⇧R, photo.setReference), Local folder browsing without import (edits go to XMP sidecars; "Add to My Photos" adopts the photo), Recently Deleted, missing-file relink, hold view (library.holdView) and Assisted Culling (classical focus score, clipping, burst grouping; no expression/eye detection) (crates/engine/src/cmd/organize.rs, crates/engine/src/cmd/library.rs, crates/engine/src/cmd/filters.rs, crates/engine/src/cmd/query.rs, crates/engine/src/cmd/browse.rs, crates/engine/src/cmd/cull.rs; crates/ui-egui/src/panels/compare/survey.rs; docs/parity-checklist.md rows LRC-LIB-REFVIEW, LR-VIEW-SURVEY, LR-LIB-CULL).app.recentLibraries returns {path, name, exists, checking, open, lastOpened} and {remove: path}/{clear: true}; app.newLibrary makes and opens one (crates/ui-egui/src/dialogs/settings/libraries.rs; docs/control-protocol.md "Choosing the library at launch").F), Lights Out (⇧L), second window (⌘F11), Before/After (Y, ⇧Y, ⌥Y), soft proofing (S; partial — printer/paper proof profiles render on the CPU, per docs/parity-checklist.md LRC-DEV-SOFTPROOF), info overlay (⌘I) and View Options (⌘J), a loupe layout-image overlay, multi-select Info panel (view.infoSelectedPhotos shows shared values and marks mixed fields), dockable/splittable panels via ui.dock / ui.dock.reset, and a grid header that shows "N selected" and cuts a too-wide count rather than clipping it (crates/ui-egui/src/menus.rs, crates/ui-egui/src/panels/grid.rs; docs/control-protocol.md "Methods").activity.list / activity.cancel; quitting asks first (crates/engine/src/cmd/activity.rs; docs/background-tasks.md:1-10; ui.inspect → quitPrompt).library.buildPreviews|cancelPreviews|previewProgress build the disk thumbnail cache; photo.smartPreview plus library.smartPreviews|smartPreviewsLocation build/relocate smart previews that keep working when originals are offline (crates/engine/src/cmd/previews.rs; docs/camera-preview-colour.md "smart previews").crates/engine/src/cmd/face_models.rs, crates/engine/src/cmd/face_detect.rs, crates/engine/src/cmd/face_recognize.rs; docs/faces.md). photo.inspect carries meta.focus; View ▸ Focus Point (⌥F), zoom-to-focus and a background photo.readFocusPoints sweep — only Sony ILCE-1 (α1) and ILCE-7SM3 (A7S III) at this tag (docs/focus-points.md; crates/engine/src/focus_scan.rs).crates/engine/src/import/files.rs (EXTENSIONS): jpg jpeg png tif tiff webp dng cr2 cr3 nef nrw arw sr2 srf raf orf rw2 rwl raw pef srw psd psb jxl gif bmp heic heif avif iiq crw mrw x3f kdc mos erf 3fr fff mef — unchanged at v0.21.1. Support is decided by extension (is_supported), then the decoder may still refuse. Modes: Add (reference in place), Copy (into Originals/ or a destination, with date/month/flat/folder-template filing and rename templates), Move (copy, verify, then remove the source and its sidecars); duplicates are detected by path and by content; copy imports can convert raws to DNG (crates/engine/src/import.rs; crates/engine/src/cmd/library.rs).docs/raw-parity.md; crates/raw/src/lib.rs): DNG (uncompressed, LJ92, lossy/Smart Preview, LinearRaw, Deflate, DNG 1.7 JPEG XL tiles, Apple ProRAW, row/column interleave), CR2, CR3 (lossless CRX Bayer + version 0x100/0x200 C-RAW; R5 Mark II), ARW (uncompressed, cRAW/ARW2, lossless L/M/S, A900 packed, ARW6 Compressed/HQ on the ILCE-7RM6), NEF (uncompressed, lossless/lossy, lossy-after-split, table-less 34713 strips as packed 12/14-bit), RAF (uncompressed and lossless/lossy compressed, Bayer + X-Trans), RW2/RWL/Panasonic RAW (formats 2/4/5/6/7/8 incl. tiled high-resolution format 8), PEF, ORF uncompressed only (incl. 12.8 bpp and supported high-resolution modes; compressed ORF is preview-only — support was withdrawn), SRW (uncompressed), ERF, MEF, Minolta MRW, 3FR/FFF, Kodak DCS520C TIFF, and Sony SR2. Hostile-file memory bounds were hardened again in this release.docs/raw/coverage.tsv, generated by docs/raw/coverage.py; docs/raw-parity.md:18-24). Use-weighted: ~94% of photographers' cameras fully decode, ~86% on a verified body (docs/raw-parity.md:23-24).previewOnly; the app rechecks those photos in the background on version change, and headless callers use library.recheckPreviewOnly (crates/engine/src/cmd/recheck.rs; docs/mcp.md). Sparse header + embedded-JPEG reads avoid pulling sensor data over a network share (docs/raw-preview-reads.md). Compressed ORF files previously decoded from sensor data are re-checked on library open and become preview-only; edits may then look different (docs/orf-compression.md).heif build feature; it is off by default for HEVC-patent reasons and on in official packaging (packaging/macos/package.sh:65 passes --features lightcraft/heif; crates/codecs/Cargo.toml still claims releases don't ship it — stale). The installed 0.21.1 binary's mangled symbols include lightcraft_heif (e.g. …15lightcraft_heif16decode_thumbnail; nm -gU | grep -i heif finds 10), confirming the feature. The heic-rs path is hardened against hostile HEIF containers. AVIF is import-listed but never decodes (export only).library.inspectLightroom / library.importLightroom, File ▸ Import Lightroom Catalog…): reads .lrcat directly (read-only pure-Rust SQLite incl. committed WAL; 16 GiB / 16,777,216-page cap), one-way and approximate, imports ratings/flags/labels/keywords/collections/virtual copies/mapped develop settings. It also takes a Lightroom backup .zip (one .lrcat inside), unpacks it into a temporary folder in the library, reads it and removes the copy; the zip is not changed (crates/engine/src/lightroom_backup.rs, crates/engine/src/lightroom_folder.rs; docs/lightroom-catalog-import.md:170-200). The app asks whether the catalog merges into the open library or goes into a new library — file.importLightroom {into?: "open"|"new", name?, location?} makes that choice headlessly, and Settings ▸ General can turn the question off (crates/ui-egui/src/dialogs/lightroom_destination.rs; docs/lightroom-catalog-import.md). Also folder.scanChanges / folder.synchronize and library.autoImport / library.autoImportScan (crates/engine/src/cmd/sync.rs, crates/engine/src/cmd/library.rs).pointColor.<i>.<control> / redEye.<control>; 17 sections: Light, Curve, Color, Mixer, BwMix, Grading, Effects, Vignette, Grain, Detail, Optics, Geometry, Profile, Calibration, PointColor, RedEye, LensBlur (crates/develop/src/controls.rs; count it with lightcraft-cli controls --json). The three additions since v0.19.0 are lensBlur.amount, lensBlur.boost, lensBlur.transition.crates/engine/src/presets.rs:500 PROFILES) — Color, Neutral, Vivid, Landscape, Portrait, Monochrome plus film/cinema/muted/B&W families — a profile browser with recent profiles; the profile is separate from the raw camera profile below. Unchanged at v0.21.1.README.md). Process versions V1–V8 (V8 current, V1 frozen) make re-renders deterministic: V2 highlights/shadows, V3 pixel-scale sharpening, V4 calibrated Contrast/Blacks, V5 highlight roll-off, V6 colour-noise reduction, V7 crystal-layer film grain, V8 detail-free Highlights/Shadows base (lettering gaps are not lifted into blocks); develop.updateProcess moves photos forward (docs/process-versions.md; crates/develop/src/settings.rs Process).develop.set / develop.adjust / develop.auto / develop.wb / develop.wbPick / develop.matchExposure / develop.copy|paste|sync|autoSync / develop.merge / develop.reset* / develop.beginInteraction|endInteraction; white balance is Kelvin on raws with colour matrices or measured presets, relative (6500 = as shot) elsewhere (crates/engine/src/cmd/develop.rs; docs/control-protocol.md "White balance").mask.brushStroke {connect: true} (crates/develop/src/settings.rs; crates/engine/src/cmd/masks.rs; crates/ui-egui/src/panels/masking.rs; docs/ai-masks.md).section.lensBlur, ⌘6; lensBlur.amount|boost|transition): Apply, Blur Amount, Boost for bokeh highlights, Transition, what stays in focus (the subject estimate, any mask, or a fixed Round/Horizontal/Vertical oval that can be moved and resized), Find Subject (creates an Object mask at the camera's focus point when recorded, else at the likeliest subject), and Focus/Blur brush refinement with Amount/Size/Feather/Flow/Auto Mask and ⌥ to erase (crates/pipeline/src/lens_blur.rs; crates/engine/src/cmd/develop.rs; crates/ui-egui/src/panels/edit/lens_blur.rs; docs/parity-checklist.md LR-EDIT-LENSBLUR). This is partial: CPU for both renderers, disc bokeh without halos, but no AI depth map, no Focal Range / focus picker / Visualize Depth, no bokeh shapes and no crs: XMP mapping.crop.lockAspect, A), auto-straighten, Upright Auto/Level/Vertical/Full/Guided, Constrain Crop; Heal/Clone spots with auto source, non-generative Fill (PatchMatch), editable pins, Visualize Spots, Red Eye and Pet Eye (crates/engine/src/cmd/develop.rs; crates/inpaint/src/lib.rs:1-22).merge.hdr|panorama|hdrPanorama|hdrBatch; CLI merge hdr|panorama|hdr-panorama|hdr-batch (docs/merge.md; crates/merge/src/pano.rs; crates/merge/src/flow.rs, crates/merge/src/refine.rs).README.md; docs/gpu-pipeline.md). AI Denoise is a per-photo switch, Bayer RAW only: a built-in BM3D filter needs no weights and runs on the GPU where one is faster, and an optional user-installed ONNX model (denoise-model.json) can replace it; results are cached under <library>/denoise/; lightcraft-cli denoise-serve serves tiles to other machines with token auth (docs/denoise.md)..lcpreset is LightCraft's own preset file — unchanged at v0.21.1. Import also accepts XMP presets, legacy .lrtemplate, Luminar .lmp/.mplumpack, .zip bundles, .cube LUT profiles and local-adjustment effect presets (.lrtemplate, .xmp, .lceffect) (crates/engine/src/presets.rs; crates/engine/src/cmd/preset_files.rs, crates/engine/src/cmd/lut_profiles.rs, crates/engine/src/cmd/mask_effect_files.rs).crates/engine/src/camera_profiles.rs:27 BUNDLED; assets/camera-profiles/), the user's own imported .dcp camera profiles (profiles.camera / profile.deleteCamera, crates/raw/src/dcp.rs), 52 spectral matrices (crates/raw/src/spectral_table.rs), or a neutral fallback. lightcraft-cli calibrate fits per-camera profiles from a user's own raws (Sony ARW, Nikon NEF, Fujifilm RAF). Measured ΔE against the camera JPEG is 2.9–10 (docs/gaps.md #1).crates/raw/src/vendor/; docs/*-lens-corrections.md). For everything else, a lensfun XML database adds distortion/TCA/vignetting: the app offers to download it on first launch (56 files, ~5 MB, pinned by size and SHA-256) or reads a user folder via LIGHTCRAFT_LENSFUN_DIR; no database is bundled, Adobe .lcp is never used, matching is automatic, the profile is pinned per photo, and fisheye is not corrected (crates/lensdb/src/lib.rs; crates/engine/src/lensfun_download.rs; docs/lens-profiles.md).ExportFormat, crates/engine/src/export/options.rs:5): jpeg png tiff psd webp avif jxl original dng rendereddng. psd is a flat PSD (8/16-bit, no layers); original copies the file plus an XMP sidecar carrying the edits; dng writes a raw photo as DNG with edits embedded; rendereddng bakes the render into a linear 16-bit float DNG. Unchanged at v0.21.1.ExportOptions, crates/engine/src/export.rs, parsed by from_params): quality 1-100, bitDepth 8|10|16|32 per format, colorSpace srgb|displayP3|adobeRgb|proPhoto|rec2020 with embedded ICC, metadata all|allExceptCamera|copyright|none, removeLocation (an original export is refused when a PSD/PSB embeds GPS it cannot strip), sharpen none|screen|matte|glossy + amount, tiffCompression, dngCompression, conflict unique|overwrite|skip, resize by longEdge|shortEdge|width|height|megapixels|percent with dontEnlarge, fit dimensions|widthHeight, ppi, limitKb (JPEG, incl. HDR gain-map JPEG), text/image watermark (vertical, rotation, nine anchors), hdr with hdrTransfer pq|hlg, jxlLossless|jxlEffort|jxlProgressive, destinationMode: "sameAsOriginal", and macOS-only addToPhotos + photosAlbum.{name} {num} {seq} {seq:N} {date} {date:%Y%m%d} {folder} {camera} {lens} {iso} {rating} {title} {creator} {ext}; unknown tokens stay as typed, illegal characters become -, collisions get a suffix (crates/engine/src/rename.rs; photo.renameTokens lists them).export.contactSheet (crates/engine/src/contact_sheet.rs:87-92).print.* commands (print.get/set/reset, print.cell.*, print.layout.*, print.exportPdf, print.template.list|save|apply|delete|export|import): Single Image, Contact Sheet, Picture Package (Auto Layout), Custom Package; zoom-to-fill / rotate-to-fit; borders/strokes; A3–A5, Letter/Legal/Tabloid, 4×6/5×7/8×10/13×19, Japanese photo/postcard sizes or custom; margins; guides/rulers; saved templates as .lcprint files; printer/paper ICC + intent + black-point compensation; 8/16-bit colour-managed PDF; Page Options on Single Image and Contact Sheet (crates/engine/src/cmd/print.rs; crates/engine/src/print/template.rs:34; crates/engine/src/print_pdf.rs).slideshow.*, progress via activity.list, slideshow.exportStatus (crates/engine/src/cmd/slideshow.rs; crates/engine/src/slideshow_export.rs:39-42; docs/slideshow.md).app.export {addToPhotos: true, photosAlbum} or export.addToPhotos {paths}; the first run triggers a macOS Automation permission prompt (docs/apple-photos.md).⌘S, photo.saveMetadataToFile) or automatic (library.xmpPreferences {autoWrite, naming: stem|full}); LightCraft's fields plus the full develop state as lc:settings under http://ns.lightcraft.app/lc/1.0/ (crates/meta/src/xmp.rs:18); owned properties are replaced, capture time/GPS only when LightCraft has a value, foreign namespaces kept byte for byte, an existing sidecar is merged into, writes are atomic, failed writes retry and library.retrySidecars forces them (docs/xmp-interop.md; crates/engine/src/cmd/xmp.rs).crs: develop settings is approximate and reports per-photo warnings; Lens Blur is not mapped in either direction (docs/xmp-interop.md:206).crates/meta/src/psd.rs:1-20).metadata.reverseGeocode {maxDistance}), keyword lists with keyword sets (nine keywords per set, ⌥1–⌥9; next/previous set ⌥0/⌥⇧0), XMP face names (face boxes are catalog-only and never written to XMP), and capture-time edits (photo.setCaptureTime) (crates/engine/src/cmd/geocode.rs, crates/engine/src/cmd/keywords.rs, crates/engine/src/cmd/manage.rs).<name>-Edit.tif (16-bit Adobe RGB by default; flat .psd or 8-bit optional), stacks it on the original and opens it; at most 50 photos per call (crates/engine/src/cmd/convert.rs).cmd! literals in crates/engine/src/cmd/**/*.rs, wired by 39 specs() extend calls in crates/engine/src/cmd.rs) and 195 UI commands in UI_COMMANDS (crates/ui-egui/src/menus/ui_commands.rs) plus 18 language commands, i.e. 213 UI entries, so a running app's engine.commands reports 581 commands. engine.commands returns id, label, menu path, shortcut, parameter doc and current enablement; UI, CLI, control channel and MCP all dispatch by id. Import extensions (39), export formats (10), presets (41), develop profiles (22), spectral matrices (52) and interface languages (18) are unchanged at v0.21.1; develop controls moved to 125 + 10 and sections to 17, as described in the delta.lightcraft-cli mcp [--demo | --library DIR | FILES…] headless, or lightcraft-cli mcp --connect 127.0.0.1:7980 to drive the live app. Hand-written JSON-RPC over stdio, protocol 2025-06-18 (older revisions accepted), 7 resources (lightcraft://document, //commands, //library, //photos, //photo/active, //develop/active, //controls). Helpers: 17 headless / 28 connected (crates/mcp/src/tools.rs:79 helper_tools: 17 always-on tools + 11 UI-only when a desktop app is attached): command_list/run/batch, doc_inspect, render_preview, import, query_photos, select_photos, list_controls, get_develop, set_develop, apply_preset, crop, render_photo, export (plus the documented legacy list_commands / run_command); connect mode adds ui_inspect, ui_screenshot, screenshot, inspect_ui, set_ui, list_widgets, click, press_key, type_text, clipboard, pointer_gesture. One generated cmd_* tool per reported command, so tools/list totals 385 tools headless (17 helpers + 368 engine commands) and 609 connected (28 helpers + 581 commands); --compact lists helpers only (crates/mcp/src/tools.rs; crates/mcp/src/server.rs; docs/mcp.md).lightcraft --control 7980 (or LIGHTCRAFT_CONTROL_PORT) serves JSON-lines on 127.0.0.1:PORT, loopback only, no authentication, at most 16 connections, 4 MiB line cap. Requests are answered on the UI thread with a 60 s timeout; a request that has not started and draws no frame for 5 s is failed and never retried; an idle connection closes after 5 minutes; a malformed line closes the connection (apps/lightcraft/src/control_server.rs; docs/control-protocol.md). 29 callable method names, unchanged at v0.21.1 (list at crates/ui-egui/src/control.rs): engine.execute (aliases ui.menu.invoke, command), engine.commands, ui.menu.list/tree, ui.inspect, ui.widgets, ui.clickWidget|dragWidget|hoverWidget, raw ui.move|click|drag, image-coordinate ui.pointer, ui.key, ui.text, ui.clipboard, ui.scroll, ui.zoom (pinch), ui.set, ui.dialog.confirm|cancel, ui.resize, ui.zoomFactor, ui.screenshot, ui.render, ui.dropFiles (with hover), app.quit.apps/lightcraft-cli/src/main.rs USAGE + dispatch, 11 at this tag, unchanged): run, mcp, render, snapshot, merge, synth-merge, denoise-serve, commands, controls, calibrate, bench-cull. run takes --demo|--library DIR|--connect [ADDR], repeatable --import, --script FILE|-, --keep-going; render takes --set control=value, --settings look.json|.lcpreset|.xmp, --preset ID, --size, --quality, and any export option via --opt KEY=VALUE; merge writes <first>-HDR.dng / -Pano.dng / -HDR-Pano.dng next to the first file (--preview OUT.png writes only a preview); commands lists ids sorted for readable families.lightcraft-cli snapshot --demo --script tour.jsonl -o out.png --size 1600x1000 --scale 2 runs the full egui UI on the CPU. In a running app use ui.screenshot {"path": …, "headless": true}; windowed capture falls back to headless after 2 s. In snapshot scripts ui.settle {timeoutMs} waits for renders (docs/control-protocol.md "Headless rendering").craft-update crate; a ready update installs when the app exits (apps/lightcraft/src/main.rs:201-207; Cargo.toml craft-update rev 6e03f65bf…).await globalThis.lightcraft.command("<id>", "<json params>") returning JSON text; params must be a JSON object (apps/lightcraft-web/index.html:39-40; apps/lightcraft-web/src/automation.rs).docs/web.md; README.md). Flatpak bundles can now check for and apply their own updates; repository-managed Flatpaks still use their package manager.crates/ui-egui/src/i18n.rs; one LANGUAGE_COMMANDS entry each). Coverage is partial and lower-layer errors stay English; no RTL or complex-script shaping.crates/wincolor), or a chosen ICC file via Settings ▸ Display / app.displayProfile (docs/display-profiles.md). Portable mode (portable.txt beside the executable) and isolated automation profiles via LIGHTCRAFT_CONFIG_DIR (apps/lightcraft/src/main.rs).cargo xtask ci on every push/PR (.github/workflows/ci.yml), FreeBSD nightly, and a Windows leg runs the crates with Windows-only code; macOS and Windows package builds but neither runs the full suite (docs/gaps.md #9).Read this before assigning work. Each item is the project's own admission or a code path that is absent.
Raw and colour
.dcp profiles, 52 spectral matrices, or a neutral fallback; measured ΔE against the camera JPEG is 2.9–10 (docs/gaps.md #1). The doc row in docs/raw-parity.md:25 still says "9 bundled profiles" — code has 10.LIGHTCRAFT_LENSFUN_DIR; Adobe's 3,635 profiles are never used — deliberately. lensfun matching is automatic (no manual picker), raws only, no fisheye, and not validated against real photos (docs/gaps.md #8; docs/lens-profiles.md).docs/gaps.md #2, #6, #7, #20; docs/raw/coverage.tsv; docs/orf-compression.md). All 110 public CC0 CR3s decode; 26 CR3 bodies are verified, but some variants have no public sample (docs/cr3.md)..HIF HEIC stills are not CR3; HEIC 4:2:2/4:4:4 frames are refused (crates/engine/src/import/files.rs; docs/file-format-parity.md).crates/codecs/src/psd.rs).docs/gaps.md #1, #3).AI and enhancement
crates/segment/src/fetch.rs:42), so the in-app download needs a user-configured LIGHTCRAFT_SAM3_MIRRORS or a manually installed model folder (docs/ai-masks.md; docs/gaps.md #5).denoise-model.json can replace it. Bayer RAW only, no X-Trans, and it does not run on merged linear DNGs. The optional RawNIND weights are GPL-3.0 and gated behind a release policy (docs/denoise.md; docs/gaps.md #11, #29).crs: XMP mapping; the blur is a distance-from-focus stand-in, not depth. CPU for both renderers (docs/parity-checklist.md LR-EDIT-LENSBLUR).docs/gaps.md #11, #12).Output and interchange
docs/gaps.md #15).docs/gaps.md #14).docs/gaps.md #16)..zip import is supported, but unsupported Adobe profiles/AI settings are archived (docs/lightroom-catalog-import.md; docs/gaps.md #13).rendereddng, not as a catalog command (docs/file-format-parity.md; docs/gaps.md #25).Do not assign
Video media kind exists in the catalog model, but the importer's extension list is stills-only and there is no playback or editing path (crates/catalog/src/model.rs; crates/engine/src/import/files.rs; docs/gaps.md #18).docs/gaps.md #14, #16, #17, #19).CFBundleDocumentTypes (installed bundle Info.plist; crates/engine/src/library.rs:1-22).Platform, quality and docs
docs/gaps.md #10; docs/raw/coverage.tsv). Linux runs the full suite, FreeBSD nightly and Windows only its Windows-only crates; macOS and Windows package builds do not run the full suite, and Windows/Linux GPU paths are only partly proven (docs/gaps.md #9, #27).docs/localization-parity.md). Accessibility is partial: AccessKit tree audited, but brush/red-eye keyboard access and a real screen-reader session remain (docs/gaps.md #23).crates/codecs/Cargo.toml says releases don't ship the heif feature while packaging/macos/package.sh:65 passes it; docs/gaps.md #21 names Vietnamese as absent although it ships in crates/ui-egui/src/i18n.rs; docs/raw-parity.md:25 says 9 bundled camera profiles while BUNDLED has 10.Launch (macOS). open -a LightCraft for the GUI, or the executable LightCraft.app/Contents/MacOS/LightCraft directly when you need flags. Real flags, parsed in apps/lightcraft/src/main.rs (confirmed with --help on the installed 0.21.1 binary):
lightcraft [OPTIONS] [FILES/FOLDERS…] # positional paths are imported at launch
--library DIR open (or create) this library (env LIGHTCRAFT_LIBRARY; default: last library opened,
else ~/Pictures/LightCraft Library; Settings ▸ General ▸ At launch: Ask me shows a list)
--no-demo don't seed a new library with the procedural demo photos
--memory throwaway in-memory session (alias --demo); writes nothing
--control PORT serve the JSON-lines control channel on 127.0.0.1:PORT
--version, --help
Useful environment: LIGHTCRAFT_LIBRARY, LIGHTCRAFT_CONTROL_PORT, LIGHTCRAFT_CONFIG_DIR (isolated settings/logs/model profile), LIGHTCRAFT_LANGUAGE=de|ja|zh-hans|…, LIGHTCRAFT_GPU_BACKEND=dx12|vulkan|metal|auto|off, LIGHTCRAFT_GPU=0, LIGHTCRAFT_LOG=info|debug / RUST_LOG, LIGHTCRAFT_MEMORY_MB, LIGHTCRAFT_NO_PREFS, LIGHTCRAFT_NO_NATIVE_MENU, LIGHTCRAFT_SAM3_DIR|_MIRRORS|_TOKEN|_REMOTE, LIGHTCRAFT_LENSFUN_DIR, LIGHTCRAFT_CAMERA_PROFILES, LIGHTCRAFT_DENOISE_MODELS|_URL|_TOKEN, LIGHTCRAFT_HDR_DISPLAY=0, LIGHTCRAFT_FPS=1, LIGHTCRAFT_PROFILE=1 (apps/lightcraft/src/main.rs; other env vars in crates/engine and crates/segment). Logs go to the settings folder's logs/lightcraft.log, rotated on each start.
The CLI is a separate download on macOS. The .app contains only the desktop app; there is no lightcraft-cli inside it and none on a stock PATH. Get lightcraft-cli-<ver>-macos-universal.zip from the release assets or build it with cargo build --release -p lightcraft-cli. Use the CLI and the app from the same release (docs/mcp.md "From an installed release").
Window/document model. One process = one open library; a main window (grid or Detail) plus an optional second window (⌘F11). There are no per-photo documents and no tabs. Switching libraries is File ▸ Open Library… (app.openLibrary, ⌘O) or File ▸ New Library… (app.newLibrary); if a library cannot be opened, the app starts an empty session and asks (ui.inspect → libraryProblem). Pointing Open Library at a Lightroom catalog folder (or a Backups folder) offers the importer instead (docs/control-protocol.md; crates/ui-egui/src/panels/library_problem.rs; docs/lightroom-catalog-import.md).
Keyboard (verified in the command registry and crates/ui-egui/src/shortcuts.rs — do not invent others). Views: G grid, D detail, N survey, ⇧C compare, ⇧R reference, F full-screen preview, ⇧L Lights Out, ⇧F filter bar, / filmstrip, F6/F7/F8 filmstrip/left/right panel, \ Filter Bar in grids (Show Original in Detail). Panels/tools: ⌘1–⌘6 open Light, Color, Effects, Detail, Optics and Lens Blur edit sections; E Edit, C Crop & Rotate, M Masking, H Remove, I Info, K Keywords, ⌘K Add Keywords, ⇧P Presets, ⇧V Versions, B/L/R/W brush/linear/radial/WB picker, A aspect lock (crop) / Visualize Spots, S soft proof (in grids S toggles the stack), Shift+S stack set-top. View aids: Z zoom, J clipping, Shift+O crop overlay, ⇧H tool overlay, ⌘J View Options, ⌘I info overlay, ⌥F focus point, Y/⇧Y/⌥Y before/after. Rating: 0–5, 6–9 labels, P pick, X reject, U unflag, ` cycle flag, [/] step rating, ⌘↑/⌘↓ flag up/down, ⇧0-9/P/X/U apply-and-advance. Keywords: ⌥1–⌥9 apply a set member, ⌥0/⌥⇧0 next/previous set. Misc: Enter open/done, Esc back, ⌘Z undo, ⌘L Enable Filters, ⌘⌥⇧C/⌘⌥⇧V copy/paste metadata, ⌘⇧I import, ⌘⇧E Edit in PhotoCraft, ⌘⌥E Edit in Other Editor, ⌘P print, ⌘⌥↵ slideshow. All keys are user-remappable (app.setShortcut); ⌘, and ⌘Q are reserved (crates/ui-egui/src/shortcuts.rs; docs/library-shortcuts.md).
Open / save / export. Import with File ▸ Import Photos… (⌘⇧I, file.addPhotos), Import from Folder… (file.addFolder), or by passing paths on the command line; files dropped on the window go through the import review (ui.dropFiles reproduces that headlessly). There is nothing to "save": each command persists. ⌘S (photo.saveMetadataToFile) writes sidecars; automatic sidecar writing is File ▸ Automatically Write Changes into XMP (library.toggleAutoWriteXmp), both driving library.xmpPreferences. Export with File ▸ Export… (dialog.export), Photo ▸ Edit In (⌘⇧E / ⌘⌥E), File ▸ Contact Sheet PDF…, File ▸ Print… (⌘P; writes a colour-managed PDF), View ▸ Export Slideshow…, or the equivalent commands. The photo export itself is always app.export with the options above (crates/engine/src/export.rs; crates/engine/src/cmd/xmp.rs).
Drive it — the three supported routes
One-shot CLI (best for batch work, no session state):
lightcraft-cli run --import ./shoot develop.set control=light.exposure value=0.7 \
develop.auto app.export dir=out longEdge=2048 colorSpace=displayP3
lightcraft-cli run --library ./lib library.select ids=[3] develop.get
lightcraft-cli run --demo --script steps.jsonl --keep-going # JSON lines; stdin works too
lightcraft-cli run --connect 127.0.0.1:7980 ui.set view=detail ui.screenshot path=ui.png
lightcraft-cli render in.dng -o out.jpg --set light.exposure=0.5 --size 2048 --quality 92
lightcraft-cli merge hdr-batch ./brackets # every bracket set in the folder
One JSON line per command ({command, ok, result|error, ms}); non-zero exit on failure; a bare word starts the next command, key=value values parse as JSON when they can (docs/mcp.md "One-shot commands").
Control channel (best for interacting with a live UI or an external controller):
{"id":1,"method":"engine.execute","params":{"command":"develop.set","params":{"values":{"light.highlights":-45}}}}
{"id":2,"method":"ui.dropFiles","params":{"paths":["./shoot"]}}
Discover identifiers with engine.commands, develop.controls, ui.widgets; never hard-code translated labels or widget positions. Group slider bursts in develop.beginInteraction / develop.endInteraction (one undo step). On macOS ui.key injects egui events and does not synthesize Cocoa menu accelerators; use ui.menu.invoke with the command id when testing menu shortcuts (docs/control-protocol.md "Methods").
MCP (lightcraft-cli mcp): helpers plus command_list / command_run / command_batch / doc_inspect / render_preview, 7 resources, and one generated tool per command unless --compact. In connect mode the UI tools are added; in headless mode they return an error explaining how to start the app (docs/mcp.md).
Look at the result. Any UI work must be verified visually: lightcraft-cli snapshot --demo --script tour.jsonl -o out.png or {"method":"ui.screenshot","params":{"path":"a.png","headless":true}}. Before capturing, poll ui.inspect until the expected loupe.photo is active, loupe.source is render or cached, loupe.pending is false and the render queues are empty — or loupe.failed is set (docs/control-protocol.md "Before capturing a finished Detail view").
Legitimate agent work
heif feature (official packaging has it) (crates/engine/src/import/files.rs; crates/codecs/Cargo.toml).lightcraft-cli run --import …, or against a persistent library with --library DIR so ratings and edits survive between calls (docs/mcp.md).lightcraft-cli render in.dng -o out.jpg --settings look.json (a partial develop-settings object, or a single-preset .lcpreset/XMP file) plus --set control=value and --opt for export options (apps/lightcraft-cli/src/main.rs USAGE).catalog.snap and catalog.log are documented, CRC-checked JSON; the loader already handles torn appends and damaged records. Back the folder up before editing anything by hand (crates/catalog/src/journal.rs:1-40).{path, width, height, bytes, sidecars} and then the file itself; the encoder is pure (bytes in, bytes out) so it is testable without a window (crates/engine/src/export.rs).docs/xmp-interop.md).lightcraft-cli calibrate; enable lens corrections from the user's own lensfun database by setting LIGHTCRAFT_LENSFUN_DIR before launch (apps/lightcraft-cli/src/main.rs USAGE; crates/engine/src/lens_profiles.rs).export.contactSheet, the print.* family (including .lcprint template import/export), slideshow.* and export.addToPhotos, with activity.list progress (crates/engine/src/cmd/export.rs, crates/engine/src/cmd/print.rs, crates/engine/src/cmd/slideshow.rs; crates/engine/src/cmd/activity.rs).library.inspectLightroom first, then file.importLightroom {into: "open"|"new"} (UI command) or library.importLightroom {path, updateExisting?} after opening the target library (crates/ui-egui/src/dialogs/lightroom_destination.rs; crates/engine/src/cmd/library/specs.rs).ui.inspect/ui.widgets and automation ids for UI state (docs/control-protocol.md; docs/mcp.md).docs/ai-masks.md; docs/denoise.md; docs/faces.md).Do not
lightcraft-cli snapshot, or MCP connect mode (repo AGENTS.md: "Never send OS-level synthetic input")..app (docs/mcp.md "From an installed release").catalog.lock); use --connect instead (crates/catalog/src/lock.rs:86)..lcp, Lightroom plug-ins, .lrlibrary. .lrtemplate is import-only; a user's own .dcp camera profile can be imported, but none ship and Adobe .lcp is never used (docs/file-format-parity.md).docs/ai-masks.md; docs/denoise.md; docs/parity-checklist.md LR-EDIT-LENSBLUR).docs/raw-parity.md).docs/gaps.md #1, #3).export/render_photo/screenshot and mask.exportEffects refuse such a path; use a new output folder (docs/mcp.md export helper; crates/engine/src/cmd/mask_effect_files.rs).LightCraft is alpha (v0.21.1); its library is crash-safe but its output is not self-checking. For every non-trivial task:
--library pointed at a fresh folder, or lightcraft-cli run --demo), import one file, change one slider, export, then reopen the export in LightCraft or any other viewer and confirm dimensions and pixels. Only then run the real batch. Use --memory when you only want to experiment — it writes nothing (apps/lightcraft/src/main.rs).app.export reports per-file {path, width, height, bytes, sidecars} and can report gpuFallback; a size/resolution mismatch or a zero-byte file is the failure you would otherwise miss. format: "original" also writes an XMP sidecar — check for it before assuming the folder is unchanged (crates/engine/src/export.rs; docs/mcp.md export helper).ok: true means the command ran. Poll ui.inspect for loupe.pending == false (or loupe.failed for the reason) and take a screenshot/PNG before declaring success (docs/control-protocol.md "Before capturing a finished Detail view").file.backupLibrary / file.restoreLibrary are wired only where the platform supplies a backup service (the web build); on desktop the command is absent. Keep the app and CLI from the same release.docs/process-versions.md).--library headless run fails while the desktop app holds that library. Reserve it in your plan, or drive the open app with --connect (docs/mcp.md; crates/catalog/src/lock.rs:86).docs/control-protocol.md).docs/orf-compression.md).361e3bc0c838ffe5e5cea515b1fe5b71951989c6 (git rev-parse HEAD in the pinned checkout), release dated 2026-11-12; inspection date 2026-11-12. Target: Lightroom Classic 15.5 / Lightroom 9.6 (ROADMAP.md:3). License MIT OR Apache-2.0./Applications/LightCraft.app: CFBundleShortVersionString/CFBundleVersion 0.21.1, binary --version prints lightcraft 0.21.1, bundle id ai.storyteller.lightcraft — the installed bundle matches this pin. The bundle has no CFBundleDocumentTypes and no lightcraft-cli. Its universal binary contains mangled lightcraft_heif symbols (e.g. …15lightcraft_heif16decode_thumbnail, 10 matches via nm -gU), confirming HEIC in the official build. Verify against your installed version.README.md, ROADMAP.md, Cargo.toml, apps/lightcraft/src/main.rs, apps/lightcraft/src/control_server.rs, apps/lightcraft-cli/src/main.rs, crates/engine/src/{library,import,import/files,camera_profiles,rename,contact_sheet,presets,export,export/options,read_file,lightroom_backup,lightroom_folder,lightroom_catalog}.rs, crates/engine/src/cmd.rs and crates/engine/src/cmd/{library,develop,masks,mask_effect_files,keywords,print,export,slideshow,merge,sync,xmp,convert,previews,activity,cull,browse,query,organize,recheck}.rs, crates/develop/src/{controls,settings}.rs, crates/catalog/src/{journal,lock,model}.rs, crates/raw/src/{lib,spectral_table,dcp}.rs, crates/raw/src/vendor/, crates/pipeline/src/{crystal,lens_blur,local}.rs, crates/denoise-core/src/bm3d.rs, crates/gpu/src/bm3d.rs, crates/engine/src/{lensfun_download,lens_profiles}.rs, crates/engine/src/cmd/{dcp_profiles,lens_refresh,similar}.rs, crates/wincolor/, crates/mcp/src/{tools,server}.rs, crates/lensdb/src/lib.rs, crates/codecs/src/{psd,sniff}.rs, crates/codecs/Cargo.toml, crates/meta/src/{psd,xmp}.rs, crates/merge/src/, crates/inpaint/src/lib.rs, crates/ui-egui/src/{menus,menus/ui_commands,shortcuts,i18n,control}.rs, crates/ui-egui/src/panels/{edit/lens_blur,masking,grid,compare/survey}.rs, crates/ui-egui/src/dialogs/{lightroom_destination,settings/libraries}.rs, packaging/macos/Info.plist.in, packaging/macos/package.sh, assets/camera-profiles/, .github/workflows/{ci,ci-windows,freebsd}.yml.docs/{target-app-parity,raw-parity,file-format-parity,gaps,control-protocol,mcp,merge,slideshow,denoise,ai-masks,faces,focus-points,xmp-interop,process-versions,grain,orf-compression,lens-profiles,camera-preview-colour,web,localization-parity,background-tasks,raw-preview-reads,lightroom-catalog-import,display-profiles,apple-photos,library-shortcuts,parity-checklist,cr3,whats-new}.md, docs/raw/coverage.tsv, docs/user/ trees.cmd! ids; 39 specs() extend calls), 195 UI_COMMANDS + 18 language commands = 213 UI entries (581 total), 17/28 MCP helper tools, 7 MCP resources, 385/609 tools/list entries, 29 control method names, 11 CLI subcommands, 39 import extensions, 10 export formats, 125 + 10 develop controls, 17 sections, 41 presets, 22 develop profiles, 10 camera profiles, 52 spectral matrices, 18 languages, 1,446 Adobe raw models (557/665/187/37).storytold/craft-libs (read-only reference): craft-docpath, craft-ui and craft-window pinned to c5a1cbfb5f9049f9270955caffb5bee5997aebf7; craft-crw to f3b62ec61f45534392376492fc5ad33047375205; craft-tiff to 3b3104981bb3093904a12e44d6a3b41c6c4c39c8; craft-update to 6e03f65bf45181db77ba6229716e6624db9eb25b (Cargo.toml); LightCraft's own formats are documented in this repo.Uncertain / not verified in this pass
--version, --help, Info.plist).docs/gaps.md #1, #3). Lens Blur, crystal grain and V8 were not rendered.--features heif and the installed 0.21.1 binary contains lightcraft_heif symbols; a source build without the feature does not decode HEIC/HEIF.helper_tools and the measured command counts, not captured from a running tools/list.evidence.md §4.