Codex Swaps Your Spec for Its Own Assumptions in Long Sessions: First Warning at 34% Context
The longer a Codex session runs, the more often the agent forgets your original requirements and substitutes its own interpretation of the task. The author of the "LLM Under the Hood" channel checked his past sessions: the more history compactions, the more assumptions. So he built an indicator: the first dot lights up when 34% of the context is full, then one more dot for every compaction. When there are many dots, it is better to start a new session than to repair the old one.
AI-processed from TG: @llm_under_hood (LLM под капотом); edited by Hamidun News
Imagine you hand an employee a complex project with a clear spec. A week later, they quietly start working not from your document but from their own retelling of it, and they sincerely believe they are doing everything right. That is roughly what the author of the Telegram channel "LLM Under the Hood" saw in Codex, OpenAI's coding agent: in a long session, the agent began to prefer its own interpretation over the original requirements. For anyone building workflows around such agents, this is an important signal: quality depends not only on the prompt but also on the age of the session.
What happened with Codex
The author was used to top agents from frontier labs (Codex, Claude Code, Antigravity) following instructions with superhuman attention to detail. So he used to treat any failure as a context-loading mistake: the wrong information was supplied, or in the wrong order. This approach is called progressive disclosure: the agent receives data in portions, as needed, rather than all at once. On clean sessions, it worked.
But on one task, the scheme broke down. The session was complex: the agent was building, step by step, a map of a company's business processes from secondary documents, and priorities shifted along the way. At some point, Codex started forgetting the core principles set at the start. When they began investigating, Codex itself spotted the pattern: as the session filled up, it began to favor its own interpretation over the author's original requirements.
The author analyzed other past sessions as well, and the picture repeated. The more context accumulated and the more often it was compacted, the more the agent got tangled in its own assumptions.
Why compaction doesn't save you
Compaction is the automatic compression of the conversation history when the context window fills up. According to the author, in Codex it works "like magic", but it cannot get around the underlying causes of hallucinations. The author calls them the three triggers of hallucinations, but the post does not list which ones they are.
The logic is simple. During compaction, the agent itself retells the history, so the compressed version locks in its conclusions and hypotheses rather than the primary source. After several such rounds, your spec turns into "the spec as the agent understood it". Progressive disclosure is still useful here: it optimizes the agent's work in clean sessions and extends the period of productive work. But it cannot fully protect the context from induced interference.
An indicator instead of intuition
To avoid missing the moment when a session "ages", the author added a fill indicator to codex inbox, a small "vibe-coded" utility that makes working with Codex sessions more convenient. The rules are as follows:
- the first dot appears when 34% of the context is full;
- after that, one more dot is added for each compaction;
- if too many dots accumulate, the author resets the context and starts a new session.
The thresholds are not random: Codex calibrated them from an analysis of the author's past working sessions. So 34% is not a universal constant but the result of observations on one specific person's specific tasks. Your number may differ, and it is best determined from your own session history.
What to take away in practice
The idea works regardless of the tool. First, treat session length and the number of compactions as a separate quality metric, alongside the prompt and the toolset. Second, do not treat a "drifting" agent with endless instruction tweaks: if a session has accumulated several compactions, a clean start with a short digest of the key requirements taken from the primary source is usually cheaper. Third, a simple visual signal like dots turns the subjective "it seems to have drifted" into a noticeable warning.
Honest limitations: this is the personal experience of one developer, not a controlled experiment. The post contains no quantitative data on how much quality drops after each compaction. But as a working hygiene rule for long agent sessions, it looks reasonable and is easy to reproduce.
- Dec 1, 2026An OpenAI Model Found the Author of an 1808 Album in 20 Minutes. Writing Up the Findings Took Three Days.
- Dec 1, 2026Ashenbrenner's Fund Grew from $100 Million to $10 Billion by Betting on a GPU Shortage
- Nov 30, 2026Nemo Tool Hides Names and Tax IDs From ChatGPT, Then Restores Them in the Right Grammatical Case
- Nov 30, 2026Amazon Releases Quick Docs, Sheets and Slides: AI Agents Edit Files for $3 a Month
Key Questions Answered
What happened with Codex?
The author was used to top agents from frontier labs (Codex, Claude Code, Antigravity) following instructions with superhuman attention to detail. So he used to treat any failure as a context-loading mistake: the wrong information was supplied, or in the wrong order. This approach is called progressive disclosure: the agent receives data in portions, as needed, rather than all at once. On clean sessions, it worked. But on one task, the scheme broke down.
Why compaction doesn't save you?
Compaction is the automatic compression of the conversation history when the context window fills up. According to the author, in Codex it works "like magic", but it cannot get around the underlying causes of hallucinations. The author calls them the three triggers of hallucinations, but the post does not list which ones they are. The logic is simple. During compaction, the agent itself retells the history, so the compressed version locks in its conclusions and hypotheses rather than the primary source.
What are the key details on An indicator instead of intuition?
To avoid missing the moment when a session "ages", the author added a fill indicator to codex inbox, a small "vibe-coded" utility that makes working with Codex sessions more convenient. The rules are as follows: the first dot appears when 34% of the context is full; after that, one more dot is added for each compaction; if too many dots accumulate, the author resets the context and starts a new session. The thresholds are not random: Codex calibrated them from an analysis of the author's past working sessions.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
