YNSPIRA
NOEN

How to analyze and organize files with Codex. A practical guide for non-technical users.

Paula Janaszczak
Paula JanaszczakJune 30, 2026 · 11 min read
How to analyze and organize files with Codex. A practical guide for non-technical users.

A concrete test case showing how you can use Codex to analyze, organize, and automate file cleanup.

This article is built as a test case you can run yourself to get a feel for what Codex does in practice. It's written for office workers and other PC users without a technical background.

I picked a scenario anyone who works on a PC will recognize, no matter the role or industry: analyzing and organizing files in a messy folder.

I'll walk through, step by step, how I used Codex to:

  • Analyze the contents of a folder

  • Give me an overview of the findings in Excel format

  • Recommend files I should consider deleting

  • Sort the contents into subfolders by category and date

  • Build a skill (a ready-made work recipe) I can run whenever I want to keep the folder tidy over time

  • Set up an automation that runs a monthly cleanup of the folder

By working through this guide, you will:

  • See the difference between Codex and a regular AI chatbot like ChatGPT or Copilot

  • Get familiar with using Codex on local files on your PC

  • Get hands-on experience with agentic tools that can act outside the chat window

  • Learn how to build a reusable skill you can run on demand, or an automation that fires on its own at a chosen interval or date.

I've written a separate article about Codex: Introduction to Codex for office workers without an IT background. It's a more general intro to the tool. I'd recommend saving it to your reading list for a broader sense of what Codex can do. The article you're reading now covers one specific use case, and won't give you the full picture on its own.

Getting started with Codex

You don't need any special prior knowledge beyond a bit of experience with regular AI chatbots like ChatGPT, Copilot, or Claude.

Installation

Codex is an agentic AI tool from OpenAI (the company behind ChatGPT). You can download the Codex app from the official OpenAI page here: https://chatgpt.com/codex/

  • Install the app after downloading and sign in with your ChatGPT account.

  • Heads up! To sign in to Codex, you need a paid personal subscription (ChatGPT Plus or Pro) or a business subscription.

Which folder should you pick for this test case?

The folder you pick should meet three conditions:

  • It should be a low-risk folder with no critical content, so you can test freely.

  • It should not contain sensitive information.

  • It should have enough content that running an analyze-and-organize use case actually makes sense.

My pick: For me, the obvious one is the Downloads folder. There's nothing critical in there (I always move important content to dedicated storage areas), and there's more than enough to test with.

Tip! You can also create a test folder and copy a few dozen files into it. Call it something like Codex Test Folder.

Give Codex access to the folder and pick the right settings

Create a Codex project and point it at the folder you've chosen. Codex will only be able to read and act inside that one folder.

Here's how to create a new project and give Codex access:

Click the plus icon next to Projects in the left-hand menu, then Use an existing folder, and pick the folder you want to give Codex access to.

My default settings in Codex were:

  • Thinking effort: Extra high → I dropped this to High, which is plenty for this use case

  • Speed: Fast → I dropped it to Standard

Both changes cut down token use.

Start with analysis

Now you can send your first message to Codex. Spell out clearly what you want it to do, and what you don't want it to do. Tell it explicitly that it shouldn't delete, move, rename, or overwrite anything without your approval.

As a first task, ask Codex to:

  • only analyze the contents of the folder

  • give a short summary in the chat and produce a report in Excel format

  • not take any actions beyond that

That gives you a good feel for how Codex analyzes things, and how it creates and saves files directly on your PC.

Here's a prompt you can reuse:

Result, the Excel analysis Codex produced:

Visual summary

This wasn't part of the original answer. I asked Codex in a follow-up message to add a new sheet to the report with a visual summary of the key findings.

Watch Codex's reasoning as it works

Codex shows its internal "reasoning" step by step before it answers. This is called Chain of Thought (CoT). Read what it's "thinking" so you can stop it mid-way if you spot something you disagree with.

Example:

I asked Codex to tweak one of the columns in the Excel report it had just produced. As Codex started "thinking", I saw it was planning to regenerate the entire workbook from scratch, with my tweak baked in. That's overkill. Why rebuild the whole thing when all I want is a small change to the existing file?

