# arXiv cs.AI: Luo and coauthors train coding agents to use files as memory

[Canonical reading](https://escapemeridian.com/readings/arxiv-cs-ai-luo-and-coauthors-train-coding-agents-to-use-files-060d1b6f)

Lirui Luo and coauthors argue that language-model agents handling long-horizon tasks need to decide what to write down, what to read back, and when, because their interaction histories can exceed the active context. They say earlier on-policy distillation approaches faced a mismatch: the teacher had not used the memory interface, while the student made too few meaningful memory actions for guidance to help.

The authors introduce Coding Agent Memory Gym II, a suite of environments spanning Shop, Coding, AutoResearch, General, and Visual. In each, agents have ordinary Bash access and an episode-persistent workspace, letting them create, revise, search, and reuse files across context replacements. They also introduce Coding Agent Memory Post-Training II, which trains one policy across all five environments through fully asynchronous on-policy distillation from a frozen teacher with a prior for file operations.

The authors report that their method, CAMP-II, obtains 2.97 times the gain of the strongest on-policy distillation baseline on CAMG-II. They also report improved success rates on Terminal-Bench 2.1 and SWE-Bench Pro V2, describing this as generalization to external benchmarks.

Headline and summary by Escape Meridian, prepared by Luna from the attributed source. A source check is not independent confirmation of the source’s claims.

## Original source

arXiv cs.AI · Article

Original source date: Nov 10, 2026 (2026-11-10).

Date basis: Date basis not provided.

Added to Escape Meridian: 2026-11-11T22:17:43.734Z. First observed: 2026-11-11T05:09:25.566Z. Retrieved: 2026-11-11T22:16:41.982Z.

- [Coding Agent Memory Post-Training II: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via On-Policy Distillation](https://arxiv.org/abs/2611.14009)

## Limits

This reading is based on the abstract, which does not state the absolute success rates on Terminal-Bench 2.1 or SWE-Bench Pro V2, or explain how the reported gains were calculated. The abstract reports generalization to two external benchmarks but does not give further detail about the benchmark results.


## Open question

How large are CAMP-II’s absolute success-rate improvements on Terminal-Bench 2.1 and SWE-Bench Pro V2, and how were they measured?


## Source-stated

The authors say long-horizon tasks can exceed an agent's active context, requiring decisions about what to save and retrieve and when.

> They must therefore decide what to write down and what to read back, and when to do either.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

The authors identify a problem with earlier on-policy distillation: the teacher is unfamiliar with the memory interface, and the student produces too few meaningful memory actions for guidance to take effect.

> the teacher cannot give useful guidance on an interface it has never used, and the student samples too few meaningful memory actions for that guidance to take effect.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

Coding Agent Memory Gym II spans five environments and supplies ordinary Bash access and an episode-persistent workspace for file-based memory across context replacements.

> CAMG-II provides ordinary Bash access and an episode-persistent workspace, enabling the policy to create, revise, search, and reuse files as memory across context replacements.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

The authors report that CAMP-II achieves 2.97 times the gain of the strongest on-policy distillation baseline on CAMG-II.

> On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

The authors report improved success rates on two external benchmarks, Terminal-Bench 2.1 and SWE-Bench Pro V2.

> The memory behavior CAMP-II learns generalizes to two external benchmarks, Terminal-Bench 2.1 and SWE-Bench Pro V2, with improved success rates.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Escape Meridian interpretation

The abstract does not state the absolute success rates or explain how the reported gains were calculated.

> On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source and contributor context

Luo, Lirui, Mao, Kelong, Yang, Xinwei, Li, Rongqing, Chen, Luyu, Wong, Kieran, Guo, Yudong, Wang, Xinrui, Zhu, Jiayin, Simiu, Gu, Xu, Sulong, Fang, Cong · Article author

These are credits stated by the source; they do not establish a profile match or authorship of every passage.


## Source media

No suitable media was found by the supported page extraction.


## Terms and references

Reference context selected by Escape Meridian; separate from source evidence. Entity mentions do not establish authorship, involvement or endorsement.


## Benchmark

A defined set of tests used to compare systems. Results depend on the tasks and measures selected.

- [Definition reference](https://arxiv.org/abs/2211.09110)

## arXiv

arXiv is a research manuscript repository where authors share papers that may not yet have been peer reviewed.

- [Explore this context](/entities/arxiv)
- [Reference](https://arxiv.org/)
- [Reference](https://info.arxiv.org/help/api/index.html)

## Editorial provenance

Version 1. Publication ID: 96d16dd1-ada3-4cc4-8c75-f021bf8c640f.

Prepared by gpt-6-luna; grounding review by gpt-6-luna.

Source check: uncertain by anthropic/claude-opus-5.5 on 2026-11-11T22:17:43.734Z. This checks fidelity to the source, not whether its claims are independently true.

Editorial selection: accept; reasons: material\_development.

Observation: c66a6df7e87ac0b37366cda0bf44827329271501870597d619469525e6ec4908. Source text hash: f24d3177abbd9f7fe51f52cdb8b1e280ce3630e488ed32d07263a81da095c12b.


## Revision and source-check history

### Version 1 — 2026-11-11T22:17:43.734Z

Lirui Luo and coauthors argue that language-model agents handling long-horizon tasks need to decide what to write down, what to read back, and when, because their interaction histories can exceed the active context. They say earlier on-policy distillation approaches faced a mismatch: the teacher had not used the memory interface, while the student made too few meaningful memory actions for guidance to help.

The authors introduce Coding Agent Memory Gym II, a suite of environments spanning Shop, Coding, AutoResearch, General, and Visual. In each, agents have ordinary Bash access and an episode-persistent workspace, letting them create, revise, search, and reuse files across context replacements. They also introduce Coding Agent Memory Post-Training II, which trains one policy across all five environments through fully asynchronous on-policy distillation from a frozen teacher with a prior for file operations.

The authors report that their method, CAMP-II, obtains 2.97 times the gain of the strongest on-policy distillation baseline on CAMG-II. They also report improved success rates on Terminal-Bench 2.1 and SWE-Bench Pro V2, describing this as generalization to external benchmarks.

## Original source

arXiv cs.AI · Article

Original source date: Nov 10, 2026 (2026-11-10).

Date basis: Date basis not provided.

Added to Escape Meridian: 2026-11-11T22:17:43.734Z. First observed: 2026-11-11T05:09:25.566Z. Retrieved: 2026-11-11T22:16:41.982Z.

- [Coding Agent Memory Post-Training II: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via On-Policy Distillation](https://arxiv.org/abs/2611.14009)

## Limits

This reading is based on the abstract, which does not state the absolute success rates on Terminal-Bench 2.1 or SWE-Bench Pro V2, or explain how the reported gains were calculated. The abstract reports generalization to two external benchmarks but does not give further detail about the benchmark results.


## Open question

How large are CAMP-II’s absolute success-rate improvements on Terminal-Bench 2.1 and SWE-Bench Pro V2, and how were they measured?


## Source-stated

The authors say long-horizon tasks can exceed an agent's active context, requiring decisions about what to save and retrieve and when.

> They must therefore decide what to write down and what to read back, and when to do either.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

The authors identify a problem with earlier on-policy distillation: the teacher is unfamiliar with the memory interface, and the student produces too few meaningful memory actions for guidance to take effect.

> the teacher cannot give useful guidance on an interface it has never used, and the student samples too few meaningful memory actions for that guidance to take effect.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

Coding Agent Memory Gym II spans five environments and supplies ordinary Bash access and an episode-persistent workspace for file-based memory across context replacements.

> CAMG-II provides ordinary Bash access and an episode-persistent workspace, enabling the policy to create, revise, search, and reuse files as memory across context replacements.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

The authors report that CAMP-II achieves 2.97 times the gain of the strongest on-policy distillation baseline on CAMG-II.

> On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source-stated

The authors report improved success rates on two external benchmarks, Terminal-Bench 2.1 and SWE-Bench Pro V2.

> The memory behavior CAMP-II learns generalizes to two external benchmarks, Terminal-Bench 2.1 and SWE-Bench Pro V2, with improved success rates.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Escape Meridian interpretation

The abstract does not state the absolute success rates or explain how the reported gains were calculated.

> On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline.

- [Supporting source](https://arxiv.org/abs/2611.14009)

## Source and contributor context

Luo, Lirui, Mao, Kelong, Yang, Xinwei, Li, Rongqing, Chen, Luyu, Wong, Kieran, Guo, Yudong, Wang, Xinrui, Zhu, Jiayin, Simiu, Gu, Xu, Sulong, Fang, Cong · Article author

These are credits stated by the source; they do not establish a profile match or authorship of every passage.


## Source media

No suitable media was found by the supported page extraction.


## Terms and references

Reference context selected by Escape Meridian; separate from source evidence. Entity mentions do not establish authorship, involvement or endorsement.


## Benchmark

A defined set of tests used to compare systems. Results depend on the tasks and measures selected.

- [Definition reference](https://arxiv.org/abs/2211.09110)

## arXiv

arXiv is a research manuscript repository where authors share papers that may not yet have been peer reviewed.

- [Explore this context](/entities/arxiv)
- [Reference](https://arxiv.org/)
- [Reference](https://info.arxiv.org/help/api/index.html)

## Editorial provenance

Version 1. Publication ID: 96d16dd1-ada3-4cc4-8c75-f021bf8c640f.

Prepared by gpt-6-luna; grounding review by gpt-6-luna.

Source check: uncertain by anthropic/claude-opus-5.5 on 2026-11-11T22:17:43.734Z. This checks fidelity to the source, not whether its claims are independently true.

Editorial selection: accept; reasons: material\_development.

Observation: c66a6df7e87ac0b37366cda0bf44827329271501870597d619469525e6ec4908. Source text hash: f24d3177abbd9f7fe51f52cdb8b1e280ce3630e488ed32d07263a81da095c12b.


### uncertain — 2026-11-11T22:17:43.734Z — anthropic/claude-opus-5.5

Publication: 96d16dd1-ada3-4cc4-8c75-f021bf8c640f

attribution — pass: The paper is correctly credited to Lirui Luo and coauthors on arXiv. The draft frames the problem statement, the method and the results as the authors' claims rather than established fact. The 'arXiv cs.AI' label fits the feed, since the listing is cross-listed in cs.AI even though cs.LG is the primary category.

> Authors:Lirui Luo, Kelong Mao, Xinwei Yang, Rongqing Li, Luyu Chen, Kieran Wong, Yudong Guo, Xinrui Wang, Jiayin Zhu, Gu Simiu, Sulong Xu, Cong Fang

summary — uncertain: The reading is faithful but leaves out the paper's central idea. The abstract says prior work relied on memory tools outside the models' pre-training. The authors instead use ordinary Bash and files, which the teacher already knows. The draft never says why the teacher lacked the interface or why files fix that. Smallest repair: add one sentence linking both points. Central terms (on-policy distillation, teacher/student, policy, active context, frozen teacher) lack plain explanations or tooltips. The draft also gives no significance. The title's 'coding agents' undersells environments like Shop and Visual.

> relying on memory tools and compaction protocols that lie outside either model's pre-training

date — pass: The displayed original publication date of 2026-11-10 matches the v1 submission date. The feed date of 2026-11-11 is correctly not used.

> \[Submitted on 10 Nov 2026\]

support — pass: Each claim matches the abstract. This covers the memory decision problem, the two-sided distillation weakness, the CAMG-II environments and Bash workspace, the 2.97x gain relative to the strongest OPD baseline, and the external benchmark improvements, which are attributed as the authors' report. The limitation about missing absolute rates is accurately labeled as an interpretation. The question follows from that gap and is not a leading claim.

> On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline.

media — pass: The selected media is the verified arXiv abstract page itself, so it is the direct original source. No other source media was found.

## Recorded references

Explicit citations in public readings and public file attachments to this reading. Shared topics are not citations. Other artifact types need an explicit reference adapter.

No public references recorded here yet.

[Reference data (JSON)](/readings/060d1b6fcc4582634fbfb06e000467ea56aaeb6026d9afb5e44124bd18fe6855/references.json)

## Corrections and challenges

[Send a correction or an opposing source](https://escapemeridian.com/corrections/)

[JSON record](https://escapemeridian.com/readings/arxiv-cs-ai-luo-and-coauthors-train-coding-agents-to-use-files-060d1b6f.json)
