The Practice Room / The Terminal with Claude Code / Episode 9

The Terminal with Claude Code

Rename every photo on your computer with AI

Claude Code can open each picture, look at it, and rename the file to what is actually in it. One plain sentence, in the folder where your photos live.

By MstimajPublished 5 November 20263 min readLevel TechnicalTool Claude Code

Sign in to save your place and mark this done. Free, no card.

Why your pictures folder is unsearchable

A camera names a file after the order it was taken in, not after what is in it. So a folder of four hundred photographs is four hundred names that tell you nothing, and the only way to find one is to scroll and look.

The names are the problem, and until now fixing them meant opening each one and typing. Claude Code can open each one, look at the photograph, and write the name for you.

The same four files, named two ways

What the file name tells you

  • IMG_4471.JPG
  • DSC00231.JPG
  • 20260314_114502.jpg
  • Screenshot (88).png

What is actually in the picture

  • dog-on-the-beach.jpg
  • birthday-cake.jpg
  • parking-receipt.jpg
  • boiler-serial-number.png

Nothing on the left is wrong. It simply describes the camera, and you are searching for the subject.

Where you have to be standing

Claude Code works on the folder it is started in, and nothing else. That is the whole safety model, and it is why the first thing it asks you is whether you trust the folder you are in.

Command Prompt opens in your own user folder, which is one level above where most people keep pictures. So you move into the photographs first, and start Claude Code second. If yours live on another drive, or on the desktop, or in a folder you named yourself, use that address instead.

Do it yourself

  1. Open Command Prompt. The line you type on shows your own user folder.
  2. Move into your photographs: cd Pictures. If they are elsewhere, put that address after cd instead.
  3. Type claude and press enter. The window title changes to tell you it is running.
  4. It asks whether you trust this folder. That is it saying plainly that it is about to be able to read and edit what is in here. Say yes.
  5. Type one plain sentence: look at every photo in this folder and rename each one to what is in the picture.
  6. Watch it open them one at a time. Empty names become the dog on the beach, the birthday cake, the parking receipt you photographed and forgot.

You do not need a second sentence. The instruction is the whole job.

It reads more than the picture

Every photograph carries the date it was taken, stored inside the file alongside the image. So you can ask for that too, and have the folder fall into order by itself: add the date it was taken to the front of each name.

It can see them, and it can read them. That is the part nobody expects, and it is the reason this works on receipts and screenshots and serial numbers as well as on holidays.

Check yourself

Answer each before you open it.

Why do you move into the Pictures folder before starting Claude Code?

Because it works on the folder it was started in. Start it in your user folder and it is standing one level above your photographs, which is not where the job is.

What is the folder trust question actually telling you?

That it is about to be able to read and edit everything in that folder. It is a plain warning, not a formality, which is why you point it at one folder at a time.

Where does the date come from, if it is not in the file name?

From inside the photograph. Cameras and phones record the date the picture was taken in the file itself, so it can be read without the name mentioning it.

When it goes wrong

It renames the wrong folder. You started it before you moved. Close it, cd into the right folder, and start it again. The folder it is standing in is printed when it opens.

It asks to confirm every single file. That is the default and it is the safe one. On a folder of four hundred it is tedious, so say so in the sentence: rename them all without asking me between each one.

Two photographs want the same name. Ask it to add the date, which it can read from inside each file, and the clash resolves itself.

Words used here

What is Claude Code and is it free • What is a terminal and why do AI tools use it • What should I never paste into an AI chat

Go deeper

Anthropic's own Claude Code documentation describes how the trust prompt and folder scope work, which is worth reading once before you point it at anything you care about.

What she says in the film

Your pictures folder is full of files with names that tell you nothing. So you scroll, one at a time, looking for the one you want. Claude Code can open each one, look at the photograph, and rename it to what is actually in it. Open Command Prompt. It opens in your own user folder. Now move it to wherever your photos live. For most people that is the Pictures folder. If yours are somewhere else, a drive, the desktop, a folder you named yourself, use that address instead. Then start Claude Code. One word, and the window title changes to tell you it is running. It asks you one thing before it does anything. Do you trust this folder. That is it telling you plainly that it is about to be able to read and edit what is in here. Say yes, and it opens properly. The logo, the version, the model, and the folder it is standing in. Then one plain sentence. Look at every photo in this folder and rename each one to what is in the picture. It opens them one at a time and looks at them. The empty names become the dog on the beach, the birthday cake, the parking receipt you photographed and forgot. And it reads more than the picture. Every photo carries the date it was taken, so you can ask for that too, and have them in order. It can see them, and it can read them. That is the part nobody expects. Subscribe. No permission required.

Next walkthroughClaude Code cannot generate images, but it can write one
On your machineWant this set up on your own computer, with your own files?

Book a session and we do it together on a call.

Book an hour

Ask what did not make sense

Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.

Comments are read before they appear.

The newsletter

Get the next walkthrough.

One email when something goes up. The argument, the film and the term, nothing else. One click to leave.

Have a question now? Ask Mstimaj, she knows the archive.