Codex Agent Goes Out-of-Context on Long Repos
On 500k+ line repos Codex loses the thread halfway. Fix it by scoping the working set, pre-feeding directory summaries, and putting conventions in AGENTS.md so they survive compaction.
Articles tagged with #context-window
On 500k+ line repos Codex loses the thread halfway. Fix it by scoping the working set, pre-feeding directory summaries, and putting conventions in AGENTS.md so they survive compaction.
Codex halts halfway through a multi-step task with no error — usually context compaction, a sandbox/approval denial, or a premature stop signal. Diagnose by the last tool call, then resume with codex resume --last.