Manuscript Offprint

arXiv:2611.06049

Reglos: A Self-Evolving Personal Memory Agent with Recursive Self-Improvement

Sen Yang, Jiaduo Lin, Zehong Huang, Wen Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Personal agents draw on past conversations to tailor their responses to each user. Their memory systems store and update what each user says, and coding agents now also rewrite the harness that turns this memory into the model's context. Such patches risk overfitting, because one tested only on the failures it targets can fix those cases and help nowhere else. We present Reglos, a training-free personal memory agent that tests whether harness changes help beyond the failures they were written to fix. Its self-evolving memory adds to each user's append-only record with every conversation, as new preferences supersede old ones and facts can be forgotten. Its harness improves through recursive self-improvement, in which a coding agent proposes patches from failure traces and a critic from a second model family screens each one for benchmark gaming. After the harness is frozen, a fixed evaluator decides which further patches to accept. With the same backbone behind every system, Reglos outperforms state-of-the-art memory systems such as Mem0, MemOS and EverOS, reaching 61.3% and 84.0% on PersonaMem-v2 and LongMemEval-S with Qwen3.8-27B, and 57.5% and 87.2% with GPT-5.6 Luna.

Website: https://reglos.ai

1 Introduction

A personal assistant that talks with the same user for months has to keep track of what that user prefers (Hu et al. 2025; Jiang et al. 2025b). Some of those preferences change, and the user may later ask the assistant to forget others. Reading the whole history handles this poorly, and even frontier models often miss a preference the user only implied or keep applying one that has changed (Jiang et al. 2025b). Memory systems keep what each user says across conversations and recall it when the model answers (Packer et al. 2023; Chhikara et al. 2025; Rasmussen et al. 2025; Li et al. 2025; Hu et al. 2026). How well they work depends on what they store and on the code that decides what to recall and how to show it to the model, which we call the harness.

Although these systems update what they store as the user talks, the harness itself is usually written by hand and revised between releases. Recent work hands that job to coding agents, which evolve memory programs and pipelines against benchmarks (Liu et al. 2026b; Chen et al. 2026; Zhang et al.

Figure

Figure 1: Qwen3.8-27B writes memory for every system and answers in the top panel; GPT-5.6 Luna answers in the bottom panel. Reglos leads on PersonaMem-v2 and LongMemEval-S. Details in Table 1.

2025). A benchmark score alone leaves one question open: does a change help users whose failures nobody inspected while writing it?

Our own development data show why that question matters. A memory can be stored correctly and still be used wrongly: in 31% of the failures we traced, the evidence the model needed was already in its context (Section 4.1). Those are failures of the harness, and a coding agent can patch them, but a patch judged on the cases that prompted it can look better than it is. A prompt-only search over the harness text in the style of GEPA (Agrawal et al. 2026) gained 3.8 points on the questions it was selected on and 1.1 on questions it had never seen.

These failures point to two kinds of change with different owners. A user's memory changes whenever that user talks, and an error in it is best fixed then, inside that user's record. The harness serves every user at once, so a change to it can

∗^{*}Corresponding authors.

Figure

Figure 2: Reglos improves on two time scales: each user's memory evolves online (inner loop), and the harness that turns memory into context for a frozen model is recursively improved offline (outer loop). The brain-region labels name the write buffer (hippocampus) and the nightly profile (cortex); the proposer is a coding agent.

help some users and hurt others, and that is where overfitting happens. We therefore argue that a personal memory system should improve at two time scales: its memory online as each user talks, and its harness offline through changes that a fixed evaluator accepts only after testing them on held-out users.

We present Reglos, a training-free personal memory agent built on this principle (Figure 2). Its inner loop is a self-evolving memory. Each fact enters an append-only record that stores when it holds and when it was learned, so a new preference can supersede an old one without erasing it. A request to forget expires the matching facts, and a nightly pass rewrites the profile from the user's current facts. Because these states are explicit, the harness can tell the model which of two conflicting preferences is current and what it must not use. Its outer loop improves the harness through recursive self-improvement. A coding agent reads failure traces and writes patches, and a critic from a second model family clusters the same failures and rejects patches that game the benchmark. After the harness is frozen, a fixed evaluator accepts a patch only if it helps users held out from development. The two loops co-evolve. The outer loop learns from the failures of the memory the inner loop builds, and each accepted patch changes how that memory is written and read. Qwen3.8-27B writes memory throughout.

With Qwen3.8-27B writing memory for every system, Reglos outperforms Mem0, MemOS and EverOS on PersonaMem-v2, LongMemEval-S and LoCoMo, whether Qwen3.8-27B or GPT-5.6 Luna answers (Figure 1). On the official PersonaMem-v2 benchmark split it reaches 61.3%, 7.5 points above the strongest of them; the best published result we found is 57.2%, obtained with a GPT-4.1-mini reader (Liu et al. 2026c). On LongMemEval-S it reaches 84.0%, 3.6 points above EverOS. With GPT-5.6 Luna answering, it

scores 57.5% and 87.2% and again leads both benchmarks. Within the outer loop, the coding agent's accepted patches lift the harness from 54.2% to 60.7% on the validation questions.

Our contributions are:

  • A self-evolving personal memory agent. Reglos keeps an append-only memory for each user that records how preferences change and what the user asked to forget (Section 3).

  • Recursive self-improvement of the harness. A coding agent proposes patches from failure traces, a critic from a second model family screens them, and after the freeze a fixed evaluator decides which further patches to keep (Sections 3.4 and 4.3).

  • Training-free results across backbones. Reglos outperforms Mem0, MemOS and EverOS on three benchmarks under two answering models and exceeds the best published result under PersonaMem-v2's official protocol (Section 4).

References (52)