The problem with remembering everything

The early vision of an AI agent was deceptively simple: keep adding each message, tool result and internal decision to a single prompt, then ask the model what to do next. Bigger context windows appeared to promise an easy path to longer tasks.

ARC-AGI-3 score by harness design%010203040Standard harness13.3Reasoning + compaction38.3Chart: SPAISEE · Data: openai.com
ARC-AGI-3 score by harness design · Chart: SPAISEE · Data: openai.com

But an agent that remembers everything can become less useful, not more. A debugging agent might accumulate logs, source files, failed hypotheses, tool descriptions and duplicated observations until the critical clue is one paragraph in a warehouse of text. A research agent can carry outdated leads forward long after it should have abandoned them. The cost rises too, because every turn reprocesses material that may no longer matter.

Anthropic argued in its context engineering guidance that the practical challenge is to curate the full information state available at each model turn, rather than merely write a better initial prompt. Its central idea is useful beyond any one model: context is a finite working resource, not a free archive.

“We added cache breakpoints and workspace-specific keys to a shared 29,000-token prompt and cut uncached input by 28%. The 30-minute cache window was a big unlock too: our agents could reuse the same context across runs instead of starting from scratch.”

- Lorenzo Gentile, AI Engineer, Ploy, OpenAI

That changes the design question. Instead of asking, “How do I preserve the whole conversation?”, teams should ask four narrower questions: What must the agent know right now? What should be saved for later? What can software process without model judgment? And what should be discarded because keeping it would create noise?

DECISIONS AND USEFUL RECORDSFILES AND PROCESSED RESULTSINFORMATION RETAINED FOR NOWSUMMARIES OR EXTERNALIZED RECORDSARCHIVED OR EXTERNALIZED MATERIALOBJECTIVE AND CONSTRAINTSDECISIONS AND USEFULFILES AND PROCESSEDRECORDS WORTH SAVINGINFORMATION RETAINEDSUMMARIES OR EXTERNALIZEDUSER GOALObjectiveandconstraintsCURRENTCONTEXTWhat theagent needsfor thisMODEL TURNReasoningand nextactionTOOL CALLSSoftwareactions andretrievedWORKSPACEAND FILESProjectartifactsand externalRETAIN,SUMMARIZE,EXTERNALIZEDecide whatremainsavailableSTRUCTUREDNOTES ANDDURABLEPersistentsessionstate, savedEach turn selects memory instead of carrying the whole conversation
Figure 1 - How an agent selects, uses and stores context across turns

Memory becomes a pipeline

A durable agent should treat each turn as a selection process. Its current context might contain the user’s objective, constraints, the active plan, recent evidence, a compact record of decisions, and only the tools relevant to the immediate step. Its wider memory lives elsewhere: files, databases, search indexes, durable session records and task-specific notes.

OpenAI said in its September 10 announcement that its Agents API brings the Codex harness to developers, including automatic context compaction, tool search, programmatic tool calling, durable sessions and parallel subagents. The significance is architectural. The model is no longer expected to carry an entire project unaided from one inference call to the next.

Compaction is the most visible part of this pipeline. As a session nears its context limit, the system condenses earlier material into a smaller representation intended to preserve the facts, decisions and unresolved work needed to continue. This is not the same as a casual summary. A good compacted record separates confirmed facts from assumptions, records decisions and their rationale, names open questions, preserves identifiers for important files or records, and marks what evidence should be revisited.

That makes compaction closer to a handover note between shifts than a shorter meeting transcript. The next model turn needs enough information to act correctly, but not every sentence that led there.

ALL PRIOR MESSAGES, LOGS AND TOOL OUTPUTSCONFIRMED FACTS, DECISIONS, RATIONALE AND OPEN WORKCOMPACT TASK STATE AND SELECTED EVIDENCEUNCERTAINTY OR MISSING EVIDENCESOURCE LINKS AND ORIGINAL RECORDSALL PRIOR MESSAGES, LOGSCONFIRMED FACTSLARGE ACTIVE CONTEXTCOMPACT TASK STATEUNCERTAINTY OR MISSINGSOURCE LINKS AND ORIGINALCONTEXTNEARINGLIMITEarlierwork mustbeFULLHISTORYREPLAYGrowingstack ofmessagesCURATEDSTATERecentmessages,compactNEXTMODELTURNActs onfacts,decisionsRECOVERYRETRIEVALExplicitpath backtoCompaction preserves a handover record, not every sentence that led there
Figure 2 - how an agent replaces full-history replay with curated state and a retrieval-based recovery path

The risk is that a summary can hide the very fact that becomes important later. A harness therefore needs recovery paths. It should retain links or references to source material, make important claims traceable to evidence, and allow the agent to retrieve the original record when uncertainty rises. Compaction without retrieval is amnesia with cleaner formatting.

Decide who does the remembering

Not every transformation belongs inside the model. The model is valuable when the task requires judgment: interpreting ambiguous evidence, choosing a strategy, writing an explanation or reconciling competing findings. It is a costly and error-prone calculator, filter and database clerk.

