Ology

The Agent’s Second Mind

AI agent context management across conversations and workflows, including memory, retrieval, summarization, persistence, personalization, tool results, privacy, and reliability

5 sessions · 15 readings · 498 views

Curated by Martin Kessler

The Context Budget Is the Architecturesession 1Retrieval or Anticipation?session 2What Should Survive?session 3Crossing the Windowsession 4Trusting the Residuesession 5

Opening

AI agents are no longer confined to short exchanges. They browse, call APIs, inspect files, revise plans, delegate subtasks, wait for approvals, and resume work hours or weeks later. The central engineering problem is therefore no longer how to write a good prompt, but how to decide what an agent should be allowed to remember, retrieve, ignore, verify, and carry forward.

Recent systems increasingly separate durable state from the context shown to a model at any particular step. Anthropic describes this as context engineering; Google frames context as a compiled view over sessions, memories, artifacts, and tools; OpenAI’s internal systems treat repository structure, tool outputs, institutional knowledge, and user corrections as distinct sources of grounding.

But “memory” is not one thing. A conversation transcript, a task state machine, a retrieved document, a tool result, a filesystem, and a user preference have different lifecycles and different failure modes. Compressing them into one growing prompt may preserve tokens while destroying provenance, freshness, or control.

The deeper question is whether context management should be understood as retrieval, state management, software architecture, or a form of cognitive infrastructure. These sessions follow that question from the attention budget of a single model call to the reliability and security of memories that survive across tasks.

Five questions worth arguing about

  1. 1Is better agent context mainly a problem of expanding windows, or of making fewer tokens carry more meaning?
  2. 2Should agents discover context on demand, or should systems anticipate what they will need?
  3. 3What deserves to become durable memory rather than remaining a trace, artifact, or temporary task state?
  4. 4Can an agent remain coherent across sessions without turning summaries into an unreliable substitute for state?
  5. 5How can we evaluate whether an agent remembers usefully rather than merely remembering more?

The Sessions

1Session 1start here

The Context Budget Is the Architecture

The problem

A larger context window appears to promise a simple solution: keep more history, tool output, and reference material available to the model. But the readings challenge that intuition from different directions. Anthropic defines context engineering as the continual curation of the tokens available at inference time, while Google argues that context should be treated as a compiled, per-call view over richer underlying state.

Google’s earlier account of Gemini’s long-context work supplies an important counterpoint. Larger windows genuinely enable new behaviors, including reasoning over large codebases, long videos, and specialized reference material. Yet the later engineering perspective suggests that raw capacity does not eliminate relevance, cost, latency, or “lost in the middle” problems.

OpenAI’s Codex experience makes the issue concrete: repository knowledge became more useful when organized as a navigable map rather than a giant instruction manual. The tension is not between short and long context in the abstract, but between context as accumulated history and context as deliberately structured evidence. That distinction leads directly to the next question: who decides what enters the window?

2Session 2

Retrieval or Anticipation?

The problem

Once context is treated as scarce, tool design becomes context design. Anthropic argues that tools should return high-signal, task-shaped information rather than forcing an agent to wade through raw records. A good tool does not merely expose an API; it performs part of the search, filtering, aggregation, and representation work outside the model’s attention budget.

Google’s architecture approaches the same problem through explicit memory layers. It distinguishes reactive recall, where an agent notices a knowledge gap and searches, from proactive recall, where the system injects likely relevant memories before inference. OpenAI’s internal data agent combines both styles: offline enrichment and retrieval provide likely context, while live warehouse queries validate stale or missing information.

These approaches imply different theories of agency. Just-in-time retrieval preserves flexibility and reduces unnecessary context, but depends on the model recognizing what it does not know. Proactive retrieval improves recall, but risks irrelevant or misleading injections. The problem is not simply how to retrieve documents; it is how to decide when context should be supplied by the system and when the agent should earn it through investigation.

3Session 3

What Should Survive?

The problem

Persistent memory is often described as a vector store with better retrieval. The Hugging Face reading argues that this abstraction misses the hard part: deciding what is significant, resolving contradictions, tracking temporal validity, preserving provenance, and forgetting stale claims. In this view, memory is an active maintenance process rather than passive storage.

Meta’s “second brain” offers a more institutional version of the same idea. Its knowledge architecture separates what the agent knows from how it reasons, while expert feedback is converted into auditable, regression-tested updates. Memory is not merely personalized information; it becomes organizational infrastructure whose changes need review.

Google’s long-running workflow example complicates both accounts by distinguishing semantic memory from explicit workflow state. An onboarding agent should not infer whether paperwork was signed from a conversation summary when a durable state machine can represent that fact directly. The resulting design question is sharply practical: should memory be a record of experience, a curated knowledge base, or a formal state representation?

4Session 4

Crossing the Window

The problem

Even a carefully curated context eventually runs out. Compaction is the obvious answer: summarize the past, start a new window, and continue. OpenAI presents compaction as a native mechanism for preserving high-value state across long tool-driven tasks, while Anthropic’s experience shows why summarization alone is insufficient. A summary may preserve facts without preserving unfinished work, next actions, artifacts, or the discipline required to continue.

Anthropic’s long-running harness therefore treats continuity as a handoff problem. An initializer establishes the environment; later agents make incremental progress and leave explicit artifacts for whoever comes next. OpenAI’s stateful runtime pushes the boundary further by making memory, workflow state, tool results, environment, and permissions part of a durable execution layer rather than merely serialized conversation.

These designs disagree less about whether persistence matters than about where it should live. A summary inside the prompt is cheap and portable. A filesystem or structured runtime state is more inspectable and operationally reliable, but requires more infrastructure. The central challenge is preserving not only what happened, but what must happen next.

5Session 5finish here

Trusting the Residue

The problem

Context management creates a difficult evaluation problem. An agent may produce a plausible answer while using stale memory, taking an unsafe shortcut, or leaving the environment in the wrong state. Anthropic argues that agent evaluations must inspect not only final responses, but also transcripts, tool calls, intermediate behavior, and the resulting environment.

The security problem is equally contextual. Google’s indirect prompt-injection work shows how retrieved content can become an instruction channel, allowing an attacker to manipulate an agent into disclosing information from its conversation history. More retrieval and more persistence increase the surface area for these attacks.

The Hugging Face memory evaluation post adds a different failure mode: a memory system can retrieve the right passage and still be wrong because the passage was stale, contradictory, or incorrectly generalized when it was written. Reliability therefore requires more than retrieval metrics. It requires testing memory admission, temporal correctness, provenance, forgetting, security boundaries, and downstream task outcomes.

Interested in joining a reading club with top AI experts?

Small groups, great readings, real conversations. Learn faster and grow your network.

A friend that hands you reading lists, not search results.

© Ology 2026