You have a product file to check before importing it into your store. A few duplicate codes or missing prices could turn a routine update into an afternoon of cleanup. A small script would help, but getting it built and knowing whether it works are two different jobs.
That is the gap this guide tackles. We’ll use a sewing-pattern catalog checker to work through setup, useful instructions, permissions, and verification. By the end, you’ll have a way to judge the finished tool before trusting it with your next import.
What Is OpenAI Codex?
OpenAI Codex is an AI coding agent. It can read project files, explain code, make changes, and run commands through the tools and permissions available to it. That means it can work on a project rather than only suggest code for you to copy. OpenAI’s Codex guide
You can describe the result in ordinary language. You don’t need to know the name of every programming technique involved, but you do need a way to check the result. Codex can make mistakes, including changes that look reasonable until you try a different input.
I would start with a small task whose behavior you understand:
- Explain what an unfamiliar script does.
- Fix an error you can reproduce.
- Make one clear website change.
- Build a utility that checks or processes a file.
Throughout this guide, imagine you sell downloadable sewing patterns and want to check a product CSV—a plain-text table with values separated by commas—before importing it. The expected answers below give you something to compare with Codex’s output.
Success means you get a working checker, a readable report, repeatable run instructions, and an unchanged source file.
Choose Where to Use Codex
Choose where you want to work before installing anything. The main difference is where Codex gets its files and where its commands run.
| Surface | Work It Suits | Where Files and Commands Run | Setup Required |
|---|---|---|---|
| Desktop app | A graphical workspace for giving instructions and reviewing files | Local tasks use the folder and tools on your computer | Install ChatGPT for macOS, Windows, or Linux, sign in, and choose Codex |
| Editor integration | Working beside code you already have open | Local tasks use your editor’s project and execution environment | Install the Codex extension in VS Code, Cursor, or Windsurf; Xcode and JetBrains have their own integrations |
| CLI | Working from a terminal | The project directory and tools on the machine running Codex | Install Codex and start it from the project folder |
| Cloud | Repository tasks that should continue while your computer sleeps | An OpenAI-managed environment with its own files and tools | Connect a repository and prepare an environment |
For this first exercise, I would choose the desktop app. You can keep the conversation, files, and review work together without learning terminal navigation first.
If you already use an editor, stay there. Moving to another interface adds little value when the relevant files are already open.
Plugins add capabilities to supported surfaces. You can leave them until a task needs access to another service.
Sign in and Open Your Project
Codex is included across ChatGPT plans, including Free and Go, with different allowances. Cloud access requires an eligible account and workspace access, and it is excluded from Free and Go. Check the current access requirements before paying for an upgrade.
Sign in with your ChatGPT account to use its included Codex allowance. You don’t need an API key for that route. Signing in with an API key instead uses separate usage-based billing through your OpenAI Platform account. OpenAI’s authentication guidance
Check your available allowance before upgrading. Task size and model choice affect consumption, and local messages and cloud chats share your plan’s allowance. The Codex pricing and usage page explains the available options.
Start in the Desktop App
Install the official ChatGPT desktop app and sign in. Then:
- Create a folder called
pattern-catalog-checkeron your computer. - Choose Codex in the app and open that folder.
- Start a new conversation for the catalog checker.
Keep the input file, checker, report, and run instructions in this folder. Opening a dedicated folder also gives Codex a clear workspace boundary.
An ordinary chat with an attached CSV is different from opening a local project where Codex can create files and run the checker. Confirm that the selected working location is your project folder.
Connect Codex to Your Editor
If you prefer an editor, install OpenAI’s Codex extension in VS Code, Cursor, or Windsurf. Sign in and open pattern-catalog-checker as the project folder.
Choose the Codex icon in your editor’s sidebar and start a conversation beside the relevant file. Attach that file or a selected passage when it helps explain the request. A filename in your prompt also removes doubt about which input you mean.
Xcode and JetBrains provide their own Codex integrations. Enable Codex through the editor’s coding assistant, then open your project and start a conversation.
The task and checking process below stay the same. You’ll review the changed lines beside the source.
Use the CLI or Cloud Instead
For the CLI, use the official installation instructions for your operating system. Open a terminal in the project folder, run codex, and complete sign-in.
For cloud work, connect the required GitHub repository and create or select an environment. A repository is the project’s version-controlled collection of files; it must contain the files the cloud task needs.
For a new environment, let Codex prepare the project, then review the setup and check results before publishing the environment and starting your task. Publishing makes that environment ready for tasks; it does not deploy your application. Codex Cloud setup
Opening a browser does not give a cloud task access to a folder on your laptop. The cloud environment needs the project files, any software they depend on, and access to the services the task uses.
Prepare a Recoverable Workspace
Before allowing edits to an existing project, make a practice copy. If the project uses Git, save current work in a commit—a recorded checkpoint you can restore.
For this exercise, use only the invented product data below. Keep store credentials and customer information out of the folder.
Local execution describes where files and commands are handled. Codex still processes context through an online model, so review your account’s data controls before sharing confidential material. Codex data controls
Set Permissions for the Task
Start with “Ask for approval” where available. This lets Codex work inside the current workspace and pauses before crossing that boundary. It does not ask before every file edit.
Two controls matter:
- Sandbox: Limits which files and network resources Codex can access.
- Approvals: Determines when an action needs review.