OpenAI reported in its builder’s guide that programmatic tool calling can move filtering, aggregation and orchestration outside the context window, leaving the model to focus on judgment. The guide also describes persisted reasoning, native compaction and multi-agent orchestration as complementary controls for longer tasks.

Consider an agent reviewing 100 filings. Ordinary software should fetch them, extract dates, deduplicate entities, calculate totals and store normalized records. The model can then receive a compact table of the relevant transactions, perhaps with links to source excerpts, and decide whether a pattern is meaningful. This reduces inference cost, but more importantly it reduces the chance that the model mistakes raw volume for evidence.

COMPACT RESULTS PLUS SOURCE REFERENCESPROGRAMMATIC TOOL CALLCOMPACT RESULTS PLUSMODELJUDGMENTchoosesearchinterpretDETERMINISTICSOFTWAREfetchrecordsfilterThe context window is the boundary between judgment and execution
Figure 3 - How an agent separates interpretive decisions from reliable data processing

This division also clarifies cache boundaries. Prompt caches work best when the stable prefix of a request stays stable: core instructions, a durable tool contract and reusable policy guidance. Put constantly changing logs or search results after that boundary. If volatile material is inserted near the beginning, it can break cache reuse and force repeated processing of otherwise identical context. Cache design is therefore part of memory design, not merely a billing optimization.

Parallel work needs a reunion plan

Subagents offer a second alternative to stuffing more material into one context. A lead agent can delegate independent work, such as reviewing deployment changes, checking error logs and examining a dependency outage. Each specialist receives a focused brief and returns a bounded result.

This can improve speed because work proceeds in parallel. It can also improve quality because each subagent operates with a cleaner context. But delegation creates a new failure mode: the parent receives several plausible reports that conflict, overlap or rest on different assumptions.

The answer is reconciliation. Each subagent should return a structured package: its question, conclusion, evidence references, confidence, unresolved issues and recommended next action. The lead agent should compare claims, identify disagreement and seek more evidence where it matters. It should not simply concatenate reports and call that synthesis.

STRUCTURED DEPENDENCY REPORTCODE QUESTIONLOG QUESTIONDEPENDENCY QUESTIONSTRUCTURED LOG REPORTSTRUCTURED DEPENDENCYRECONCILED DECISIONLEAD AGENTdelegatesquestionsand comparesCODEINVESTIGATORclaim •evidencelinks •LOGINVESTIGATORclaim •evidencelinks •DEPENDENCYINVESTIGATORclaim •evidencelinks •RECONCILIATIONSTEPcompareclaims,assumptionsRESOLUTIONPATHSverifiedconclusion •request more
Figure 4 - How parallel investigations become a reconciled decision rather than a concatenated report

Measure useful memory, not token volume

The temptation is to judge memory by how much of it an agent can retain. That is the wrong scorecard. A strong harness should be evaluated on completion rate, correctness, recovery after interruption, cost per completed task, latency and the rate at which it retrieves the evidence needed to reverse a mistaken assumption.

OpenAI’s guide provides one illustration of why harness choices can matter. It reported that, on ARC-AGI-3, a standard harness scored 13.3%, while retained reasoning and compaction raised the score to 38.3%, using roughly six times fewer output tokens. Those are vendor reported results, not a universal law, but they capture the broader lesson: better state management can outperform simply adding more text to a prompt.

The long-horizon agent, then, looks less like an endlessly expanding chat and more like a well-run organization. It has a current brief, a record of decisions, an archive it can search, specialists it can call and software that handles routine operations reliably. Its memory is not what happens to fit inside the context window. Its memory is the system that decides what the context window deserves to see.

#Anthropic#OpenAI#Agents API#Codex#GPT-5.6#ARC-AGI-3

Daniel Reyes is not a person. No notebook, no deadlines, no face behind the name — just a byline this newsroom publishes under. Here is the production line underneath it, because a name beside a portrait reads like a journalist, and this one is not one.

The models. Writing: gpt-5.6-luna and qwen3-max. Out on the live web: gpt-5.6-luna and gpt-5.6-terra. Pictures: gpt-image-1 and gpt-image-1-mini. Swap one in the newsroom and this line swaps with it — it is read off the machines, not typed here.

How a story is made

  • Research. The searching model reads around the story, pointed at primary sources — the filing, the post, the repository — rather than at somebody else's write-up of them.
  • Writing. The writing model drafts it against what was found, at Daniel Reyes's usual length and in Daniel Reyes's usual register.
  • The loop. A reviewer reads the draft and sends it back with notes. Then reads it again. A piece can go round several times before it leaves the building.
  • Enrichment. A quotation has to appear word for word on the page it is taken from. A chart may only use figures that appear in the source it cites. Whatever fails is dropped, and the reason is kept.
  • Fact check. A last pass hunts for claims the article makes and its sources do not.
  • A human stop. Sensitive subjects are held for a person to read before publication, and a person can kill any of it at any point.

If that sounds less like a newsroom and more like a factory: quite. It is called Press Factory.

This article was generated using AI and published automatically without human pre-publication review.

How this article was made

The article was produced by the Grandmonts Media News Engine using automated research, drafting and verification workflows. No human editor reviewed the article before publication. Grandmonts Media remains responsible for the published content. Errors can be reported at office@grandmonts.cz.