Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
We investigate whether natural-language documentation helps coding agents resolve software issues, and we build the tools to construct and evaluate it. We introduce a roundtrip benchmark that scores code descriptions by whether code regenerated from them passes the original tests, and show that completeness, not length, drives a description's fidelity. Using the benchmark as an optimization signal, we discover a description-writing prompt that reaches full fidelity and generalizes to unseen files. We then test the hypothesis that motivated the work: that better documentation helps an agent resolve real repository issues. Across two model families and ten repositories, and against a positive control confirming that our evaluation can detect a genuine improvement, we find that it does not. When the source is present, neither static compact documentation nor retrieved context beats the issue alone. We report this negative result together with the benchmark and the optimizer, and we characterize the boundary at which documentation helps.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 33 references that are in the map. First posted on arXiv 25 Sep 2026.
Builds on
17 of 33 references.
Closest ancestors · 2
Same direction, newest first
- 2026ContextBench: A Benchmark for Context Retrieval in Coding Agents5 Feb
- 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents14 Dec
Other references · 15
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2022Automatic Code Documentation Generation Using GPT-3cited by 37
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2023A Comparative Analysis of Large Language Models for Code Documentation Generationcited by 24
- 2026RepoGenesis: Benchmarking End-to-End Microservice Generation from Readme to Repositorycited by 8
3 more
- 2026Can LLMs Compress (and Decompress)? Evaluating Code Understanding and Execution via Invertibilitycited by 4
- 2025MRG-Bench: Evaluating and Exploring the Requirements of Context for Repository-Level Code Generationcited by 3
- 2026SWE-Bench 5G: Benchmarking AI Coding Agents on Telecom Network Engineering Taskscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentation
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding
- 2026Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation
- 2026DocSync: Agentic Documentation Maintenance via Critic-Guided Reflexion
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks
- 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generation
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents
- 2026Latent Programming Horizons in Coding Agents