# How context and memory work together

A larger reading window helps some tasks; it does not decide what to retain or trust.

Author: Murali Sid (https://linkedin.com/in/muralisid)
Source: https://www.agenticarchitectureskills.com/memory/long-context-is-not-memory
Published: 2026-09-13
Updated: 2026-10-15
Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
Cite as: Murali Sid. How context and memory work together. Agentic Architecture Skills. https://www.agenticarchitectureskills.com/memory/long-context-is-not-memory

---


If a model can read a long history, why build a memory system? For a bounded case with a manageable set of documents, supplying the complete relevant material may be a good baseline. The difficulty begins when that history changes, contains restricted information, or must serve many different tasks.

<TeachingIllustration src="/images/memory/context-and-memory-v1.webp" title="Select what the model needs for this call" alt="Retained memory and thread state feed relevance, time, and access checks before entering a model call. Reviewed outputs may become new retained memory." caption="Context is the material available now. Retention, retrieval, and updates are separate system responsibilities." />

## What a larger window helps with [#what-a-larger-window-helps-with]

It can allow more relevant passages to be considered together and reduce some pressure to choose a narrow excerpt. This may help when relationships span a document or case. Test the complete relevant source set as a baseline wherever it fits the task and budget.

A stated input limit is not a guarantee that all details will be used correctly. [NoLiMa](https://arxiv.org/abs/2502.05167), 2025, tests long-context retrieval beyond literal matching and reports sensitivity to context length in its evaluated models. That result is specific to its tasks and models, not a permanent ceiling for every system. Reviewed 18 September 2026.

## What it does not manage for you [#what-it-does-not-manage-for-you]

A context window does not assign ownership or enforce source access. It does not remove stale summaries or resume a task after a tool failed. Those are application responsibilities even if every relevant token fits in a single request.

A saved transcript is not automatically all present in the next call. A checkpoint is not proof that an external action succeeded. Keep thread state and operation records explicit, then select the material the next decision requires.

## Combine reading and retrieval [#combine-reading-and-retrieval]

Use retrieval to locate a relevant case, then give the model enough surrounding context to reason about it. Where precise wording matters, include the source passage rather than only a generated summary. Where the question spans a case, retrieve the connected records rather than one isolated snippet.

[MemGPT](https://arxiv.org/abs/2310.08560), 2023, explores moving information between memory levels as context is needed. Reviewed 18 September 2026. Its design separates retained information from material in the active context. It is not a reason to use one framework everywhere.

## Compare the full cost [#compare-the-full-cost]

Count source preparation, retrieval, input and output processing, repeated calls, cache behavior, latency, and human review. A cached input can change pricing without fixing relevance or access. A cheap lookup can still be expensive if it misses evidence and creates rework.

Memory buys cost and speed. It does not buy free accuracy. Mem0's own paper shows the trade on LoCoMo, a public test of long conversations, using gpt-4o-mini. Its memory used about 15 times fewer tokens per query than the full conversation: 1,764 against 26,031. The slowest answers (95th percentile) took 1.4 seconds against 17.1 seconds. Accuracy was about 6 points lower: 66.88 against 72.90 for full context ([Mem0 paper, arXiv 2504.19413, 28 April 2025](https://arxiv.org/html/2504.19413)) \[vendor]. On the harder MemoryAgentBench, plain long context also beat three commercial memory agents overall. See [test memory against the work](/memory/what-the-benchmarks-measure). Sources read 14 October 2026.

Use current provider prices when doing an actual business comparison. There is no fixed price table here. The result depends on the selected models, request sizes, reuse pattern, and deployment. For how agents spend tokens on context, and how to meter that per resolved outcome, see [token efficiency](/memory/token-efficiency).

## Test against the question [#test-against-the-question]

Compare relevant full context, simple retrieval, and the proposed memory design on the same cases. Include a fact in the middle of a long history and a correction late in the record. Add a question with no answer and a case of revoked access. Score the answer and the accepted task outcome, not just whether a passage was present.

**Continue the story:** [Extend the design across large histories](/memory/the-ten-million-token-question).

<span id="ml-01" />

<span id="ml-intro" />

<span id="ml-standard" />

<span id="ml-pricing" />

<span id="ml-nolima" />

<span id="ml-four" />

<span id="ml-2026" />

<span id="ml-versus" />

<span id="ml-corpusqa" />

<span id="ml-cost" />

<span id="ml-cache" />

<span id="ml-recap" />
