by jftuga · 10mo ago · 0 comments
I'm sure there are a ton of other projects out there that do this, but I couldn't find one that fit my needs exactly, so I threw this together in a few hours.
claude-image-renamer uses Claude Code CLI to analyze screenshots and rename them to something actually usable. It combines OCR text extraction with Claude's vision capabilities, so instead of "Screenshot 2025-12-29 at 10.03.10 PM.png" you get something like "vscode_python_debug_settings.png".
A few things it does:
Handles those annoying macOS screenshot filenames with weird Unicode characters
Uses OCR to give Claude more context for better naming
Keeps filenames clean (lowercase, underscores, max 64 chars)
Handles naming conflicts automatically
If you're on macOS, you can also set this up as a Folder Action so screenshots get renamed automatically when they are saved to a folder, typically ~/Desktop. This is useful if you take a lot of screenshots and hate digging through "Screenshot 2025-12..." files later.I use screenshot on my phone to remember stuff, so this way it's super easy to search those text files if I'm trying to find something that I only vaguely remember.
Remembering specific words is hard for me, but I can get neighboring words and get in the ballpark, and simple text search or claude code gets me the rest of the way.
The screenshot gets uploaded from my phone to Dropbox, then on my desktop at home a script just periodically checks if there's any new screenshots. It's been running since Jan of last year, so coming up on a year now.