arXiv:2610.12668cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12668

Recurrent Harness for Agentic Continual Learning

Yuxin Xiao, Zhiyun Lu, Jianyu Wang, Yangtian Zhang, Yang Song, Qifan Wang, Bailin Wang

Yuxin Xiao1,∗^{1,*}, Zhiyun Lu2^{2}, Jianyu Wang2^{2}, Yangtian Zhang3^{3}, Yang Song2^{2}, Qifan Wang2^{2}, Bailin Wang2^{2}

1^{1}Massachusetts Institute of Technology, 2^{2}Meta MRS Research, 3^{3}Yale University

*Work done during an internship at Meta MRS Research.

Language model agents increasingly operate over long interaction streams, requiring online adaptation to distribution shifts through continual learning. However, existing agent harnesses typically either evolve their states only through forward information flow or rely on additional replay or validation data for harness optimization. To address this, we propose ReHarness, a recurrent harness framework for agentic continual learning that complements forward read and write with backward revision under a strictly online streaming protocol. We ask what information could have been captured differently in the harness state to better inform the current instance in the stream. Specifically, after each instance, we leverage the resulting trajectory as feedback to revise the reflections retrieved for that instance, thereby propagating feedback backward through the textual harness state. Across three continual learning benchmarks and three language model backbones, ReHarness consistently outperforms strong raw-context baselines, memory- and reflection-based methods, and prompt optimization approaches. Further analysis shows that ReHarness produces source-grounded and meaningful revisions, corrects overgeneralized or outdated experience under distribution shifts, and improves both stability and plasticity during continual learning.

Date: October 12, 2026

Correspondence: Yuxin Xiao at yuxin102@mit.edu and Bailin Wang at bailin@meta.com

Meta

1 Introduction

Language model agents (Guo et al., 2024; Wang et al., 2024a) increasingly move beyond isolated tasks to operate over long interaction streams (Ai et al., 2026; Asawa et al., 2026; He et al., 2026; Zhu et al., 2026). In these settings, agents must adapt to distribution shifts while retaining useful experience from earlier instances in those streams. Recent agent harnesses (Guo et al., 2026a; Ning et al., 2026) enable such continual learning (Wang et al., 2024b; Shi et al., 2025; Zheng et al., 2025) by maintaining persistent runtime scaffolding around a fixed large language model (LLM), often through memory (Chhikara et al., 2025; Zhang et al., 2025b; Dorovatas et al., 2026), reflection (Lingam et al., 2025; Yao et al., 2026; Zhang et al., 2026c), and prompts (Agrawal et al., 2026). This allows agents to improve online without updating model parameters.

However, existing work typically evolves the harness state only through forward information flow. After each instance, these systems extract useful information (Chhikara et al., 2025; Yang et al., 2026; Zhang et al., 2026a) or reflect on the resulting trajectory (Lingam et al., 2025; Yao et al., 2026; Zhang et al., 2026c), integrate the experience into a stateful harness, and later retrieve from it (Wu et al., 2026b; Liu et al., 2026a; Zhang et al., 2026d) to guide future decisions. Nevertheless, once written, memories and reflections are rarely updated based on their effectiveness on later instances. While some methods (Chhikara et al., 2025; Suzgun et al., 2026; Zhang et al., 2026c) curate the harness state through operations such as add and delete, these operations primarily maintain a coherent memory or reflection bank rather than incorporate feedback from downstream use. Other methods (Cai et al., 2026; Kang et al., 2026; Lee et al., 2026; Zhang et al., 2026a) instead optimize the harness state using additional training or validation sets, which are unavailable under a strictly online streaming protocol. Under continual distribution shifts, outdated memories or overconfident reflections can therefore persist in the harness state and repeatedly misguide future decisions.

To address this gap, we propose ReHarness to close the recurrent loop for agentic continual learning. ReHarness complements the forward information flow in existing work with a backward revision mechanism. The revision asks what information from past experience could have been captured differently to better inform the current instance. Specifically, after each instance, we use a revision agent to revisit the reflections retrieved for that instance. We use the resulting trajectory as feedback for revision, while requiring any new content to remain grounded in the reflections' source trajectories. In this way, ReHarness propagates feedback backward through the textual harness state and carries the revised state forward to future instances. This enables online harness adaptation under a strictly streaming protocol without instance replay or gradient-based parameter updates. Together, forward read and write, coupled with backward revision, form a recurrent harness that can promptly correct outdated memories or overconfident reflections under distribution shifts.

We demonstrate that ReHarness consistently improves continual learning across three benchmarks (Ai et al., 2026; Asawa et al., 2026; He et al., 2026) and three backbone LLMs (Anthropic, 2026; Google DeepMind, 2026; OpenAI, 2026a). In particular, ReHarness outperforms strong raw-context baselines, structured memory and reflection methods (Chhikara et al., 2025; Lingam et al., 2025; Ouyang et al., 2026; Zhang et al., 2026c), and prompt optimization approaches (Agrawal et al., 2026). These improvements are statistically significant against all baselines, and the gains remain broadly consistent across the 16 evaluated tasks, including challenging settings where most baselines degrade relative to their stateless backbones. Further analysis confirms that ReHarness produces source-grounded, meaningful revisions and improves both stability and plasticity during continual learning. Qualitative examples and harness state dynamics illustrate how ReHarness corrects early overgeneralizations and revises outdated experience after distribution shifts. Finally, ablation studies show that ReHarness does not require a large revision set to outperform the strongest full-history baseline, while using roughly one-third as many tokens.

We summarize our contributions as follows:

  • We propose ReHarness, which combines forward information flow with backward revision to form a recurrent harness for agentic continual learning in an online streaming setting.

  • We show that ReHarness outperforms strong baselines across three continual learning benchmarks and three LLM backbones, with statistically significant gains consistent across challenging tasks.

  • We demonstrate that ReHarness produces source-grounded and meaningful revisions, adapts overgeneralized or outdated reflections under distribution shifts, and improves stability and plasticity.

References (68)