Rename and sort job files with Codex
Rename a messy folder of job photos, PDFs and receipts by date and customer, and sort them into folders, after you approve the plan.
For owners with a downloads or camera folder full of IMG_4821.jpg and scan(3).pdf who need to find a job's files fast · Codex · Beginner
Researched, not run yetWhat that means
Copy the prompt
Fill in the [brackets] after you paste it.
This folder is a copy of my job files: photos, PDFs and receipts. Help me rename and sort them.
Naming pattern: [e.g. YYYY-MM-DD_Customer_job_type-number.ext]
Customers to look for in file names or PDF text: [LIST, or "none"]
Folders to sort into: [e.g. one folder per customer, plus "receipts" and "unsorted"]
Step 1: Do not change anything yet. Write plan.csv with: old name, new name, folder, and how you got the date and customer (file date, name, or text inside). Put anything you are unsure of in "unsorted".
Step 2: Show me a summary and wait for me to say go.
Step 3: After I say go, rename and move the files exactly as in the plan, and write undo.csv so every change can be reversed.
Rules: never delete a file. Never overwrite a file with the same name; add a number instead. Stay inside this folder.Copied. Paste it into Codex next.
Free PDF
Get this setup as a PDF
Enter your email and a print-ready copy of this setup opens here, to save as a PDF. The free starter pack opens too. Tap confirm in the email that follows to get occasional new setups. Unsubscribe anytime.
Already a subscriber? Unlock it on this device
Free PDF
A confirmation email is on its way too: tap confirm in it to get new setups by email.
Three ways to run this setup
Free
Copy and paste it yourself
Copy the prompt above into ChatGPT, Claude or Grok. It drafts. You approve.
Go to the prompt$9 once
Complete Pack
One payment, no membership. Opens the pack pages: Bot Safety Checklist, Second Brain Starter Vault, Voice File Starter, Tested Grok Bot prompt pack, Write it as code prompts.
See the Complete PackFree to start, VIP $19 a month
Save it as a bot in the guided setup app
The app turns this setup into a bot with the draft-only rules. 3 setups build free; the rest are part of VIP. A human reviews a prompt or setup for you within 24 hours, up to 2 a month.
Build it in the app
Want this one tested next? Vote for it.
What you get back
Example written for this page with made-up names. Not from a test run.
- Plan: 126 files. 98 renamed into 14 customer folders, 21 into receipts, 7 into unsorted.
- IMG_4821.jpg -> Delgado/2026-11-04_Delgado_furnace_photo-1.jpg (date from photo, name from your list)
- scan(3).pdf -> unsorted/scan(3).pdf (no date or customer found)
3 steps
- Copy the prompt.
- Paste it into Codex.
- Fill in the [brackets], then read the answer before you send or use it.
Quick answer
Copy the messy folder first. Open the copy in the ChatGPT desktop app and choose Codex. Paste the prompt below with the naming pattern you want. Codex reads the file names and dates, writes a plan of old name to new name, and waits. You read the plan, then tell it to go. Keep permissions on Ask for approval, and keep the original folder until you have checked the result.
How do you set it up?
Skip this if
- Your files already live in a job management app that names them.
- The files hold the only copy of something important and you have no backup.
Done after day one
One folder sorted into job folders with clear names, and the original copy kept until you have checked it.
Tools
- The ChatGPT desktop app with Codex (macOS, Windows or Linux)
- A copy of the folder you want to sort
- Your naming pattern, for example 2026-11-04_Delgado_furnace_photo-1.jpg
Steps
- Copy the messy folder. Work only on the copy.
- Open the ChatGPT desktop app, open the copied folder, and select Codex from the ChatGPT dropdown. Keep permissions on Ask for approval.
- Paste the prompt below with your naming pattern and any customer names you want it to look for.
- Read the plan Codex writes (old name, new name, folder). Fix anything wrong in chat before you say go.
- Tell it to go. Spot-check 10 files, then delete the original only when you are happy.
Where to paste this prompt
OpenAI Codex → CLI, IDE extension, ChatGPT desktop Codex mode, or codex web
More ways to run it
Which chat tools work with this prompt?
Paste the prompt into any of these assistants (free or paid tiers).
- Codex
How sure is this?
Last updated: · Last reviewed:
Before you use this
What it is allowed to do: Adds sheet rows. Adds rows to your own Google Sheet.
At a glance: time, cost and difficulty
At a glance
All outcome figures are estimates from cited sources, not independent verification by us.
- What it is allowed to do
- Adds sheet rows
Adds rows to your own Google Sheet.
- Time saved (estimate)
- Not measured yet
- Difficulty
- Beginner
- Tools needed
- Codex
- Typical cost
- Codex is included in ChatGPT plans. OpenAI lists Free ("quick coding tasks"), Go, Plus, Pro and Business, checked Nov 9, 2026. Plan prices: see chatgpt.com/pricing.
Reviewed Nov 9, 2026
Basis (estimate): Not measured yet. We haven't timed this.
What usually goes wrong?
Where agents tend to stall on this job. More patterns in Where AI gets stuck.
- Wrong dates on copied files. Ask Codex to use the date inside the photo or PDF when there is one.
- Customer names spelled three ways. Give it the right spelling in the prompt.
- Permissions set to Full access. Switch back to Ask for approval for jobs like this.
What tips make it smoother?
- Start with one month of files to see if you like the names.
- Photo dates come from the file, which can be the day you copied it. Check a few against your calendar.
- Keep the same pattern every month so files sort in date order.
Where do the claims come from?
Summaries use public sources linked below, not independent verification. How setups are picked.
- Read OpenAI’s write-up (learn.chatgpt.com)
OpenAI: ChatGPT and Codex quickstart (read Nov 9, 2026): install the ChatGPT desktop app for macOS, Windows or Linux, sign in, open a folder (it can read and modify files in that folder), and select Codex from the ChatGPT dropdown for building and fixing code.
- Read OpenAI’s write-up (learn.chatgpt.com)
OpenAI: Permissions (read Nov 9, 2026): modes are Ask for approval (always asks to edit files outside the folder and to use the internet), a mode that asks only for actions detected as potentially unsafe, Full access, and Custom.
- Read OpenAI’s write-up (learn.chatgpt.com)
OpenAI: Pricing (read Nov 9, 2026): Codex is included in ChatGPT Free ("Explore Codex capabilities on quick coding tasks"), Go ("lightweight coding tasks"), Plus, Pro and Business plans.
Common questions
- What does this setup do?
- Copy the messy folder first. Open the copy in the ChatGPT desktop app and choose Codex. Paste the prompt below with the naming pattern you want. Codex reads the file names and dates, writes a plan of old name to new name, and waits. You read the plan, then tell it to go. Keep permissions on Ask for approval, and keep the original folder until you have checked the result.
- Who is it for?
- Owners with a downloads or camera folder full of IMG_4821.jpg and scan(3).pdf who need to find a job's files fast.
- What does it cost to run?
- Codex is included in ChatGPT plans. OpenAI lists Free ("quick coding tasks"), Go, Plus, Pro and Business, checked Nov 9, 2026. Plan prices: see chatgpt.com/pricing.
- What usually goes wrong?
- Wrong dates on copied files. Ask Codex to use the date inside the photo or PDF when there is one. Customer names spelled three ways. Give it the right spelling in the prompt.
- How much time might it save?
- Not stated in sources. Not measured yet. We haven't timed this.
Free kit by email
Get the free kit by email
The starter pack and the Portable AI Office, sent to your inbox. New setups by email after that. Unsubscribe any time.
What to do next
- Receipts to a sheet with Claude Code
Turn a folder of receipt PDFs and photos into one expense spreadsheet you can check and hand to your bookkeeper.
- Sort your expenses into tax-ready categories
Categorize a year of business expenses into IRS Schedule C buckets
- Turn a stack of documents into one brief
Upload a pile of documents, like proposals, reports or contracts, and get one short brief with each point tied to its source and every conflict between documents called out.
Have a setup that works? Submit it. We credit sources and write it up in plain language.