# Codex

> Give Codex a task in your project, such as adding a search box. It can edit the files and run checks, then show you the changes.

Web page: https://buildladder.com/tools/codex

A recipe list works fine with five recipes. With fifty, finding dinner means scrolling. Open the project in Codex and describe the behavior you want in everyday words. For example, typing “pea” should leave “Pea soup” on screen and hide “Tomato pasta.”

Ask Codex to add the search box and check that example. Review the changed files, then try the search yourself. Clear the box as well. Seeing all fifty recipes return tells you something that checking a single match would miss.

- Made by: OpenAI
- Official site: https://learn.chatgpt.com/docs/quickstart
- Cost: $0 in the ChatGPT desktop app, which is still rolling out. The Free plan and Go, at $8 a month, work in the desktop app only. A terminal or a code editor needs ChatGPT Plus at $20 a month, or an OpenAI API key paid per use. Plus limits reset every 5 hours and vary by model and task. Weekly limits may also apply.
- What you need first: A Mac with macOS 14 or later, or Windows. Linux is in preview. A ChatGPT account.
- Who it helps: If you want to start for $0, or you already pay for ChatGPT Plus.
- When to skip it: If you want to work in a terminal or a code editor without paying, or the free desktop app hasn’t reached you yet.
- Updated: 2026-11-08

## How to use Codex

Work with Codex one small change at a time. Give it a short AGENTS.md, choose what it may do without asking, plan each change, then review and keep or undo it.

What you’ll end up with: Codex knows how you like to work. Each change starts as a plan you approved, and you’ve reviewed every line it changed.

### You’ll need

- Codex set up on your computer. If it isn’t yet, follow Set up Codex on the Set up your AI tool page.
- A folder for your product, like the my-first-build folder you made in Set up Codex, saved with Git. The review pane needs Git.
- ChatGPT account (https://learn.chatgpt.com/codex/pricing): Every ChatGPT plan includes Codex

### Your part

- Choose what Codex may do without asking you.
- Read each plan before you approve it.
- Review every change it made, and try it in the browser.

### Step 1 of 6: Open your product in Codex

This step is mine to do. Walk me through it, one action at a time:
- Open the ChatGPT app. Open the ChatGPT menu at the top and choose Codex.
- Open your product’s folder, so Codex works inside it.
- Click New chat.

It worked when: A new Codex chat is open in your product’s folder.

Before we move on, check with me:
- Is the folder shown your product’s folder, not another one?

If something goes wrong:
- You don’t see Codex in the ChatGPT menu. Update the app. If Codex is still missing, the free option hasn’t reached your account yet.

### Step 2 of 6: Write a short AGENTS.md

Read the files in this folder, and PLAN.md if it’s here.

Then draft a short AGENTS.md file for future tasks. Only include what you couldn’t work out by reading the code:
- the command that starts the product, and the one that checks it
- that I’m new to this, so explain things in plain words
- that you ask me before you install anything, delete anything, or change files outside this folder

Keep it short, in plain words. Show me the draft and wait for my yes before you save it.

It worked when: Your folder has an AGENTS.md file that you can read in under a minute.

Before we move on, check with me:
- Do you agree with every line?
- Does it leave out things that are already obvious from your files?

If something goes wrong:
- The draft is long. Say: “Cut anything you could find by reading the code. Keep only what you’d otherwise have to ask me.”

### Step 3 of 6: Choose what it may do without asking

This step is mine to do. Walk me through it, one action at a time:
- Click the permissions control below the message box.
- Choose Ask for approval. Codex works inside your folder, and asks before it changes other files or uses the internet.
- Later, you can choose Approve for me. Then it only asks about steps that look unsafe.
- Leave Full access off. It lets Codex reach any file on your computer and the internet.

It worked when: The permissions control shows the mode you chose.

Before we move on, check with me:
- Can you say in one sentence what Codex may do without asking you?

If something goes wrong:
- You see Custom (config.toml). Someone set permissions in a settings file. Choose Ask for approval instead, unless you set that up on purpose.

### Step 4 of 6: Plan before it builds

This step is mine to do. Walk me through it, one action at a time:
- Type /plan in the message box.
- Describe the result you want, like “Add a contact form to the home page.” Say what done looks like.
- Read the plan. If a step is wrong or missing, say what to change.
- When the plan looks right, tell Codex to go ahead.

It worked when: You approved a short plan you understand before any file changed.

Before we move on, check with me:
- Does the plan only touch what you asked for?
- Can you say each step in your own words?

If something goes wrong:
- The plan is much bigger than you expected. Say: “Make the smallest version first. We’ll add the rest later.”
- Nothing happens when you type /plan. Update the ChatGPT app. Until then, start your message with “Don’t change anything yet. First, show me your plan.”

### Step 5 of 6: Review what it changed

This step is mine to do. Walk me through it, one action at a time:
- Open the review pane. It shows Unstaged changes first, which are the changes you haven’t kept yet.
- Click the space beside a file’s name to open or close its changes. Read each one.
- Type /review and choose Review uncommitted changes for a second look. It lists problems without changing your files.
- Open your product in the browser and try the change, the way a visitor would.

It worked when: You’ve seen every changed line, and the change works when you try it.

Before we move on, check with me:
- Does every changed file have to do with what you asked for?

If something goes wrong:
- It changed files you didn’t ask about. Say: “Why did you change this file? Undo anything I didn’t ask for.”
- The review pane is empty or says it needs Git. The review pane only works in a Git repository. Say: “Set up Git in this folder and save a first version.” Then look again.

### Step 6 of 6: Undo a change

This step is mine to do. Walk me through it, one action at a time:
- To throw away everything Codex changed, click Revert all at the top of the review pane.
- To throw away only part of it, revert just that file, or just that block of lines.
- To keep the good parts, stage them first. Staging marks a change as one to keep. Then revert the rest.

It worked when: Your files are back the way they were before the change.

Before we move on, check with me:
- Does your product work in the browser the way it did before?

If something goes wrong:
- Codex changed something outside your folder. Reverting in the review pane can’t undo that. Check it yourself, and keep Ask for approval on so it asks first next time.

Compare Codex with the other options: https://buildladder.com/concepts/working-with-an-ai-agent.md
