Check whether planning uses your Codex allowance
The aim is to finish the same change with fewer discarded attempts. Planning in a separately metered Chat conversation can also leave more Codex capacity, if that distinction applies to your account. If both stages share usage, their combined consumption must fall before the workflow has saved allowance.
| Where you plan | What to check | How to interpret it |
|---|---|---|
| Chat in ChatGPT | The selected conversation mode, account, workspace, and actual usage change | Check your exact mode and workspace. The cited guidance does not confirm a separate Codex allowance for every ordinary Chat conversation. |
| ChatGPT Work | The shared Work/Codex usage indicator | Moving a task here does not create another allowance pool. |
| Codex app, CLI, or cloud | The plan allowance and reset windows shown for your account | A new conversation or another Codex surface should not be treated as fresh capacity. |
| Codex authenticated with an API key | API usage and billing | This uses API pricing. Shifting work to it moves spending outside the subscription allowance; include that spending in the comparison. |
The account rules above were checked on October 18, 2026. Use the current dashboard linked from the official pricing page and record the displayed reset times. In an active Codex CLI session, /status shows remaining limits. Do not assume another subscriber's screenshots describe your account.
Before moving a long planning task, make a small observation on the account you will use:
- Record the workspace, remaining allowance, reset time, and timestamp. Keep other agent tasks idle during the observation.
- Open the exact planning mode you intend to use. Give it a short, approved requirement and ask only which behavior decisions remain unresolved. Keep the mode, model, and speed in your note.
- Recheck the same usage indicator after the response. A visible change is evidence that the observation used that allowance. An unchanged rounded value does not establish that the conversation was free.
- If you cannot establish a separate meter, budget planning as part of the total. Proceed because it resolves an expensive ambiguity, then compare the finished result using the measurement steps below.
Choose the tasks that benefit from planning elsewhere
The best candidates have unresolved product or operational decisions that you can settle from a small set of documents. If the unanswered question lives in executable code, give Codex access to that code early. OpenAI's surface guide describes Chat for discussion and comparison, Work for larger reviewable results, and Codex for developer tools, debugging, tests, and implementation.
| Your task | Useful planning work | Where to start |
|---|---|---|
| A feature request with several interpretations | Decide who uses it, what the first version includes, and how edge cases behave | Chat with the issue and examples; send the agreed behavior to Codex |
| A bug with a failing test and a clear reproduction | Usually only the reproduction, expected result, and constraints | Codex directly; a second planning conversation adds a handoff without resolving much |
| A refactor in an unfamiliar repository | Map current behavior and dependencies before choosing a change | Codex investigation first; use Chat later if a product tradeoff remains |
| Rising service costs | Compare dated cost, traffic, and deployment evidence; select one plausible intervention | Chat with approved exports, then Codex to verify the suspected code path |
| A small text, style, or configuration correction | State the desired value and a check | Codex directly; use an appropriately sized model |
| A migration touching several services | Agree on compatibility requirements and one independently verifiable phase | Combine repository investigation with owner decisions; hand off one phase at a time |
Before opening a separate planner, write the decision it must produce. "Decide whether export means the current page or every filtered result" is specific. "Make a comprehensive plan for our application" leaves the planner free to generate work that the implementation never needs.
Prepare enough context to settle that decision
For a feature, start with the issue, the relevant screen or API behavior, a few representative inputs, and the owner's constraints. For an operational problem, supply the period being analyzed, metric definitions, a dated export, and relevant release notes. A screenshot can show which columns a user sees; it cannot establish server authorization or what happens beyond the visible page.
Put a date or version beside each source. A code extract should include its repository path and commit if you know them. Mark missing details explicitly. If nobody has checked the export endpoint, write "endpoint and pagination behavior unknown" instead of letting the plan invent a file or function name.
Give each attachment a short name, such as ISSUE-EXPORT for the requirement and ORDERS-SAMPLE for the example rows. A private link may be available in Chat but inaccessible to Codex. Include an approved extract in the handoff when access will differ. The ChatGPT upload checklist helps decide what to redact before attaching files.
Leave out abandoned designs, unrelated logs, and the rest of the repository when they do not affect the decision. Keep constraints that prevent expensive mistakes: existing permission checks, supported clients, behavior that must remain compatible, and the test command if it is known.
Ask ChatGPT for a decision you can implement
Use this prompt when a requirement or tradeoff is still open. Replace the brackets and remove fields that do not apply. The requested output is a short implementation brief, so the planner has a clear stopping point.
Help me decide the scope of one code change before I use Codex. Decision to make: [the unresolved behavior or choice] Desired outcome: [what a user or operator should be able to do] Evidence: [attached files or accessible references, each with an ID and date] Known constraints: [compatibility, permissions, dependencies, operational limits] Already agreed: [decisions that should not be reopened] Outside this task: [features or systems excluded] Read the supplied evidence. Ask only questions whose answers would change the implementation or its acceptance criteria. Distinguish documented behavior from assumptions. Mark repository details that need verification. Return: - The decision and why the evidence supports it. - The smallest useful implementation scope. - Acceptance examples with input, expected output, and failure behavior. - Evidence references Codex will need, with dates or versions. - Unresolved questions that must be settled before editing. Do not write application code or turn optional ideas into requirements. Stop when the brief is complete. If the evidence is insufficient, name the specific missing input.
Read the answer as the person who will accept the feature. An unresolved requirement such as "handle empty exports appropriately" needs another decision. Ask whether an empty result should download a header-only file, disable the button, or show a message, then record the chosen behavior. More architecture detail will not resolve that product question.
Worked example: turn an export request into a usable brief
Consider a request to "add CSV export to the orders screen." The scenario and rows below are illustrative requirements, not an account test or a measured saving. A developer can implement several plausible versions of that sentence, and each version would pass a different acceptance review.
Settle the choices before writing code
Give ChatGPT the current screen description and ask it to identify decisions that change the implementation. Does export include all matching orders or just the current page? Which fields belong in the file? Does the active date filter use the order date or another timestamp? Who can download the data? What should happen when the filter finds nothing?
Suppose the owner agrees on this first version: export all orders matching the active status and order-date filters; include only order ID, order date, and status; retain the screen's current order; use the existing account time zone and access rules; and return a header-only CSV for an empty result. Totals, customer contact details, and scheduled exports are excluded.
Those are decisions for this example. Your team may choose different behavior. Write the agreed answers into the brief so Codex does not have to choose them while editing.
Planning would not earn its extra step if the original issue already specified all of those choices. In that case, send the issue and examples straight to Codex. Likewise, a reproducible bug such as a paid order being omitted at the end-date boundary needs its input, expected ID, and reproduction steps first. Ask Codex to trace that failure before opening a separate discussion about export design.
Make the expected result checkable
Use a tiny fixture that exposes the filter boundary. In this example all dates are calendar dates in the agreed account time zone, and the date range includes both endpoints.
| Order ID | Order date | Status | Include for paid orders, October 1 through October 5? |
|---|---|---|---|
| O101 | 2026-10-01 | paid | Yes |
| O102 | 2026-10-02 | refunded | No: status differs |
| O103 | 2026-10-05 | paid | Yes: end date is included |
| O104 | 2026-10-06 | paid | No: outside the date range |
The expected IDs are O101 and O103. To test pagination, configure a page size of one and confirm that both matching rows still appear in the export. Check the agreed column order and the header-only result separately. Use existing permission fixtures to confirm that a user without access cannot export orders through a direct request.
A parser-based CSV check is more reliable than visually scanning the downloaded text. If the chosen columns include user-entered text, add the project's existing CSV escaping and spreadsheet formula-handling requirements to the brief. Those requirements need an owner decision if the repository has no established policy.
Keep the handoff short enough to inspect
Change: Export the orders matching the current screen filters. Decision source: ISSUE-EXPORT, approved by [owner] on [date]. Example input: ORDERS-SAMPLE, the four rows attached to this brief. Repository snapshot: [actual branch and commit, or "not yet checked"]. Agreed behavior: - Export all matches, including those beyond the current page. - Match the screen's status and order-date filters and existing sort. - Columns, in order: order_id, order_date, status. - Preserve existing account time zone and access rules. - Empty result: header-only CSV. Acceptance: - Paid + 2026-10-01 through 2026-10-05 yields O101 and O103. - Page size one still exports both matches. - Empty matches produce only the agreed header. - An unauthorized direct request cannot export orders. - The orders screen and existing filter checks still pass. Repository checks required: Locate current filtering, pagination, sorting, permission checks, CSV utilities, and relevant tests. File paths are not yet verified. If exporting all matches needs a new job system or a broader data interface, report that finding before expanding the change. Excluded: new columns, scheduled exports, unrelated refactors, deployment. Finish with changed files and the exact checks run.
Codex now has the product decisions, while it still needs to find the relevant code. If exporting every match requires an asynchronous export system, the brief tells it to stop and report that larger requirement before building it.
Have Codex verify the plan and implement one change
Open the intended repository and confirm the branch before handing over the brief. Attach the evidence Codex can actually read. For CLI work, mention relevant paths explicitly; OpenAI's Codex prompting guidance covers file context, reproduction steps, constraints, and verification. Avoid pasting the entire planning conversation when the brief already preserves the decisions.
Implement the attached reviewed brief in this repository. First read the applicable repository instructions and relevant code. Check the brief against the current behavior. Treat proposed paths and implementation ideas as hypotheses; preserve the agreed requirements. Initial search area: [known paths, or the specific behavior to locate] Allowed edit scope: [directories or components] Required behavior to preserve: [constraints] Acceptance checks: [examples and existing test commands] Proceed with the smallest change that fits the brief. If current code contradicts a material assumption, a requirement is unresolved, or the change needs edits outside the allowed scope, report the specific issue and stop before expanding implementation. Run the relevant checks. Report commands, results, and unavailable checks. Separate code behavior verified locally from outcomes that still need production observation. Finish with a reviewable diff. Do not deploy.
Use search boundaries as a starting point, not as a demand to ignore callers or dependencies. Give Codex permission to inspect the code needed to verify the change while keeping edits within the agreed scope. Otherwise, an artificially narrow file list can hide the cause of a bug.
Ask for a regression check when a behavior change warrants one, and run the existing checks affected by the diff. A documentation correction may need only a render or link check. A new export behavior needs evidence for filtering, pagination, and permissions. Saving usage by omitting the checks that could catch the relevant failure leaves the task unfinished.
Keep repository investigation in Codex when necessary
If the planner needs to know how a queue, cache, or permission system currently works, let Codex inspect it first. You can request an investigation without committing to an implementation:
Investigate [specific behavior] without editing application files. Start at [entry point, failing test, or reproduction]. Trace only the code needed to answer [decision]. Report current behavior with file references, relevant test commands, and unresolved assumptions. Stop with the findings; do not implement a fix.
Codex also has a native plan mode. The official prompting guide documents /plan in the app composer for investigation and a proposed approach before editing. Planning inside Codex still consumes usage; its purpose here is to resolve uncertainty using the repository context already available.
If a short investigation settles both the technical issue and the desired behavior, continue in the same conversation with the approved change. Moving the findings into Chat is useful only when there is a decision left for Chat to help resolve. For a broader behavior-preserving change, the refactoring guide covers how to define and check the behavior you must retain.
For cost analysis, start with exports before building an MCP server
A service-cost question needs operational evidence that source code alone cannot supply. Begin with dated, approved aggregates: cost by service, request volume, cache hit rate, and a deployment timeline. Compare like periods and check metric definitions before asking the planner to rank changes. A rising bill after a release does not establish that the release caused it; traffic or pricing may also have changed.
Ask for one opportunity with its evidence, uncertainty, likely code area, and validation method. For example, a low cache hit rate can justify investigating cache eligibility and key construction. It does not justify increasing every cache lifetime: the brief still needs freshness constraints and the behavior that must remain correct. A local test can establish key behavior; a lower production bill requires later operational measurement.
A private MCP server becomes worth considering when the same approved analysis repeats and exports are cumbersome. Proposed tools such as get_cost_by_service(start_date, end_date) or get_cache_hit_rate(service, start_date, end_date) can return limited aggregates. These are interface examples, not built-in ChatGPT tools.
Cap date ranges and result sizes, set query timeouts, and use a reporting store or replica where appropriate. A database account that cannot write can still expose private records or run expensive reads. OpenAI's MCP authentication guidance expects OAuth 2.1 for authenticated servers and access-token verification on each request. Enforce the user's data scope on the server.
The MCP server guide describes tool annotations including readOnlyHint; an annotation describes behavior and does not grant or restrict database permissions. The security guidance also calls for server-side validation and data minimization. Use the MCP audit guide if you are actually building this recurring connection. For a one-off planning question, include the setup and maintenance effort before deciding that a server saves anything.
Control model, speed, and context as well as the handoff
Usage depends on more than the words in your first prompt. Model choice, task complexity, retained context, reasoning, tool use, retrieval, and caching affect consumption. A one-line instruction to investigate an entire system can lead to more work than a longer brief that settles the requirements.
For straightforward edits, choose a smaller available model that can meet the acceptance checks. Escalate when it repeatedly misses a requirement or the change needs deeper reasoning. Include failed attempts when comparing models: a low-cost attempt followed by repeated repairs may not be economical.
Check the speed setting too. According to OpenAI's speed documentation, reviewed October 18, 2026, Fast mode on supported models consumes included subscription limits at 2.5 times the Standard rate; purchased-credit and Enterprise pay-as-you-go usage is billed at twice the Standard rate. Ultrafast uses included limits at eight times the Standard rate and purchased credits or Enterprise pay-as-you-go usage at six times. API-key billing follows API pricing. Use Standard when preserving allowance matters more than a faster response.
Trim context at its source. Keep durable repository rules in AGENTS.md, place detailed component instructions at the appropriate directory scope, and leave finished-task transcripts out of instructions loaded for every task. OpenAI documents this hierarchy in its AGENTS.md guide. Keep the rules that affect correctness; shortening them until the agent loses the test command is a poor trade.
Limit connected tools to the question you are answering. Request narrow, dated results instead of entire log archives. Keep decisions that still matter in the implementation conversation; when a task has drifted into unrelated work, prepare a compact handoff for a new task. A fresh conversation can improve focus, but rebuilding missing context also costs work.
Measure total usage without overstating the result
Record usage immediately before planning, after planning, and after implementation. Use the same account, workspace, indicator, and reset window. Note the model and speed for each stage. Pause unrelated tasks if you want to attribute the observed change to this workflow; overlapping activity makes that attribution uncertain.
Task and acceptance result: Account/workspace and planning surface: Repository commit or input version: Planning model/speed: Implementation model/speed: Usage indicator and reset time: Before planning, timestamp and displayed value: After planning, timestamp and displayed value: After implementation, timestamp and displayed value: Other activity, retries, or reset during the observation: Additional API spending, if any: Checks passed, failed, or unavailable: Direct-workflow comparison and differences:
Keep percentage points and relative reductions separate. Suppose a fictional shared allowance shows 63% remaining before planning, 61% after planning, and 57% after implementation. Planning consumed two percentage points and implementation four, for six in total. If an otherwise comparable direct workflow used eight points, the calculated reduction would be (8 - 6) / 8 = 25%. Comparing only the four-point implementation with eight points would hide the planning cost. These numbers explain the calculation; they are not observed results.
Do not add percentages from different pools or windows. A percentage of a weekly allowance and a percentage of a five-hour allowance have different denominators. If Chat and Codex show separate meters, report each separately, together with any cash spending and elapsed time. One combined savings percentage would require a justified common basis.
A reset between readings invalidates simple subtraction. Rounded readings or a display that has not updated can hide consumption, so an unchanged number does not prove that planning was free. Retain screenshots and timestamps, state the display's precision, and leave the result unquantified when the data is too coarse.
For a broader claim, compare several tasks of similar scope, using comparable inputs, models, speed, and acceptance standards. Repeating the same task after its solution is known introduces an advantage for the later attempt. Report those differences instead of calling a single before-and-after run a general benchmark.
Keep the workflow when it resolves decisions that would otherwise cause changes to be thrown away, and your usage and elapsed-time records justify the extra stage. If it adds a long discussion without changing the brief, send the next comparable task directly to Codex. Without a usable comparison, report the narrower result: the requirements became clearer, while the quota benefit remains unknown.
Fix the places where the split adds work
| Visible problem | Likely issue to investigate | Useful correction |
|---|---|---|
| Codex repeats the full planning discussion | The handoff lacks a decision, evidence access, or acceptance criteria | Supply the approved answer and accessible extracts; ask it to verify the remaining repository facts |
| Codex rejects a path or behavior in the plan | The source snapshot is stale or the planner guessed repository details | Use the current code finding to revise the brief; preserve the product requirement unless the owner changes it |
| Planning continues through many rounds | The requested decision is too broad or required input is missing | Choose one decision, provide the missing input, and stop after the agreed brief |
| The patch grows into unrelated cleanup | Optional improvements became part of the task | Return to the allowed edit scope; put additional work in a separate proposal |
| Tests keep failing before the changed code runs | Dependencies, fixtures, or environment setup may be blocking verification | Separate setup failures from regressions. Resolve the named prerequisite or record verification as incomplete |
| The shared meter drops during planning | The planning route uses the same allowance | Count that stage in the total and compare whether reduced rework outweighed the handoff |
| You are near the limit and need a useful stopping point | The current task is too large to verify as one change | Finish one testable slice or request a handoff with current changes, checks, and the next action; defer optional work |
A prompt such as "use no more than 2% of my allowance" is a preference, not a reliable enforcement mechanism. The agent may not have a sufficiently precise meter or a way to cap the task at that percentage. Use observable stop conditions: one approved change, one completed investigation, or a named blocker that needs new evidence before further attempts.
Before you resume an interrupted task, attach the current brief, branch or commit, changed files, checks already run, and the unresolved blocker. Ask Codex to inspect the existing diff before continuing. That record gives it a concrete starting point and helps prevent another planning pass over decisions you have already made.
