kairothq/claude-photo-sorter
Point Claude at your camera roll: it sorts photos and videos into folders, finds duplicates, and plays it back on a live localhost dashboard.
What it is
Claude Photo Sorter is a tool that automatically organizes your photo and video collection. You point it at a folder of photos, and it sorts them into categories like Selfies, Food, Travel, and Screenshots, while also finding duplicates. A live dashboard in your browser shows the sorting happening in real time.
What it does
- Sorts media into standard folders (Selfies, Food, Travel, Screenshots, Talking heads, Screen recordings) or folders you define yourself.
- Finds duplicates — identical copies, burst shots, and re-saved screenshots are moved to a
_Reviewfolder, along with a list of which copy was kept. - Never modifies your originals. It only reads them and creates sorted copies. On a Mac, those copies take no extra disk space.
- Runs entirely on your computer. Your photos are never uploaded anywhere.
How you use it
- Install Claude Code (from claude.com/claude-code) and open the Terminal app.
- Paste a single command to Claude:
Set up and open https://github.com/kairothq/claude-photo-sorter - Claude downloads the tool, sets it up, and opens the dashboard in your browser.
- In the dashboard: pick the folder with your photos, choose where sorted copies should go, and press Start sorting.
It takes about 4 minutes per 1,000 photos. The dashboard stays available at http://127.0.0.1:8765 while running, and you can reopen it later by double-clicking Open Photo Sorter.command or asking Claude to "open my photo sorter."
Dashboard features
- Sort with Claude — starts a new sort, or replays the animation afterward (add
?d=20to slow it down). - New sort — pick a different source folder and destination.
- Advanced — see which folders will be created, remove or add your own, and choose between two labeling engines (Claude or Jev).
- Click a folder — browse its contents, view photos full-size, and move mislabeled files to another folder.
- Edit folders — rename folders and describe what belongs in each.
- Open sorted folder — reveals the result in Finder.
- Light/dark mode — toggle with ☀ / ☾.
You can also try a demo without your own photos by running ./start.sh --demo.
How it works internally
- Scan — creates a small preview of every file plus a fingerprint to detect copies. Originals are only read, never written to.
- Duplicates — compares fingerprints, plus a pixel-level check for screenshots so similar app screens aren't mistaken for duplicates.
- Labels — runs Claude Code in the background (four instances at a time), each reviewing about 90 previews and assigning a folder to each file. This uses your Claude plan; no API key needed.
- Folders — copies each file into its assigned folder, sends duplicates to
_Review/duplicates, and writessorted.csvandduplicates.csv.
Two labeling engines
| Claude (default) | Jev (optional, Advanced) | |
|---|---|---|
| How it works | Claude Code reads contact sheets of 30 previews | TypeSafe's Jev 1.14 image model, one question per file |
| Cost | Included in your Claude plan | Billed per file (~980 tokens each); shows an estimate and asks first |
| Speed | ~1 minute per 1,000 files | ~75 seconds per 1,000 files |
| Setup | Nothing | Put JEV_KEY=your-key in a .env file |
Privacy
- The dashboard listens only on
127.0.0.1, so nothing else on your network can reach it. - Previews, labels, and the file list stay in local folders (
dashboard/data/andwork/) that are never committed. - With Claude, small previews are read by Claude Code just like anything else you share with it. With Jev, a 280px preview of each file goes to TypeSafe's API. Originals never leave your computer.
Requirements & manual run
- Needs a Mac (Windows/Linux work with fewer conveniences), a Claude plan, Python 3.9+, and ffmpeg for video previews (
brew install ffmpeg). - Manual commands:
./setup.sh(one-time setup) and./start.sh(opens the dashboard). - Every step is also a standalone script in
scripts/(scan.py,dupes.py,label_claude.py,label_jev.py,apply.py).
License
MIT.
Related
- Project
- Project
- Project
- Project