Replication package
Pranav Swarup Kumar · Karthik Vaidhyanathan
Software Engineering Research Centre (SERC), IIIT Hyderabad, India
This repository contains every input, output, label, guideline and script used in the paper. Each stage of the study has its own folder, numbered in the order the stages were run, so that any count in the paper can be traced back to the file it came from.
Overview of the study's five stages. Each stage reports the number of papers it retains and the validation applied to it.
Memory is increasingly built into LLM-based coding agents. However, the term is applied to mechanisms that compress the current context, retrieve external knowledge, or retain experience from previous tasks. Understanding these differences is needed to design and evaluate memory management in coding agents. We report a rapid review of how LLM-based coding agents use memory. We examine which mechanisms exist, whether their implementations are available, and what limitations their authors report, including how these mechanisms are evaluated. We retrieved 2,411 records from Scopus, arXiv and OpenAlex. We then identified 860 primary studies using LLM-assisted screening validated against human labels, of which 289 provide an implementation that others can inspect. We classified these studies manually by the source of the information their memory supplies. The 201 studies with a memory mechanism fall into three groups, with 95 managing context during a single task, 56 retaining experience across tasks and 50 retrieving external knowledge. For the studies whose memory serves a single task or carries experience across tasks, we extracted the limitations the authors report about their own work from the full text using a fixed form. We found recurring gaps in how memory mechanisms are evaluated and in how their memory is built. We derive lessons on how memory in coding agents is described, built and evaluated and propose directions for future work. Our protocol, data and scripts are publicly available.
Index Terms: coding agents, agent memory, context management, rapid review, large language models
| Question | |
|---|---|
| RQ1 | What is the landscape of memory and information-handling mechanisms in LLM-based coding agents, and how much of it can be inspected through an available implementation? |
| RQ2 | What types of memory mechanisms are implemented in coding agents, by the source of the information they supply? |
| RQ3 | What limitations and challenges do the authors of these mechanisms report, and how do they evaluate them? |
The exact string run on Scopus, fixed on 2 August 2026 (search_string.txt). It has four blocks: model, agent, memory and software engineering. arXiv and OpenAlex were queried through their APIs with the same term blocks and filtered locally, without the agent block, which was enforced at screening instead; see search_protocol.md.
TITLE-ABS-KEY ( "large language model*" OR LLM* OR "language model*" OR "foundation model*" OR "coding agent*" OR "code agent*" OR "software engineering agent*" OR "SWE agent*" )
AND TITLE-ABS-KEY ( agent* OR agentic OR "multi-agent" )
AND TITLE-ABS-KEY ( memory OR experience OR reflection OR trajector* OR "continual learning" OR "lifelong learning" OR self-improv* OR self-evolv* OR "knowledge accumulation" OR "skill librar*" OR "case-based reasoning" OR "context management" OR "context compression" OR "context pruning" OR "context folding" )
AND TITLE-ABS-KEY ( "software engineering" OR "software development" OR "code generation" OR "code completion" OR "program repair" OR "issue resolution" OR "bug fix*" OR repositor* OR codebase OR "SWE-bench" OR "SWE-agent" OR "coding agent*" OR "software agent*" OR SWE )
The classification adapts the three memory sources of Zhang et al. (A Survey on the Memory Mechanism of Large Language Model-Based Agents, ACM TOIS 2025) from trials to tasks.
| Source | The mechanism supplies information that is... | Example |
|---|---|---|
| Within-task | produced during the current task and not available to any later task | SWE-Pruner |
| Cross-task | produced by executing earlier, separate tasks (by the same agent, other agents or human developers) | SWE-Exp |
| External | persistent and produced by no task, such as documentation, web search or a code index not updated from task outcomes | Prometheus |
Cross-task, within-task and external information management in coding agents.
Papers with no agent-side mechanism are recorded with one of three reasons: the agent learns in model weights, there is no identifiable information-handling mechanism, or the paper studies human-written context files. The full decision rules are in 4_classification/guidelines.md.
Implementation screening: candidate links from five sources, inspected against the four availability criteria.
| Stage | Result |
|---|---|
| Search | 2,411 unique records from Scopus, arXiv and OpenAlex |
| Relevance screening | 1,048 relevant: 860 primary studies, 104 surveys, 84 benchmarks |
| Implementation screening | 598 papers with a candidate link; 289 with an available implementation |
| Classification | 95 within-task · 50 external · 56 cross-task · 88 no agent-side mechanism |
| Limitation extraction | 151 within- and cross-task papers coded on 11 limitation fields; most frequent: generalizability (116 papers, 77%) |
The study follows the guidelines for systematic mapping studies of Petersen et al. (IST 2015) under rapid-review constraints, and is reported according to SEGRESS.
- Search. A four-block string (model ∧ agent ∧ memory ∧ code), fixed on 2 August 2026, was run on Scopus directly and on arXiv and OpenAlex through their APIs. Recall was checked against a quasi-gold standard of 25 papers: 24 were found.
- Relevance screening. An LLM (qwen3.5:397b, temperature 0) screened titles and abstracts against the inclusion and exclusion criteria and returned an inclusion probability, a bucket and a reason. Records scoring at least 0.70 were retained.
- Implementation screening. Candidate links were collected from the full text, the arXiv comment field, Zenodo, Hugging Face and a GitHub search. Every paper with a link was then judged by hand against four criteria adapted from the ACM Artifacts Available badge: accessible, author-created, relevant to the paper, and containing source code.
- Classification. Each of the 289 papers was classified by hand from its full text by information source, role (core or component) and software engineering activity, with a verbatim quote and a rationale per paper.
- Limitation extraction. The 151 within-task and cross-task papers were coded on an 11-field limitation form derived from a 30-paper pilot. Two LLMs (deepseek-v4-pro:0813 and glm-5.3, temperature 0) filled in the form independently from the full text, backing each field with verbatim quotes; the 173 decisions on which they disagreed were adjudicated by hand.
| Stage | Sample | Agreement |
|---|---|---|
| Relevance screening | 60 records, stratified by score band | Rater vs rater κ = 0.92; LLM vs consensus κ = 0.69; estimated recall 91.4% |
| Implementation screening | 50 papers, random | κ = 0.88 (47 of 50) |
| Classification | 30 papers, random | κ = 0.82 (26 of 30) |
| Limitation extraction | 151 papers × 11 fields (LLM vs LLM); 30 papers, stratified (human) | LLM vs LLM κ = 0.75; human vs final values κ = 0.70 (95% CI 0.60–0.79) |
replication/
├── FREEZE.md Record of the frozen protocol versions
├── figures/ Figures used in this README (SVG)
├── corpus/
│ └── corpus.csv The 2,411 deduplicated records
├── quasi_gold_standard_test_qgs/
│ ├── definitions.md How the QGS was assembled
│ └── qgs.csv QGS papers and whether the search found them
├── 1_search_string_and_corpus/
│ ├── search_protocol.md Sources, blocks, dates and revision history
│ └── search_string.txt The exact search string
├── 2_relevance_check_and_bucketing/
│ ├── relevance.md Screening criteria and cutoff
│ ├── screened_qwen3.5_397b_r1.jsonl LLM output for every screened record
│ └── cohens_kappa/ Validation sample, both raters' labels, disagreements
├── 3_implementation_screening/
│ ├── 598_papers_to_be_reviewed.xlsx Papers with at least one candidate link
│ ├── PSK_rated_implementations.xlsx First rater
│ ├── AG_rated_implementations.xlsx Second rater (random sample)
│ ├── rated_implementations_discrepancies.xlsx
│ ├── rated_implementations_final_598.xlsx
│ └── outcome_screening.md
├── 4_classification/
│ ├── classification_joined.xlsx ★ Final classification of all 289 papers
│ ├── guidelines.md Classification guideline
│ ├── rationale.md Per-paper rationales
│ ├── classification_report.md
│ ├── manifest.csv
│ ├── notes.txt
│ ├── cohens_kappa/ 30-paper sample, both raters' labels, mismatches
│ └── results/ One JSON per classified paper
├── 5_rq3_form/
│ ├── README.md Details of the RQ3 extraction
│ ├── report.md
│ └── results/ Extracted fields, LLM outputs, agreement, human evaluation
└── scripts/
├── stage1/ Harvesting (arXiv, OpenAlex) and deduplication
├── stage2/ LLM screening and kappa sample
├── stage3/ Implementation-screening sample and rating tool
├── stage4/ Joining classification results and rating tool
└── stage4_rq3_form/ RQ3 extraction form, prompt and pipeline
4_classification/classification_joined.xlsx holds the classification of all 289 papers with an available implementation: information source, role, software engineering activity, the verbatim quote that supports each decision, and the rationale. It is the file to start from if you want to reuse or extend the mapping.
The scripts are written in Python and should be run in the order of the stage folders.
| Step | Scripts | Output |
|---|---|---|
| Harvest and deduplicate | scripts/stage1/ |
corpus/corpus.csv |
| Relevance screening | scripts/stage2/screen.py |
2_relevance_check_and_bucketing/screened_*.jsonl |
| Screening validation | scripts/stage2/cohens_kappa/ |
2_relevance_check_and_bucketing/cohens_kappa/ |
| Implementation validation | scripts/stage3/ |
3_implementation_screening/ |
| Classification | scripts/stage4/ |
4_classification/ |
| RQ3 extraction | scripts/stage4_rq3_form/rq3_01 to rq3_05 |
5_rq3_form/results/ |
Requirements. TODO: Python version and requirements.txt.
LLM screening and extraction call hosted models and need an API key for the provider. LLM outputs can vary between runs even at temperature 0, so the outputs used in the paper are included and all later stages can be rerun from them.
This replication package is archived on Zenodo: doi.org/10.5281/zenodo.24415184.
If you use this package, please cite:
@misc{kumar2026codingagentsmemory,
title = {How do Coding Agents Leverage Memory? A Rapid Review},
author = {Kumar, Pranav Swarup and Vaidhyanathan, Karthik},
year = {2026},
note = {Under review}
}- Code (
scripts/): MIT License. - Data, labels, guidelines and reports: CC BY 4.0.
- Bibliographic metadata retrieved from Scopus, arXiv and OpenAlex remains subject to the terms of those sources.
We sincerely thank Aviral Gupta for independently labelling the validation samples.
Pranav Swarup Kumar, pranavswarup.kumar@research.iiit.ac.in