When Your Agent Opens the Chat App: Agent-Controlled Search over Raw Chat Logs Rivals Structured Memory

arXiv cs.CL Papers

Summary

This paper introduces ReFind, an agent-controlled search interface that works over raw, unmodified chat logs using lexical indexing and iterative keyword search, showing it can rival structured memory systems like HippoRAG 2 on conversational-memory benchmarks without building any semantic structure.

arXiv:2608.12888v1 Announce Type: new Abstract: Agent-memory systems increasingly buy retrieval quality with structure, transforming raw conversation histories into summaries, embeddings, trees, or knowledge graphs before any question is asked. We ask how much of that benefit comes from the structure itself, rather than from competent retrieval over the raw history. We present ReFind, an agent-controlled search interface that builds no semantic structure at all: it leaves the conversation archive unmodified, indexes it lexically at turn granularity, and combines a generic iterative keyword-search loop with four chat-native controls grounded in empirical refinding work: session-aware rank fusion, local context expansion, temporal narrowing, and skipping already-inspected sessions. A separate reasoning stage answers from the collected evidence. Across a broad suite of conversational-memory tasks (single- and multi-hop QA, event ordering, and fact consolidation), roughly 2,800 questions on precise-retrieval and fact-tracking capabilities evaluated under the incremental multi-turn setting of MemoryAgentBench, ReFind attains the highest mean accuracy (58.2) of any system compared, above the strongest graph- and tree-based memory systems (HippoRAG 2, 53.2), all under a GPT-4o-mini backbone matched to every reused baseline. Controlled comparisons to single-shot BM25, a matched generic-agentic BM25 control, component removals, and agentic dense/hybrid variants separately support the roles of agent control, chat-native controls, and lexical retrieval. On LongMemEval-S/M, the same interface reaches 93.2 +/- 3.3 and 89.3 +/- 6.0 with GPT-5-mini. The results indicate that for precise, evidence-grounded questions over chat archives, much of the benefit credited to elaborate memory structures is recoverable by giving an agent controllable search over the unmodified record, with no LLM-based index construction at all.
Original Article
View Cached Full Text

Cached at: 08/14/26, 09:27 AM

# When Your Agent Opens the Chat App: Agent-Controlled Search over Raw Chat Logs Rivals Structured Memory
Source: [https://arxiv.org/html/2608.12888](https://arxiv.org/html/2608.12888)
1\]University of Science and Technology of China 2\]MetaStone Technology\\contribution\[\*\]Work done during an internship at MetaStone Technology\.\\contribution\[†\]Corresponding author\.

