When I previously wrote about starting to organize my photos with Claude Code, many people read it. Since then, the organization has progressed, and I have managed to sort through over 30,000 photos and videos on hand.
However, there were failures in the method I decided on at the beginning. I revised the rules, and halfway through, I even created a dedicated app so I wouldn't have to ask for the same thing every time. This article summarizes everything in the order in which you can redo it. I am writing this so that someone who has just installed Claude Code can reach the same point by following the steps from top to bottom, and so that my future self can look back on it.
Preparation: What to do in the first 10 minutes
Once you have installed Claude Code, create a "structure" before you suddenly ask it to organize everything. That said, there are only two things to do.
1. Create a working folder
Create one folder dedicated to organization, whether on your desktop or anywhere else. Create an "original photos" folder inside it and put the photos you want to organize there. A place for organized photos (Photos) or a place for duplicates (deleted) will be created by the AI later, so they are not needed now.
2. Have it write a rulebook
Claude Code has a mechanism where it reads a file called "CLAUDE.md" placed in the folder before working each time. If you write down what you want it to follow here, the rules will be carried over even if the conversation changes. Please ask it this way at the beginning.
These two things, "confirm first" and "10 items first," are safety devices. Moving or renaming photos can be done in an instant if it goes well, but it can also be ruined in an instant if you make a mistake. If you build the brakes first, all subsequent work will be worry-free.
Before the procedure: It is okay to consult about the process itself
One important thing. The procedure in this article has grown to fit my folder situation. Your mess is likely different, so you don't need to follow it exactly. Claude Code is not only a partner to ask for work, but also a consultant to design the process. Please try asking it this way at the beginning.
If you reply to the suggestion with "this part is different" or "that's too much trouble, I don't want to do it," it will rebuild it for you. Don't just receive a procedure; create the procedure together. From the next chapter on, please use this as a starting point for that consultation.
Organization procedure: Duplicates -> Rename -> By year
The order is important. It is better to reduce duplicates first and then rename, as this will reduce wasted effort.
Step 1. Evacuate duplicates
The point is "move, don't delete." Even if the judgment is wrong, you can restore them if they remain in the deleted folder.
Step 2. Rename by shooting date and time
I will write about why this format is used in the "Failures and Corrected Rules" section later.
Step 3. Sort into year-based folders
With this, no matter which year's folder you open, they will be in chronological order just by sorting by name.
Advice for daily habits
After taking photos, group them into a folder named with the date and event name (e.g., 20260504_SportsDay). If the date is in the folder name, the AI can trust that even if the camera's clock is wrong.
If you are unsure whether to delete something, don't delete it; move it to 'deleted'. Make decisions in bulk on a day when you have energy.
Organizing is better done "frequently by folder" rather than "all at once after piling up". The habit of testing with 10 items also applies here.
Failures and corrected rules
This is the part that has changed the most since the previous article. Rules are not perfect from the start. You use them, run into trouble, and fix them. This is the record of that process.
Duplicate sorting: I had deleted the originals myself
When I was running it with the rule "move copies with (1)(2) to the duplicate folder", there were folders where I had manually deleted the originals in the past, and the copies were moved, leaving no original files at all. I manually retrieved them from the deleted folder and added one line to the rule: "If the original does not exist, keep the numbered copy as the original". Holes in rules are found through operation. Once you find them, you can fix them just by telling the AI one line.
Renaming: Sorting by name did not result in chronological order
The initial rule was "YYYYMMDD_time_folder name". With this, the digits did not align for photos taken at the same time, and there were places where the order by name conflicted with the shooting order. So, I changed it to the current format.
20170213_1600_001_FamilyTrip.jpg
Date_Time_3-digit sequence_Name. The sequence is a running number for each day, and all files have the same number of digits. With this, name order = chronological order does not break. Since the time remains in the name, even if photos from another camera are found later, they can be inserted into the correct position if you rename them again.
Blur detection: Background blur was treated as "out of focus"
I wanted to automatically separate out-of-focus photos, but when judging by the sharpness of the entire image, even good photos with background blur were treated as blurry. Now, I divide the image into a 5x5 tile and judge by the sharpest part. The idea is that if it's in focus somewhere, it passes. The results are divided into 3 levels of folders (OK/Check Required/Blurry), and deletion is always done after visual inspection. By the way, I don't use this feature now. It's there for days when I want to narrow down the photos to keep. It's okay to have features you don't use.
Deleting Hidden Files: Confirming if it's safe to delete
When you open a folder organized on a Mac in Windows, you see a bunch of invisible junk files like .DS_Store. I wanted to delete them, but I was afraid of deleting system files. So, I asked, 'Is it safe to delete these?' The answer was that they are work files created by the Mac for display purposes and will be regenerated even if deleted, so it is safe. However, it is dangerous if you target the wrong files, so I set it up to always display and confirm the deletion list before execution The scarier something is, the more important it is to tell the AI that it's scary before having it build the solution.
When it becomes a hassle to ask every time: Turning it into an app
Once you've asked for the same task three times, it's time to have it turned into an app.
I used this to create both Mac and Windows versions. I tend to do my daily work on Windows more than Mac, so having the same tools on both keeps my organization process from being interrupted. Since it's just a matter of selecting a folder and clicking, I can keep going even on days when I don't launch Claude Code.
When building, it's effective to use different models for different tasks. I leave the orchestration—thinking about the overall design and planning—to the top-tier models, and the implementation—writing the specific functions—to the lower-tier models. Leave the thinking to the smart models and the manual labor to the fast models. By dividing the work just like a human team, you can save both time and money.
I wrote about other tips for the creation process (like showing errors with screenshots) in another article, so I'll mention just one here: In exchange for convenience, app operations cannot be undone. In a conversation, you can say 'stop that,' but an app button executes as soon as you press it. That is exactly why you should not cut the confirmation dialog and the 'move instead of delete' design.
Pros
Your own rules work exactly as intended. You don't have to conform to the 'almost-but-not-quite' specifications of commercial apps.
You can re-run it without conversation, making organization a habit.
No additional costs once built. You can keep it on every computer you use, both Mac and Windows.
Cons
Operations cannot be undone. You are responsible for being careful.
It takes a few back-and-forth iterations to complete (it's normal for it not to work on the first try).
Supporting both Mac and Windows takes a fair amount of effort.
Finally: Is it safe to let AI touch your photos?
Since this is a point of concern for many, I will organize how it works.
Organizing files with Claude Code works by having small programs written by AI run on your computer. Whether it's determining duplicates, renaming, or calculating focus, the actual computation is completed entirely within your computer.The contents of your photos are not automatically sent externally.
What goes outside is what you include in the conversation. This includes file names, folder names, error messages, and images you personally provide by saying, 'Look at this photo.' In other words, the points to be aware of are simple:
File names and folder names are also included in the conversation. If you have information you don't want seen, such as addresses, in those names, be mindful of that.
Only when you want the AI to judge the contents of a photo (e.g., 'Who is in this photo?') will the image be sent. Do not ask for help with photos you do not want to send.
If you are worried, tell it at the start: 'Do not open the contents of image files; work only with the file names and shooting dates.'
Understand the nature of the tool and decide for yourself the scope of what you delegate. File organization is the perfect subject for practicing this. The AI does not make decisions. It only provides the materials for you to make them.
First, try creating a single 'Original Photos' folder and asking it to search for duplicates. When your first test of 10 items passes successfully, you will likely be a little moved.
(This article was written by the AI Tegosuru Neko)