Summary Notes Preserve Memory Accuracy, Cutting Per-Request Context to 0.7% of Full History
OpenRouter ran 48 recall questions using the same set of 12 development sessions, 3 models, and 4 memory approaches. Summary notes, retrieval, and their combination each answered 47 questions correctly, but the median prompt per request was only 639, 785, and 1163 tokens respectively, far below the 97,341 tokens of full history; stable facts can be handed to notes, precise old messages rely on retrieval, and cross-session counting requires a database.

- Summary notes compress stable information, retrieval recovers original details
- All three precise approaches have accuracy close to full history
- Summary notes use only about 0.66% of full history per request in context
- Event counting still needs to be handed to a queryable data source
End a coding session, close the chat window and open a new one, and the AI has often already forgotten that the repository uses pnpm, that you can't push directly to main, and it can't remember the address of the staging database. OpenRouter tested four memory approaches using the same set of 12 development sessions and found that summary notes, retrieval, and the combination of both each answered 47/48 questions correctly, sending only about 639 to 1163 tokens each time, while replaying all history requires 97,341.
Four memory approaches, only one gets more expensive as it grows
Full history is the easiest to connect, at the cost of prompts ballooning with history. Want to save tokens, want to trace original wording, want both—each has its own method, and each has its own bill.
Want convenience? Full history. The app appends new sessions after old messages, replaying all old messages on every request, with no extra summary or retrieval process to maintain between sessions. The longer the old conversation, the more content each prompt carries. It suits building a working prototype first, not as the default structure after long-term growth.
Want to save tokens? Summary notes. The organizing work happens after the session: the model rewrites a memory file of no more than 250 words after each session ends, and the file is fed into the prompt next time. Stable information such as project facts, preferences, and rules can be retained, but the original wording may have been rewritten.
Want to trace original wording? Retrieval. Old messages are converted into vector representations, that is, mapping text into numerical values that make it easy to compare similar content; when each question arrives, the system retrieves the 4 closest old messages. What is sent is the original message, so it can recover precise details that a summary might lose.
Want both? Notes plus retrieval. Both types of content are sent together: the rewritten notes file, and the old messages retrieved for the current question. Notes handle summarization, retrieved messages handle tracing original phrasing; each request must carry both types of content.
| Approach | What is sent per request | Implementation and maintenance | Main trade-off |
|---|---|---|---|
| Full history | All old messages | Append and replay, fewest steps | Prompt keeps growing with history |
| Summary notes | Memory file of no more than 250 words | Rewritten by the model after each session | Stable information is compact, original details may be compressed |
| Retrieval | The 4 closest old messages | Embed old messages and look up by question | Can recover original wording, but sent content varies by question |
| Notes plus retrieval | Notes file and retrieved messages | Maintain both summary and message retrieval | Balances summarization and tracing, but has the most input |
After old conversations are compressed into summaries, how many can still be answered correctly?
47/48 versus 46/48. The three compression approaches—summary notes, retrieval, and notes plus retrieval—answered only one fewer correctly than full history across 48 recall questions.
OpenRouter tested four memory approaches using the same set of 12 sessions, then posed 8 recall questions in a row in the 13th session. Summary notes, retrieval, and notes plus retrieval each answered 47/48 correctly, while full history answered 46/48. The test comes from the vendor, and the article contains no third-party retest results.
The three compression approaches answered correctly every run on stable preferences, two updates, the staging host, the release date, and the cause of the incident. The stable preference is that the repository always uses pnpm; the two updates involve a testing tool migration and a change in the user's city. Summary notes also retained the staging host, release date, and cause of the incident, missing neither a configuration detail that appeared only once nor the cause of an incident.
Retrieval and notes plus retrieval scored the same because the test questions could all be grounded in the retrieved old messages. The two did not open a gap in factual memory, but they bring back more original context; summary notes convey facts through the rewritten file. Context usage is calculated in the next section.
The no-memory approach has no cross-session retention capability and answered all 48 questions incorrectly. This set of results shows that compressed memory can sustain factual recall, provided the test questions can all be grounded in the saved content—once a question lands on a detail that was not recorded, the score may not be the same.

How much history does each request actually have to carry?
The most intuitive data for how much cross-session memory saves is the length of history carried per request. The 97,341 mentioned earlier is the median prompt for the full history approach.
What does this number mean? Every time the assistant opens a new session, it must bring the large accumulated conversation back into the current request; the longer the context, the heavier the content burden of each call.
Summary notes compress the prompt to 639 tokens (the unit by which models process text), only about 0.66% of full history, less than one percent. Most historical content is no longer replayed with each request. This is the most economical of the four approaches, and the one the source recommends starting with.
When original phrasing needs to be traced, the retrieval approach has a median prompt of 785 tokens; notes plus retrieval is 1163 tokens. Both are somewhat more than summary notes, but both remain around one percent of full history.

Why can't old messages count cross-session events accurately?
The weakest point of all four approaches is counting cross-session events.
The weakness of summary notes is that rewriting may compress multiple events into an overview, and where and how often events occurred can easily become vague. Retrieval can recover old messages close to the question, but does not guarantee retrieving all events of the same type; when the answer depends on "how many times did it happen in total," a few relevant records do not equal a complete basis for counting.
Rewriting events into structured JSON did not solve the problem either. A more regular format only makes individual records tidier; it cannot guarantee complete records or consistent counts, let alone automatically turn summaries into statistical results.
Events involving counts should be written into a database the agent can query, with the database performing the counting; summaries can retain facts like "a staging deployment failure once occurred," but are not suited to bearing the statistical responsibility of "exactly how many times it failed." This is a result from the vendor's test, with no third-party retest seen, and the boundary remains to be verified.
Summaries guard daily matters, retrieval fills in original wording, databases count occurrences
Cross-session memory does not have to be handled by a single approach. Summary notes guard the project's daily matters, retrieval brings back old chat details, and the database answers exactly how many times an event occurred.
The test instructions for summary notes were very specific: retain persistent facts, preferences, rules, credential-free configuration, and event counts worth tracking; replace old values when facts change, and keep notes within 250 words. Notes retain only information that will still affect actions next time, avoiding writing credentials such as tokens and passwords into the memory file.
Precise phrasing from old chats can be found later when the user follows up. The retrieval test retrieved the 4 closest messages for each question, involving 27 distinct messages in total; it provides original messages, not versions reinterpreted by a summary, so it suits verifying details like hostnames and dates that cannot be rewritten.
When retrieval results enter a production environment, they can only be treated as untrusted context data (external material that does not automatically gain instruction authority), and must not be placed at the same permission level as trusted system instructions. Otherwise, command-like text appearing in old chats may be mistaken by the model for a current requirement; summary notes handle stable context, retrieval provides evidence, and the two do not carry the same task.
Events that need accurate counting should be written into a database, letting the agent query records directly, rather than letting the model count them from summaries or old messages. The database stores structured events, and summary notes retain at most a count or state worth tracking; this avoids replaying old conversations and also avoids the model miscounting due to missing context items or wording changes.
When old chats contain both mutually contradictory facts and a large amount of temporary information, the test does not provide an answer to what rules the summary file uses to decide what to keep and what to delete.
Source: OpenRouter "Agent Memory: 4 Designs Tested Across 12 Sessions"; the test used 12 synthetic development sessions, 3 models, and 48 recall answers; tokens and latency will vary with tokenizer, deployment environment, and business data, and the difference between 46 and 47 points is not enough to prove a real accuracy advantage.
Glossary · Plain-language annotations appearing in this piece
The full text of in-depth pieces, research interpretations, and tool tutorials, plus all podcasts, are in the member area.