Licheng ZhangBenfeng XuMingxuan DuZheren FuWeidong ChenAffiliation:\[Affiliation:\[

July 27, 2026

###### Abstract

Agent\-memory systems increasingly buy retrieval quality with structure, transforming raw conversation histories into summaries, embeddings, trees, or knowledge graphs before any question is asked\. We ask how much of that benefit comes from the structure itself, rather than from competent retrieval over the raw history\. We presentReFind, an agent\-controlled search interface that builds no semantic structure at all: it leaves the conversation archive unmodified, indexes it lexically at turn granularity, and combines a generic iterative keyword\-search loop with four chat\-native controls grounded in empirical refinding work: session\-aware rank fusion, local context expansion, temporal narrowing, and skipping already\-inspected sessions\. A separate reasoning stage answers from the collected evidence\. Across a broad suite of conversational\-memory tasks \(single\- and multi\-hop QA, event ordering, and fact consolidation\), roughly 2,800 questions on precise\-retrieval and fact\-tracking capabilities evaluated under the incremental multi\-turn setting of MemoryAgentBench,ReFindattains the highest mean accuracy \(58\.2\) of any system compared, above the strongest graph\- and tree\-based memory systems \(HippoRAG 2, 53\.2\), all under a GPT\-4o\-mini backbone matched to every reused baseline\. Controlled comparisons to single\-shot BM25, a matched generic\-agentic BM25 control, component removals, and agentic dense/hybrid variants separately support the roles of agent control, chat\-native controls, and lexical retrieval\. On LongMemEval\-S/M, the same interface reaches93\.2±3\.393\.2\\pm 3\.3and89\.3±6\.089\.3\\pm 6\.0with GPT\-5\-mini\. The results indicate that for precise, evidence\-grounded questions over chat archives, much of the benefit credited to elaborate memory structures is recoverable by giving an agent controllable search over the unmodified record, with no LLM\-based index construction at all\.

## 1Introduction

Large language model \(LLM\) agents have become a core paradigm for AI applications, demonstrating strong capabilities in tool use, code generation, scientific problem solving, and dialogue simulation\([Yao et al\. 2022](https://arxiv.org/html/2608.12888#bib.bib40);[Shinn et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib29);[Wang et al\. 2023a](https://arxiv.org/html/2608.12888#bib.bib31);[Park et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib23)\)\. However, when agents operate over long\-term tasks and multi\-turn interactions, they face a fundamental bottleneck:memory\([Packer et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib21);[Zhang et al\. 2024b](https://arxiv.org/html/2608.12888#bib.bib42);[Yan et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib38)\)\. As interaction histories grow beyond the context window, the system must decide what information to keep, compress, retrieve, or discard\([Liu et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib18);[Hsieh et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib12);[Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\)\.

The dominant response has been to impose structure*ahead of time*\. Agent\-memory systems transform raw interaction histories into self\-written memos, recursive summaries, vector stores, trees, or knowledge graphs\([Lu et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib19);[Wang et al\. 2023b](https://arxiv.org/html/2608.12888#bib.bib32);[Chhikara et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib4);[Sarthi et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib28);[Edge et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib8);[Gutiérrez et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib10)\)\. Every such transformation is a bet placed before the question is known: it decides what to abstract and what to discard, and details omitted during preprocessing may be difficult to recover later\([Packer et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib21);[Gutiérrez et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib11);[Yang et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib39);[Yan et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib38)\)\. It also carries a real cost, since indices must be built offline and rebuilt or incrementally maintained as new messages arrive\.

This raises a question that the steady accumulation of increasingly elaborate memory architectures has left largely untested:how much of their reported benefit comes from the structure itself, rather than from having competent retrieval over the history at all?To probe it, we take the opposite extreme—build no semantic structure whatsoever—and ask how far that setting can be pushed\.

Our answer is grounded in empirical studies of personal\-information refinding\. Naturalistic observations show that people often reach known targets through small, context\-guided steps rather than one fully specified keyword query\([Teevan et al\. 2004](https://arxiv.org/html/2608.12888#bib.bib30)\)\. A direct instant\-messaging study finds that users combine keyword trials with scrolling and temporal or contextual landmarks\([Cheng and Aflatoony 2022](https://arxiv.org/html/2608.12888#bib.bib3)\); email studies likewise connect successful refinding to threading, local browsing, time and source cues, and search\-history state\([Whittaker et al\. 2011](https://arxiv.org/html/2608.12888#bib.bib34);[Elsweiler et al\. 2011](https://arxiv.org/html/2608.12888#bib.bib9);[Komlodi et al\. 2007](https://arxiv.org/html/2608.12888#bib.bib15)\)\. This suggests preserving the raw record and moving intelligence from a pre\-built semantic index into adaptive control over search\.

We operationalize this principle as two layers: a*generic agentic loop*that issues keyword queries, inspects results, saves evidence, and reformulates; and four*chat\-native controls*over where evidence lies in a conversational record—local context expansion, session\-aware rank fusion, temporal narrowing, and seen\-session filtering\. This is what the title names: the agent*opens the chat app*and tracks the answer down as a person would, rather than consulting a memory built for it in advance\. The refinding studies motivate these four design dimensions, and our controlled ablations test their functional contribution in an agent search system\.

The novelty lies in this system\-level composition and in establishing what it buys relative to both structured memory and generic agentic retrieval\. Across a broad suite of conversational\-memory benchmarks—single\- and multi\-hop QA, event ordering, and fact consolidation, some 2,800 questions evaluated under the incremental multi\-turn setting of MemoryAgentBench\([Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\)—it attains the highest mean accuracy of any system compared, above graph\-based \(GraphRAG, HippoRAG 2\) and tree\-based \(RAPTOR\) memory alike, all under a GPT\-4o\-mini backbone matched to every reused baseline\. On the LongMemEval\-S/M subsets\([Wu et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib35)\), the advantage is reproduced across five runs with a stronger GPT\-5\-mini controller\. The interface thereby replaces LLM\-based offline index construction with question\-directed online computation\.

Our contributions are: \(1\)ReFind, an agent\-controllable search interface for temporally ordered, session\-structured conversational memory, combining lexical retrieval with session\-aware reranking, context expansion, temporal filtering, and seen\-session deduplication, driven by a ReAct agent that collects evidence before a separate answer\-generation stage; \(2\) empirical evidence that on precise, evidence\-grounded conversational\-memory questions, much of the benefit credited to elaborate memory structures is recoverable without building any structure at all, and without any LLM\-based index construction, provided the agent controls the search; and \(3\) a delineation of the interface’s scope—effective for precise retrieval and factual\-update tracking, complementary to semantic and low\-latency memory mechanisms\.

## 2Related Work

##### Agent Memory Systems\.

Human memory research distinguishes internal memory from external artifacts used for cognitive offloading\([Clark and Chalmers 1998](https://arxiv.org/html/2608.12888#bib.bib5);[Risko and Gilbert 2016](https://arxiv.org/html/2608.12888#bib.bib26)\), and agent memory systems face a similar choice: compress into internal or semi\-structured memory, or preserve external records and retrieve from them\. Retrieval\-augmented generation\([Lewis et al\. 2020](https://arxiv.org/html/2608.12888#bib.bib16)\)retrieves external evidence at inference time; Mem0\([Chhikara et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib4)\)extracts structured entries and stores them as embeddings; A\-Mem\([Xu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib36)\)organizes memories as linked note cards; GraphRAG\([Edge et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib8)\), HippoRAG\([Gutiérrez et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib10);[Gutiérrez et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib11)\), and Zep\([Rasmussen et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib25)\)build graph or temporal structures for multi\-hop reasoning; RAPTOR\([Sarthi et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib28)\)builds hierarchical trees by recursive summarization\. Other systems vary the memory substrate: SeCom\([Pan et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib22)\)compresses dialogue into topical segments, MemoRAG\([Qian et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib24)\)trains a memory model to generate retrieval clues, and MIRIX\([Wang and Chen 2025](https://arxiv.org/html/2608.12888#bib.bib33)\)coordinates specialized memory agents\. These methods gain efficiency and abstraction by preprocessing conversations into compact representations, at the cost of an offline construction pass that must be repeated or incrementally maintained as the archive grows\. We study the complementary setting: preserving complete raw records and using search to recover precise details when compression may lose information\.

Table 1:Design axes of conversational\-memory systems\.No prep\.: no LLM\-based offline index construction before questions arrive\.Agentic: the model issues its own multi\-round queries\.Sess\.: session structure informs ranking\.Time: explicit temporal filtering as a retrieval control\.Dedup: redundancy across search rounds is suppressed\. No single axis is novel; the combination is what we study\.
##### Personal\-Information Refinding\.

User studies provide a behavioral rationale for these controls\. In a naturalistic diary and observation study, participants used keyword search in only 39% of searches, more often “orienteering” through small local steps whose context informed the next action\([Teevan et al\. 2004](https://arxiv.org/html/2608.12888#bib.bib30)\)\. A study of instant\-messaging use \(81 survey responses and 14 interviews\) reports keyword trials, scrolling, and time\-, visual\-, and context\-based landmarks when revisiting conversations\([Cheng and Aflatoony 2022](https://arxiv.org/html/2608.12888#bib.bib3)\)\. At larger scale, a field study of 345 email users and over 85,000 refinding actions found search and threading more effective than complex preparatory foldering, with scrolling the most prevalent behavior\([Whittaker et al\. 2011](https://arxiv.org/html/2608.12888#bib.bib34)\)\. Smaller studies further link email\-refinding difficulty to elapsed time and remembered temporal or source cues\([Elsweiler et al\. 2011](https://arxiv.org/html/2608.12888#bib.bib9)\), and show that search histories support progress tracking and task management\([Komlodi et al\. 2007](https://arxiv.org/html/2608.12888#bib.bib15)\)\. These findings motivate locality, hierarchy, chronology, and cross\-round state; our ablations test how each becomes useful when implemented as an agent\-facing retrieval control\.

##### Agentic Retrieval\.

Several agent systems give models control over retrieval: MemGPT\([Packer et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib21)\)pages information between context and external storage; Self\-RAG\([Asai et al\. 2023](https://arxiv.org/html/2608.12888#bib.bib1)\)learns adaptive retrieval decisions; A\-RAG\([Du et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib7)\)exposes keyword, semantic, and chunk\-reading tools for general document retrieval rather than conversational memory; GAM\([Yan et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib38)\)preserves raw messages in page\-stores and lets a Researcher Agent search over multiple rounds\.ReFind’s defining combination is a generic iterative loop plus controls specialized to conversational structure: local expansion around matched turns, temporal constraints, session\-level rank fusion, and explicit tracking of previously inspected sessions\. Table[1](https://arxiv.org/html/2608.12888#S2.T1)places these axes side by side\.

##### Memory Evaluation Benchmarks\.

LongMemEval\([Wu et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib35)\)evaluates long\-term memory through needle\-in\-a\-haystack tasks across five dimensions; MemoryAgentBench\([Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\)recasts long\-context datasets into incremental multi\-turn formats, from which we draw our precise\-retrieval and factual\-update benchmarks; LoCoMo\([Maharana et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib20)\)constructs ultra\-long 300–600 turn dialogues\. We build our evaluation suite from the first two\.

## 3Method

Our system combines generic iterative retrieval with controls tailored to text\-only, timestamped, session\-structured chat histories\. Given a user’s extensive conversation history and a question, it generates an answer through two decoupled stages:retrieval\(iterative evidence collection\) andreasoning\(answer generation from collected evidence\)\.

##### What “no structure” means\.

ReFinduses the organization already present in a chat archive—turn boundaries, session identifiers, timestamps, and raw text—but creates no learned or LLM\-generated memory representation\. The BM25 index is an access path over the original text, not a surrogate memory: adding a message appends its tokens and metadata without summarizing earlier content, extracting entities, linking a graph, or rewriting a memory card\. This distinction makes the comparison operational\. Structured systems decide how to represent a record before seeing the future question;ReFinddefers that decision until query time, when the agent knows what evidence it needs\.

### System Architecture

InStage 1 \(retrieval\), a ReAct\-style\([Yao et al\. 2022](https://arxiv.org/html/2608.12888#bib.bib40)\)agent loop lets the LLM autonomously decide search keywords and parameters, conducting multiple rounds of search over the history with the search engine described below \(Figure[1](https://arxiv.org/html/2608.12888#S3.F1)\) and saving valuable fragments as notes\. A round can exploit the previous observation: the agent may replace an unsuccessful phrase with a distinctive entity, narrow a date range after finding a temporal cue, or search for a second fact needed by a multi\-hop question\. InStage 2 \(reasoning\), the collected notes are grouped by session, sorted chronologically, and presented with the question for answer generation\. This separation prevents answer generation from competing with retrieval for context space: the search loop explores the archive, while the answer model receives a compact, evidence\-only view in the archive’s original wording\.

![Refer to caption](https://arxiv.org/html/2608.12888v1/method.png)Figure 1:Search engine core mechanisms\. \(a\) BM25 scoring with RRF two\-level reranking: turn\-level BM25 ranks \(shown asentries\) are fused with session\-level aggregate ranks via Reciprocal Rank Fusion—multiple hits within the same session boost that session’s entries\. \(b\) Context window expansion: the matched entry plus±\\pm2 neighboring turns are returned as a block, truncated at session boundaries\. \(c\) Temporal filtering and seen\-session deduplication: candidates outside the time range or from previously returned sessions are dropped, maximizing information gain per iteration\.
### Search Engine Design

Each component below operationalizes one chat\-history axis motivated by the refinding studies above; the system is not intended as a cognitive model\.

#### Data Representation and Scoring

Conversation histories exhibit a two\-level structure: the finest unit is aturn—a user utterance paired with its assistant response—and turns group intosessions, complete dialogue episodes carrying a unique identifier and timestamp\.

We build a BM25 inverted index\([Robertson and Zaragoza 2009](https://arxiv.org/html/2608.12888#bib.bib27)\)at turn granularity, tokenizing by lowercasing, whitespace and punctuation splitting, Porter stemming, and stopword removal, and score withk1=1\.2k\_\{1\}=1\.2,b=0\.75b=0\.75\. Indexing requires no model call and no summarization pass, so an archive is searchable as soon as it is written and new turns are appended incrementally\. We choose sparse retrieval partly for this reason and partly because lexical matches are interpretable: the agent observes which terms succeeded or failed, a stronger feedback signal for reformulation than a similarity score\.

#### RRF Two\-Level Reranking

BM25 performs exact matching at the turn level but ignores session\-level topic clustering signals: when multiple turns within the same session are matched, the session as a whole is likely highly relevant to the query\. Inspired by passage\-level evidence aggregation\([Callan 1994](https://arxiv.org/html/2608.12888#bib.bib2)\), we employ Reciprocal Rank Fusion \(RRF\)\([Cormack et al\. 2009](https://arxiv.org/html/2608.12888#bib.bib6)\)to combine two granularity levels of ranking\.

For each turncc, we compute two rankings:

First rankingr1​\(c\)r\_\{1\}\(c\): Direct BM25 ranking of all turns by score\.

Second rankingr2​\(c\)r\_\{2\}\(c\): Session\-level aggregation\. We first compute each sessionss’s aggregate score:

Scoresession​\(s\)=∑c∈sBM25​\(q,c\)\\text\{Score\}\_\{\\text\{session\}\}\(s\)=\\sum\_\{c\\in s\}\\text\{BM25\}\(q,c\)\(1\)Sessions are ranked by aggregate score, and each turn inherits its session’s rank:r2​\(c\)=rank​\(session​\(c\)\)r\_\{2\}\(c\)=\\text\{rank\}\(\\text\{session\}\(c\)\)\.

The final fused score is:

RRF​\(c\)=1k\+r1​\(c\)\+1k\+r2​\(c\)\\text\{RRF\}\(c\)=\\frac\{1\}\{k\+r\_\{1\}\(c\)\}\+\\frac\{1\}\{k\+r\_\{2\}\(c\)\}\(2\)withk=60k=60\. The system returns the top\-KKturns by RRF score \(defaultK=5K=5\)\.

The intuition is: if multiple turns within a session match the query, even turns with individually low BM25 scores in that session may contain valuable contextual information and should receive a ranking boost\.

#### Context, Time, and Redundancy Controls

##### Context window expansion

\(after finding a relevant message, inspect its surroundings\)\.For each retrieved turncic\_\{i\}the system returnswwturns before and after \(defaultw=2w=2\):\{ci−w,…,ci,…,ci\+w\}\\\{c\_\{i\-w\},\\ldots,c\_\{i\},\\ldots,c\_\{i\+w\}\\\}, truncated at session boundaries\. This gives the agent dialogue context around each hit rather than an isolated lexical match\.

##### Temporal filtering

\(narrow to a remembered time range\)\.When a question involves a time period \(e\.g\., “last month”\), the agent supplies start and end parameters, and turns are filtered by timestamp before BM25 scoring\.

##### Session deduplication

\(skip what has already been inspected\)\.The system maintains the set of sessions returned in prior rounds and excludes them from subsequent searches\. Filtering is at the session rather than turn level, since turns within a session typically share a topic, so once a session has been seen, its remaining turns are unlikely to add information\. This is the only operation that makes the interface stateful across rounds\.

##### Retrieval as a search decision process\.

The components above combine into a single state\-dependent action space\. At roundttthe agent holds a stateσt=\(𝒩t,𝒮t,𝒪t\)\\sigma\_\{t\}=\(\\mathcal\{N\}\_\{t\},\\mathcal\{S\}\_\{t\},\\mathcal\{O\}\_\{t\}\)—saved notes, sessions already returned, and the last observation—and acts by issuing a*parameterized query*at=\(𝐤t,τt,Kt\)a\_\{t\}=\(\\mathbf\{k\}\_\{t\},\\tau\_\{t\},K\_\{t\}\)of keywords, an optional time range, and a result budget, obtaining𝒪t\+1=Πw\(RRF\(BM25\(𝐤t,ℋ∣τt,𝒮t\)\),Kt\)\\mathcal\{O\}\_\{t\+1\}=\\Pi\_\{w\}\(\\mathrm\{RRF\}\(\\mathrm\{BM25\}\(\\mathbf\{k\}\_\{t\},\\mathcal\{H\}\\mid\\tau\_\{t\},\\mathcal\{S\}\_\{t\}\)\),K\_\{t\}\)over the raw archiveℋ\\mathcal\{H\}\. Conditioning onτt,𝒮t\\tau\_\{t\},\\mathcal\{S\}\_\{t\}drops temporally irrelevant and already\-inspected candidates before scoring, andΠw\\Pi\_\{w\}expands each surviving hit by±w\\pm wneighbouring turns\. Conventional RAG is the degenerate caseT=1T=1withτ,𝒮,Πw\\tau,\\mathcal\{S\},\\Pi\_\{w\}inert; what the interface adds is thus not a better scoring function but this state\-dependent action space, which is what the ablations isolate\.

## 4Experiments

### Evaluation Setup

##### Task suite\.

Our evaluation uses the incremental multi\-turn suite of MemoryAgentBench\([Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\), which converts long\-context datasets into a format that simulates an agent gradually accumulating history\. We report the six benchmarks that probe the two capabilities central to archival chat search—precise retrieval and factual\-update tracking: single\-/multi\-hop QA\([Hsieh et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib12)\), LongMemEval\([Wu et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib35)\), EventQA, and single\-/multi\-hop FactConsolidation \(the last two introduced by MemoryAgentBench\)—each under its official metric, 2,800 questions in total\. The four retrieval benchmarks test whether a system can recover a specific piece of evidence from a long record; the two consolidation benchmarks test whether it can resolve multiple versions of a fact and return the current one\. The overall score is the unweighted macro\-average across the six benchmarks\.

### Implementation Details

The retrieval stage uses a ReAct framework with three tools:search\_chatrecord\(BM25 search with keyword and time\-range parameters\),take\_note\(save fragments\), andfinish\_search\. The system prompt instructs the LLM to collect evidence only, review all results after each search, save relevant entries, and try diverse keywords\. Retrieval runs at most 4 iterations with BM25 top\-K=5K=5, a±\\pm2\-turn context window, and RRF session fusion\. The fixed budget bounds online work while leaving the controller free to stop early when evidence is complete\. The reasoning stage formats notes by session in chronological order and presents them with the question for answer generation\. Consequently, retrieval decisions are visible in the saved\-note trace and answers can be checked against verbatim turns rather than latent memory states\. Full prompts and hyperparameters are in the supplement\.

For the task suite, both our retrieval controller and answer model use GPT\-4o\-mini, matching the backbone of the reused baselines, and we evaluate under the same configuration as[Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13): the LME subtask uses GPT\-4o as judge, and the remaining tasks use automatic metrics \(SubEM, ROUGE\-L, Recall@5\)\. The suite comparison measures the end\-to\-end gain of the completeReFindinterface; the matched controls in Table[4](https://arxiv.org/html/2608.12888#S5.T4)then separate multi\-round control, chat\-native retrieval controls, and backend choice\. For the backbone\-scaling subsets we use GPT\-5\-mini and follow the STITCH evaluation configuration\([Yang et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib39)\)—the fixed subsets, GPT\-4\.1\-mini judge, judge prompt, decoding settings, and verdict parsing—with all STITCH baselines and our GAM run sharing the GPT\-5\-mini generator\.

### Baselines

Baselines are listed with citations in Tables[2](https://arxiv.org/html/2608.12888#S4.T2)and[3](https://arxiv.org/html/2608.12888#S5.T3), spanning long\-context models, sparse and dense RAG \(including Contriever\([Izacard et al\. 2021](https://arxiv.org/html/2608.12888#bib.bib14)\)\), structured memory systems \(tree\-, graph\-, and note\-based\), and agentic memory systems\. For the task suite, values are reused from[Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\. On the backbone\-scaling subsets we adopt the baseline set of STITCH\([Yang et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib39)\); values are reused from that paper rather than reproduced locally, except GAM\([Yan et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib38)\), which we run ourselves and re\-evaluate with the same GPT\-4\.1\-mini judge used for our predictions\.

Table 2:Per\-benchmark accuracy \(%\) across the full compared field on six conversational\-memory benchmarks, GPT\-4o\-mini backbone matched across all systems; baseline numbers reused from[Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\. Per column, best inboldand second\-bestunderlined\. Metric is SubEM except LME \(GPT\-4o LLM\-as\-judge\)\. Sample sizes: SH\-QA/MH\-QA 100, LME 300, EventQA 1,500, FC\-SH/FC\-MH 400\. SH\-QA, MH\-QA, LME, and EventQA probe precise retrieval; FC\-SH and FC\-MH probe factual\-update tracking\.Avgis the unweighted macro\-average across the six benchmarks\.
### Main Results: Precise Retrieval and Fact Tracking

Table[2](https://arxiv.org/html/2608.12888#S4.T2)reports the full compared field on six conversational\-memory benchmarks, all under a GPT\-4o\-mini backbone matched across systems\. The six fall into two task types: SH\-QA, MH\-QA, LME, and EventQA probe*precise retrieval*—locating a specific fact buried in a long history—while FC\-SH and FC\-MH probe*factual\-update tracking*, requiring the latest value after an earlier fact has been overwritten\.ReFindtops the six\-benchmark leaderboard with a mean accuracy of 58\.2, ahead of the strongest structured baseline HippoRAG 2 \(53\.2\) and single\-shot BM25\-RAG \(48\.8\), over 2,800 questions spanning both task types\.

Per benchmark,ReFindis best on five of the six: SH\-QA 83\.0, MH\-QA 69\.0, LME 51\.3, FC\-SH 62\.7, and FC\-MH 8\.8, with HippoRAG 2 the runner\-up on four of them\. On EventQA,ReFindand BM25\-RAG are closely matched \(74\.1 and 74\.6\), showing that a strong lexical hit can already solve many single\-event questions\. The larger gains occur where one query is least likely to suffice: relative to BM25\-RAG,ReFindadds1717points on SH\-QA and1313on MH\-QA, while also lifting both factual\-consolidation tasks\. This pattern connects the aggregate score to the mechanism: iterative reformulation helps assemble dispersed evidence, and chronology\- and session\-aware controls help distinguish the relevant version of a fact\. The small\-subset experiments below decompose these gains with matched agent and retrieval controls\. All of this holds under GPT\-4o\-mini, showing that effective query formulation does not require a frontier model\.

## 5Analysis and Discussion

### Backbone Scaling

We next test whether the advantage persists with a stronger controller\. We runReFindon the LongMemEval\-S \(50 questions,∼\\sim115k tokens each\) and LongMemEval\-M \(15 questions,∼\\sim500k tokens each\) subsets used by STITCH\([Yang et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib39)\), using GPT\-5\-mini for both retrieval control and answer generation\. The comparison reuses STITCH’s GPT\-5\-mini baselines and evaluation protocol, and we repeatReFindfive times to measure execution stability on the fixed question sets\.

Table 3:Backbone\-scaling observation on the LongMemEval\-S/M subsets \(accuracy %\), GPT\-5\-mini backbone\. Representative baselines reused from STITCH\([Yang et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib39)\)\(full set therein\); GAM re\-evaluated with our GPT\-4\.1\-mini judge, and all baselines share the GPT\-5\-mini generator\. ForReFind: mean±\\pmsample std\. over five uniformly judged runs on the fixed S \(50 questions\) and M \(15 questions\) subsets, quantifying execution variability rather than question\-sampling uncertainty\.Across five runs uniformly judged by GPT\-4\.1\-mini,ReFindreaches93\.2±3\.393\.2\\pm 3\.3\(S\) and89\.3±6\.089\.3\\pm 6\.0\(M\), above every backbone\-matched structured system reused from STITCH—trees, graphs, note cards, learned segmentation—including STITCH \(86\.0/80\.0\)\. The closest design comparison is GAM \(70\.0/60\.0\), which also lets an agent search the raw record but lacks the complete session\-, time\-, context\-, and redundancy\-aware interface; the supplement traces oneReFindtrajectory\. Together with the GPT\-4o\-mini suite, these results show that the advantage holds across two controllers and two evaluation settings\. The LongMemEval margin over HippoRAG 2 grows from 0\.6 points in the GPT\-4o\-mini suite to 13\.2 \(S\) and 22\.6 \(M\) under the GPT\-5\-mini setting\.

### Ablation Study

The top panel of Table[4](https://arxiv.org/html/2608.12888#S5.T4)reports a matched generic\-agentic control and three\-run component ablations on the same LongMemEval\-S/M subsets under GPT\-5\-mini, against the five\-run full\-method mean\. Reporting repeated means and sample standard deviations exposes execution variability directly; the supplement lists every run and the exact configuration of each control\.

Table 4:Ablations on LongMemEval \(accuracy %; mean±\\pmsample std\.\)\.Top:three\-run generic\-agentic, component, and one\-search controls vs\. the five\-run full\-method mean \(Δ\\Deltadescriptive, not paired\)\.Bottom:retrieval\-backend comparison, agent/prompts/evaluation fixed\.##### Chat\-native control layer\.

To separate our interface from generic agentic RAG, we retain GPT\-5\-mini, the four\-iteration ReAct controller,K=5K=5, note\-taking, and the answer stage, but make the tool return only turn\-level BM25 hits: no local expansion, session RRF, temporal filtering, or seen\-session filtering\. This matched Generic Agentic BM25 control reaches78\.7±4\.678\.7\\pm 4\.6\(S\) and82\.2±3\.882\.2\\pm 3\.8\(M\), below the full method by 14\.5 and 7\.1 points\. Iterative lexical search alone therefore does not explainReFind’s result; the chat\-native controls are jointly consequential under the fixed controller and budget\.

##### Context window

removal is the largest S drop \(Table[4](https://arxiv.org/html/2608.12888#S5.T4)\): BM25\-matched turns alone often lack sufficient information, and the surrounding dialogue is what makes a lexical hit interpretable\.RRF rerankingremoval also costs several points, confirming that session\-level topic clustering carries usable signal, whiletemporal filteringhas the smallest S effect, consistent with the low proportion of time\-sensitive questions in these subsets; its contribution appears instead in MemoryAgentBench selective forgetting, where tracking factual updates is the task\.

##### Session deduplication

matters more on M \(−\-9\.3 points\) than S \(−\-1\.2\): without it, the longer M histories repeatedly return the same sessions and exhaust the iteration budget, supporting the value of state across rounds\.

##### Search\-loop control\.

As a direct control for iteration, we let the unchanged controller formulate one BM25 query, force the reportedK=5K=5and±2\\pm 2context, pass every returned block to the unchanged answer stage, and forbid evidence selection or reformulation\. This one\-search variant \(Table[4](https://arxiv.org/html/2608.12888#S5.T4)\) trails the full method by 8\.5 \(S\) and 20\.4 \(M\) points—the multi\-round loop’s contribution with everything else fixed\. The larger M gap is consistent with longer histories benefiting more from result\-conditioned reformulation and skipping inspected sessions; the supplement reports per\-run scores and resource use\.

##### Retrieval backend\.

Varying only the backend \(agent, prompts, evaluation fixed\), BM25 has the highest mean on both subsets; Hybrid is most stable but does not beat BM25’s mean\. Adding dense signal thus does not raise accuracy here—lexical matching is not the bottleneck—and the supplement gives per\-run detail\.

##### What the controls establish\.

The three control families rule out distinct simpler explanations\. Generic Agentic BM25 keeps the multi\-round controller but removes the four chat\-native controls, so iteration alone does not recover the full score\. One search keeps the chat\-native retrieval behavior for the first query but removes reaction to returned evidence, so a well\-formed initial query alone does not recover it either\. Finally, the dense and four\-way hybrid variants keep the controller and controls fixed while changing the retrieval signal; neither exceeds BM25\. The resulting evidence chain attributes the gain to the interaction between multi\-round control and a conversationally structured lexical interface, rather than to a larger model, semantic embeddings, or one unusually effective first query\.

### Discussion

##### Why lexical search remains competitive\.

Chat archives contain many discriminative surface forms—names, products, places, dates, quoted phrases, and wording repeated across turns\. A fixed dense query must encode the user’s information need correctly in one representation, whereas theReFindcontroller can observe a partial lexical match and convert newly exposed terms into the next query\. Local expansion then restores pronouns and ellipses whose meaning lies in adjacent turns, while session fusion aggregates several weak hits into one coherent episode\. This division of labor explains why BM25 leads the dense and hybrid backends in Table[4](https://arxiv.org/html/2608.12888#S5.T4): the agent supplies semantic adaptation through reformulation, allowing the retrieval layer to remain exact, transparent, and incrementally maintainable\.

##### Question\-directed computation\.

ReFindbuilds no LLM\-generated index: its lexical index makes no model calls, and new turns are searchable immediately\. Computation occurs only when a question arrives, averaging 2\.5–2\.6 searches and 5\.0 LLM calls per query \(supplement\)\. By comparison, on one∼\\sim1M\-token corpus GraphRAG extracts 8,564 entities and 20,691 relations in 281 minutes of GPT\-4\-turbo time before answering a question\([Edge et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib8)\)\.ReFindtherefore ties model computation to expressed information needs rather than to every archive update\.

##### A memory\-system design principle\.

The results separate storage fidelity from access intelligence\. Keeping raw history preserves every detail and makes updates append\-only; agent control decides which details matter for the current question\. Session, time, neighborhood, and visited\-state metadata provide enough structure for the agent to traverse the archive without committing to a global semantic representation in advance\. This suggests a modular default for conversational memory: begin with faithful storage and a controllable search interface, then add derived structures only for workloads that demand a separate latency or abstraction layer\.

##### Coverage of chat\-search failure modes\.

A flat retriever can fail because a cue is underspecified, a hit lacks local context, evidence spans a session, the answer depends on time, or repeated queries revisit material\.ReFindmaps one mechanism to each: reformulation, local expansion, session fusion, temporal filtering, and deduplication\. These mechanisms compose across rounds: a name exposed by one query can retrieve a session whose date constrains the next\. The interface thus turns five static operations into a coherent evidence\-gathering process\.

## 6Conclusion

We asked how much of an agent\-memory system’s benefit comes from pre\-built structure, and answered by building none\.ReFindleaves the archive unmodified and combines iterative lexical search with four chat\-native controls\. It tops the six\-benchmark leaderboard at 58\.2 mean accuracy \(vs\. 53\.2 for the strongest structured baseline\) over 2,800 questions with GPT\-4o\-mini, and reaches93\.2±3\.393\.2\\pm 3\.3/89\.3±6\.089\.3\\pm 6\.0on LongMemEval\-S/M with GPT\-5\-mini\. Generic\-agentic, component, one\-search, and backend controls identify the effective design: iterative evidence collection over a session\-aware, context\-preserving, temporal, and deduplicated lexical interface\.

The central result is that preserving raw records and exposing their conversational structure to an adaptive agent outperforms first transforming them into a memory representation\. Question\-directed search yields a strong, auditable, and immediately updatable memory system\.

## Statement on the Use of AI Assistants

Claude Code and Codex assisted with code and editing; the authors verified all methods, experiments, and claims\.

## References

- Asai et al\. \(2023\)Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi\.Self\-RAG: Learning to retrieve, generate, and critique through self\-reflection\.*arXiv preprint arXiv:2310\.11511*, 2023\.[https://arxiv\.org/abs/2310\.11511](https://arxiv.org/abs/2310.11511)\.
- Callan \(1994\)James P Callan\.Passage\-level evidence in document retrieval\.In*Proceedings of the 17th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval*, pages 302–310, 1994\.[10\.1007/978\-1\-4471\-2099\-5\_31](https://doi.org/10.1007/978-1-4471-2099-5_31)\.[https://doi\.org/10\.1007/978\-1\-4471\-2099\-5\_31](https://doi.org/10.1007/978-1-4471-2099-5_31)\.
- Cheng and Aflatoony \(2022\)Claire Wei Cheng and Leila Aflatoony\.The reappropriation of instant messaging: Texting ourselves, message dumping, and revisiting conversations\.*Proceedings of the ACM on Human\-Computer Interaction*, 6\(MHCI\):1–23, 2022\.[10\.1145/3546722](https://doi.org/10.1145/3546722)\.[https://doi\.org/10\.1145/3546722](https://doi.org/10.1145/3546722)\.
- Chhikara et al\. \(2025\)Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav\.Mem0: Building production\-ready AI agents with scalable long\-term memory\.*arXiv preprint arXiv:2504\.19413*, 2025\.[https://arxiv\.org/abs/2504\.19413](https://arxiv.org/abs/2504.19413)\.
- Clark and Chalmers \(1998\)Andy Clark and David Chalmers\.The extended mind\.*Analysis*, 58\(1\):7–19, 1998\.[10\.1093/analys/58\.1\.7](https://doi.org/10.1093/analys/58.1.7)\.[https://doi\.org/10\.1093/analys/58\.1\.7](https://doi.org/10.1093/analys/58.1.7)\.
- Cormack et al\. \(2009\)Gordon V Cormack, Charles L A Clarke, and Stefan Buettcher\.Reciprocal rank fusion outperforms Condorcet and individual rank learning methods\.In*Proceedings of the 32nd International ACM SIGIR Conference on Research and Development in Information Retrieval*, pages 758–759, 2009\.[10\.1145/1571941\.1572114](https://doi.org/10.1145/1571941.1572114)\.[https://doi\.org/10\.1145/1571941\.1572114](https://doi.org/10.1145/1571941.1572114)\.
- Du et al\. \(2026\)Mingxuan Du, Benfeng Xu, Chiwei Zhu, Shaohan Wang, Pengyu Wang, Xiaorui Wang, and Zhendong Mao\.A\-RAG: Scaling agentic retrieval\-augmented generation via hierarchical retrieval interfaces\.*arXiv preprint arXiv:2602\.03442*, 2026\.[10\.48550/arXiv\.2602\.03442](https://doi.org/10.48550/arXiv.2602.03442)\.[https://arxiv\.org/abs/2602\.03442](https://arxiv.org/abs/2602.03442)\.
- Edge et al\. \(2024\)Darren Edge, Ha Trinh, Newman Cheng, Joshua Bradley, Alex Chao, Apurva Mody, Steven Truitt, Dasha Metropolitansky, Robert Osazuwa Ness, and Jonathan Larson\.From local to global: A GraphRAG approach to query\-focused summarization\.*arXiv preprint arXiv:2404\.16130*, 2024\.[https://arxiv\.org/abs/2404\.16130](https://arxiv.org/abs/2404.16130)\.
- Elsweiler et al\. \(2011\)David Elsweiler, Mark Baillie, and Ian Ruthven\.What makes re\-finding information difficult? a study of email re\-finding\.In*Advances in Information Retrieval*, pages 568–579, 2011\.[10\.1007/978\-3\-642\-20161\-5\_57](https://doi.org/10.1007/978-3-642-20161-5_57)\.[https://doi\.org/10\.1007/978\-3\-642\-20161\-5\_57](https://doi.org/10.1007/978-3-642-20161-5_57)\.
- Gutiérrez et al\. \(2024\)Bernal Jiménez Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su\.HippoRAG: Neurobiologically inspired long\-term memory for large language models\.*arXiv preprint arXiv:2405\.14831*, 2024\.[https://arxiv\.org/abs/2405\.14831](https://arxiv.org/abs/2405.14831)\.
- Gutiérrez et al\. \(2025\)Bernal Jiménez Gutiérrez, Yiheng Shu, Weijian Qi, Sizhe Zhou, and Yu Su\.From RAG to memory: Non\-parametric continual learning for large language models\.*arXiv preprint arXiv:2502\.14802*, 2025\.[https://arxiv\.org/abs/2502\.14802](https://arxiv.org/abs/2502.14802)\.
- Hsieh et al\. \(2024\)Cheng\-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg\.RULER: What’s the real context size of your long\-context language models?*arXiv preprint arXiv:2404\.06654*, 2024\.[https://arxiv\.org/abs/2404\.06654](https://arxiv.org/abs/2404.06654)\.
- Hu et al\. \(2025\)Yuanzhe Hu, Yu Wang, and Julian McAuley\.Evaluating memory in LLM agents via incremental multi\-turn interactions\.*arXiv preprint arXiv:2507\.05257*, 2025\.[https://arxiv\.org/abs/2507\.05257](https://arxiv.org/abs/2507.05257)\.
- Izacard et al\. \(2021\)Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave\.Unsupervised dense information retrieval with contrastive learning\.*arXiv preprint arXiv:2112\.09118*, 2021\.[https://arxiv\.org/abs/2112\.09118](https://arxiv.org/abs/2112.09118)\.
- Komlodi et al\. \(2007\)Anita Komlodi, Gary Marchionini, and Dagobert Soergel\.Search history support for finding and using information: User interface design recommendations from a user study\.*Information Processing & Management*, 43\(1\):10–29, 2007\.[10\.1016/j\.ipm\.2006\.05\.017](https://doi.org/10.1016/j.ipm.2006.05.017)\.[https://doi\.org/10\.1016/j\.ipm\.2006\.05\.017](https://doi.org/10.1016/j.ipm.2006.05.017)\.
- Lewis et al\. \(2020\)Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen\-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela\.Retrieval\-augmented generation for knowledge\-intensive NLP tasks\.*arXiv preprint arXiv:2005\.11401*, 2020\.[https://arxiv\.org/abs/2005\.11401](https://arxiv.org/abs/2005.11401)\.
- Li et al\. \(2018\)Raymond Li, Samira Ebrahimi Kahou, Hannes Schulz, Vincent Michalski, Laurent Charlin, and Chris Pal\.Towards deep conversational recommendations\.In*Advances in Neural Information Processing Systems*, volume 31, 2018\.[https://papers\.neurips\.cc/paper\_files/paper/2018/hash/800de15c79c8d840f4e78d3af937d4d4\-Abstract\.html](https://papers.neurips.cc/paper_files/paper/2018/hash/800de15c79c8d840f4e78d3af937d4d4-Abstract.html)\.
- Liu et al\. \(2024\)Nelson F\. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang\.Lost in the middle: How language models use long contexts\.*Transactions of the Association for Computational Linguistics*, 12:157–173, 2024\.[10\.1162/tacl\_a\_00638](https://doi.org/10.1162/tacl_a_00638)\.[https://doi\.org/10\.1162/tacl\_a\_00638](https://doi.org/10.1162/tacl_a_00638)\.
- Lu et al\. \(2023\)Junru Lu, Siyu An, Mingbao Lin, Gabriele Pergola, Yulan He, Di Yin, Xing Sun, and Yunsheng Wu\.MemoChat: Tuning LLMs to use memos for consistent long\-range open\-domain conversation\.*arXiv preprint arXiv:2308\.08239*, 2023\.[https://arxiv\.org/abs/2308\.08239](https://arxiv.org/abs/2308.08239)\.
- Maharana et al\. \(2024\)Adyasha Maharana, Dong\-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang\.Evaluating very long\-term conversational memory of LLM agents\.*arXiv preprint arXiv:2402\.17753*, 2024\.[https://arxiv\.org/abs/2402\.17753](https://arxiv.org/abs/2402.17753)\.
- Packer et al\. \(2023\)Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G\. Patil, Ion Stoica, and Joseph E\. Gonzalez\.MemGPT: Towards LLMs as operating systems\.*arXiv preprint arXiv:2310\.08560*, 2023\.[https://arxiv\.org/abs/2310\.08560](https://arxiv.org/abs/2310.08560)\.
- Pan et al\. \(2025\)Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Xufang Luo, Hao Cheng, Dongsheng Li, Yuqing Yang, Chin\-Yew Lin, H\. Vicky Zhao, Lili Qiu, and Jianfeng Gao\.On memory construction and retrieval for personalized conversational agents\.*arXiv preprint arXiv:2502\.05589*, 2025\.[https://arxiv\.org/abs/2502\.05589](https://arxiv.org/abs/2502.05589)\.
- Park et al\. \(2023\)Joon Sung Park, Joseph C O’Brien, Carrie J Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein\.Generative agents: Interactive simulacra of human behavior\.*arXiv preprint arXiv:2304\.03442*, 2023\.[https://arxiv\.org/abs/2304\.03442](https://arxiv.org/abs/2304.03442)\.
- Qian et al\. \(2024\)Hongjin Qian, Zheng Liu, Peitian Zhang, Kelong Mao, Defu Lian, Zhicheng Dou, and Tiejun Huang\.MemoRAG: Boosting long context processing with global memory\-enhanced retrieval augmentation\.*arXiv preprint arXiv:2409\.05591*, 2024\.[https://arxiv\.org/abs/2409\.05591](https://arxiv.org/abs/2409.05591)\.
- Rasmussen et al\. \(2025\)Preston Rasmussen, Pavlo Paliychuk, Travis Beauvais, Jack Ryan, and Daniel Chalef\.Zep: A temporal knowledge graph architecture for agent memory\.*arXiv preprint arXiv:2501\.13956*, 2025\.[https://arxiv\.org/abs/2501\.13956](https://arxiv.org/abs/2501.13956)\.
- Risko and Gilbert \(2016\)Evan F\. Risko and Sam J\. Gilbert\.Cognitive offloading\.*Trends in Cognitive Sciences*, 20\(9\):676–688, 2016\.[10\.1016/j\.tics\.2016\.07\.002](https://doi.org/10.1016/j.tics.2016.07.002)\.[https://doi\.org/10\.1016/j\.tics\.2016\.07\.002](https://doi.org/10.1016/j.tics.2016.07.002)\.
- Robertson and Zaragoza \(2009\)Stephen Robertson and Hugo Zaragoza\.The probabilistic relevance framework: BM25 and beyond\.*Foundations and Trends in Information Retrieval*, 3\(4\):333–389, 2009\.[10\.1561/1500000019](https://doi.org/10.1561/1500000019)\.[https://doi\.org/10\.1561/1500000019](https://doi.org/10.1561/1500000019)\.
- Sarthi et al\. \(2024\)Parth Sarthi, Salman Abdullah, Aditi Tuli, Shubh Khanna, Anna Goldie, and Christopher D\. Manning\.RAPTOR: Recursive abstractive processing for tree\-organized retrieval\.*arXiv preprint arXiv:2401\.18059*, 2024\.[https://arxiv\.org/abs/2401\.18059](https://arxiv.org/abs/2401.18059)\.
- Shinn et al\. \(2023\)Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao\.Reflexion: Language agents with verbal reinforcement learning\.*arXiv preprint arXiv:2303\.11366*, 2023\.[https://arxiv\.org/abs/2303\.11366](https://arxiv.org/abs/2303.11366)\.
- Teevan et al\. \(2004\)Jaime Teevan, Christine Alvarado, Mark S\. Ackerman, and David R\. Karger\.The perfect search engine is not enough: A study of orienteering behavior in directed search\.In*Proceedings of the SIGCHI Conference on Human Factors in Computing Systems*, pages 415–422, 2004\.[10\.1145/985692\.985745](https://doi.org/10.1145/985692.985745)\.[https://doi\.org/10\.1145/985692\.985745](https://doi.org/10.1145/985692.985745)\.
- Wang et al\. \(2023a\)Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar\.Voyager: An open\-ended embodied agent with large language models\.*arXiv preprint arXiv:2305\.16291*, 2023a\.[https://arxiv\.org/abs/2305\.16291](https://arxiv.org/abs/2305.16291)\.
- Wang et al\. \(2023b\)Qingyue Wang, Yanhe Fu, Yanan Cao, Shuai Wang, Zhiliang Tian, and Liang Ding\.Recursively summarizing enables long\-term dialogue memory in large language models\.*arXiv preprint arXiv:2308\.15022*, 2023b\.[https://arxiv\.org/abs/2308\.15022](https://arxiv.org/abs/2308.15022)\.
- Wang and Chen \(2025\)Yu Wang and Xi Chen\.MIRIX: Multi\-agent memory system for LLM\-based agents\.*arXiv preprint arXiv:2507\.07957*, 2025\.[https://arxiv\.org/abs/2507\.07957](https://arxiv.org/abs/2507.07957)\.
- Whittaker et al\. \(2011\)Steve Whittaker, Tara Matthews, Julian Cerruti, Hernan Badenes, and John Tang\.Am i wasting my time organizing email? a study of email refinding\.In*Proceedings of the SIGCHI Conference on Human Factors in Computing Systems*, pages 3449–3458, 2011\.[10\.1145/1978942\.1979457](https://doi.org/10.1145/1978942.1979457)\.[https://doi\.org/10\.1145/1978942\.1979457](https://doi.org/10.1145/1978942.1979457)\.
- Wu et al\. \(2024\)Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai\-Wei Chang, and Dong Yu\.LongMemEval: Benchmarking chat assistants on long\-term interactive memory\.*arXiv preprint arXiv:2410\.10813*, 2024\.[https://arxiv\.org/abs/2410\.10813](https://arxiv.org/abs/2410.10813)\.
- Xu et al\. \(2025\)Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang\.A\-Mem: Agentic memory for LLM agents\.*arXiv preprint arXiv:2502\.12110*, 2025\.[https://arxiv\.org/abs/2502\.12110](https://arxiv.org/abs/2502.12110)\.
- Xu et al\. \(2024\)Zhe Xu, Jiasheng Ye, Xiaoran Liu, Xiangyang Liu, Tianxiang Sun, Zhigeng Liu, Qipeng Guo, Linlin Li, Qun Liu, Xuanjing Huang, and Xipeng Qiu\.DetectiveQA: Evaluating long\-context reasoning on detective novels\.*arXiv preprint arXiv:2409\.02465*, 2024\.[https://arxiv\.org/abs/2409\.02465](https://arxiv.org/abs/2409.02465)\.
- Yan et al\. \(2025\)B\. Y\. Yan, Chaofan Li, Hongjin Qian, Shuqi Lu, and Zheng Liu\.General agentic memory via deep research\.*arXiv preprint arXiv:2511\.18423*, 2025\.[https://arxiv\.org/abs/2511\.18423](https://arxiv.org/abs/2511.18423)\.
- Yang et al\. \(2026\)Ruozhen Yang, Yucheng Jiang, Yueqi Jiang, Priyanka Kargupta, Yunyi Zhang, and Jiawei Han\.Grounding agent memory in contextual intent\.*arXiv preprint arXiv:2601\.10702*, 2026\.[https://arxiv\.org/abs/2601\.10702](https://arxiv.org/abs/2601.10702)\.
- Yao et al\. \(2022\)Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao\.ReAct: Synergizing reasoning and acting in language models\.*arXiv preprint arXiv:2210\.03629*, 2022\.[https://arxiv\.org/abs/2210\.03629](https://arxiv.org/abs/2210.03629)\.
- Zhang et al\. \(2024a\)Xinrong Zhang, Yingfa Chen, Shengding Hu, Zihang Xu, Junhao Chen, Moo Khai Hao, Xu Han, Zhen Leng Thai, Shuo Wang, Zhiyuan Liu, and Maosong Sun\.∞\\inftyBench: Extending long context evaluation beyond 100K tokens\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 15262–15277\. Association for Computational Linguistics, 2024a\.[https://aclanthology\.org/2024\.acl\-long\.814/](https://aclanthology.org/2024.acl-long.814/)\.
- Zhang et al\. \(2024b\)Zeyu Zhang, Xiaohe Bo, Chen Ma, Rui Li, Xu Chen, Quanyu Dai, Jieming Zhu, Zhenhua Dong, and Ji\-Rong Wen\.A survey on the memory mechanism of large language model based agents\.*arXiv preprint arXiv:2404\.13501*, 2024b\.[https://arxiv\.org/abs/2404\.13501](https://arxiv.org/abs/2404.13501)\.

\\beginappendix

## 7Prompts

### Stage 1: Retrieval Agent Prompt

The retrieval agent uses the following system prompt:

```
You are a research assistant collecting
evidence from a user’s conversation
history. You are NOT
answering — only gathering.

## Actions

search_chatrecord — Search by keywords.
Stemming enabled. Previously returned
sessions auto-excluded.
  {"keywords": ["keyword1", "keyword2"],
   "top_k": 5}

take_note — Save results from the LAST
search by number. Saves complete original
conversations.
  {"indices": [1, 3, 5]}

finish_search — Done collecting; proceed
to answer.
  {}

## Workflow
search → take_note → search again
→ ... → finish

## Rules
1. After EVERY search, review ALL results
   and save ANY that MIGHT be relevant.
   Missed info is LOST.
2. Call take_note BEFORE your next search.
   Previous results become inaccessible
   after a new search.
3. Don’t answer — only collect. Try
   diverse keywords.
4. If no results are relevant, skip
   take_note and go directly to
   search_chatrecord or finish_search.

## Response Format

ONLY output Thought + Action + Action
Input. NEVER generate "Observation:" -
observations are provided by the system.
Keep Thought to 1-2 sentences.

Thought: Results 1, 3, and 7 mention
the topic. Saving them.
Action: take_note
Action Input: {"indices": [1, 3, 7]}
```

When temporal filtering is enabled, the following addendum is appended:

```
## Time Filtering
Optional date range: add
date_from / date_to
(YYYY/MM/DD) to search_chatrecord.
  {"keywords": ["k1"],
   "date_from": "2023/06/01",
   "date_to": "2023/06/30"}

Broad first, narrow later: First search
WITHOUT time filters (catches
retrospective mentions). Then use time
filters to find
original events.
```

After each tool call, the following user message supplies the observation and requests the next action:

```
Observation: {observation}

Respond with Thought + Action + Action
Input ONLY. Do NOT generate Observation
yourself.
```

### Stage 2: LongMemEval Reasoning Prompts

```
System: You are an AI assistant with
long-term memory. Answer questions based
on the user’s conversation history. Read
all sessions carefully and extract
relevant information. If the answer cannot
be found,
clearly state insufficient information.
Requirements:
1. Answer directly and concisely
2. If time reasoning is needed, explain
   the process
3. Keep the answer brief and accurate

User: Below is the relevant conversation
history:
{notes}
---
Current time: {question_date}
Question: {question}
Answer based on the conversation history
above.
```

If Stage 1 saves no evidence, the same system message is paired with the following user template:

```
User: No conversation history relevant to
the question was found.

---
Current time: {question_date}
Question: {question}

Answer based on the conversation history
above.
```

### Stage 2: MemoryAgentBench Task Prompts

For the six MemoryAgentBench scores reported in the main paper, Stage 1 is unchanged and Stage 2 uses the following common system message:

```
You are a helpful assistant that can read
the context and memorize it for future
retrieval.
```

The corresponding user templates are:

```
Single-hop and multi-hop QA:
Below are the relevant documents retrieved
from memory:

{notes}
---
Answer the question based on the memorized
documents. Only give me the answer and do
not output any other words.

Now Answer the Question: {question}
```

```
LongMemEval:
Below are the relevant chat history
retrieved from memory:

{notes}
---
The history chats are between you and a
user. Based on the relevant chat history,
answer the question as concisely as you
can, using a single phrase if possible.

{question}

Answer:
```

```
EventQA:
Below are the relevant passages retrieved
from memory:

{notes}
---
Based on the context you memorized,
complete the task below:

{question}

The event that happens next is:
```

```
Fact Consolidation:
Below are the relevant facts retrieved
from the knowledge pool:

{notes}
---
Pretend you are a knowledge management
system. Each fact in the knowledge pool is
provided with a serial number at the
beginning, and the newer fact has larger
serial number. You need to solve the
conflicts of facts in the knowledge pool
by finding the newest fact with larger
serial number. You should give a very
concise answer without saying other words
only from the knowledge pool you have
memorized rather than the real facts in
real world.

For example:
[Knowledge Pool]
Question: Based on the provided Knowledge
Pool, what is the name of the current
president of Russia?
Answer: Donald Trump

Now Answer the Question: Based on the
provided Knowledge Pool, {question}
Answer:
```

## 8Hyperparameters

Table 5:Hyperparameter settings\.
## 9Evaluation Details

### Baseline Sources

For LongMemEval, most baseline numbers are reused from STITCH\([Yang et al\. 2026](https://arxiv.org/html/2608.12888#bib.bib39)\), which reports results on the same LongMemEval\-S and LongMemEval\-M subsets used in our experiments\. The backbone generator is matched: STITCH documents that all of its baseline methods use GPT\-5\-mini as the backbone LLM generator, and our controller and answer model also use GPT\-5\-mini\. Our GAM run also uses GPT\-5\-mini as the backbone generator, and we re\-evaluate its outputs with the same GPT\-4\.1\-mini judge and verdict parsing protocol described below\. A common judge and a common backbone improve comparability, but the systems were not all rerun with a matched controller or tool\-call budget\.

For MABench, baseline numbers are reused from the MABench paper\([Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\)\. Our method is evaluated under the same benchmark setting, using GPT\-4o\-mini as the backbone to match the reported long\-context and memory\-system comparisons\. The LME subtask uses the MABench LLM\-as\-judge protocol, while the remaining subtasks use the official automatic metrics\. The full 16\-system, six\-benchmark comparison and its unweighted macro\-average are reported in the main paper, whereReFindattains the highest mean accuracy \(58\.2\)\.

### LongMemEval Evaluation

We follow the STITCH evaluation protocol exactly:

- •Judge model:gpt\-4\.1\-mini \(temperature=0\.0, top\_p=0\.9\)
- •Prompt:“Your task is to label an answer to a question as CORRECT or WRONG\. You will be given: \(1\) a question, \(2\) a gold answer, and \(3\) a generated answer\. The gold answer is concise and contains the ground\-truth information\. The generated answer might be longer\. Be generous: if the generated answer contains the gold answer information \(even verbatim inside a longer response\), mark it as CORRECT\. Otherwise, mark it as WRONG\. Respond with either CORRECT or WRONG, and provide a brief reasoning\.”
- •Verdict parsing:Response contains “correct” and does not contain “wrong”→\\rightarrowCORRECT\.

The retrieval and answer calls use temperature 0, but the external API does not expose a reproducible sampling seed\. Repeated runs therefore quantify residual variation from model serving and agent trajectories\. We did not conduct an independent human\-agreement study for the automatic judge\.

### Repeated\-Run Stability

We uniformly re\-judge five full\-method runs with GPT\-4\.1\-mini\. The runs include the full\-method execution used to anchor the ablation study and four other executions\. For the stability summary, the ablation\-anchor execution is re\-judged with the same judge as the other four runs\. The main paper’s ablation table retains its original paired evaluation and is interpreted only through within\-evaluation deltas\.

Table 6:Five\-run LongMemEval stability on the same fixed subsets \(accuracy %\)\. Repeated runs measure execution variability, not uncertainty from sampling questions\.
### Generic Agentic BM25 Control

This control isolates the chat\-native interface from generic multi\-round retrieval\. It retains GPT\-5\-mini, the same four\-iteration ReAct controller,K=5K=5, BM25 tokenization, note\-taking, and Phase\-2 answer stage\. The search tool returns only the matched turn and disables local context expansion, session\-level RRF and neighbour propagation, temporal filtering, and seen\-session filtering\. Every tool call is audited to ensure that no removed control enters through an agent\-supplied parameter\.

Table 7:Three\-run Generic Agentic BM25 control on the fixed LongMemEval subsets \(accuracy %; sample standard deviation\)\. The delta compares its three\-run mean with the five\-run full\-method mean\.Generic iterative BM25 does not recover the full method: jointly adding the four chat\-native controls corresponds to 14\.5 and 7\.1 points on S and M, respectively, under the fixed controller and online budget\. For context, Generic Agentic BM25 is below the one\-search control on S \(78\.7 vs\. 84\.7\) but above it on M \(82\.2 vs\. 68\.9\)\. This crossover is descriptive rather than a component contrast because one\-search retains all four chat\-native retrieval controls; it is consistent with generic iteration sometimes revisiting noisy, uncontextualized hits on S while remaining useful on M’s longer histories\. M has only 15 questions, so the ordering requires caution\.

### Repeated Component Ablations

For each component ablation, we retain the previously reported execution and add two independent GPT\-5\-mini executions evaluated with the same GPT\-4\.1\-mini judge configuration\. Each condition changes only the component named in Table[8](https://arxiv.org/html/2608.12888#S9.T8); all other prompts, budgets, and retrieval settings remain fixed\.

Table 8:Three\-run component ablations on the fixed LongMemEval subsets \(accuracy %; sample standard deviation\)\. Run 1 is the previously reported execution; runs 2 and 3 are new independent executions\.Against the five\-run full\-method means \(93\.2 on S and 89\.3 on M\), the component\-ablation mean differences are respectively−9\.2/−4\.9\-9\.2/\-4\.9\(context window\),−1\.2/−9\.3\-1\.2/\-9\.3\(session deduplication\),−3\.9/−4\.9\-3\.9/\-4\.9\(RRF reranking\), and−1\.9/−4\.9\-1\.9/\-4\.9\(temporal filtering\), reported as S/M\. Context is the clearest S contribution, while session deduplication has the largest M mean effect\. Because M contains only 15 questions, one changed judgment moves accuracy by 6\.7 points; the run\-level dispersion is therefore essential to interpreting the M ordering\.

### One\-Search Control

This control preserves the full method’s first\-query intelligence while removing its ability to react to retrieval\. The unchanged Phase\-1 controller formulates onesearch\_chatrecordaction; we force the reported BM25 configuration \(K=5K=5, context window±2\\pm 2, neighbour scoring enabled\), then copy every returned result block into the unchanged Phase\-2 answer context\. There is notake\_noteselection, second search, or query reformulation after observing the results\. Thus, unlike raw\-question BM25\-RAG, the control retains the agent\-written first query and isolates the value of subsequent rounds\.

Table 9:Controlled search\-loop ablation on the fixed LongMemEval subsets \(accuracy %; mean±\\pmsample standard deviation\)\. One\-search run scores are 82\.0/88\.0/84\.0 on S and 66\.7/73\.3/66\.7 on M\. Because repetition counts differ, gains are differences of observed means rather than paired estimates\.The full loop improves the observed mean by 8\.5 points on S and 20\.4 on M\. This asymmetry is mechanistically consistent with M’s longer archives: after inspecting an initial result, the full agent can preserve useful evidence, reformulate around newly exposed terms, and exclude already\-inspected sessions\. The control cannot determine which later\-round operation contributes how much; the component ablations in the main paper address those operations separately\.

### Retrieval\-Backend Ablation

We retain the same agent, prompts, four\-iteration budget,K=5K=5, controls, GPT\-5\-mini controller/answer model, and GPT\-4\.1\-mini evaluator\. With RRFk=60k=60,BM25fuses turn rank and summed\-BM25 session rank;Densefusestext\-embedding\-3\-largecosine rank and top\-three\-similarity session rank; the new four\-wayHybridfuses all four ranks\.

Table 10:Matched retrieval\-backend ablation on the fixed LongMemEval subsets \(accuracy %; sample standard deviation\)\. BM25 has five runs; newer Dense and Hybrid conditions have three\.BM25 has the highest observed mean on both subsets\. Hybrid ties Dense on S with lower variance and improves M by 4\.4 points, but remains 1\.9 \(S\) and 2\.6 \(M\) points below BM25\. M has only 15 questions, so one answer changes accuracy by 6\.7 points; zero run\-level variance does not imply deterministic outputs or a noiseless evaluator\.

### MABench Evaluation

For the LME subtask \(the only subtask requiring LLM\-as\-judge\), we follow the MABench evaluation protocol:

- •Judge model:GPT\-4o \(temperature=0\)
- •Prompts:Task\-specific templates from the MABench codebase, including: - –Standard template for single\-session and multi\-session questions - –Temporal\-reasoning template with off\-by\-one tolerance - –Knowledge\-update template accepting updated answers alongside previous information - –Single\-session\-preference template using rubric\-based evaluation
- •Verdict parsing:Response contains “yes”→\\rightarrowcorrect\.

The remaining reported subtasks use SubEM \(substring exact match\)\.

## 10Resource Use

Table[11](https://arxiv.org/html/2608.12888#S10.T11)reports resource use measured from logged agent trajectories and raw result files\. For the full method, search and LLM\-call counts are averages over all tasks in all five runs, and token ranges are the minimum and maximum of the five run\-level mean token counts\. The ablation\-anchor run predates timing instrumentation\. Full\-method time therefore reports the initial timed execution followed by the mean of the three later timed reruns\. Effective time sums successful LLM API time and retrieval time; it excludes local orchestration and retry waiting\. Generic Agentic BM25 and one\-search values are three\-run means\.

Table 11:Average resource use\. Full\-method effective time reports the initial timed execution followed by the mean of three later timed reruns\. Both use the same algorithmic settings; the difference reflects external API routing, queueing, service load, and serving state rather than a method change\. Generic\-agentic and one\-search time is from contemporaneous three\-run controls\. Monetary charges were not recorded consistently, so we report token counts instead\.
## 11Artifact Use and Licenses

Our experiments use publicly available research artifacts, including LongMemEval\([Wu et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib35)\), MemoryAgentBench\([Hu et al\. 2025](https://arxiv.org/html/2608.12888#bib.bib13)\), and the benchmark datasets incorporated by MemoryAgentBench, such as RULER\([Hsieh et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib12)\), ReDial\([Li et al\. 2018](https://arxiv.org/html/2608.12888#bib.bib17)\), InfiniteBench\([Zhang et al\. 2024a](https://arxiv.org/html/2608.12888#bib.bib41)\), and DetectiveQA\([Xu et al\. 2024](https://arxiv.org/html/2608.12888#bib.bib37)\)\. We use these artifacts only for research evaluation, following the task definitions and evaluation protocols provided by their creators\. We do not repurpose benchmark data for model training, user profiling, or deployment outside the evaluation setting\.

We rely on the licenses and terms of use specified by the original artifact providers\. Any code, prompts, processed outputs, and evaluation scripts released with our submission are intended to support research reproducibility and should be used consistently with the licenses and access conditions of the underlying benchmarks and model APIs\.

## 12Ablation Variant Definitions

- •Full method \(baseline\): RRF session fusion \+ context window \(±\\pm2\) \+ session deduplication \+ temporal filtering\.
- •Generic Agentic BM25: Retain the four\-iteration ReAct loop,K=5K=5, note\-taking, and answer stage, but return only turn\-level BM25 hits and jointly disable context expansion, session RRF, temporal filtering, and seen\-session filtering\.
- •w/o context window: Set context\_window = 0\. Only the directly matched conversation is returned, without surrounding context\.
- •w/o session dedup\.: Disable session deduplication\. Previously returned sessions can appear again in subsequent searches\.
- •w/o RRF reranking: Remove RRF session\-level fusion\. Use pure conversation\-level BM25 ranking without session aggregation\.
- •w/o temporal filter: Disable the date\_from/date\_to parameters\. The agent cannot restrict searches by time range\.
- •One search, all results: Use the unchanged controller to formulate the first query, execute one reported\-configuration BM25 search, pass every returned block directly to the unchanged answer stage, and disable note selection and all later search rounds\.

## 13Example Search Trajectory

Table[12](https://arxiv.org/html/2608.12888#S13.T12)shows an example trajectory produced by our retrieval agent on a LongMemEval\-S question\. The question asks whether the user visited a museum with a friend “two months ago\.” This case illustrates how the agent combines broad recall, note\-taking, temporal filtering, and seen\-session deduplication to disambiguate among several similar museum\-related memories\.

The trajectory is reproduced from raw execution logs\. Theexclude\_sessionsfield and the session identifiers shown in Step 3 are populated and consumed automatically by the search backend, which maintains the seen\-session set as described in the main paper; they are internal log fields and are not part of the prompt or search results visible to the agent, which only issues keywords and optional date ranges\.

Table 12:Example retrieval trajectory for LongMemEval\-S question0bc8ad93\. Broad recall, temporal filtering, and seen\-session deduplication disambiguate the target from similar but temporally mismatched memories\.##### Saved evidence\.

The first note\-taking step stores heterogeneous candidates: a Science Museum visit with a friend \(Oct\. 2022\), several art or natural\-history museum mentions, and the relevant History Museum lecture about ancient civilizations and Petra \(Jan\. 11, 2023\)\. The second note\-taking step adds a January candidate from a newly surfaced session\. During reasoning, the agent compares these notes rather than relying on the top search hit alone\. This is crucial because the strongest lexical distractor explicitly contains both “museum” and “friend,” but falls outside the intended time window\.

Similar Articles

rohitg00/agentmemory

GitHub Trending (daily)

agentmemory is an open-source persistent memory layer for AI coding agents (Claude Code, Cursor, Gemini CLI, Codex CLI, etc.) that uses knowledge graphs, confidence scoring, and hybrid search to give agents long-term memory across sessions via MCP, hooks, or REST API. Built on the iii engine, it requires no external databases and exposes 51 MCP tools.

@yyyole: Agent memory entrepreneurship is booming! Many teams are working on it, with several mainstream approaches: The first, most brute-force: context expansion. The second, most common: RAG/vector database route, embedding historical content into a vector store for retrieval. The third is product-oriented: memory API route, packaging memory as an API for direct calls. Each approach has its clear pros and cons!

X AI KOLs Timeline

Introduces several mainstream approaches to Agent memory entrepreneurship, recommends the EverMind team's open-source project EverOS, which provides a Markdown-sourced local memory OS supporting dual-track memory, multimodal ingestion, and self-evolution capabilities.