Developer Flags Codex CLI Polling Loop That Wasted 10M Tokens in One Overnight Build
A developer has filed a feature request with Codex CLI on 17 September 2026, highlighting a structural inefficiency in how parent agents monitor the completion of delegated sub-agents. Currently, the parent must repeatedly call a wait function with a fixed timeout to check if a worker has finished, with each check triggering a full model activation that re-reads the entire conversation history. Measurements from a single overnight build revealed 89 such polling waits consuming over 10 million tokens, accounting for 12.7% of the run's total cost despite delivering no new information 74% of the time. The request asks that a sub-agent's completion automatically wake an idle parent agent, eliminating the polling loop entirely — a mechanism the developer notes is already implemented in Claude Code. The author argues this is a harness gap rather than a model error, and that its cost scales directly with longer autonomous runs where a parent has fully delegated its workload.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in