kairothq/claude-photo-sorter
关于
让 Claude 处理你的相机胶卷:它会将照片和视频分类到文件夹中,查找重复项,并在实时 localhost 仪表板上回放处理过程。
设计与媒体实测星标增长
- 24小时
- +5
- 7天
- +35
- 15天
- +110
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Claude photo sorter
Point Claude at your camera roll. It looks at every photo and video, sorts them into folders, finds your duplicates, and you watch it happen on a live dashboard on your own laptop.

The demo above uses drawn placeholder images, not real photos.
- Sorts photos and videos into folders like Selfies, Food, Travel, Screenshots, Talking heads and Screen recordings. Use the standard folders or make your own.
- Finds duplicates: identical copies, burst shots and re-saved screenshots go to a
_Reviewfolder, with a list of which copy was kept. - Never touches your originals. It only reads them and makes sorted copies. On a Mac the copies take no extra space.
- Runs on your computer. Your photos are not uploaded anywhere.
Start here (no coding needed)
You need a Mac and a Claude plan. Windows and Linux work too, with a few less conveniences.
1. Install Claude Code from claude.com/claude-code. Then open the Terminal app (press ⌘ Space, type Terminal, press Enter), type claude and press Enter.
2. Paste this to Claude:
Set up and open https://github.com/kairothq/claude-photo-sorter
Claude downloads it, sets it up and opens the dashboard in your browser.
3. In the dashboard:
- Choose folder: pick the folder with your photos (a Google Photos or Apple Photos export, or any folder).
- Pick where the sorted copies should go. The default is right next to your photos.
- Press Start sorting.
It shows how long it usually takes, then sorts on its own while you watch every photo fly into its folder. About 4 minutes for 1,000 photos.
Don't have your photos on your computer yet?
- Google Photos: go to takeout.google.com, select only Google Photos, download, and unzip everything into one folder.
- iPhone or Apple Photos: in Photos on your Mac, select all, then File > Export > Export Unmodified Originals, into a new folder.
Using it again
The dashboard lives at http://127.0.0.1:8765 while it's running. To open it again later, either:
- double-click Open Photo Sorter.command in the
claude-photo-sorterfolder (it's in your home folder), or - tell Claude "open my photo sorter".
Press New sort to sort a different folder, or send the copies somewhere else.
The dashboard
| Sort with Claude | Before sorting: asks for anything missing, then starts. After sorting: replays the animation (good for screen recording). Add ?d=20 to the address for a slower take. |
| New sort | Pick a new photos folder and a new place for the copies. |
| Advanced (in the setup card) | See the folders that will be made, remove any, or press + to add your own. Choose Claude or Jev. Try 200 photos first. |
| Click a folder | Browse everything in it. Click a photo to see it full size, flip with the arrow keys, and Move to another folder if it's wrong. |
| Edit folders | Rename folders and describe what goes in each. |
| Open sorted folder | Opens the result in Finder. |
| ☀ / ☾ | Light or dark. |
Want a look without your own photos? Run ./start.sh --demo.
How it works
- Scan: makes a small preview of every file and a fingerprint to spot copies. Your originals are only read.
- Duplicates: compares fingerprints, plus a pixel check for screenshots so similar app screens aren't mistaken for copies.
- Labels: runs Claude Code in the background (
claude -p), four at a time, each looking at about 90 previews and picking a folder for each. This uses your Claude plan and needs no API key. - Folders: copies each file into its folder, and duplicates into
_Review/duplicates. Writessorted.csvandduplicates.csv.
Claude or Jev?
| Claude (default) | Jev (Advanced, optional) | |
|---|---|---|
| What | 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, about 980 tokens each. Shows an estimate and asks first |
| Speed | About a minute per 1,000 files | About 75 seconds per 1,000 files |
| Setup | Nothing | Put JEV_KEY=your-key in a .env file in this folder |
Privacy
- The dashboard only listens on
127.0.0.1, so nothing else on your network can reach it. - Previews, labels and the file list stay in
dashboard/data/andwork/, which are never committed. - With Claude, the small previews are read by Claude Code the same way as anything else you share with it. With Jev, a 280px preview of each file goes to TypeSafe's API. Originals never leave your computer.
Running it by hand
./setup.sh # once: Python packages into .venv/
./start.sh # opens http://127.0.0.1:8765
Every step is also a script in scripts/ (scan.py, dupes.py, label_claude.py, label_jev.py, apply.py). Agents read CLAUDE.md (or AGENTS.md) for the full playbook. Needs Python 3.9+, and ffmpeg for video previews (brew install ffmpeg).
License
MIT
探索相关项目
加载中…