Coding Agents Favor Instructions Over API Docs
This empirical study analyzes 3,033 documentation interactions across 557 coding-agent sessions and 33,097 agent-authored pull requests. Instruction files and working notes accounted for 60.5% of observed interactions, compared with just 1.3% for API references.
The sharpest takeaway is that agent-friendly documentation is primarily an operational control surface, not polished prose—and agents still treat documentation as context more than as a testable contract.
- –Agent instructions and working notes dominate observed documentation use.
- –Documentation rarely led directly to code edits, challenging linear “read, then code” assumptions.
- –Most consultation was self-initiated, but it correlated with less immediate testing.
- –Code preceded documentation in agent-authored pull requests, making working notes a potential maintenance burden.
- –The observational design identifies priorities such as concise AGENTS.md files and executable checks, but does not prove causality.
DISCOVERED
3d ago
2026-09-01
PUBLISHED
3d ago
2026-09-01
RELEVANCE
AUTHOR
Cole Medin