Available settings depend on the client, execution environment, and organization. Instructions in your prompt help direct the work, but they do not replace these controls. OpenAI’s permission modes
Review requests to install software, use the network, or write outside the project. This checker needs no store connection. It uses Python, a programming language, with only the built-in tools called its standard library.

Start with an inspection request:
Inspect this folder without editing anything. List the relevant files, explain what is here, and check whether Python 3 is available. Tell me the working folder and the Python command that works.
This establishes what Codex can actually see and run before you ask it to build anything.
Give Codex a Task With a Clear Finish Line
A useful task description explains the goal, the relevant files, the rules, and what must be true when the work is complete.

When I was building my Python content pipeline, I once asked for “cleaner output” and got formatting changes while empty sections remained. I had described a preference without saying what counted as a failure. I started naming those failures in the brief, which gave me something concrete to check.
For your catalog checker, the finish line should be just as clear.
Define the Inputs, Output, and Rules
First, identify the file to inspect and the report to create. Then write down the rules before asking Codex to implement them.
Create a plain-text file named products.csv in your project folder and paste in:
sku,name,price
SP-01,Tote Bag Pattern,9
SP-02,Apron Pattern,-2
SP-01,Pouch Pattern,5
SP-03,,7
![Csv Checker Records Files And Report Define The Inputs, Output, And Rules: Csv Checker Inputs, Records, And Report; Products.csv; Sku; Name; Price; Sp-01 | Tote Bag Pattern | 9; Sp-02 | Apron Pattern | -2; Sp-01 | Pouch Pattern | 5; Sp-03 | [Empty] | 7; 1; 2; 3; 4; Header Is Not A Data](https://passivebook.com/wp-content/uploads/2026/11/csv-checker-records-files-and-report.webp)
Here, sku means the product code. Each line after the header is a data record.
For this exercise, the checker must:
- Require the columns
sku,name, andprice. - Reject blank product codes and names after trimming surrounding whitespace.
- Require unique product codes after trimming whitespace, with uppercase and lowercase treated as different.
- Accept only numbers of zero or more as prices. Reject blank values, text, infinity, and
NaN(“not a number”). - Report every record involved in a duplicate, including the first occurrence.
- Number data records from 1, excluding the header.
- Preserve
products.csvand write findings tovalidation-report.md. - Produce a clear success message when the file is valid.

These are the rules for this exercise. Your actual store may have different import requirements.
Save another copy as products-original.csv before running the checker. You’ll use it to confirm that the input stays unchanged.
Write the First Prompt
Paste this complete prompt into Codex:
I need a local catalog checker for a business selling downloadable
sewing patterns.
Inspect this folder and propose a short approach, then build the
checker. Ask about requirements that block implementation.
Input:
- products.csv in the project folder
- Required columns: sku, name, price
- Data records are numbered from 1 after the header
Validation rules:
- Product codes and names must be nonblank after trimming whitespace.
- Product codes must be unique after trimming whitespace.
- Codes are case-sensitive: SP-01 and sp-01 are different.
- Report every record involved in a duplicate, including the first.
- Prices must be finite numbers greater than or equal to zero.
- Reject blank prices, nonnumeric values, NaN, and infinity.
- Handle quoted CSV fields containing commas.
Deliverables:
- check_catalog.py using only Python's standard library
- validation-report.md identifying each problem and its data row
- A clear success message in the report when the file is valid
- README.md with run instructions
- Tests covering the validation rules
Constraints:
- Preserve products.csv and products-original.csv.
- Tests must use separate temporary files or folders.
- Do not connect to the store or upload data.
Before execution:
- Check that Python 3 is available and identify the command that works.
When finished, list:
- Files changed
- Commands actually run
- Check results
- Anything still unverified
For an ambiguous project, ask for a plan and resolve blocking questions before implementation. For this small utility, a short approach is enough to review before proceeding.
If you want to try a different business task, the AI Coding Task Assistant can turn your idea into a brief like this one. It also gives you concrete examples of what a correct result should look like.

Free AI Coding Task Assistant




I would skip requests for a dashboard, login system, or automatic store import. None helps establish whether the checker catches the four planted problems.
Run the Task and Correct Specific Failures
If Python is missing, resolve that before execution. Ask Codex for Python 3 installation instructions for your operating system, complete the installation, and confirm which command works.
Let Codex implement the checker and run its checks. Read any requests for information or permission before answering.

Once it finishes, open validation-report.md. Compare the findings with your rules and give specific feedback if something is wrong.
For example:
Both records with the same product code must be flagged. The report only includes the later one. Fix that rule and rerun its checks.
That tells Codex what failed, what you expected, and what to verify next. “Try again” leaves all three unanswered.
If execution stops, ask for the failing command and exact error. Resolve that path, runtime, or code problem before adding features.
Verify the Result Before Keeping It
A completion summary tells you what Codex says happened. The command output, generated files, and behavior tell you whether the task is finished.
Compare the Output With Known Answers
Start with inputs whose expected results you can determine yourself.
For the supplied CSV, the report should identify:
Data row 1: Duplicate product code SP-01
Data row 2: Negative price -2
Data row 3: Duplicate product code SP-01
Data row 4: Missing product name

The wording can differ, but all four findings should appear. If only row 3 gets a duplicate warning, the implementation does not meet the brief.
Next, test the rules separately. Use temporary fixtures—small test inputs—so these checks do not overwrite your original CSV. Compare each result with the expected finding below.
| Input Case | Expected Finding |
|---|---|
Unique codes, filled names, and prices of 5 and 9 | Clear success message with no validation findings |
Header omits price | Missing required column reported clearly |
| Code or name contains only spaces | Blank required value flagged on the affected row |
Two codes are SP-01 and SP-01 | Both records flagged as duplicates |
Two codes are SP-01 and sp-01 | No duplicate finding under this exercise’s rule |
Prices include blank, abc, -2, NaN, Infinity, and -Infinity | Each invalid price flagged |
A price is 0 | Zero accepted |
A name is "Tote, Pouch and Apron Bundle" | Name stays in one field and passes if other values are valid |

Read the actual test output as well as Codex’s summary. A test that was written but never run is still unverified.
Also compare products.csv with products-original.csv. Ask Codex to show a byte-for-byte comparison result, and inspect any reported differences. An unchanged input is part of the requested behavior.
For an existing application, run the checks relevant to the behavior you changed. A catalog utility passing its tests says nothing about an unrelated checkout change.
Review the Changes and Save the Accepted Version
Open the changed-file list and inspect the differences—the lines added and removed.
Ask Codex to explain unfamiliar code, dependencies, network calls, or unrelated edits. You can be direct:
Explain how this code detects duplicate product codes. Point to the relevant lines and explain why both occurrences appear in the report.
Keep the result when its behavior meets the brief. Otherwise, provide the failing input and expected output, request a focused correction, or restore your checkpoint.

Once the checks pass, save the checker, validation rules, tests, and run instructions. To run the checker again, ask Codex to run it in the project folder. You can also open a terminal—a window for entering commands—in that folder. If python3 is the confirmed command, enter:
python3 check_catalog.py
Use the confirmed equivalent on your system. The README should state that command and where to find the report.
For recurring project guidance, add a short AGENTS.md file at the project root. Codex reads these instruction files when starting work, so begin a new session after adding it. Project instructions with AGENTS.md
For example, after confirming the command:
# Project Instructions
- Preserve source exports, including products.csv.
- Use Python's standard library for this checker.
- Run the checker with: python3 check_catalog.py
- Run the tests described in README.md after changing validation rules.
- Report commands actually run and anything still unverified.
For shared repository work, review the pull request—the proposed set of changes—and its checks before merging. Apply changes to live systems after the relevant review and testing.
Add Plugins When You Need External Tools
Add a plugin when a task needs information or actions in another service. A plugin can bundle reusable workflow instructions called skills and connections that expose external tools and information.
Those connections may use MCP, or Model Context Protocol, which lets Codex work with another system’s tools. Plugins are supported in Codex through the desktop app and CLI, but the IDE extension does not support them. Plugin capabilities and support

To browse plugins, open the desktop app’s Plugins tab or enter /plugins in the CLI. Review the publisher and requested access before installing one, and authenticate the service if prompted. Start a new chat or CLI session to use its capabilities.
For the sewing-pattern business, imagine the approved catalog checklist lives in Google Drive. After connecting the Google Drive plugin, you could ask:
Find the document titled “Approved Sewing Pattern Catalog Checklist.” Summarize its required fields and link the source. If several documents match, show me the matches before choosing. Do not edit the document.
Check the returned source before relying on the summary. If it adds a new requirement, decide whether that requirement belongs in the checker before changing the code.
Before an external write, name the destination and ask Codex to prepare the proposed change for review. Retrieving a checklist and editing that checklist are separate actions.
I would leave plugins out of the first checker task. The supplied CSV and rules already contain what it needs.
Fix Common Codex Problems
When something fails, narrow the problem before changing settings.
- Cannot Sign In or Access a Feature: Confirm the active account, sign-in method, and workspace. For managed access, ask an administrator to check whether the feature is enabled.
- Cannot Find Files: Confirm the working folder and whether execution is local or cloud. Supply the relevant path and ask Codex to list what it can see.
- A Command Fails: Capture the command and exact error. Check the runtime, file paths, and dependencies identified by that error.
- The Output Is Wrong: Reduce the problem to one failing input and state the expected result. Correct that behavior before broadening the task.
- An Action Is Blocked: Identify the specific access required and make the smallest permission change that serves the task. A local CSV checker should not need access to your store.
- Usage Is Exhausted: Check your remaining allowance and reset time. Then wait or review the available plan and credit options.
- The Conversation Stops Progressing: Start a new task with the goal, relevant files, completed work, and remaining failure. A new conversation does not reset usage limits. OpenAI’s troubleshooting guidance
For the checker, a useful handoff might be:
The checker exists and runs. Duplicate detection passes, but NaN is incorrectly accepted as a price. Inspect check_catalog.py and its tests, fix finite-number validation, and rerun the relevant checks. Preserve both source CSV files.
That gives the next conversation a clear starting point without making it rediscover the whole project.
What Next?
Create pattern-catalog-checker and add the four-record CSV today. Then use the inspection request to confirm the folder and Python setup before sending the full task prompt.
Use the social buttons to share this walkthrough when you want a practical reference for moving from an AI-generated answer to a checked, reusable tool.
Which repetitive task would you trust Codex with once you had a clear way to verify the result? Share it in the comments, along with any questions about getting started.
Share this post with your friends & followers:
