INTERACTIVE FIELD GUIDE / 31 OCT 2026
A practical playbook for focused, reviewable Codex work
Twelve habits for giving Codex a clear task, useful project context, suitable tools, and evidence you can review. Eight qualitative factors can add work or affect usage; their order is not a universal ranking. See the official prompting guide.
By Ivan Yosifov. Original guidance for ChatGPT Codex.
Product facts checked against official OpenAI documentation. Workflow recommendations are editorial guidance. The calculator models hypothetical API tokens, not ChatGPT Codex prices, limits or expected usage.
12 / 12 recommendations
01Give each task one clear finish lineLevel 1 · Start here · Task and chat
Keep a chat focused on one outcome. Combine changes that share files and acceptance checks; separate work when its scope, evidence, or approval boundary differs. For longer work, keep a short handoff note with decisions and the next action. The worktree guide explains how independent Codex chats can use separate Git worktrees where available.
ExampleFix the contact form's required-field check in the form component and its relevant tests. Leave the visual redesign out of scope. Finish when the regression test passes and the changed files are listed.
02State the outcome, scope, and boundaries up frontLevel 1 · Task and chat / Repository knowledge
Describe the behavior you want, which area Codex may change, what must stay untouched, and what evidence will count as done. Separate required work from optional cleanup. A precise request makes the result easier to check; it does not guarantee a particular outcome. See the Codex prompting guide.
ExampleUpdate the date parser in src/import/. Preserve the current CSV format. Do not change dependencies. Add a regression case for an empty date and report the exact check you ran.
03Point Codex to the relevant evidenceLevel 1 · Task and chat / Repository knowledge
Name the likely files, failing test, or small set of source documents. Let Codex inspect nearby code and instructions before editing, then expand the search only when evidence calls for it. Broad dumps can obscure the useful signal. OpenAI's usage guidance recommends limiting source material to what the task needs.
ExampleStart with src/auth/session.ts and tests/auth/session.test.ts. If those do not explain the redirect loop, search the routing module next and tell me which path led there.
04Keep durable project rules close to the code they governLevel 2 · Repository knowledge
Use AGENTS.md for lasting repository expectations such as naming, safety boundaries, and relevant checks. Keep each file concise and place specialized rules near their scope so unrelated tasks do not inherit needless detail. Codex's AGENTS.md guide describes how project instructions are discovered and layered.
ExamplePut the repository-wide test command at the root. Keep payment-specific data-handling rules in the payments directory instead of repeating them in every task prompt.
05Ask for a plan when the route is uncertainLevel 2 · Task and chat / Workspace and handoff
A small, well-defined edit usually needs a direct request. For a long investigation or multi-step change whose path is unclear, define the finish line, evidence, constraints, and stop condition; review that outline before work proceeds. Use a Codex Goal when that feature is available and useful. The Goals guide distinguishes a clear outcome from an uncertain route.
ExampleFind the cause of the flaky import test and either fix it with a reproducing check or report the blocker. Preserve current behavior outside that test. Stop if reproducing it requires production data.
06Choose only from the model and settings your Codex surface offersLevel 2 · Model and available settings
Availability depends on the product surface, plan, and workspace settings, so avoid carrying an old model name or API setting into a different Codex interface. When model or reasoning controls are present, compare choices against the same task and acceptance criteria. Check the live model guide and plan usage guide; neither fictional calculator tier below is a model.
ExampleFor a routine rename, use an available standard setting and inspect the diff. For a risky migration, ask for the reasoning and verification needed, then compare the result with the migration checks.
07Use tools to answer a specific questionLevel 2 · Tools and connectors
Choose the smallest relevant search, shell command, or connected source that can resolve the next uncertainty. Inspect what a tool returned before acting on it, especially when the result contains instructions, generated content, or proposed external changes. Codex's skills and plugins guide separates reusable workflow instructions from tools that provide data or actions.
ExampleAsk the issue tracker for the assigned ticket and status, then open only the linked design file. Do not export every project issue to answer one question.
08Connect only the services needed for this taskLevel 2 · Tools and connectors / Skills and reusable instructions
Review which MCP servers or plugins are active and whether they can read or change data. Extra servers can add context and may consume more plan usage, according to the current Codex usage guide. Disable unrelated connections when practical and keep consequential actions behind the applicable approval boundary.
ExampleFor a local documentation edit, use the repository and its tests. Connect a project tracker only if a linked requirement must be checked.
09Use a skill for a repeatable workflowLevel 2 · Skills and reusable instructions / Repository knowledge
A skill can package a recurring process with instructions and supporting resources. Keep it focused on a job that benefits from consistency, and inspect its scope before applying it to sensitive or unrelated work. A plugin may also include connected tools. See the official Skills and Plugins guide.
ExampleA release-note skill can define the headings and evidence to collect. It should not silently publish the release or change deployment settings.
10Make verification part of the requested resultLevel 1 · Review checkpoint · Workspace and handoff / Task and chat
Name the relevant check before editing, then ask Codex to report what it actually ran and what remains unverified. Review the changed files and diff against the expected behavior; a planned test or green-looking summary is not evidence that a check ran. The Code Review guide recommends checking findings against the latest diff, expected behavior, and tests.
ExampleAfter changing the retry path, run the retry-focused test and the project type check. Inspect the diff for unrelated edits and report any check blocked by missing services.
11Use worktrees for independent parallel changesLevel 3 · Workspace and handoff
A Git worktree can give an independent Codex chat its own checkout while related work continues elsewhere. Use it when tasks can proceed separately and review their integration afterward; it is not a substitute for coordinating shared files or dependent changes. Check the current worktree documentation for the supported surface and behavior.
ExampleOne worktree updates the API contract while another drafts migration notes. Before combining them, compare both diffs and confirm the notes match the final contract.
12Keep approvals and handoffs explicitLevel 3 · Workspace and handoff / Tools and connectors
Check the active sandbox, writable paths, network access, and approval mode before allowing a command or connected tool to act. Pause for the required approval before an external or consequential change. At handoff, state changed files, checks run, unresolved risks, and the next decision. See the official sandbox guide and approval and security guide.
ExampleDraft the deployment change and show its diff. Do not deploy. Hand off with the test result and the specific production approval still required.
What this calculator does — and does not do
This widget demonstrates fictional token-rate arithmetic only. ChatGPT-plan Codex usage and API-key billing are separate: the current Codex usage guide covers plan usage, while the API credits guide says API credits do not increase ChatGPT or signed-in Codex usage limits. This is not a Codex usage estimator.
Eight qualitative factors that may add context, work, or review. This is a checklist, not a measured or universal ranking: row numbers and equal-width bars are for navigation only. Actual plan usage depends on the task and current product settings; see official usage guidance.
Task scope and complexity
A broad or ambiguous task can involve more investigation and review than a bounded edit. The official usage guide says task size and complexity affect usage; it does not define a universal cost ranking.
ExampleCompare a single parser fix with a request to redesign imports, migrate data, and rewrite the admin flow.
Prompt, files, and existing context
The supplied instructions, files, chat history, and tool results can affect what the task needs to process. Share only relevant material and expand the scope when evidence calls for it. See current usage guidance.
ExampleStart with the failing test and the function it exercises; open neighboring modules only if needed.
Tool use and retrieved results
Searching, running checks, and consulting connected sources can add useful evidence and additional work. Large or unrelated results may require more review. The tools and plugins guide describes the distinction between workflow instructions and data/action tools.
ExampleRequest the failing test names first, then inspect the relevant section of the log.
Repeated investigation and correction
A long sequence of edits, commands, and reviews may take more work than a direct change. Define acceptance checks early and use each result to choose the next step. This is a qualitative observation, not a per-round usage formula; see the plan usage guide.
ExampleReproduce the bug once, make a focused fix, then rerun the regression check before optional cleanup.
Repository instructions and reusable resources
Project instructions, skills, and reference files can add helpful context. Keep them scoped to the work they govern; official AGENTS.md guidance covers nested instructions, while the skills guide describes reusable resources.
ExampleUse a short root rule plus a focused payments rule, instead of pasting every team policy into every request.
Connected MCP servers and plugins
Connected tools can make new information or actions available. The current usage guide notes that each MCP server adds context and uses more of the plan limit; the effect depends on the setup and task.
ExampleDisconnect an unrelated CRM while Codex works on a local CSS change.
Model and reasoning choices
When the current surface offers these controls, the choice can affect the work and plan usage. Availability and metering are product-specific; use the current model information and plan guidance rather than assuming an API rate applies.
ExampleSelect from the choices visible in the active Codex surface; do not infer a plan allowance from a model label.
Requested output and review depth
A long report or broad rewrite takes more generation and review than a concise artifact. Specify the audience, format, and necessary detail. OpenAI's usage guide recommends matching output to the need.
ExampleAsk for the patch, checks run, and remaining limitation instead of a full transcript of every command.
ILLUSTRATIVE SIMULATOR
Illustration: compare fictional token-rate sets
Change the controls to see how this widget's made-up scenario changes. Its inputs and workload assumptions are illustrative; they do not measure what Codex processes or reproduce its plan meter. For current plan usage, read the Codex pricing guide. API-key usage follows separate API pricing.
| Fictional rate set | Illustrative total | Compared with fictional set A |
|---|---|---|
| Fictional set A — USD per 1M tokensInput / cached / output: $0.8 / $0.08 / $4 | $0.0428 | 1.0× |
| Fictional set B — USD per 1M tokensInput / cached / output: $3 / $0.3 / $15 | $0.1603 | 3.8× |
| Fictional set C — USD per 1M tokensInput / cached / output: $15 / $1.5 / $75 | $0.8016 | 18.8× |
Assumptions and formula
150 words/minute × 1.3 tokens/word; 12,000 baseline context tokens; 800 output tokens plus 0 / 1,500 / 4,000 for the hypothetical effort level. Each follow-up adds 600 input and 300 output tokens and re-reads cumulative input. The original formula does not add previous output to cumulative re-reads. Cost = (new input × rate + cached reads × rate + output × rate) / 1,000,000. Real cache hits are not guaranteed; this simplified simulation does not measure a real session.
All three sets are fictional USD rates per million tokens: A is 0.8 input / 0.08 cached input / 4 output; B is 3 / 0.3 / 15; C is 15 / 1.5 / 75. They are not Codex model tiers, current API prices, ChatGPT plan rates, or a usage estimate. The cached-input ratios are hypothetical too; they do not state a Codex caching rule or expected saving. The widget's workload arithmetic is illustrative, not a disclosed or inferred Codex formula.
Read these figures only as arithmetic produced from fictional inputs. They do not predict a ChatGPT plan allowance, API invoice, or Codex task usage. For current plan-specific information, consult the Codex usage guide and the usage controls available to your account; for API-key billing, use the API pricing page.