๐ ๏ธ Claude Code Built Me a Photo-Culling App After the Licence Said No
Over a few evenings, Claude Code built me a Windows photo-culling app. I didn't write a line of it. It's at version 1.2.0 and installed like any other app.
I shoot birds in burst mode on a modest-budget, second-hand Panasonic Micro Four Thirds setup, so any outing where the camera comes out ends with several hundred near-identical RAW files to trawl through. A folder I imported last month (November 2026) held 885 photos before I'd culled anything.
I'm not chasing great photographs. The shots are a record of the birds I've seen, so most of each burst goes straight in the bin. The job is finding the two or three frames worth keeping and getting rid of the rest quickly, and that's the job this app does.
I'd been trialling a commercial culling app that does exactly that: it groups each burst into a stack automatically and deletes fast with undo. I didn't own a licence. My plan was to have Claude take the trial app apart with a reverse-engineering toolkit, learn how those features worked, and rebuild them in my own app.
That plan lasted about a minute.
The photos in these clips are not my best work. To be fair, they're not far off it either. They're only here to show the app doing its job.
๐ง The licence wall
The toolkit was REA, an open-source reverse-engineering kit for AI agents that drives the Ghidra decompiler. Claude set it up after showing me a plan.
Then I pointed it at the trial app. Before opening anything, Claude read the vendor's licence file. Section 4 forbids reverse engineering, decompiling and copying, and I was on a trial. It stopped there. The legal exceptions that allow reverse engineering cover making software work with other software, and building my own version of the product isn't that. What it could still do was work from what the vendor publishes, the manual, and from how the app behaves when you use it. I told it to go ahead on that basis.
So, plainly: the original was never decompiled, disassembled or copied. The reverse-engineering tools never touched it.
It turned out I didn't need them. The vendor's manual has an appendix that spells out the burst rules exactly: same camera, frames in capture-time order, each gap under a 2-second window, at least two frames, and a video breaks the run. That was a complete spec, written by the people who built the thing.
โ Proving the rebuild matched
Claude built the first version from those rules, with a set of fake test photos made to hit each rule and edge case. The plan was to prove it by running both apps on the same folder and comparing the stacks. That never happened. The trial ran out mid-session, and after that the original would only show a "free trial has ended" box. Claude closed it and didn't go looking for a way round it.
As it happened, the evidence was already on my PC. While the trial was still running, the original had saved its own notes about four of my folders: when each photo was taken, which camera took it, and which files belonged together. Claude compared its rebuild's readings with those notes, and all 125 RAW files matched exactly.
๐ Using it for real
Then came the usual back and forth. I used it on real folders and reported what annoyed me in a line: "The app seems to freeze whilst it is generating the thumbnails." Claude found the cause, fixed it and added a test. A lot of those evenings went on that loop, and most of it is as dull to read about as any bug list.
One round is worth telling. Near the end, the tests all passed and I nearly called it done. Instead I asked: "Have you done a thorough bug check before we call this done?" The honest answer was no, and the review it ran next found the worst bug of the build by looking at what was actually in my folders: 1,298 DxO sidecar files and 714 from ON1, my other editor. That's where my edits live. The app's rename and delete only knew about the standard .xmp sidecar, so renaming a photo would have silently cut it off from its edits.
No synthetic test photo was going to come with 1,298 DxO sidecars.
๐งญ How I worked with Claude Code
The split settled quickly. Claude did the reading, the code, the tests and the measuring. I set the rules, used the thing, and made the calls.
The rules came before it touched anything: copies only, no code until I'd approved a plan, rebuild behaviour and never copy code. Every install and download came as a plan first, with its source and size, and nothing landed until I said yes.
The calls were mine too: which features went in, what to do where the manual was silent, and whether the best-frame model ran on my PC or in the cloud. For the feature list I didn't write a spec. I had Claude look through the photo library in DxO PhotoLab, the editor I use, by taking screenshots and clicking around without changing anything, and list what we were missing. It came back with more than 20 features and I picked five, plus a zoom that stays put as you step through a burst, because checking an eye or feather across a burst is most of what culling is.
When something looked wrong, I asked for numbers. Bursts kept splitting at the 2-second window I'd copied from the manual, so Claude measured my November folder: of 37 splits, 32 were real pauses between shutter presses and 5 were the rule's own fault. The manual's rule compares whole seconds, but the camera records milliseconds, so frames 1.3 seconds apart either side of a second boundary looked 2 seconds apart. Version 1.1.0 uses the milliseconds and parts company with the original.
When it got something wrong, the fix became a rule. Mid-test, it closed my running copy of the app to restart it. Closing commits any pending deletes, so a photo I'd deleted moments before went to the Recycle Bin instead of staying undoable. It saved a standing rule to its memory, ask before closing any app I have open, and tested in a separate copy from then on.
๐ฏ Picking the best frame
The last ask was the biggest: suggest the best shots in each burst, judged on how sharp the bird is, how big it is and where it sits in the frame.
Claude gave me the choice of a cloud AI model, better at judging pose but uploading every photo and charging per image, or a small object-detection model running on my PC: free, private and offline. I chose local. It finds the bird in each frame, measures sharpness only inside the bird's outline so a crisp background can't win, and ranks every frame against the best in its own burst. The picks show as suggestions, nothing is deleted on their say-so, and one key rejects the rest of the burst after asking.
Before any of that reached the app, Claude drew the boxes and rankings onto sheets of thumbnails and looked at them itself. The crow was found in all 33 frames, and the picks were the crisp upright ones plus the best of its second pose. In a parakeet burst with more than one bird it followed the right one, and ranked the frame where that bird was hidden low.
The stonechat beat it. Perched on a bulrush, it was about 7 pixels wide by the time the image was shrunk for the model. Searching the frame in tiles took 2 seconds a frame and still missed it. The compromise searches the whole frame first, then just the area where the bird sat in the rest of the burst. It lifted detection on the test set from 96 to 110 of 158 frames, and bursts where no bird is found fall back to ranking on overall sharpness.
It has limits I'd rather state than have someone find. It doesn't judge eye sharpness, head angle or wing pose, and it misses birds a few pixels wide. I haven't measured it properly against my own picks yet. Early signs are good: on the bursts I've checked, its picks are as good as, if not better than, the others in the stack.
๐ก What I'd tell anyone trying this
If you're building your own tool with Claude Code:
- Give it a spec it can't wriggle out of: a manual, your real data, the old tool's own output.
- Keep the judgement calls yourself.
- Test on your real files as well as its tests. Every test was passing when the worst bug turned up, and it only surfaced when Claude looked at what was actually in my folders.
๐ Where it stands
It installs like any Windows app, opens an SD card straight from Explorer's right-click menu, and has version numbers, a changelog and a one-step rollback. The code isn't going public.
Was it worth building instead of buying the licence? Yes. It works the way my camera shoots, down to a burst window measured in milliseconds, and it knows where my DxO and ON1 edits live.
Under the hood
For anyone who wants the stack:
- About 6,000 lines of app code and 2,300 lines of tests (199 tests at version 1.2.0), none of it written by me.
- C# on .NET 10, a WPF desktop app plus a command-line tool, with metadata read through MetadataExtractor, including Panasonic's own RW2 header.
- Setup for the reverse-engineering attempt: REA (npm package
rea-agents), Ghidra 12.2, Microsoft OpenJDK 25 and Node 26 LTS. Claude flagged a Ghidra 12.2.0 decompiler bug before using it. - Bird detection is YOLOX-s (Apache-2.0) running on Microsoft's ONNX Runtime, on the 1,920 px preview embedded in each RAW. Sharpness is the mean of the strongest 5% of edges inside the bird's box. Ranking weights: sharpness 55%, size 15%, fully in frame 10%, highlights not blown 10%, rule of thirds 5%, detection confidence 5%.
- Analysing November's 499 burst frames took 3 min 12 s in the background on a Ryzen 7 5800H, about 0.4 s a frame, cached after that.
- The first install with the AI runtime was 338 MB, because ONNX Runtime ships libraries for Android, iOS and Mac too. Building for Windows x64 only cut it to 77 MB.
- Holding every thumbnail on screen first took about 1 GB of memory, because each small thumbnail kept its full-size decode alive. Independent copies brought it to about 235 MB.
- The same comparison covered videos: 134 of 134 matched on pairing, and all but 13 on capture time, which are 1 second out (most likely because the original reads Panasonic's embedded EXIF through ExifTool).
- Windows passes a quoted drive root
"E:\"to the app asE:", so the app repairs it before opening an SD card.