arXiv(opens in a new tab)cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.11578

Chronos Enables Code Agents to Reason over Software Evolution

Xin Yin, Yiang Zhang, Zhiyuan Peng, Chao Ni, Zhe Cui, Xiaohua Xin

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

XIN YIN ∗^{*}, Zhejiang University, China

YIANG ZHANG ∗^{*}, Zhejiang University, China

ZHIYUAN PENG, Shanghai Jiao Tong University, China

CHAO NI, Zhejiang University, China

ZHE CUI, Hithink Research, China

XIAOHUA XIN, National Industrial Information Security Development Research Center, China

Historical pull requests record the design decisions, compatibility constraints, and implementation patterns behind a codebase's current state. Experience relevant to a new task can span related changes whose descriptions emphasize different concerns. We introduce Chronos, a test-time framework that makes this connected history available to large language model (LLM)-based code agents. Chronos distills merged pull requests into structured experience cards and connects them through a typed graph of code-level, developer-intent, and organizational relations. Semantic search identifies entry cards, and weighted multi-hop expansion retrieves connected changes for selective reading. The same memory guides candidate generation and patch selection: a patch-focused change agent and a validation-strategy agent each develop a patch, and an evolution steward consults history to select between them. On SWE-Bench Verified, the full workflow improves SWE-Agent across all six evaluated LLM backbones, raising the mean resolution rate from 69.2% to 72.9% and reaching 79.8% with MiniMax M2.5. With the same backbone, it raises resolution rates from 48.3% to 51.7% on SWE-Bench Pro and from 41.0% to 43.5% on FEA-Bench Lite. Both experience-guided single-agent variants also outperform the base agent. In a human evaluation on 100 tasks with ten cards retrieved per task, graph-grounded retrieval increases the mean number of useful cards from 1.24 to 2.87 over flat semantic retrieval. These results demonstrate the value of PR relations for retrieving useful repository experience and of the evaluated workflows for applying that experience during patch generation and selection.

CCS Concepts: • Software and its engineering → Software evolution; • Computing methodologies → Machine learning.

Additional Key Words and Phrases: Code agents, software evolution, repository history, graph retrieval

1 Introduction

Code agents based on large language models perform repository-level software engineering tasks by inspecting source code, invoking tools, and producing patches. SWE-Bench established a common evaluation setting for real-world issue resolution [Jimenez et al. 2024], and frameworks such as SWE-Agent [Yang et al. 2024] provide tool interfaces for repository exploration and code modification. Software maintenance also encompasses feature implementation [Li et al. 2025; Zhou et al. 2026], compatibility maintenance through code migration [Cheng et al. 2025; Liu et al. 2025], and refactoring [Gautam et al. 2025; Thillen et al. 2026]. Across these tasks, a successful change must satisfy the behavioral requirements and constraints accumulated as a codebase evolves.

The current source tree exposes how a system behaves; its development history records the decisions that shaped that behavior. Pull requests (PRs) connect code changes with the problems that motivated them, review discussions, and implementation choices. This context can explain why a compatibility branch exists, which assumption an earlier fix corrected, or how a component was extended after its introduction. Experienced developers draw on this knowledge when planning new changes. For a code agent, retrieving the relevant history provides access to prior reasoning that would otherwise have to be reconstructed from the current code.

∗^{*}Equal contribution.

Yin et al.

Figure

SWE-bench Verified

SWE-Bench Pro

FEA-Bench Lite

Fig. 1. Resolution rates of representative agents across three benchmarks. Labels identify the backbone and scaffold of each configuration; Tables 4 and 5 give our backbone-specific comparisons. Each system submits one final patch per task. Colors distinguish Chronos, open-scaffold systems, and proprietary systems.

