mlsanityData to 7 Oct 2026

Learning to Commit: Generating Organic Pull Requests via Online Repository Memory

arXiv 2603.26664 ↗First posted 27 Mar 2026cs.SE cs.CLcited by 3

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large language model (LLM)-based coding agents achieve impressive results on controlled benchmarks yet routinely produce pull requests that real maintainers reject. The root cause is not functional incorrectness but a lack of organicity: generated code ignores project-specific conventions, duplicates functionality already provided by internal APIs, and violates implicit architectural constraints accumulated over years of development. Simply exposing an agent to the latest repository snapshot is not enough: the snapshot reveals the final state of the codebase, but not the repository-specific change patterns by which that state was reached. We introduce Learning to Commit, a framework that closes this gap through Online Repository Memory. Given a repository with a strict chronological split, the agent performs supervised contrastive reflection on earlier commits: it blindly attempts to resolve each historical issue, compares its prediction against the oracle diff, and distils the gap into a continuously growing set of skills-reusable patterns capturing coding style, internal API usage, and architectural invariants. When a new PR description arrives, the agent conditions its generation on these accumulated skills, producing changes grounded in the project's own evolution rather than generic pretraining priors. Evaluation is conducted on genuinely future, merged pull requests that could not have been seen during the skill-building phase, and spans multiple dimensions including functional correctness, code-style consistency, internal API reuse rate, and modified-region plausibility. Experiments on an expert-maintained repository with rich commit history show that Online Repository Memory effectively improves organicity scores on held-out future tasks.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 21 references that are in the map. First posted on arXiv 27 Mar 2026.

Builds on

19 of 21 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration4 Mar
  2. 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair27 Feb
  3. 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agents25 Feb
  4. 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery10 Feb
  5. 2026SWE Context Bench: A Benchmark for Context Learning in Coding9 Feb
  6. 2026Agyn: A Multi-Agent System for Team-Based Autonomous Software Engineering1 Feb
  7. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr

Other references · 12

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  4. 2026OpenClaw-RL: Train Any Agent Simply by Talkingcited by 83
  5. 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontierscited by 60
  6. 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 57
  7. 2025SWE-Bench++: A Framework for the Scalable Generation of Software Engineering Benchmarks from Open-Source Repositoriescited by 27
  8. 2025Improving Code Localization with Repository Memorycited by 19
  9. 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9
  10. 2026Live-Evo: Online Evolution of Agentic Memory from Continuous Feedbackcited by 8
  11. 2022CommitBART: A Large Pre-trained Model for GitHub Commitscited by 6
  12. 2026Pull Requests as a Training Signal for Repo-Level Code Editingcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents
  2. 2026FastContext: Training Efficient Repository Explorer for Coding Agents
  3. 2026RepoAtlas: Guiding Coding Agents via Evolving Multimodal Repository Views
  4. 2026Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution
  5. 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub
  6. 2026RepoMod-Bench: A Benchmark for Code Repository Modernization via Implementation-Agnostic Testing
  7. 2026Large-scale Repository Engineering via Agent-Native Reusable Code Primitives
  8. 2026Govern the Repository, Not the Agent: Measuring Ecosystem-Level Risk in AI-Native Software