Skip to content
Proyectos

kairothq/claude-photo-sorter

Ver en GitHub

Acerca de

Indica a Claude tu carrete: organiza las fotos y los vídeos en carpetas, encuentra duplicados y reproduce el proceso en un panel localhost en directo.

Diseño y multimedia

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+4
in 7 days
+31
in 15 days
+106
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

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 dashboard sorting a camera roll

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 _Review folder, 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:

  1. Choose folder: pick the folder with your photos (a Google Photos or Apple Photos export, or any folder).
  2. Pick where the sorted copies should go. The default is right next to your photos.
  3. 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-sorter folder (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

  1. Scan: makes a small preview of every file and a fingerprint to spot copies. Your originals are only read.
  2. Duplicates: compares fingerprints, plus a pixel check for screenshots so similar app screens aren't mistaken for copies.
  3. 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.
  4. Folders: copies each file into its folder, and duplicates into _Review/duplicates. Writes sorted.csv and duplicates.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/ and work/, 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

Explorar proyectos relacionados

Cargando…