Recent work makes such experience accessible through memory and retrieval. MemGovern [Wang et al. 2026a] organizes human repair experience into structured cards that agents search and browse, while Repository Memory [Wang et al. 2026b] uses a target repository's commits and linked issues to support localization. These approaches make prior solutions available through task-conditioned search and selective inspection. The organization of that context poses a further challenge: experience relevant to one task can span changes whose descriptions emphasize different concerns. An initial repair, a subsequent extension, and a related backport may jointly explain how to adapt a component, although only one strongly matches the current query. Ranking records solely by their similarity to the query leaves these relationships outside the retrieval decision.

Our central insight is that relations between historical changes provide a second retrieval signal for repository experience. PRs expose this signal through repeated changes to the same files, development on newly introduced components, explicit references, and shared workflow context. These observable relations make connected changes discoverable even when their descriptions emphasize different symptoms or development objectives. The technical challenge is to follow these relations from semantic entry points, recover additional historical evidence, and prioritize it within a compact shortlist that an agent can inspect.

We introduce Chronos, a test-time framework that turns a repository’s PR history into searchable, graph-structured software-evolution experience. Its memory layer has two complementary parts. Four-field experience cards capture the Summary, Signals, Motivation, and Solution of each historical change. A typed evolution graph connects those cards through code-level continuity, developer intent, and organizational context. At task time, semantic search locates entry-point cards, weighted multi-hop expansion finds connected PRs, and the agent selectively reads the resulting experience. The graph determines which connected changes become candidates for inspection, while the cards explain the rationale and implementation logic needed to apply their experience.

The same memory interface supports both code generation and candidate selection. Our full resolution workflow uses a patch-focused change agent to investigate design intent and a validation-strategy agent to investigate behavioral mismatches and regression risks. Each produces a candidate patch. An evolution steward independently consults the memory and current source code to select the final candidate. Repository experience thus informs two decisions: how to implement a change and which proposed implementation best addresses the task. The retrieval service remains separate from these roles and integrates with existing agent tool interfaces without model fine-tuning.

We evaluate Chronos on SWE-Bench Verified [Chowdhury et al. 2024], SWE-Bench Pro [Deng et al. 2025], and FEA-Bench Lite [Li et al. 2025]. On SWE-Bench Verified, the full workflow improves SWE-Agent across all six evaluated LLM backbones, raising the mean resolution rate from 69.2% to 72.9% and reaching 79.8% with MiniMax M2.5. With the same backbone, Chronos raises resolution rates from 48.3% to 51.7% on SWE-Bench Pro and from 41.0% to 43.5% on FEA-Bench Lite. The two single-agent variants reach 78.4% and 77.8%, compared with 76.4% for the base agent, showing that the experience-guided strategies also improve resolution when each produces a single candidate. In a human evaluation on 100 sampled tasks, graph-grounded retrieval raises the average number of useful cards among ten returned cards from 1.24 to 2.87 and the fraction of tasks receiving useful experience from 68% to 89%, compared with flat semantic retrieval. The benchmark results establish gains for the evaluated resolution workflows, while the retrieval study shows that PR relations help recover useful historical context within a fixed retrieval depth. Figure 1 places the system results alongside representative agent configurations.

Our contributions are:

• Relational organization of software-evolution experience. We connect PR-level experience cards through eleven relation types spanning code, developer intent, and organizational context. Semantic entry search and weighted graph expansion use these relations to discover and rank connected historical experience.

• Experience use in generation and selection. We expose the memory through search and read tools and integrate it into a resolution workflow with two candidate-producing strategies and an independent history-informed selector. The architecture separates reusable repository memory from the agents that consume it.

• Evaluation of task performance and experience retrieval. We evaluate task resolution on three benchmarks, performance across six backbones on SWE-Bench Verified, and integration with two agent scaffolds. Single-agent and retrieval ablations examine component contributions, while human evaluation measures the useful experience recovered through graph expansion and the effect of removing individual relation types.

Figure

Fig. 2. Overview of Chronos. PR-level experience cards are connected by a typed evolution graph. Search and read tools expose this memory to candidate-generating agents and an evolution steward that selects the final patch.

Yin et al.

References (32)