So I stopped Codex mid-process and told it not to regenerate everything, just make the change in the existing file. That's a more sensible way to solve the task, and it saved me a lot of wasted tokens.

This is a good example of how working with AI isn't about handing over a task and waiting. You follow how the tool is thinking and adjust course when it's heading somewhere silly.

From analysis to action: organize your files

Take a look at the Excel report Codex produced. Are you getting the insight you were after? Pay particular attention to the file categories Codex came up with. You can always ask it to update the existing report if you want a different categorization or are missing some data.

If you're happy with the report, ask Codex to organize the files in your folder into tidy folders based on the agreed categories.

If you read the whole prompt, you noticed I asked it to only organize files older than 14 days. That's because I want to keep some loose files around for a later exercise about building a skill.

Here's how the cleanup turned out for me.

The Downloads folder has never looked this good.

Check the result

Do a quick quality check. Looking at the file type column, you can tell almost immediately whether the files in a given folder match what you'd expect to see there. For example, I'd expect mostly PPTX files, and maybe some PDFs, in the Presentations folder.

In my case, most of it was right. I found a few files that were miscategorized. Several image files (jpg) ended up in the Presentations folder. That's because my first prompt told Codex to analyze content using metadata only, without opening the files. So it had nothing more than filename, size, and format to go on, and files with names that hinted at a presentation ended up in the Presentations folder.

This is a quick fix. I asked Codex to move all .jpg and .png files into the "Images" folder. Have Codex make the adjustments you need based on the misjudgments you spotted, and any other preferences you have.

Build a skill that runs the whole process for you

The point of this step is to automate what Codex has done so far, so you can repeat the analysis and organization without explaining everything again and writing detailed prompts.

You do that by creating a skill, a ready-made work recipe the agent can run on demand.

Heads up: it's important you've done the previous step (the quality check) so you've caught and corrected any misjudgments Codex made. If you skipped it, the same mistakes carry over into the skill you build here.

To create a skill, ask Codex to make one based on the work you've just done in this chat.

Personally, I like to review and approve what Codex writes into the skill instructions, so I built the skill in two steps.

Step 1: I used this prompt to tell it what the skill should do, and to ask Codex to suggest instructions.

Once the skill is built, you can read through the skill instructions by clicking "Open Preview" in the chat.

The skill is saved locally on your machine, in Codex's own skills folder: [your home folder]/.codex/skills/downloads-organiser. That way Codex can find it again and use the same instructions next time you ask for help organizing new files in the Downloads folder.

Test the skill on the loose files still in the folder. (The organize prompt only sorted files older than 14 days, exactly so we'd have enough left over to test the skill we just built.)

You run a skill by typing "/" followed by the skill name in the chat, for example /downloads-organiser.

Take a quick look to confirm the remaining files got moved.

Set up an automation

After the previous step, we have a skill that works the way we want and that you can run on demand.

You can also set up an automatic monthly task that runs downloads-organiser on the first day of each month, so you don't have to remember to trigger it manually. You do this very simply by typing in the chat: "Create an automatic task that runs downloads-organiser on the first day of each month."

After that, you can view the automated task or edit the frequency and timing under "Scheduled" (previously called "Automations") in the left-hand column.

Summary

  • Start with a low-risk folder without sensitive or critical content, so you can test Codex safely.

  • Ask Codex to analyze before it acts, especially when it's working with local files on your PC.

  • Watch Codex's reasoning as it goes so you can stop or correct it when it's heading somewhere unnecessary or wrong.

  • Quality-check the result afterwards. Codex makes good calls most of the time, but miscategorization happens, especially when it's only going off metadata.

  • Once you have a process that works, turn it into a skill so you don't have to write the same instructions again.

  • A skill can also be turned into an automation that runs on its own at a chosen interval or date.

The same approach works on a lot of other tasks. Once you've worked through the exercises in this article, you can use a similar pattern to streamline or automate more file-related work with Codex.

Related tools