GPT-6 Astra’s effective context window in Codex is the one your client reports for that session. In a November 22 inspection, one Codex 0.171.0 model catalog listed 272,000 default context tokens for the original gpt-6-astra. Treat that as a starting point and verify your own session. OpenAI’s separate API model page lists 1,050,000 tokens. If your usage meter is exhausted, changing the context window leaves that balance unchanged. Codex session status · GPT-6 Astra API specification
What is a context window? It’s the working budget for a session’s instructions, history, selected files and tool results, with room reserved for model work. Compaction summarizes earlier history to make room. Your usage allowance tracks how much work you can do within a plan period. Start by identifying which limit you reached.
What changed in November 2026: The current configuration reference marks experimental context management unavailable. This guide now starts with the session readout, supported compaction controls and a reversible profile. OpenAI configuration reference
Which limit am I hitting?
| Limit | What to look for | What to do next |
|---|---|---|
| ChatGPT plan usage window | The Work or Codex usage meter shows a limit and a reset time. | Check Settings → Usage. Resume after the relevant reset. OpenAI usage guidance |
| Codex context window | One session gets close to its window, compacts often, or starts losing earlier details. | Inspect /status. Save the task state before compacting or opening a fresh task. Codex CLI commands |
| API rate limit | An API-key request returns a throughput 429. The error or headers identify a requests or tokens limit. | Reduce concurrency or request size and use bounded backoff based on reset headers. OpenAI API rate limits |
| API tier or spend limit | A 429 error points to organization usage, a hard project or organization cap, or exhausted credits. | Read the exact error code and have the API account owner check the named limit or balance. Pause the queue until it is resolved. OpenAI API error codes |
| Claude Code limit | The warning is in Claude Code. It may refer to its Claude plan, API billing or a single session’s context. | Check Claude Settings → Usage for plan meters or use /context for session contents. Claude usage guidance · Claude limits and resets |
GPT-6 Astra Codex context window and compaction
- GPT-6 Astra in Codex: One local Codex 0.171.0 catalog showed a 272,000-token default and a separate 872,000-token model maximum with a 95% effective-window field. That was a static catalog read. The active window and compaction behavior still need a session check.
- GPT-6.2 Astra in Codex: OpenAI lists 272,000 by default and up to 1 million with a longer-context override. It lists the GPT-6.2 Sol default at 500,000 and up to 1 million. GPT-6.1 Sol starts at 500,000. Check the model ID and client version before applying one model’s figures to another. Current Codex model reference
- GPT-6 Astra on the API: OpenAI lists 1,050,000 context tokens and up to 128,000 output tokens. The API also has a separate price threshold above 272K input tokens. For rate examples and budgeting, see the Astra API pricing guide. OpenAI model specification
Earlier 400,000 context and 360,000 auto-compaction advice is a historical tuning suggestion. In one public Windows report, a requested 1M context resolved to 828,400 tokens, and the reporter observed compaction earlier than the configured threshold suggested. Use those observations as a reason to inspect your client. Public Codex issue #53584
Separate API pricing from ChatGPT and Codex plan usage
ChatGPT sign-in draws from your Work and Codex allowance. API-key sign-in uses API billing and rate limits. For the GPT-6 Astra, OpenAI estimates 5–45 local messages per five hours on Plus and Business Standard. Local and cloud work share the allowance, and weekly limits may apply. The estimate varies with task size, tools, reasoning and speed. OpenAI says Pro 100, Pro 200 and Pro 500 currently have included usage allowances without a five-hour limit. Use Settings → Usage for your actual balance and reset. Codex pricing and estimates · Astra plan guidance
Run a compatibility and baseline check first
Identify the actual client, account or workspace, model ID, reasoning effort and speed. In the interactive CLI, use /status to inspect the model and token use. Use /model to check available model and effort choices. Capture the effective window where the client exposes it, and record any compaction event alongside the task it interrupted. If your client lacks a reading, mark it unknown. Keep a copy of your config. GPT-6 Astra availability and access
Use a reversible profile before touching the default
With the CLI installed and gpt-6-astra available on your account, save the following as astra-baseline.config.toml beside your user config.toml. Leave the window and compaction overrides unset in the base config for a default-window comparison. Start a fresh session with the profile, choose Standard speed if available, and verify the model and effort before running the task.
model = "gpt-6-astra"
model_reasoning_effort = "low"
codex --profile astra-baseline
Expected: a fresh session that should show GPT-6 Astra at Low effort. If the client ignores the profile, rejects the model, or shows a different model or effort, stop the comparison and check the profile location and active client. Run without --profile to return to your usual settings. The key names were checked against the configuration reference and the snippet was parsed as TOML locally. The reference does not describe what a profile file may contain, and no model session was run. Profile and model settings reference
Know what each context control changes
model_context_windowrequests a window for the active model. Confirm the effective value in a new session before relying on it.model_auto_compact_token_limitsets the automatic compaction threshold. Leave it unset initially so your control uses the model default.model_auto_compact_token_limit_scopedefaults tototal. Thebody_after_prefixoption counts growth after the carried prefix. Keep the scope fixed when comparing thresholds.tool_output_token_limitlimits how much individual tool output is stored in history. Save full logs separately and ask for the important excerpts and their file paths.
OpenAI introduced experimental notes and searchable history in September. Its current configuration reference says the feature is unavailable. An old key in a file only proves the file contains that key. For the earlier workflow and its verification method, see the experimental Astra notes guide. September launch announcement · Current status and controls
Reduce unnecessary context at the task boundary
Give Codex the task, exact paths, constraints and acceptance checks. Point it to the relevant source section or diff first. Keep workspace-wide instructions brief and move file-specific rules nearer the files they govern. For a new task, carry forward a decision record and the evidence paths it needs. Audit repeated AGENTS.md and skill instructions · Astra prompt examples
Control work inside the turn loop
Bound tool output without hiding evidence
Ask for failing test names, the first relevant stack frame and the saved log path. Keep exact error text. Have Codex look up more lines when the first excerpt cannot support a conclusion.
Replace repeated polling with bounded waits
For a long-running check, record the job identifier and the condition that ends the wait. Read a final status and relevant logs. For a job that stalls, capture its last known state before retrying.
Use subagents only when the work is independent
Delegate independent review or diagnosis with a narrow input and output. Give each writer a distinct file or resource. Keep a shared acceptance checklist and integrate the results once. Separate agent contexts add token use. OpenAI subagent guidance · Earlier Luna-under-Sol delegation example
Route by task difficulty
Use the lighter model that passes your acceptance checks. Try Sol on routine edits and debugging, Luna on bounded extraction or classification, and Astra when the work depends on difficult cross-file reasoning. Compare model versions explicitly. GPT-6 Sol and Luna task comparison · GPT-6.1 Sol release and access
Treat Fast as a latency purchase
Where available, OpenAI lists GPT-6 Astra Fast at 2.5× Standard for included usage and 2× for eligible credit or pay-as-you-go usage. Keep Standard fixed for a context experiment. Compare speed in a separate run when turnaround matters, and judge it against completed work and allowance used. Current Codex speed multipliers
Use a one-variable measurement worksheet
Run a representative task in two fresh sessions with the same model, effort, speed, inputs and acceptance checks. Record the active window, number and timing of compactions, any decisions lost, elapsed time and visible usage change. Repeat on a short task, a tool-heavy task and a context-heavy task before adopting a new default. A high cache share can coexist with large cumulative input and meaningful usage. Astra usage traces and the cache breakdown
Illustrative example: Codex is checking a small analytics dashboard. After two compactions it keeps revisiting a rejected tracking change. Save the accepted events, rejected change, touched files and last test result. In a fresh session, compare targeted test-log excerpts with the earlier full-log input while keeping the window at its default. If both runs pass and the targeted run keeps the decision, use the smaller input. If essential context still gets lost, compare a single window change in a supported profile with the same task and checks.
Failure cases and rollback
- If only one thread is near full, save its decisions, then run
/compactor resume from the checkpoint in a new task. Verify the remaining constraints before continuing. - If multiple fresh tasks are blocked and Usage shows a reset, wait for the relevant plan window. Save any work you need to resume.
- If the API reports throughput pressure, reduce concurrency and honor reset guidance. If the error names a hard cap or exhausted quota, pause and check the relevant account limit. Codes such as
project_spend_limit_exceededandorganization_usage_limit_exceededpoint to different limits. API spend controls - If the notice is in Claude Code, check whether it names the session, the subscription window or the API account. Anthropic documents
/contextand/compactfor context management and Claude settings for shared plan usage (see Anthropic’s shared usage help). Anthropic’s Claude Code guidance - If an override is ignored or the effective value is smaller than requested, restart with the baseline profile, check the active model and remove the override from the candidate profile.
GPT-6 Astra Codex optimization FAQ
Should I set the context window to 400,000 or 1,000,000 tokens?
Start with the window your client reports. Consider a supported increase only if a representative task regularly loses necessary context after you narrow the inputs and save checkpoints. Verify the resulting window and compaction behavior in a fresh session.
Why did the experimental setting not appear after I enabled it?
The current OpenAI configuration reference marks the feature unavailable. Remove the historical flag from your test profile and use the supported session commands and compaction controls.
Why did cached input or Fast still use so much allowance?
A cache hit changes how some input is accounted for. The overall task can still have large inputs, outputs, reasoning and tool use. Fast also carries its own multiplier. Compare the work accepted, the elapsed time and the change in your meter for the same task.
About the author: Tayeeb Khan, Digital Marketer Tayeeb. The November update is based on current product documentation and the labeled catalog observation above. The walkthrough is an illustrative setup and measurement workflow.
If you’re sizing AI usage for a recurring business workflow, explore AI automation support for scoping the steps, verification and handoffs.