Codex Appears Set to Replace Context Compaction with Handoff-Style External Memory
量子位 · wechat · 2026-09-01
A developer digging through the Codex CLI repo found a new context tool and related work: instead of repeatedly compacting old context, Codex would switch to a fresh window when near the limit—leaving "work notes" as a handoff, with full history retained and searchable afterward. In effect, the agent gets an external memory: active workbench + handoff notes + searchable archive.
The motivation is that compaction is lossy: after several rounds of summarization, details like "why plan B was rejected" vanish, causing the agent to repeat mistakes hours later. context lets the model sense remaining capacity—like a fuel gauge—deciding whether to keep exploring or wrap up and write the handoff. Official docs still list compaction as the mechanism, so this looks like a work in progress. Amp Code tried similar ideas earlier, and the community has manual equivalents (plan.md, handoff prompts)—a signal for anyone building agents to rethink memory architecture.
More from coding & agent
- Dev feedback: decoupling rex sessions from native windows is harder to adapt to than expected — alexisgallagher · 2026-12-05
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05