r/codex
•
u/tagorrr
•
Sep 08 '26
•
2
Complaint I investigated why GPT-6 Astra burns quota so fast
I've seen a lot of discussion here about GPT-6 Astra burning through Codex limits unusually fast, so I decided to inspect the actual rollout telemetry instead of guessing from the usage bar.
TL;DR
Astra was waking itself up every 30 seconds just to ask whether the Luna workers were finished.
In my run:
- 47/47 checks returned no new worker state
- those checks alone caused 7.13M parent input tokens
- they were about 68% of Astra's total parent-side input
- my 5h usage went from 53% → 100% in ~33 minutes
So the expensive orchestrator was spending most of its own context processing just checking whether the cheaper workers had finished.
For comparison, a measured Luna Max session on the same account processed 9.54M input tokens over 127 minutes while increasing the 5h usage by only 8 percentage points.
UPDATE - WORKAROUND FOUND
I found a working workaround for the 30-second parent polling loop.
Add this to ~/.codex/config.toml:
[features.multi_agent_v2]
enabled = true
min_wait_timeout_ms = 1500000
default_wait_timeout_ms = 1500000
max_wait_timeout_ms = 1500000
1500000 = 25 minutes. I verified it in rollout telemetry: the repeated 30-second timeout loop disappeared, and the parent stayed asleep until worker activity occurred.
ORIGINAL TELEMETRY / INVESTIGATION
Those 47 timeout-only polls consumed:
input tokens: 7,130,181
cached input tokens: 7,114,112
output tokens: 3,168
reasoning output tokens: 1,331
That's about 151.7k input tokens per empty poll.
The entire Astra parent turn used:
input tokens: 10,463,897
cached input tokens: 10,406,016
output tokens: 8,948
reasoning output tokens: 3,266
So about 68% of the Astra parent's raw input volume came from timeout-only polling.
47 × 30 seconds also means 23m30s out of the ~33-minute run were spent inside these timeout waits.
And the session guidance itself explicitly said:
When calling wait_agent, prefer longer waits (minutes) to avoid busy polling.
Yet Astra repeatedly used 30-second waits anyway.
The workers were actually working
This wasn't a case where the subagents were dead.
The first Luna worker was interrupted twice by the parent. After the second interruption, the parent discovered that the worker had already produced:
2 files changed
127 insertions
6 deletions
A replacement Luna worker then continued the task.
Combined, the two Luna X-High workers processed:
input tokens: 19,514,162
cached input tokens: 18,811,392
output tokens: 71,914
reasoning output tokens: 24,182
I also measured a Luna Max control
I wanted to know whether the workers themselves could reasonably explain the huge 5h drop.
So I checked a real Luna Max session from the same Plus account earlier the same day.
Over a continuous 127-minute interval, all 12/12 turn contexts were gpt-5.6-luna / max.
That session processed:
input tokens: 9,538,330
cached input tokens: 8,998,400
output tokens: 86,771
reasoning output tokens: 55,170
During those 127 minutes, server-reported usage changed only:
5h: 2% → 10% (+8 percentage points)
weekly: 89% → 90% (+1 percentage point)
So this wasn't an idle comparison: Luna Max processed about 9.54M input tokens of real work.
The two Luna X-High workers in the Astra run processed about 2.05× that raw input volume.
Even if I deliberately give the workers a generous estimate and scale the measured Luna Max usage linearly by raw input:
8 × (19.514M / 9.538M) ≈ 16.4 percentage points
that still only explains roughly 16 of the observed +47 percentage points.
The remaining workload in that orchestration tree was the Astra parent — which processed 10.46M input tokens, including 7.13M input tokens spent purely on 47 timeout polls that returned no new worker state.
Why I think this matters
Astra is obviously supposed to consume more allowance than Luna. That's not the surprising part.
The surprising part is that an expensive parent model can apparently be re-entered over and over with ~150k of context just to perform a 30-second status poll.
A long-running worker should not require the parent model to repeatedly infer:
"still running → wait another 30 seconds"
Ideally the runtime should keep the parent suspended and wake it when:
- the worker completes,
- the worker errors or needs intervention,
- the user sends input,
- or a genuinely long timeout expires.
I submitted /feedback from the affected Codex session with diagnostics attached and posted the full telemetry breakdown on the Codex GitHub:
https://github.com/openai/codex/issues/35259#issuecomment-5577073962
I'm curious whether anyone else using Astra as an orchestrator can inspect their rollout and see the same pattern: lots of short wait_agent timeouts followed by full-context parent re-entry.
26
u/tagorrr Sep 08 '26
I'm now working on a mitigation for this on my own setup.
The first change I'm going to test is forcing the orchestrator's
wait_agentinterval to roughly 25 minutes, instead of the observed 30-second polling loop. The idea is to keep the wait comfortably below the ~30-minute prompt-cache TTL while eliminating almost all of the unnecessary parent-model wakeups.I'm also going to tighten my
AGENTS.mdorchestration rules so that, while a worker is still healthy and running, the parent should:The intended behavior is basically:
worker still running → keep waitingrather than:
worker still running → wake Astra → reload ~150k context → inspect things → poll again20
u/tagorrr Sep 08 '26 edited Sep 08 '26 •
GOOD NEWS: I found a workaround for the 30-second polling bug.
To stop the parent orchestrator from waking up every 30 seconds, you have to set this in
~/.codex/config.toml:1500000 = 25 minutes
You need to set both
min_wait_timeout_msanddefault_wait_timeout_ms. This prevents the model from falling back to 30-second waits.I tested it in a real Astra + Luna orchestration run and checked the rollout afterward. The old 30-second polling loop was gone. Astra stayed asleep for long stretches while the workers were running and woke up when they returned.
I chose 25 minutes because it should stay safely inside the ~30-minute prompt-cache window while removing almost all of the pointless polling.
55
u/ibbobud Sep 08 '26
I thought I was tripping today when I made it use Luna subagents to save tokens and watching it eat tokens like mad every time it gave me an update…. Your not alone
6
u/tsdexter Sep 08 '26
One thing you aren’t considering, the potential downside of having Astra wait until Luna respires back is that if Astra main agent waits 10 mins for Luna to finish, its cached tokens may become expired and the entire convo plus the luna response then becomes uncached input on the next turn… which is also expensive. The timeout checks potentially keep the tokens cached longer. It may have used 7.13M tokens for timeouts but 7.11M of them were cached… it’s a fine line to balance, I suppose.
19
u/Just_Lurking2026 Sep 08 '26
can we get a tl;dr?
3
u/DrCopAthleteatLaw Sep 08 '26
Great post, thank you for this, I keenly await how you solve it
3
u/SurelyNotAnOctopus Sep 08 '26
That is more of an issue with codex than the model itself. On opencode, I dont have this issue
And yes, I know this is r/codex, not r/gptmodels, but I thought i'd add this little bit of context
2
u/bruticuslee Sep 08 '26
I used Astra to write an implementation plan for Luna, and started a new Luna chat to execute. Then come back to the Astra chat and ask it to review.
2
u/Timely_Ad5150 Sep 08 '26
I noticed this exact same thing yesterday. Every 10-30 seconds of "agent is doing this, agent is still working, I'm waiting for agent to finish, Agent is still working...". I just told that no need to give status updates. That didn't help. Updates were shorter but kept coming. It was strange.
2
u/runfence Sep 08 '26
That's because it has system instruction to not do long waits. It thinks user input is blocked by that wait which is not true. I modified it long before astra so it doesn't wake up so often.
2
u/iTaher Sep 08 '26
Did anybody have their weekly limit reset by openai today? I finished my weekly limit yesterday on astra, and it told me it will reset on sep 12. Woke up today and it is 100% again.
2
u/PaperDry2796 Sep 08 '26 edited Sep 08 '26
im going through 10% of x20 plan in 2 hours. Astra medium. and i use multiple agents for separate tasks, havent got time arsing around debugging this shit
from my checks we are using wait_agent and dont poll for anything, so this doesnt make much sense to me that we would be polling anything
2
u/tonyboi76 Sep 08 '26
Plus plan, one Astra Low parent with two Luna X-High workers. About 33 minutes, 5h bar 53% to 100%, weekly 9% to 16%, build not finished. Most of the Astra parent tokens were those 47 timeout-only wait_agent polls.
After the window died mid-implementation, what did you still need shipped, and how long did the cleanup or restart take?
2
u/Right-Performance-93 Sep 08 '26
This maps to a general agentic-harness design tradeoff, not just an Astra quirk: whether an orchestrator's status check has to re-enter the full parent context each time, or whether the runtime can suspend/block without spending tokens until an actual state change happens. Your 151.7k-tokens-per-empty-poll number is a clean illustration of the pull/polling failure mode. A push-based design - woken only on completion/error/timeout rather than a fixed short interval - avoids this cost class entirely. Your min_wait_timeout_ms fix is effectively hand-rolling a longer poll interval since the harness doesn't expose an event-driven wait natively.
2
u/wanjuggler Sep 08 '26
I noticed that the OP's suggested overrides are for multi-agent v2, which is a feature flag. I haven't explicitly opted in, but mine is still choosing to use agents v1.
Are most people on multi-agent v2?
2
u/monishfj Sep 09 '26
I don't have any programming experience but i'll use codex to build things like trial and error. How do i do this what OP is saying? I'm using Astra light
60
u/Rili-Anne Sep 08 '26
Codex has a pretty severe problem there, yeah, workers AND SCRIPTS can't just be waited on, instead the model has to keep checking in. This is a thing Claude Code does and Codex blatantly should do
131
u/Awric Sep 08 '26
These comments flaming the post are a lil ridiculous. This is a good finding
1
u/tagorrr Sep 09 '26
UPDATE 2
After fixing the 30-second polling loop, I ran into the next bottleneck: Codex lets the parent context grow very quickly from tool output, then keeps carrying that huge context into every following model call. With Astra this gets expensive fast. Once the parent was sitting at around 150-190k tokens, every orchestration turn was processing that massive context again, and the usage limit disappeared very quickly.
For now, the practical workaround is to keep the orchestrator thin: let cheaper workers do the heavy evidence gathering (code, logs, diffs, rollouts, forensics etc.) and have the expensive parent mostly reason over short reports and make decisions. The rule also needs to be broad. I first told the parent not to inspect the codebase itself, so it just started digging through old Codex rollouts instead. Sol xhigh makes this cheaper, but if you let the parent context get huge, it’s still going to burn a lot of usage.
1
u/tagorrr Sep 09 '26
UPDATE 3
After several more multi-agent runs and digging through the rollouts, two things are now pretty clear:
fork_turns="none". In my runs, fresh workers then started with roughly ~20k of their own context instead of inheriting the parent history. This matters a lot if you're trying to keep the orchestrator thin.fork_turns="none"were able to grow themselves from ~20k to 230–245k tokens during forensic work and hit compaction. The upside is that all of that raw evidence stays in the cheap worker context instead of bloating the expensive parent.One other thing I'm watching: reusing an already bloated worker can get expensive very quickly. For a new substantive task, a fresh
fork_turns="none"worker with a compact handoff may be cheaper than waking up one that's already carrying 100k+ tokens of history.For scale, I've now reviewed 24 multi-agent rollout files across 4 parent sessions and 19
spawn_agentcalls. That telemetry adds up to ~263.5M input tokens, with ~252.8M cached (~96%), across 2,142 model responses and 1,854 model-facingexeccalls.4
u/Chemical_Hawk_6307 Sep 08 '26
this is one of the things that suck about codex in comparison to claude code
4
u/andreagrandi Sep 08 '26
It’s definitely a problem with the model not just the harnesses because I’ve used a similar setup with OhMyPi using astra low as orchestrator, luna xhigh to implement etc… at the end of the session I had burned ~5% of my weekly usage just for a 700-800 line changed PR and 90% of the cost was from the orchestration. I had to move back to Sol medium (but it’s definitely slower and dumber than astra low)
7
u/paragonmac Sep 08 '26
Nice write-up. This is big
1
u/norwegian Sep 08 '26
The smartest is not always the best manager
1
u/WittyWires Sep 12 '26
You shouldn’t need Astra to spend any inference at all on that job - zero codex used.
Ask Astra to set up a non-inference worker to poll the Luna worker every x minutes and ONLY wake Astra when Luna has been idle for 60seconds+
No inference/codex used until required.
1
u/djeons Sep 12 '26
Did the latest fix from OpenAI fix this issue?
3
u/Southern-Aardvark616 Sep 08 '26
yeah i've noticed this too, i switched to pi for tasks that require 'efficient sleeping' like checking on agents or monitoring applications.
even if you instruct codex to check efficiently or to check less often, it will agree to it but continue checking every 30s
3
u/ghost396 Sep 08 '26
This is insane, and I really don't need those constant messages of still waiting...just wait like competitors do.
Good find 😕
7
u/Even_Sea_8005 Sep 08 '26
Good analysis. According to Tibo they archived AGI in software dev internally. If this is the bug then their AGI is based on unlimited token and budget so they totally overlooked user economics
2
u/beautyorchaos Sep 08 '26
Seems like a great efficiency saving they could implement if not already part of what Tibo had in mind with the 3-4x optimisation
2
u/poopoutmybuttk Sep 08 '26
https://github.com/openai/codex/issues/2062
2
u/garristerr Sep 08 '26
Hi, I edited my AGENTS.MD, and have significantly decreased my token consumption due to your suggestions - thx; hopefully they patch this issue, and also give us a free reset along with it.
Personally, I really do feel like Astra is a bit dumb now if you don't give it scope. It tends to spin its wheels, and expand the scope of the exercise without my permission. I have to constantly monitor it to make sure it doesn't go off track, even with a carefully crafted spec doc. I dont know what happened to the Steps planner - that was very helpful.
2
u/Sporebattyl Sep 08 '26
Same thing happened to me when it was waiting for my CI when I had it trying to hill climb. Destroyed my usage.
2
u/Luger99 Sep 08 '26
Glad you did the research. Also good to know that me just sending Astra to do everything is just as viable as the "token saving" orchestration tricks with multiple models...lol.
2
u/Facilero Sep 08 '26
Yep....this is why i burned my pro quota in under 2 hours. Nice find!
2
u/oddslol Sep 08 '26
Astra does the same thing waiting for CI status updates. It was pinging GitHub every 30 seconds asking for the status of every CI job until they all finish
Think I’m going to need to add instructions to stop that and if it doesn’t work then switch back to Sol
2
u/az226 Sep 08 '26
I burned many millions of active tokens and billions of cached tokens when 5.6 sol got into a death spiral doing something similar, it was like it had had 20 cups of double espresso and a jittery fucker. It burned through 4 banked resets. On 20x plan. And it had spent like 8 hours doing something fable did in 10 minutes. And it only did the task after I told it to just do it, still took an hour from then. I told it, we aren’t launching a rocket ship, we are launching a model training run on 100+ GPUs. Just do it.
Eventually it revealed why it did it, it had set up all these things polling itself. Each sub agent. Each task. Each action. Spawned a new one. And this infinite cycle. Basically psychosis.
2
u/Karma_1369 Sep 08 '26
thanks I will do that too , it ate up my weekly limits in just two to three prompts.
2
u/jmtucu Sep 08 '26
Thanks, I'm on plus and tried Astra yesterday for a non complex task, one prompt, and burnt 40% of my 5h window 😔
2
u/jeyvish Sep 08 '26
astra now is a burner of token. one simple task jus to try the new model and pop-up to add quota or wait til tomorrow in just 20 min session.
2
u/Competitive-Soil2445 Sep 08 '26
Codex & Astra - Quota is... fucking dumb!
It's a good model. It's a great model, in fact, and it's working very well while I have quota.
Today, in real-world examples where I use AI at work to do various different bits, I asked it to do two things in two different sessions, tackling two tickets that came in through the bug board.
I have already consumed my 5-hour limit - the sessions completed the task within 15 minutes each.
I'm pleased with the speed at which the jobs were done, even though the jobs themselves were not particularly challenging. Had I given the same jobs to Claude, I would have probably not even used 1% of my usage on Fable.
The quota usage between Fable 5.1 and Codex with Astra is, for a better word... stupid.
2
u/Bladder-Splatter Sep 08 '26
God I hope this helps, will only find out next reset though because Astra MEDIUM burned through its usage in 30 minutes, and left many blatant issues Sol High wouldn't have from my experiences, hell, Web Chat GPT on Sol wouldn't have.
2
u/gopietz Sep 08 '26
Thanks for sharing the finding, but honestly the tl;dr was the entire post.
2
u/Equivalent_Form_9717 Sep 08 '26
Yep I noticed this as well - pretty much this is an area Claude outshines Codex with their background tasks.
2
u/ChangingHats Sep 08 '26
I've been having this same issue since Sol came out. I had it develop an event-based "long-job" script which for a time worked, but for some stupid reason the agent just stopped using it and the issue crept back in. Polling should never have been implemented this way because it's eating tokens like a stupid beast. The counter-point to why they do this I imagine is that the agent should be able to continue working in the main thread on other tasks...and so it needs to poll to 'check in' on the other background tasks. It's just implemented poorly and we're all suffering for it.
2
u/ditmoetoo Sep 08 '26
That’s a trivial harness bug. Been like that for a long while.
2
u/KHHAANNN Sep 08 '26
I audited a recent task and the polling accounted for only 2% of the total sessions tokens, 6.8% of coordinators, and it was a translation task. But I do have a global rules against procrastination - to be honest I didn't notice agent checks, but every time I checked what Codex was doing at the time, it was always looking at Git, comparing Git, doing checks that had no contribution to the task at hand. I think my approach worked. So it's not a controlled experiment and I think at the highest level, the problem is the model/codex procrastinating too much
2
u/tHE_uKER Sep 09 '26
I have a similar problem with background processes.
I have a workflow with really long processes and all Codex agents will constantly poll them every few minutes only to say "I'm still waiting on the process" or "The process is still running, I'll wait until it finishes".
I added instructions telling it to set up async notifications instead of polling, but it won't do it.
Ended up having to implement an MCP with a single operation to wait on a PID.
2
u/Personal-Ferret-9389 Sep 09 '26
+1
1
u/slackmaster2k Sep 08 '26
I mean this begs the question: what do you have it doing for polling that’s burning that many tokens? Seems very odd!
1
u/PigSlam Sep 08 '26
After I learned of the reset coming today at 6:00pdt, I tried an experiment. I had 47% left on my 5x plan, so I did a code review on my ~60k line repo I’ve been working on lately. I set it to Astra Ultra on fast. In ~15 minutes, it gave me a very thorough review with several recommendations for improvement, and burned through 34% of my weekly usage limit.
1
u/Calm_Pass_4289 Sep 08 '26
It performs way faster though and does MCP integrations like lightning compared to previous models
1
u/Fidbit Sep 08 '26
I use xhigh sol to orchestrate and boss around astra max get the design worked out. That way its not the expensive Astra waking up every thirty minutes
1
u/Confident_Parking754 Sep 08 '26
"Unusually" yeah right gpt
1
u/SweatyInstruction337 Sep 08 '26
Yo im gonna be honest ,
"
33 minutes ? What the fuck are you talking about? My tokens were gone IN 120 SECONDS, ALMOST INSTANTLY. Lmao. 5 simple fuckin questions and it was gone.
1
u/Shacrow Sep 08 '26
I planned out a big task and asked it to give me prompts for sub tasks with a main coordinator.
It created 11 task prompts in 4 waves.
In wave 1 I ran 3 tasks in parallel in different worktrees. The coordinator didn't wait. Once the other task needs something or is done, it will automatically send the coordinator it's status or what it needs.
That worked quite well. And my job was to review and make decisions in between.
Not sure if this is something new in codex but it worked quite well. Burned 38% weekly usage of 20x Plan within a day still but it was a really big task. Still missing wave 4 though
1
u/Emergency-Elk7527 Sep 08 '26 edited Sep 08 '26
To me this is obvious. I use a plus plan and it is amazing the quality and quantity I have been able to produce. You don't need Astra to do the implementation. You don't need Astra to even be the orchestrator. Nor Sol. Luna is a champion. Don't leave reasoning to Luna. Hell, don't leave most of the reasoning to any AI. I don't mean technical reasoning. I mean The high level reasoning. The orchestration, the constraints, those are yours to handle. Use the high intelligence of sol and Astra to actually solve problems that become blockers. Like I said about Luna, it's a GD champion. If you can define you requirements and constraints to the point there is not ambiguity to the expected outcome, Luna will produce that. Using Astra or Sol to make those defining choices exactly how you waste your tokens and remove yourself from the project itself. That's also how what everybody calls slop gets made. It took and emense amount of work, but yesterday I used my last quota for the week 8 hours before reset. I was still able to produce work. It was prep work. It was not work that produced code. But it was work that was able to direct Luna at reset time. As of now, I still haven't hit a five hour limit since the reset because of the efficiency of Luna. The current state of my project is research and capturing evidence. Massive amounts of data. I take part in the reasoning with Sol, very hands on. Design the work for Luna. Part that design is for Luna to automate the capture of the evidence. Luna implements, automates, and sits idle while compute does the work. Luna also summons other Luna sub agents. The automate th next phase of research. And my project is cutting edge. I am not making a game, not making a mobile app or a website or wasting usage researching my usage so I can complain about it. It's truly frontier level, bleeding edge work and research. Using Astra and Sol and Fable the way I see everywhere is how you make slop that is owned by the model. Instead you should direct you agents moves. Define their work for them. Don't let them design it for you.
1
u/Valendrew Sep 08 '26
-3
u/Painwheeel Sep 08 '26
ai wall of text
-5
u/AbyssLife123 Sep 08 '26
bla bla bla bla bla bla...
STOP USING AI to write simple shits.
-1
u/quarrelau Sep 08 '26 edited Sep 08 '26
Watch the rollout in realtime:
https://github.com/quarrel/agentop
But also, instruct your orchestrator to wait. Then you also need to get it around its guidance to update you every 60 seconds, which it cannot do with long waits.
You need guidance that is at the same level as its instructions to update you and more recent than that instruction, which means you need to give it a developer instruction, not just a command in your orchestration document.
So, in your repo, add this to the project:
In REPO/.codex/config.toml:
Then in your instructions that start the orchestrator, write
or however you normally start it.
This was also why long orchestration sessions burned lots of extra tokens with GPT-5.6. My agent roles that the orchestrator spawns all have instructions about this for their different scenarios, and also a long-term passive monitoring role, a luna-medium, that is used to just be cheap the one that is checking when there is some long running item that we're keep an eye on its diskspace or memory usage or similar.
3
u/Neat-Tea-2480 Sep 08 '26
True!
For orchestration, ask parent to hand off the execution to a separate thread, instead of spawning subagent.
2
u/[deleted] Sep 08 '26
[removed] — view removed comment
2
u/[deleted] Sep 08 '26
[removed] — view removed comment