cs.SESep 25, 2026

Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer

Authors: Md Shohel Arman, Igor Molybog

Organizations: Daffodil International University, Dhaka, Bangladesh · HawAII, University of Hawai‘i at M¯anoa, Honolulu, HI, USA

Abstract

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.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Skill Issue: Lessons from Optimizing Repository SKILLs for Coding Agents

    Sep 11, 2026Mykhailo Kozyrev, Andrei Kozyrev, Anton PodkopaevSoftware Engineering AgentsSoftware Engineering Benchmarks

  2. DoGBench: Can Agents Meet Expert Standards for User-Facing Documentation?

    Sep 30, 2026Frances Liu, Manny Silva, Paige Calvert +2Software EngineeringLLM Agent Evaluation

  3. Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?

    Feb 12, 2026Thibaud Gloaguen, Niels Mündler-Sasahara, Mark Niklas Müller +2AI Coding AgentsCoding Agents