Clean up the files on your desktop
You can do this after: Intermediate
💻 This only works on a computer. You'll need Claude Code or the Claude desktop app.
In one line
Open Claude Code in your Desktop folder and say “Sort these into folders by type. Just show me the plan first.” Look at the plan, and if it looks good, let it move them.
When to use it
- When your desktop is so full of icons you can’t find the file you want
- When years of files have piled up in your Downloads folder (the same method works)
Before you start
- You need to have done Install Claude Code first.
- If it’s your first time, make a separate copy of important files before you start.
Follow along
Step 1. Open Claude Code on your desktop
🍎 Mac
Open the terminal, type the two lines below one at a time, and press Enter after each.
cd ~/Desktop
claudeIf a window like “Terminal would like to access files in your Desktop folder” appears, click Allow.
🪟 Windows
Open PowerShell, type the two lines below one at a time, and press Enter after each.
cd $HOME\Desktop
claudeIf it says it “cannot find path,” your Desktop is inside OneDrive. Try cd $HOME\OneDrive\Desktop instead.
Step 2. Get the plan first
Illustration (may look a little different from the real screen)
I want to organize the files in this folder by type. Show me a plan for creating Photos, Documents, Archives, Installers, and Other folders and moving the files into them. Don't move anything yet, and never delete any files.
Sample replyI looked through 87 files. Here's the plan.
Photos (42): IMG_0012.jpg, Screenshot….png …
Documents (23): quote.pdf, meeting-notes.docx …
Archives (9): files.zip …
Installers (6): …dmg, …exe
Other (7)
Shall I go ahead like this?
Step 3. Adjust the plan and run it
If you don’t like the plan, change it in plain words. For example, “Put work documents in a separate ‘Work’ folder.” If it looks good, say:
If you’d like to check each one before it moves, press Shift + Tab so ⏸ manual mode on shows at the bottom of the screen. In the default auto mode it moves files right away without asking. In manual mode it asks “May I do this?”, so read it and approve if it looks right.
Make it your own
- “Move files I haven’t opened in over a year into an ‘Old files’ folder”
- “Split the photos into folders by the month they were taken”
- “Find whether there are several files with the same name, and just show me a list”
Watch out for
- At first, always include “don’t delete anything.” Moved files can be put back, but deleted ones are hard to recover.
- Files used by programs may be mixed in. Leave files you’re not sure about in “Other” and check them yourself.
I'm stuck here
Stuck while following along? Tell me where. Only the site owner sees this. Leave your email only if you'd like a reply.
💌 Get new tips by email
I'll email you when a new tip goes up. No ads, ever.