Paper deep dive
From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentation
Zhijun Gao, Jing Chen
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 95%
Last extracted: 8/21/2026, 4:17:09 AM
Summary
This empirical study analyzes how autonomous coding agents interact with technical documentation using two datasets: SWE-chat (557 sessions, 94,813 events) and AIDev (33,097 pull requests, 690,260 file changes). The research challenges traditional assumptions about agent-documentation behavior, finding that agents primarily interact with agent-facing artifacts (instruction files and working notes, 60.5%) rather than classical technical documentation (10.6%) or API references (1.3%). The study reveals that documentation consultation is mostly self-initiated (70.2%) and often trails code changes (code is touched first 4.7x more often). Furthermore, the link between reading documentation and immediate code editing is weak, and no explicit documentation-based validation sequences were observed. The authors propose a 'two-lobed cycle' model of interaction and question the behavioral validity of 'agent-friendly' documentation properties like actionability and verifiability.
Entities (11)
Relation Signals (9)
Zhijun Gao → affiliatedwith → Peking University
confidence 99% · Zhijun Gao Affiliation: Peking University
Jing Chen → affiliatedwith → Peking University
confidence 99% · Jing Chen Affiliation: Peking University
AIDev → contains → pull requests
confidence 95% · 33,097 agentic pull requests from AIDev
SWE-chat → contains → coding sessions
confidence 95% · 557 agentic coding sessions from SWE-chat
code → precedes → documentation
confidence 94% · code is touched first 4.7x more often than documentation
Coding Agents → initiates → documentation consultation
confidence 93% · consultation is self-initiated (70.2%) far more often than it is failure-driven (7.5%)
Coding Agents → interactswith → agent-facing artefacts
confidence 92% · agents' documentation work is dominated by agent-facing artefacts... account for 60.5%
Coding Agents → interactswith → API references
confidence 90% · API references for 1.3%
Coding Agents → interactswith →
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Technical documentation is written for human developers, but an increasing share of software changes is now authored by autonomous coding agents. Which documents they consult, when, and what follows remain unknown. We conduct a behaviour-grounded study of agent-documentation interaction across two public datasets: 557 agentic coding sessions from SWE-chat, yielding 94,813 development events including 3,033 documentation interactions; and 33,097 agentic pull requests from AIDev, with 690,260 classified file-level change records. Four findings challenge current documentation practice. First, agents' documentation work is dominated by agent-facing artefacts: instruction files and working notes account for 60.5% of all documentation interactions, versus 10.6% for classical technical documentation and 1.3% for API references. Second, the link between consultation and code editing is unresolved: the adjacent transition probability is 0.002 and the unadjusted three-event lift 1.05, whereas a stage-adjusted model places it above unity (OR 1.33 [1.09, 1.62]); documentation creation is elevated unadjusted (lift 1.67) but its adjusted interval includes unity. Third, no explicit documentation-based validation sequence was observed, and consultation is associated with less immediate testing (lift 0.23, cluster CI 0.08-0.45; adjusted OR 0.39 [0.25, 0.60]). Fourth, consultation is self-initiated (70.2%) far more often than failure-driven (7.5%), and documentation trails code: among multi-commit pull requests changing both, code is touched first 4.7x more often. From these traces we derive a descriptive model of agent-documentation interaction as a two-lobed cycle rather than a linear journey, and show that two widely assumed properties of "agent-friendly" documentation - actionability and verifiability - lack consistent behavioural support. We release our pipeline, coding scheme, and event-level data.
Tags
Links
- Source: https://arxiv.org/abs/2608.20195v1
- Canonical: https://arxiv.org/abs/2608.20195v1
Trouble viewing inline? Open PDF directly →
Full Text
86,483 characters extracted from source content.
Expand or collapse full text
From Agent Behaviour to Agent-Friendly Documentation An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentation Zhijun Gao Affiliation: Peking University , Beijing , China email: gaozhijun@pku.edu.cn and Jing Chen Affiliation: Peking University , Beijing , China email: 2601210608@stu.pku.edu.cn Abstract. Technical documentation is written for human developers, but an increasing share of software changes is now authored by autonomous coding agents. Which documents these agents consult, when they consult them, and what follows remain unknown. We conduct a behaviour-grounded study of agents’ interactions with documentation, combining two complementary public datasets: 557 real agentic coding sessions from SWE-chat (Baumann et al. 2026), from which we extract 94,813 development events, including 3,033 documentation interactions; and 33,097 agentic pull requests from AIDev (Li et al. 2026), for which we classify 690,260 file-level change records. Four findings challenge assumptions underlying current documentation practice. First, agents’ documentation work is dominated by agent-facing artefacts: agent instruction files and agent working notes account for 60.5% of all documentation interactions, whereas classical technical documentation accounts for 10.6% and API references for 1.3%. Second, the association between consultation and code editing remains unresolved: the adjacent transition probability is 0.002 and the unadjusted three-event lift is 1.05, whereas a stage-adjusted model places the association above unity (OR 1.33 [1.09, 1.62]). Conversely, documentation creation is elevated in the unadjusted analysis (lift 1.67), but its adjusted interval includes unity. Third, no explicit documentation-based validation sequence was observed, and consultation is associated with less immediate testing (lift 0.23, cluster CI 0.08–0.45; adjusted OR 0.39 [0.25, 0.60]). Fourth, documentation consultation is self-initiated (70.2%) far more often than it is failure-driven (7.5%), and documentation trails code rather than leading it: among multi-commit pull requests that change both, code is touched first 4.7× more often than documentation. From these traces, we derive a descriptive model of agent–documentation interaction that takes the form of a two-lobed cycle rather than a linear journey, and we show that two widely assumed properties of “agent-friendly” documentation — actionability and verifiability — lack consistent behavioural support in this corpus. We release our extraction pipeline, coding scheme, and event-level data. Keywords: coding agents, software documentation, empirical software engineering, agentic software development, trace analysis 1. Introduction Software documentation research has traditionally focused on a single audience: the human developer. Documentation quality frameworks, staleness metrics, and readability guidelines all presuppose a reader who forms intentions, gets confused, and asks colleagues. That presupposition no longer always holds. A substantial and growing fraction of code changes in open source is authored by autonomous coding agents that read repositories, execute commands, and open pull requests without a human in the loop at each step. If agents are now a significant class of documentation consumers, documentation design should be informed by what agents actually do. At present, such evidence is lacking because their behaviour has not been measured. Emerging guidance on “agent-friendly” documentation — write clear headings, provide runnable examples, publish an llms.txt — rests on intuition about how agents ought to behave rather than observation of how they do. This paper takes the opposite route. Rather than proposing documentation qualities and asking whether agents benefit, we observe agent behaviour in real development sessions and derive documentation implications from these observations. We ask three research questions: RQ1 What do agents do with documentation? Which document types, at which stages of a task, through which behaviours? RQ2 What precedes and follows documentation interaction? Which events trigger consultation, and which development actions are more or less likely after it? RQ3 Is the code–documentation loop bidirectional? Do agents consume and produce documentation, and in which order relative to code? Our answers depart from the field’s working assumptions in four ways, and the departures are large rather than marginal. The dominant documentation genre is new. We expected agents to consult API references, architecture documents, and troubleshooting guides. Instead 60.5% of observed documentation interaction targets artefacts that exist because of agents: instruction files such as AGENTS.md and CLAUDE.md (35.4%), and agent working notes — plans, thoughts/ directories, brainstorms, verification logs (25.1%). API reference documentation, the focus of most documentation tooling, accounts for 1.3% of interaction; troubleshooting documentation accounts for 0.4%. The link from reading to coding is unresolved. The commonly assumed pattern — read the docs, then write the code — is almost absent at the adjacent-transition level: P(edit code∣read doc)=0.002P(edit code doc)=0.002. At a three-event horizon, the unadjusted lift is 1.05 over the session base rate, whereas the stage-adjusted estimate is above unity (OR 1.33 [1.09, 1.62]). Documentation reads are instead most often followed by reasoning (0.245) or further documentation reads (0.270). Explicit documentation-based validation is not observed. We observe no instances in which documentation is explicitly used as an oracle against which code is checked. Moreover, reading documentation is associated with less immediate testing (lift 0.23) and building (lift 0.15). Documentation is nearly as often an output as an input. Production (1,401 events) occurs at 0.87× the rate of consultation (1,615 events), and 41.5% of agentic pull requests change documentation. However, the direction is asymmetric in time: code precedes documentation 4.7× more often than the reverse. We contribute: (i) a behaviour-grounded characterisation of agent documentation interaction across two datasets and two units of analysis; (i) a released extraction pipeline, evaluated against the dataset’s own tool-call counts, that recovers documentation events from four heterogeneous agent transcript formats (the document-type classifier itself is not human-validated); (i) an empirically derived interaction model that replaces the assumed linear journey with a two-lobed cycle; and (iv) documentation design implications, each tied to a specific measurement, together with an explicit list of commonly asserted implications that our data do not support. 2. Related Work Five strands of literature converge in this paper, each resting on an assumption that our data challenge: the documentation consulted by an agent or developer is written for humans, concerns code, and was produced by someone else. The first four strands expose this tension; the fifth establishes methodological precedent. 2.1. Coding agents and LLM-based software-engineering agents The field’s evaluation apparatus defines an agent’s task as issue resolution. SWE-bench scores an agent according to whether its patch makes tests pass (Jimenez et al. 2023), and the architectures built to succeed on it are described by their action spaces over files and shells (Yang et al. 2024; Wang et al. 2024b; Zhang et al. 2024). Surveys map agent capabilities by task type but do not include documentation as a category (Liu et al. 2024; Wang et al. 2024c). Because no benchmark rewards documentation work, evidence must come from observational data. Agentless pipelines can match agentic ones without an exploratory reading loop (Xia et al. 2025); our finding that reads lead predominantly to further reading and reasoning (Section 4) therefore describes what agents do, rather than what they necessarily need to do. Two lines of observational work provide the closest precedents. Trajectory studies compare successful and failed runs at the level of action sequences (Majgaonkar et al. 2025; Mehtiyev and Assunção 2026), motivating our transition analysis, although neither codes documentation as an artefact class. Artefact studies mine agent-authored pull requests: adoption rates (Robbes et al. 2026), activity over time (Popescu et al. 2026), PR-description characteristics (Watanabe et al. 2026), refactoring (Horikawa et al. 2025), logging (Ouatiti et al. 2026), and failure causes (Ehsani et al. 2026). The logging study provides a useful template: it asks whether agents handle a non-functional concern in the same way as humans. We ask the corresponding question about documentation and measure a previously unreported quantity: agents produce documentation at 0.87 times the rate at which they consult it (Section 4). Agent help-seeking has been benchmarked as escalation to a human rather than consultation of an artefact (Trinh et al. 2026); our distinction between self-initiated and failure-driven interactions has no prior baseline. 2.2. Software documentation research before LLMs Research conducted before LLMs provides the clearest point of comparison. Observed human developers rely more heavily on code and colleagues than on documentation (Roehm et al. 2012; Maalej et al. 2014; Ko et al. 2007), consult selectively around staleness (Lethbridge et al. 2003), frame needs as task-shaped questions (Sillito et al. 2006; Sillito et al. 2008), and search the web for external information (Sadowski et al. 2015; Xia et al. 2017). Comprehension consumes most of developers’ time (Xia et al. 2018), without documentation serving as its primary input. Against that baseline, documentation interaction occurred in more than half of our sampled sessions (56.7%) and was predominantly self-initiated (70.2%) — the kind of behaviour that documentation-engineering research has long sought to encourage among human developers (Forward and Lethbridge 2002; Garousi et al. 2015; Zhi et al. 2015). The sharper contrast concerns which documentation is consulted. This literature centres on API references: what makes APIs hard to learn (Robillard 2009), how API documentation fails (Uddin and Robillard 2015), how much exists on the web (Parnin and Treude 2011), how to navigate it by task (Treude et al. 2015). Quality taxonomies are built from these artefact types (Aghajani et al. 2019; Aghajani et al. 2020), whereas README taxonomies focus on human-facing sections (Prana et al. 2018). Our distribution reverses this emphasis: API references account for 1.3% of agents’ documentation interactions and troubleshooting documentation for 0.4%, whereas 60.5% involve agent-facing documents (Section 4). The assumption that improving API reference quality improves the consulting reader’s outcomes may hold for humans, but API references accounted for only 2.3% of observable repository-local consultations in our data. Research on onboarding barriers (Steinmacher et al. 2015) and on documentation creation (Dagenais and Robillard 2010) provide human comparison points for our production-versus-consumption analysis. 2.3. Code–documentation co-evolution The AIDev component builds on a mature co-change literature that documents persistent problems: comments are updated with code less often than they should be (Fluri et al. 2007; Fluri et al. 2009), inconsistency is common and defect-associated (Tan et al. 2007; Wen et al. 2019; Ibrahim et al. 2012), comments break silently under refactoring (Ratol and Robillard 2017), and documentation links decay (Hata et al. 2019). We apply methods from the co-change mining tradition (Zimmermann et al. 2005) to agentic PRs at the file level. Two observations follow. First, the 41.5% documentation-change rate is high relative to rates reported in this literature for human comment maintenance. Second, where order is observable, documentation trails code, reproducing the asymmetry that automated comment-update work presupposes (Panthaplackel et al. 2020). When this literature considers documentation being checked against code, the checking is performed by a static analyser (Zhong and Su 2013); it does not assume that an agent will perform the check, consistent with our observation of no such events (Section 4). 2.4. LLMs, documentation, and agent context files Retrieval research treats documentation as model input: retrieval improves code generation (Zhou et al. 2022; Wang et al. 2024a), as does repository-level retrieval (Zhang et al. 2023; Zhang et al. 2025). This literature most directly encodes the assumption that our findings challenge: documentation is valuable as a retrievable API reference injected on the model’s behalf. The agents in our data instead open instruction files they were told to follow and notes they wrote themselves; these interactions are self-initiated rather than externally retrieved. The emerging 2025–2026 literature on context files addresses these artefacts, but its conclusions remain unsettled. Descriptive studies characterise AGENTS.md and CLAUDE.md as artefacts (Chatlatanagulchai et al. 2025a; Chatlatanagulchai et al. 2025b; Mohsenimofidi et al. 2025). Related work reports repository-content base rates (Hora et al. 2026) and examines plan artefacts (Abubakar et al. 2026), the closest existing analogue to our working-notes category. Evidence of effectiveness is mixed: reported efficiency gains (Lulla et al. 2026), mixed task-level results (Gloaguen et al. 2026; Khatri 2026), and a finding that random rules help as much as curated ones (Zhang et al. 2026). Maintenance research reports staleness (Treude and Baltes 2026) and documents unbounded growth (Chakrabarti 2026); managing context through agent actions has emerged as a technique (Liu et al. 2025). None of this work measures how often agents consult these files relative to everything else they read. Our 35.4% instruction-file and 25.1% working-notes figures provide that denominator, and the conflicting effectiveness findings motivate reporting these figures descriptively. 2.5. Method precedent Process mining of software event logs is established (van der Aalst et al. 2012; Poncin et al. 2011), as is sequence mining of developers’ IDE interaction streams (Damevski et al. 2017; Kersten and Murphy 2006; Ashraf et al. 2019). Human validation of our coding scheme, which we identify as the necessary next step (Section 7), would follow established reliability apparatus — Cohen’s kappa (Cohen 1960) with conventional bands (Landis and Koch 1977), or Krippendorff’s alpha (Krippendorff 2004), reported following established guidance (McDonald et al. 2019; Seaman 1999). We report no such statistic here. Our primary intervals are cluster bootstraps; Wilson intervals (Wilson 1927) appear only as independence-assuming references; we rely on their behaviour for small and zero counts (Brown et al. 2001). 3. Study Design 3.1. Datasets We use two public datasets with complementary units of analysis. Neither can answer our questions alone: SWE-chat records development processes but not merge outcomes, whereas AIDev records artefacts but retains no tool-use trajectories. SWE-chat (Baumann et al. 2026) contains real agentic coding sessions contributed by developers using several command-line agent tools. Each session includes a complete transcript with user messages, agent messages, tool calls, tool results, and code changes. The release provides 5,850 sessions with transcripts (10.4 GB); we sample 559 (Section 3.2). This dataset is our source of process evidence: it answers RQ1 and RQ2 and provides within-session evidence for RQ3. AIDev (Li et al. 2026) contains pull requests opened by coding agents on public GitHub repositories, with commits, file-level diffs, reviews, and timelines. The full corpus contains 932,791 PRs across 116,211 repositories; we use the authors’ curated subset of 33,596 PRs from 2,807 repositories with more than 100 stars, together with its file-level commit-details table. All AIDev figures below are derived from that subset, so we report the filtering steps explicitly. The commit-details table yields 711,923 file×commit rows after dropping 5,132 null-filename rows (0.72%); excluding vendored paths removes 16,531 more (2.32%), leaving 690,260 rows across 278,192 unique paths, of which 29,597 are documentation paths. At the PR level, 33,097 of 33,596 PRs retain at least one named non-vendored file (98.5%); the 499 excluded are 16 with no file-level rows, 475 with only null filenames, and 8 with only vendored files. This dataset provides our artefact evidence and answers RQ3 at scale. The datasets describe related but distinct populations. We therefore use them as complementary sources rather than as cross-validation and never pool their units of analysis. 3.2. Sampling From SWE-chat we draw a sample stratified by agent and session length across four length strata (turn count ≤3≤ 3, 4–8, 9–18, >18>18), so that neither trivial nor pathological sessions dominate. We oversample minority agents to permit agent-specific estimation and exclude transcripts larger than 25 MB (corpus maximum: 61.8 MB). The sample is 559 sessions, 557 of which yielded parseable events. Because allocation is non-proportional, agent-level statistics are reported separately and are never pooled. 3.3. Documentation identification We operationalise “documentation” using a two-tier classifier of repository-relative file paths. Tier 1 is deterministic. Filename and path rules assign one of 15 document types and two orthogonal flags. The machine_readable flag identifies OpenAPI, JSON Schema, and Protobuf artefacts, which serve as both API documentation and executable specifications. The vendored flag identifies third-party paths, which an agent may read but the repository does not own. Non-documentation files receive a kind in source, config, test, data, build, other, so a single function supports both documentation identification and co-change analysis. Tier 2 resolves ambiguous paths. Tier 1 placed 54% of documentation events in a residual category. Because this category was too large to leave unresolved, we classified its 527 distinct paths with a language model: 500 were labelled, covering 98.4% of ambiguous events, and 27 were assigned using a keyword fallback rule. This tier revealed agent_working_note as a large, distinct category absent from our initial scheme. Two decisions deserve emphasis. First, we do not code interaction purpose, although it appeared in our initial scheme. Purpose cannot be recovered from tool-call logs, and inferring intent from a file read would be unfalsifiable; we report trigger, interaction type, and outcome instead. Second, vendored paths are flagged rather than dropped: reading node_modules/pkg/README.md is a genuine documentation interaction even though the repository does not own it. 3.4. Event extraction SWE-chat uses four incompatible transcript formats, which we identified by inspecting their structures. Of the 559 sampled sessions, 406 use line-delimited JSON with content-block tool calls, 100 use a single JSON document with a parts array, 43 use a type, payload event log, and 10 use a messages array. Two sessions yielded no events and were excluded, leaving an analytic sample of 557. A separate extractor for each format emits a common schema based on a 20-symbol alphabet spanning documentation and non-documentation actions, so documentation events remain embedded in their original trajectory context. Two extraction details materially affect the results and can bias this class of study if left unreported. First, agents that route file operations through the shell express edits as apply_patch here-documents whose target paths appear only inside the command text; without parsing these paths, one agent family would have registered zero documentation events. Second, tool output arrives as a string in some formats and a list or dictionary in others. Supporting these additional types recovered nine sessions and 4,358 events, including 77 documentation events. Our extracted tool-event counts matched SWE-chat’s own tool_call_count exactly in five of six spot-checked sessions. 3.5. Coding scheme and derived measures Each documentation event is coded along four dimensions: document type (15 rule categories plus the two additions in Section 4); interaction type (Discover, Search, Read, Edit, Create); trigger, using a four-event lookback; and outcome, using success and failure signals in tool output. Development stage follows a trajectory heuristic: orientation before the first write, implementation from the first write, verification after a passing test or build, debugging after a failure signal, and delivery after the last write when version-control activity dominates. Every event retains its evidence string, so labels are auditable. For RQ2 we report lift over a base rate rather than raw conditional probability, because an action that is common throughout a session will also appear frequently after consultation. We compare the probability of an action within three events of a documentation consultation (Read, Search, or Discover; n=1,615n=1,615 anchors) with the corresponding probability estimated from every non-anchor event in the same sessions (n=93,198n=93,198; this baseline includes documentation edits, which are not consultation anchors). Observation scope. Our instrument observes repository-local, file-based documentation interactions: tool calls whose target resolves to a repository path, plus rare explicit documentation retrieval calls. It does not observe API websites read through a browser, knowledge already in the model’s weights, or in-source docstrings. Context files loaded by the runtime at session start are visible only when the agent later reads or edits them explicitly, so instruction-file counts are lower bounds on exposure. All claims concern this observable slice. Operationalisation of the interaction-cycle stages. The candidate stages in Table 10 constitute a second, coarser coding of the same events. They are not mutually exclusive, so counts do not sum to 3,033. Each is an observable pattern: • Orient: events in the orientation stage (before the first write). • Discover: events classified as Search or Discover (282+5282+5). • Retrieve: Read (1,328) plus documentation-tool calls (16), which represent retrievals but not file reads — hence 1,344. • Interpret: reads or searches followed immediately by reasoning. • Revisit: a read immediately followed by another read. • Apply: reads followed by an edit or read of the documented artefact. • Recover: failure episodes whose first recovery action is reading documentation (109). • Contribute/Update: interaction type Edit or Create (1,401). • Validate: reads followed by a test or build run. • Escalate: reads followed by a request to the user — distinct from the nine Ask user recovery actions in Table 4, which follow a failure. 3.6. Statistical treatment Because the sample is deliberately non-proportional, we report headline proportions under three weighting schemes — pooled events, session-equal, and sessions reweighted to the corpus agent distribution (Table 8). The third corrects agent-level oversampling only: the sample is stratified by agent and session length, and the population margin for the length strata is not recoverable from the released index, so we present no joint-stratum estimate. Because events nest within sessions and pull requests within repositories, observations are not independent Bernoulli trials — the largest AIDev repository alone contributes 8,911 pull requests. We therefore obtain our primary uncertainty estimates using a cluster bootstrap (2,000 resamples), resampling whole sessions for SWE-chat and whole repositories for AIDev. We compute percentile intervals using fixed seeds (13 for lift, 11 for transitions, 7 for proportions), and each resample recomputes the pooled proportion from summed within-cluster counts. For the RQ2 action windows we additionally fit a logistic GEE (exchangeable working correlation, clustered by session) adjusting for development stage, within-session position, log session length, and agent family, because consultation is not evenly distributed across trajectory phases; we report the adjusted association alongside the unadjusted lift, not in place of it. Table 6 compares the cluster intervals with Wilson intervals, which assume independence; clustering widens every interval, by up to 14× on the AIDev side. Wilson intervals remain in the per-analysis tables as an independence-assuming reference, but are not our primary estimate. We apply no correction for the number of strata examined and therefore do not interpret small differences between adjacent strata. 4. Results Our 557 sessions contain 94,813 events, of which 3,033 (3.2%) are documentation interactions. Such interactions are common but not universal: 316 sessions (56.7%, cluster 95% CI 52.6–60.5%) contain at least one. Figure 1 summarises the principal results. Figure 1. Agents’ documentation interactions across 557 SWE-chat sessions (panels a–d, n=3,033n=3,033 documentation events) and 33,097 AIDev agentic pull requests (panel e). (a) Agent-facing documents — instruction files and agent working notes — account for 60.5% of interactions, whereas API references account for 1.3%; the right-hand column uses a magnified axis. (b) Testing and building are less frequent within three events of a consultation and remain so after adjustment; the two authoring outcomes differ between the unadjusted lift and the stage-adjusted odds ratio, so those associations remain unresolved. Intervals are session-level cluster-bootstrap estimates. (c) Interaction is predominantly self-initiated (70.2% of all 3,033 interactions; 62.5% of the 1,615 consultation events) rather than failure-driven (7.5%; 9.7%); the axis counts all interactions. (d) Of ten candidate stages, Validate and Escalate have zero events under our operational definitions (open markers); stages overlap and do not sum to 3,033. (e) Among pull requests that change both code and documentation, code is touched first 4.7× more often, although 42.6% first touch both in a single commit, for which no order is observable; panel e uses a different dataset and unit of analysis (pull requests), and its error bars are Wilson intervals — the repository cluster-bootstrap equivalents are in Table 6.Five panels summarising document types, post-consultation actions, interaction triggers, candidate interaction stages, and code–documentation ordering in pull requests. 4.1. RQ1: Documentation Types, Task Stages, and Interaction Behaviours 4.1.1. Task stages Documentation interaction is distributed across the whole trajectory rather than concentrated at task start. By development stage, 54.4% of documentation events occur during debugging, 27.2% during implementation, 15.2% during orientation, 3.0% during verification, and 0.1% at delivery. The stage heuristic is sticky: once a failure signal appears, the session remains in debugging until a test or build passes, inflating that share. We therefore advance only the robust negative claim: documentation consultation is not confined to the orientation phase. A model that treats documentation solely as a task-start activity is therefore inconsistent with our observations. The distribution across stages should not be interpreted as a precise allocation. 4.1.2. Document types Table 1 presents the full distribution, which is the paper’s central empirical result. Two categories of agent-facing documents dominate. Agent instruction files — including AGENTS.md, CLAUDE.md, SKILL.md, and rule files for Cursor and Copilot — account for 1,074 events (35.4%). Agent working notes — plans, thoughts/ directories, brainstorms, and review logs that the agent writes for its own use — account for 760 (25.1%). Together, these two categories account for 1,834 of 3,033 events, or 60.5%. Our primary contrast is therefore between agent-facing artefacts (60.5% of events, session-cluster 95% CI 53.9–66.5%; 55.1% under agent reweighting) and all other repository documentation (39.5%; 44.9% under agent reweighting). As a secondary contrast, the nine genres at the traditional core of documentation research account for 323 events (10.6%). This boundary is contestable: adding README, configuration, and requirements documentation raises the share to 33.8%. We therefore make no claim beyond the extreme categories: API references account for 40 events (1.3%), and troubleshooting documentation — expected to be the debugging resource — accounts for 11 (0.4%). The agent_working_note category did not exist in our initial scheme. It emerged from Tier-2 classification of unresolved paths, which were dominated by agent-authored planning and reasoning documents. Whether these files count as technical documentation is a definitional choice that we make explicit: we include them as durable prose artefacts about the software that are committed to the repository and readable by the next actor, but we always report them separately so readers drawing the boundary differently can recompute every share (excluding them, agent instruction files alone are 1,074 of 2,273 events, 47.2%). Table 1. Documentation-interaction events by document type (n=3,033n=3,033 events across 557 sessions). Agent-facing categories are marked † . Together, the two agent-facing categories account for 60.5% of interactions; the nine categories constituting classical technical documentation (API reference, troubleshooting, architecture, schema, installation, examples, testing, contributing, and changelog) account for 10.6%. Document type Events Share Agent instructions† 1,074 35.4% Agent working notes† 760 25.1% Task / requirements 301 9.9% Configuration 205 6.8% README 197 6.5% Other prose (residual) 165 5.4% Architecture / ADR 120 4.0% Install / deploy 41 1.4% API reference 40 1.3% Schema 32 1.1% Testing docs 29 1.0% Examples 27 0.9% Changelog 22 0.7% Troubleshooting 11 0.4% License / legal 8 0.3% Contributing 1 0.0% Agent-facing subtotal† 1,834 60.5% Classical technical documentation 323 10.6% Because working notes might be mostly written whereas API references are mostly read, Table 7 splits each document type into consultation (Read, Search, Discover) and production (Edit, Create). Agent-facing dominance holds on both sides: 57.4% of consultation and 63.7% of production, compared with 2.3% of consultation for API references. Configuration files are the most asymmetric type (195 consultations, 10 productions). 4.1.3. Interaction behaviours We observe five interaction types: Read (1,328 events), Edit (1,007), Create (394), Search (282), and Discover (5). Of the remaining 17 events, 12 are failed tool calls and 5 do not fit any interaction type. These events carry document-type and trigger labels and contribute to those distributions but not to interaction-type statistics. Production (Edit + Create = 1,401) occurs at 0.87× the rate of consultation (Read + Search + Discover = 1,615). Three interaction types from our initial scheme are not attested: Compare (reading two documents against each other), Follow-reference (navigating a link between documents), and Verify (checking code against documentation). These may occur inside model reasoning, which our instrument cannot see, but they do not appear as tool-call behaviour, so we remove them rather than report them as rare. The most common recurrent transitions are as follows (session cluster-bootstrap 95% CIs; 2,000 resamples). P(read doc∣read doc) P(read doc doc) =0.270 =0.270 [0.232,0.307], [0.232,0.307], P(reasoning∣read doc) P(reasoning doc) =0.245 =0.245 [0.205,0.295], [0.205,0.295], P(edit doc∣read doc) P(edit doc doc) =0.107 =0.107 [0.081,0.132], [0.081,0.132], P(edit doc∣edit doc) P(edit doc doc) =0.350 =0.350 [0.288,0.404]. [0.288,0.404]. The first estimate indicates that documentation reads occur in runs rather than in isolation. At the adjacent-transition level, the commonly assumed pattern — read documentation, then write code — is nearly absent: P(edit code∣read doc)=0.002[0.000,0.005].P(edit code doc)=0.002 [0.000,0.005]. This estimate represents three occurrences among 1,328 documentation reads. A read is much more likely to be followed by reasoning or further reading than by an immediate code edit. 4.2. RQ2: Antecedents and Subsequent Actions 4.2.1. Triggers Table 2 presents the trigger distribution for all 3,033 documentation interactions. In aggregate, 2,129 events (70.2%, session-cluster 95% CI 66.7–73.3%) are self-initiated — the agent’s own initiative (1,236) or an implementation need from its current work (893). Failure-driven interaction accounts for 228 events (7.5%, CI 6.0–9.3%): tool failure (217), test failure (7), build error (4). User instructions account for 618 events (20.4%). When the analysis is restricted to consultation (n=1,615n=1,615), the pattern persists: 62.5% are self-initiated (1,010) versus 9.7% failure-driven (156). Self-initiated interactions outnumber failure-driven interactions by 9.3× (6.5× for consultation alone). Thus, rather than consulting documentation primarily when something goes wrong, agents consult it during routine task progress. Table 2. RQ2: what triggers documentation interaction (n=3,033n=3,033 interactions; consultation events alone are n=1,615n=1,615, for which the self-initiated share is 62.5%). Self-initiated triggers outnumber failure-driven ones by 9.3×. Trigger Events Share Agent initiative 1,236 40.8% Implementation need 893 29.4% User instruction 618 20.4% Tool failure 217 7.2% Planning 58 1.9% Test failure 7 0.2% Build error 4 0.1% Self-initiated 2,129 70.2% Externally instructed 618 20.4% Failure-driven 228 7.5% 4.2.2. Actions following consultation Table 3 reports the probability of each action within three events of a documentation consultation (Read, Search, or Discover; n=1,615n=1,615 anchors), compared with the rate at non-anchor events in the same sessions (n=93,198n=93,198). Two verification actions are less frequent within the next three events and both survive adjustment: running a test (lift 0.23, cluster CI 0.08–0.45; adjusted OR 0.39 [0.25, 0.60]) and building (0.15, CI 0.02–0.33; OR 0.25 [0.14, 0.44]). The unadjusted and adjusted estimates differ for both authoring outcomes. Documentation creation is elevated in the unadjusted analysis (lift 1.67, CI 1.14–2.31), but its adjusted interval includes unity (OR 1.41 [0.98, 2.02]). Conversely, code editing is indistinguishable from the baseline in the unadjusted analysis (lift 1.05, CI 0.86–1.27), yet elevated after controlling for stage (OR 1.33 [1.09, 1.62]). Because consultation concentrates in particular trajectory phases, this discrepancy is consistent with the stage confounding flagged as a threat. We therefore treat the lower frequency of test and build activity as the finding, and any consultation-to-authoring or consultation-to-code coupling as unresolved by these data. These results provide no consistent support for the simple mechanism in which documentation consultation is followed by implementation and verification. The code-editing association depends on adjustment, and test and build activity are lower after consultation. No positive downstream-action association is robust across both analyses. Table 3. Actions within three events of a documentation consultation (nc=1,615n_c=1,615 anchors) compared with the non-anchor base rate (nb=93,198n_b=93,198), with session cluster-bootstrap intervals (2,000 resamples, percentile method) for the risk difference Δp p and the lift ratio, and an adjusted association from a logistic GEE with exchangeable working correlation clustered by session and adjusted for development stage, within-session position, session length, and agent family. Unadjusted and adjusted estimates differ for the two authoring outcomes: documentation creation is elevated before adjustment, but its adjusted interval includes 1; code editing is indistinguishable from the baseline before adjustment, but is elevated after controlling for stage. Only the lower frequencies of testing and building are robust to both analyses. We therefore treat these reductions as the finding and the authoring associations as unresolved. Action After consult. Base Δp p [95% CI] Lift [95% CI] Adj. OR [95% CI] Create documentation 0.044 0.026 +0.0176 [+0.0040, +0.0320] 1.67 [1.14, 2.31] 1.41 [0.98, 2.02] Edit code 0.232 0.221 +0.0113 [-0.0325, +0.0587] 1.05 [0.86, 1.27] 1.33 [1.09, 1.62] Revise plan 0.015 0.019 -0.0044 [-0.0124, +0.0042] 0.77 [0.35, 1.24] 0.75 [0.43, 1.30] Run test 0.005 0.022 -0.0169 [-0.0250, -0.0094] 0.23 [0.08, 0.45] 0.39 [0.25, 0.60] Build 0.004 0.025 -0.0214 [-0.0292, -0.0143] 0.15 [0.02, 0.33] 0.25 [0.14, 0.44] 4.2.3. Failure recovery We identify 2,034 failure episodes (a failing test, a failed build, or a tool error) and classify the agent’s first subsequent action. Table 4 reports frequency and resolution rate. Reading documentation is the first recovery move in 109 of 2,034 episodes (5.4%). Agents far more often read code (631), retry the same action (404), take no recovery action within the horizon (318), or edit directly (312). P(read doc∣tool error)=0.020P(read doc error)=0.020. Documentation-based recovery has the highest point estimate of the resolution rate (7/11 = 63.6%), but its 95% interval is 35.4–84.8% and overlaps every other strategy. We therefore report this as suggestive and explicitly not a finding: 11 episodes with an observable outcome cannot support a ranking of recovery strategies. Establishing whether documentation-based recovery is genuinely more effective is therefore an important motivation for a larger sample (Section 7). Table 4. Failure recovery: the first action after each of 2,034 failure episodes and the fraction of episodes subsequently resolved. Resolution can be computed only for episodes followed by an observable test or build outcome, so the resolution denominators are smaller than the frequency counts. Documentation-based recovery has the highest point estimate but the widest interval; it overlaps every other strategy, so we draw no conclusion about the relative ranking. First recovery action n (%) Resolved 95% CI Read code 631 (31.0) 39/159 [.18, .32] Retry directly 404 (19.9) 48/192 [.19, .32] No action within horizon 318 (15.6) 5/67 [.03, .16] Edit directly 312 (15.3) 45/160 [.22, .36] Search code 251 (12.3) 17/73 [.15, .34] Read documentation 109 (5.4) 7/11 [.35, .85] Ask user 9 (0.4) — — 4.3. RQ3: Documentation Consumption, Production, and Code–Document Order Together, the two datasets show that agents consume and produce documentation. Within sessions. Of the 316 sessions with documentation activity, 184 (58.2%) both read and wrote; 102 (32.3%) only read; 28 (8.9%) only wrote; and 2 (0.6%) contained only unclassified events, so no read/write status could be assigned. Across pull requests. Table 5 presents the artefact-level results for the curated AIDev subset (Li et al. 2026). Of the 33,097 pull requests, 13,750 change documentation (41.5%, repository-cluster 95% CI 35.8–45.4%). Code–documentation co-change occurs in 32.0% (CI 24.4–38.9%) of all PRs, which is 37.0% of the 28,574 code-touching PRs; a further 9.6% (CI 6.1–14.5%) change documentation only. These PRs are heavily clustered — the ten largest repositories account for 44.7% — so the intervals are roughly an order of magnitude wider than the Wilson equivalents (Table 6). Direction. Among the 4,386 multi-commit pull requests where ordering is observable, code is touched first in 47.3%, both are first touched in the same commit in 42.6%, and documentation is touched first in 10.0%. When the two change in different commits, code comes first in 82.5% of orderable cases (2,076/2,516; repository-cluster CI 78.7–86.0%): documentation follows code far more often than it leads. Merge rates are not distinguishable. Among closed PRs, 81.1% of those touching documentation were merged, compared with 75.0% of code-only PRs. Under repository clustering, the intervals overlap substantially (71.3–85.6% and 64.9–81.1%), so we draw no conclusion; assuming independence would make the difference appear more decisive than the clustered analysis supports. Agents edit their own instructions. Among the most-changed individual documentation files in AIDev are AGENTS.md (692 PRs), CLAUDE.md (362), and copilot-instructions.md (287). Agents modify files that shape agent behaviour, closing a second loop — from agent output back to agent input — that existing documentation models do not capture. Table 5. Artefact-level results for RQ3 (AIDev pull requests): (a) documentation involvement among all analysable agentic PRs; (b) the artefact touched first, restricted to multi-commit PRs that change both artefact types and for which order is observable; and (c) merge rate by documentation involvement, reported as an association rather than a causal effect. All intervals are Wilson 95% CIs. k/nk/n Prop. [95% CI] (a) Documentation involvement Code only 17,988/33,097 .543 [.538, .549] Code + documentation 10,586/33,097 .320 [.315, .325] Documentation only 3,164/33,097 .096 [.092, .099] Neither (build/config/data) 1,359/33,097 .041 [.039, .043] (b) First artefact touched Code first 2,076/4,386 .473 [.459, .488] Same commit 1,870/4,386 .426 [.412, .441] Documentation first 440/4,386 .100 [.092, .110] (c) Merge rate Touches documentation 10,303/12,707 .811 [.804, .818] Code only 12,614/16,815 .750 [.744, .757] Table 6. Cluster-bootstrap intervals (2,000 resamples) for the headline proportions, resampling sessions for SWE-chat statistics and repositories for AIDev statistics, alongside Wilson intervals that assume independent trials. The ratio column gives cluster-interval width divided by Wilson-interval width. Clustering widens every interval, especially for AIDev, where the largest repository contributes 8,911 pull requests and the ten largest contribute 44.7%. We report cluster intervals as the primary uncertainty estimates. Statistic k/nk/n Prop. Cluster-bootstrap 95% CI Wilson 95% CI Width ratio Sessions as clusters (SWE-chat) Agent-facing, all interactions 1,834/3,033 0.605 [0.539, 0.665] [0.587, 0.622] 3.6 consultation events 927/1,615 0.574 [0.508, 0.634] [0.550, 0.598] 2.6 production events 893/1,401 0.637 [0.553, 0.713] [0.612, 0.662] 3.2 Self-initiated, all interactions 2,129/3,033 0.702 [0.667, 0.733] [0.685, 0.718] 2.0 Failure-driven, all interactions 228/3,033 0.075 [0.060, 0.093] [0.066, 0.085] 1.8 Sessions with doc event 316/557 0.567 [0.526, 0.605] [0.526, 0.608] 1.0 Doc-first recovery 109/2,034 0.054 [0.038, 0.073] [0.045, 0.064] 1.8 Repositories as clusters (AIDev) Documentation changed (PRs) 13,750/33,097 0.415 [0.358, 0.454] [0.410, 0.421] 9.1 Code–doc co-change (PRs) 10,586/33,097 0.320 [0.243, 0.389] [0.315, 0.325] 14.4 Code first, different commits 2,076/2,516 0.825 [0.787, 0.860] [0.810, 0.839] 2.5 Merge rate, doc-touching 10,303/12,707 0.811 [0.713, 0.856] [0.804, 0.818] 10.5 Merge rate, code-only 12,614/16,815 0.750 [0.649, 0.811] [0.744, 0.757] 12.4 4.4. Robustness and Variation Because we oversample minority agents (Section 3), pooled statistics overweight long sessions and minority agents relative to their corpus prevalence. Table 8 reports each headline proportion under pooled-event, session-equal, and agent-reweighted estimation. The agent-facing share of all interaction moves from 60.5% to 54.7% and 55.1%; self-initiated from 70.2% to 63.2% and 61.9%. Split by side, agent-facing consultation moves from 57.4% to 50.5% and 50.1% — at the 50% boundary, so under either correction agent-facing documents account for about half of consultation rather than a clear majority — while production rises from 63.7% to 67.1% and 66.3%. The broad pattern is stable, but whether agent-facing documents constitute a majority of consultation events depends on the weighting. The weighting corrects only the agent margin, not the joint agent-by-length strata (Section 7). Table 7. Consultation (Read, Search, Discover; nc=1,615n_c=1,615) versus production (Edit, Create; np=1,401n_p=1,401) events by document type. Agent-facing categories are marked † ; they account for 57.4% of consultation and 63.7% of production. Configuration files are consulted far more than they are produced; agent working notes are consulted and produced in nearly equal measure. “Other low-frequency” pools troubleshooting, license/legal, and contributing, so the columns sum to ncn_c and npn_p. Document type Cons. % Prod. % Agent instructions† 545 33.7 526 37.5 Agent working notes† 382 23.7 367 26.2 Task / requirements 129 8.0 170 12.1 Configuration 195 12.1 10 0.7 README 89 5.5 107 7.6 Other prose 72 4.5 93 6.6 Architecture / ADR 69 4.3 51 3.6 Install / deploy 24 1.5 17 1.2 API reference 37 2.3 3 0.2 Schema 16 1.0 16 1.1 Testing docs 19 1.2 10 0.7 Examples 17 1.1 10 0.7 Changelog 11 0.7 11 0.8 Other low-frequency 10 0.6 10 0.7 Total 1,615 100.0 1,401 100.0 Agent-facing† 927 57.4 893 63.7 Table 8. Sensitivity of headline proportions to weighting. The event-weighted estimate pools all events (long sessions weigh more); the session-equal estimate averages per-session shares; and the agent-weighted estimate reweights sessions to the corpus agent distribution (83.8% Claude Code, 4,852/5,790 labelled sessions; 61 of the 5,851 released sessions are excluded from the reweighting — 52 carry no agent label and 9 belong to agents with fewer than 20 sessions), correcting our deliberate oversampling of minority agents. Because the sample was also stratified by session length, this corrects agent-level oversampling only and is not a full joint-stratum estimate. All three statistics describe the stratified sample; the broad pattern is stable across all three weightings. Statistic Event Sess.-eq. Agent-wt. Agent-facing, all interactions 60.5% 54.7% 55.1% consultation events only 57.4% 50.5% 50.1% production events only 63.7% 67.1% 66.3% Self-initiated, all interactions 70.2% 63.2% 61.9% Sessions w/ doc event — 56.7% 59.8% Restricting the RQ2 anchors to reads alone (n=1,328n=1,328) does not change any conclusion: code-edit lift increases from 1.05 to 1.10, documentation-creation lift from 1.67 to 1.83, test-running lift from 0.23 to 0.24, and build lift from 0.15 to 0.18. 4.4.1. Variation across agents Table 9 reports session-level documentation rates per agent. The rates differ substantially, from 62.6% (Claude Code, 238/380) to 37.2% (Codex, 16/43); one agent has a rate of 0/11. We caution against interpreting these as behavioural differences. One agent routes nearly all file work through shell commands, so its interactions are visible only if the extractor parses paths from command text. Before these paths were parsed, the agent registered zero events. Cross-agent comparison is confounded with extraction coverage. Table 9. Fraction of sessions containing at least one documentation interaction, by agent. Sampling was deliberately non-proportional, so these per-agent estimates must not be pooled. The zero estimate for one agent is based on 11 sessions and does not constitute evidence of absence. Agent With docs Sessions Rate [95% CI] Gemini CLI 9 12 .750 [.468, .911] Agent 8 12 .667 [.391, .862] Claude Code 238 380 .626 [.577, .673] OpenCode 45 99 .455 [.360, .552] Codex 16 43 .372 [.244, .521] Cursor 0 11 .000 [.000, .259] 5. A Trace-Derived Descriptive Model of Agent Documentation Interaction Our study began with a hypothesised linear journey, adapted from accounts of human developer information seeking: Discover → Retrieve → Interpret → Apply → Validate → Update Table 10 summarises the evidence for each candidate stage. The data do not support the linear model for three reasons. Table 10. Evidence for each candidate stage of the documentation-interaction cycle (n=3,033n=3,033 documentation events). Two stages in the initial scheme are entirely unattested. Candidate stage Events Status Contribute/Update 1,401 strongly attested Retrieve 1,344 strongly attested Orient 462 attested Interpret 413 attested Revisit 360 attested Discover 287 attested Recover 109 attested, weak Apply 75 weak Validate 0 not attested Escalate 0 not attested Two stages are unattested. No events match Validate or Escalate under our operational definitions: consultation followed by a test or build run, or by a request to the user. These are zeros for the defined patterns, not evidence that no validation of any form occurs (Section 7). Apply is weakly attested. Only 75 events show documentation reading followed by action on the documented artefact, and the lift analysis (Table 3) estimates an unadjusted lift of 1.05 for subsequent code editing, although the adjusted odds ratio is above unity. The link that the linear model treats as its central step is therefore the one our data leave least settled. The terminal stage is the largest. Contribute/Update, which appears last in the linear model, is the single largest category, with 1,401 events — more than Retrieve (1,344). 5.1. A trace-derived descriptive model: the two-lobed cycle The transition structure shows two loosely coupled activity lobes. The consultation lobe (Orient → Discover → Retrieve → Interpret) is internally recurrent: its strongest transition is Retrieve back to itself at 0.270 (CI 0.232–0.307) and its strongest outgoing transition is to reasoning at 0.245 (CI 0.205–0.295). Agents therefore circulate within this lobe and move into reasoning more often than into immediate action. The production lobe (Contribute/Update) contains more documentation events than any other stage. The unadjusted analysis suggests an association from consultation into this lobe: documentation creation is elevated after consultation (lift 1.67). Its stage-adjusted interval, however, includes unity (Table 3). Neither connection is consistent across specifications. The unadjusted estimates are 1.67 for consultation → documentation and 1.05 for consultation → code; the corresponding adjusted ORs are 1.41 and 1.33. The documentation interval excludes unity only before adjustment, whereas the code interval excludes unity only after adjustment. Failure feeds into the consultation lobe only rarely (5.4% of failure episodes), and no observed edge runs from either lobe into validation in the recorded tool-call traces. Our revised account is therefore not a pipeline from an information need to validated implementation. Instead, agents’ interaction with documentation is a recurrent consultation process that produces reasoning and further documentation and is only loosely coupled to a largely independent code-modification process. 5.2. Why the difference from human developers matters The human information-seeking literature often describes developers who consult documentation, apply what they learn, and check the result — the loop our linear model encoded. In our traces, agents perform the first step, but the checking step is not observed, and documentation authorship follows consultation at a measurable rate. Two mechanisms plausibly explain this; distinguishing between them requires future work. Agents may externalise reasoning to files because their context windows are bounded, making documentation a form of working memory rather than a reference; the prominence of plans and thoughts/ directories is consistent with this possibility. Alternatively, they may not validate against prose because a cheaper oracle, the test suite, is invoked directly. In either case, we did not observe prose functioning as a specification. 6. Implications for Documentation Design We state implications only where a specific measurement supports them, and we separately list the implications commonly asserted in this area that our data do not support. The second list matters as much as the first: this study provides initial behavioural evidence on several of these questions but does not support some widely repeated advice. 6.1. Supported implications Agent instruction files are the most frequently used documentation surface. They are the most frequently used document type (1,074 events, 35.4%) and are among the most frequently changed files in agentic pull requests. API references, by contrast, receive 40 events (1.3%). Instruction files receive roughly 27× as many interactions as API references. For projects allocating finite documentation resources to support agentic contributors, this difference suggests prioritising the correctness and clarity of instruction files. Local retrievability warrants particular attention. Documentation reads are frequently followed by further reads (transition probability 0.270), whereas Follow-reference is entirely unattested. This pattern motivates studying self-contained documents with locally retrievable structure, rather than assuming that agents navigate richly cross-linked documentation. It does not, however, establish that link hygiene has no behavioural consequences. Agent-authored documents create a new maintenance surface. Documentation creation has an unadjusted lift of 1.67 after consultation, although the stage-adjusted interval includes unity. Agent working notes account for 25.1% of all documentation interactions. We measured their volume and modification, not their maintenance cost, staleness, or inconsistency. Plans, thoughts/ directories, and verification logs accumulate in repositories as durable artefacts. Repository hygiene tooling, code review checklists, and documentation quality metrics currently have no category for them. Executable documentation offers a testable route to specification. No explicit documentation-based validation sequence was observed, and consultation is associated with less immediate testing (lift 0.23, cluster CI 0.08–0.45). Making such a check observable plausibly requires artefacts an agent can execute — runnable examples, doctests, schema contracts — rather than prose that an agent must be trusted to honour. This proposal is a hypothesis for intervention studies, not a finding of the present study. Documentation rarely appeared as the first recovery resource. It was the first recovery action in 109 of 2,034 failure episodes (5.4%, cluster CI 3.8–7.3%), and troubleshooting documents specifically account for 11 events across the entire corpus. Whatever value troubleshooting guides have for human developers, they are not a prominent part of the agent recovery behaviour observed here. 6.2. Implications our data do not support Actionability. The claim that documentation should be written so agents can act on it directly presumes a read → act coupling. The adjacent transition probability is 0.002, and the unadjusted lift is 1.05, whereas the adjusted OR is 1.33 [1.09, 1.62]. Actionability may still be desirable, but these analyses provide no consistent behavioural evidence for the coupling, and our observational design cannot show that improving actionability changes behaviour. Verifiability. The claim that documentation should be written so agents can verify their work against it describes no observed behaviour: zero validation events. Verifiability therefore cannot be justified solely by appealing to the behaviour observed in this corpus. Documentation as failure recovery. The framing of documentation as the primary resource to which agents turn when stuck is supported by neither the trigger distribution (7.5% failure-driven) nor the recovery analysis (5.4% of episodes). Ranking recovery strategies. We explicitly decline to conclude that documentation-based recovery is more effective, despite it having the highest point estimate (63.6%). With observable outcomes for only 11 episodes, the interval spans 35.4–84.8% and overlaps every alternative. 6.3. For dataset and tool builders Two measurement observations generalise beyond this study. First, agents that route file operations through shell commands hide their file access inside command strings. Any corpus analysis based only on tool names will systematically undercount such agents, and cross-agent comparisons will reflect extraction coverage rather than behaviour. Second, agent-facing documentation is invisible to file-type taxonomies built before 2024. Any documentation classifier without agent_instruction and agent_working_note categories will place the majority of agent documentation interactions in a residual bucket, as ours did before we added them. 7. Threats to Validity 7.1. Construct validity Documentation is identified by file path. Docstrings, inline comments, and prose embedded in source files are invisible to our instrument. This systematically undercounts documentation work, and the undercount is non-uniform: languages and projects that favour in-source documentation are underrepresented. Our absolute rates are therefore lower bounds. The comparative findings — agent-facing versus project documentation, read versus write — are affected only if in-source documentation is distributed very differently across those categories than path-identified documentation, which we cannot rule out. Purpose is not measured. Our initial scheme included a purpose dimension. We removed it because purpose is not recoverable from tool-call logs: a file read is compatible with many intents, and assigning one would be unfalsifiable. We report trigger, interaction type, and outcome instead. Thus, by design, we do not analyse agents’ reasons for reading particular documents. Tier-2 labels are unvalidated. The agent_working_note category — 25.1% of documentation events, and one of our headline findings — rests on language-model classification of 500 ambiguous paths (98.4% of ambiguous events), with 27 paths falling back to keyword rules. No human validation of these labels has been performed. The necessary next step is dual human coding of a 200–300-event subsample, with inter-rater reliability measured using Cohen’s κ or Krippendorff’s α. Until then, the precise share of this category should be treated as provisional. The qualitative finding that agent-authored working documents constitute a large and previously uncategorised class is more robust than its exact magnitude, since it is visible in the raw paths. 7.2. Internal validity Stage assignment is a sticky heuristic. Once a failure signal appears, a session remains in the debugging stage until a test or build passes. This inflates the debugging share. We advance only the negative claim (documentation is not confined to orientation) and do not interpret the stage distribution as a precise allocation. Outcome detection uses regular expressions over tool output. Our success/failure signal is missing when output contains no recognisable indicator, and missing is not the same as failure. Resolution rates are computed only for the 662 of 2,034 episodes with an observable outcome. If episodes without observable outcomes differ systematically from observable ones, the resolution rates would be biased by a selection effect we cannot quantify. Transition probabilities are first-order. A near-zero adjacent transition from documentation read to code edit does not preclude longer-range influence. The three-event-horizon lift analysis is our mitigation; its unadjusted estimate shows no association (lift 1.05), although the adjusted model does (OR 1.33 [1.09, 1.62]). Influence at longer ranges, or influence mediated through reasoning that we cannot observe, would not be detected by either analysis. Trigger assignment uses a fixed lookback. Triggers are assigned using a four-event window. A documentation read prompted by an event outside that window would most likely be misattributed to agent initiative, which is our largest category and therefore the one most exposed to this error. 7.3. Extraction fidelity We validated extraction against the dataset’s independently computed tool_call_count; the counts matched exactly in five of six spot-checked sessions. The extractor handles four transcript formats. We identified and fixed two defects during the study: failure to parse shell-embedded paths, which caused one agent family to appear to have no documentation events, and failure to handle non-string tool output, which excluded nine sessions. Both defects were detected through implausible results rather than dedicated tests. Residual undercounting likely remains for shell-centric agents, so we report per-agent rates as lower bounds of varying tightness rather than as directly comparable estimates. 7.4. External validity SWE-chat is opt-in telemetry. The sessions were contributed by developers using agent CLIs, and 87% of the corpus comes from a single agent family. Developers who opt into sharing may be systematically more experienced, more open-source oriented, or working on more shareable tasks than the population of agent users. AIDev comprises public repositories that adopted agents early. It over-represents projects receptive to agentic contribution. Neither dataset necessarily generalises to private codebases. Documentation practices, review norms, and agent configurations may all differ in private settings. The two datasets do not represent the same population. We use them as complementary evidence about processes and artefacts, respectively; we never pool their units, and agreement between them corroborates a pattern but does not constitute cross-validation of a measurement. The corpus is a snapshot of a fast-moving practice. Agent-facing documentation conventions are approximately two years old and changing. The specific 60.5% share characterises this snapshot, not a stable constant; the finding we expect to persist is the existence and prominence of the category, not its exact magnitude. 7.5. Statistical validity Primary uncertainty estimates are cluster-bootstrap intervals with 2,000 resamples — sessions resampled for SWE-chat statistics, repositories for AIDev — computed by the percentile method at fixed seeds, with each resample recomputing the pooled proportion from summed within-cluster counts. Wilson intervals accompany them as independence-assuming references only. Transition and lift intervals use the same session-level procedure. We apply no multiple-comparison correction across the strata examined (agent, language, task type, star bucket, outcome), so small differences between adjacent strata should not be overinterpreted; we base no claim on such a difference. Where a cell is small, we state this limitation and avoid drawing a conclusion, as in the recovery-strategy ranking (n=11n=11). 8. Conclusion We measured how coding agents interact with technical documentation across 557 real agentic sessions and 33,097 agentic pull requests. The dominant finding is that agentic development has produced a genre that documentation research has not yet studied: agent instruction files and agent working notes, which together account for 60.5% of observed documentation interaction and are written by agents nearly as often as they are read. The documentation types that current tooling and quality frameworks target — API references and troubleshooting documentation — account for 1.3% and 0.4% of interactions, respectively. Three assumed mechanisms are not consistently supported by the data. The association between consultation and subsequent code editing remains unresolved: unadjusted estimates show no elevation, whereas stage-adjusted estimates do. Documentation is rarely the first failure-recovery resource: it is the first recovery move in 5.4% of 2,034 failure episodes. Finally, no explicit documentation-based validation sequence was observed, which means verifiability — a property routinely described as desirable for agent-facing documentation — corresponds to no behaviour recorded by our instrument and must therefore be designed for rather than assumed. The practical implication is a reallocation of effort: improving agent instruction files has the potential to reach agents far more often than equivalent work on API reference prose. The research implication is that documentation now has two audiences with measurably different behaviours, and the newer audience writes almost as much as it reads. Data and Materials Availability Both datasets are public. SWE-chat is gated but freely available subject to acceptance of its ODC-BY terms; we used the snapshot of 19 August 2026, comprising 5,851 sessions. Of these, 5,790 carry an agent label from one of the six families with at least 20 sessions and form the base for agent reweighting; the remaining 61 comprise 52 sessions with no agent label and 9 from smaller families. AIDev is openly downloadable; we used its curated subset. The replication package contains the four format-specific extractors and the 20-symbol event alphabet; the Tier-1 path rules and Tier-2 labels for all 527 ambiguous paths; the event-level table of 3,033 coded interactions with evidence spans; the cluster-bootstrap and GEE scripts with fixed seeds; and the figure- and table-generation code, which generates every table directly from the analysis outputs so no tabulated value is transcribed by hand. References (1) Abubakar et al. (2026) Muhammad Auwal Abubakar, Seyedmoein Mohsenimofidi, Jai Lal Lulla, Jie M. Zhang, Christoph Treude, Sebastian Baltes, and Matthias Galster. 2026. An Exploratory Study of Agent Plans for Agentic AI Coding Tools in Open-Source Software. arXiv:2608.04661 [cs.SE] Aghajani et al. (2020) Emad Aghajani, Csaba Nagy, Mario Linares-Vásquez, Laura Moreno, Gabriele Bavota, Michele Lanza, and David C. Shepherd. 2020. Software documentation: the practitioners’ perspective. In Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering. ACM, 590–601. https://doi.org/10.1145/3377811.3380405 Aghajani et al. (2019) Emad Aghajani, Csaba Nagy, Olga Lucero Vega-Marquez, Mario Linares-Vasquez, Laura Moreno, Gabriele Bavota, and Michele Lanza. 2019. Software Documentation Issues Unveiled. In 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE). IEEE, 1199–1210. https://doi.org/10.1109/icse.2019.00122 Ashraf et al. (2019) Usman Ashraf, Christoph Mayr-Dorn, and Alexander Egyed. 2019. Mining Cross-Task Artifact Dependencies from Developer Interactions. In 2019 IEEE 26th International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, 186–196. https://doi.org/10.1109/saner.2019.8667990 Baumann et al. (2026) Joachim Baumann, Vishakh Padmakumar, Xiang Li, John Yang, Diyi Yang, and Sanmi Koyejo. 2026. SWE-chat: Coding Agent Interactions From Real Users in the Wild. arXiv:2604.20779 [cs.AI] Brown et al. (2001) Lawrence D. Brown, T. Tony Cai, and Anirban DasGupta. 2001. Interval Estimation for a Binomial Proportion. Statist. Sci. 16, 2 (2001). https://doi.org/10.1214/s/1009213286 Chakrabarti (2026) Kushal Chakrabarti. 2026. Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding. arXiv:2608.11095 [cs.AI] Chatlatanagulchai et al. (2025a) Worawalan Chatlatanagulchai, Hao Li, Yutaro Kashiwa, Brittany Reid, Kundjanasith Thonglek, Pattara Leelaprute, Arnon Rungsawang, Bundit Manaskasemsak, Bram Adams, Ahmed E. Hassan, and Hajimu Iida. 2025a. Agent READMEs: An Empirical Study of Context Files for Agentic Coding. arXiv:2511.12884 [cs.SE] Chatlatanagulchai et al. (2025b) Worawalan Chatlatanagulchai, Kundjanasith Thonglek, Brittany Reid, Yutaro Kashiwa, Pattara Leelaprute, Arnon Rungsawang, Bundit Manaskasemsak, and Hajimu Iida. 2025b. On the Use of Agentic Coding Manifests: An Empirical Study of Claude Code. Proceedings of the 26th International Conference on Product-Focused Software Process Improvement 2025 (2025). https://doi.org/10.1007/978-3-032-12089-2_40 arXiv:2509.14744 [cs.SE] PROFES 2025. Cohen (1960) Jacob Cohen. 1960. A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement 20, 1 (1960), 37–46. https://doi.org/10.1177/001316446002000104 Dagenais and Robillard (2010) Barthélémy Dagenais and Martin P. Robillard. 2010. Creating and evolving developer documentation: understanding the decisions of open source contributors. In Proceedings of the eighteenth ACM SIGSOFT international symposium on Foundations of software engineering. ACM, 127–136. https://doi.org/10.1145/1882291.1882312 Damevski et al. (2017) Kostadin Damevski, David C. Shepherd, Johannes Schneider, and Lori Pollock. 2017. Mining Sequences of Developer Interactions in Visual Studio for Usage Smells. IEEE Transactions on Software Engineering 43, 4 (2017), 359–371. https://doi.org/10.1109/tse.2016.2592905 Ehsani et al. (2026) Ramtin Ehsani, Sakshi Pathak, Shriya Rawal, Abdullah Al Mujahid, Mia Mohammad Imran, and Preetha Chatterjee. 2026. Where Do AI Coding Agents Fail? An Empirical Study of Failed Agentic Pull Requests in GitHub. arXiv:2601.15195 [cs.SE] MSR 2026 (accepted). Fluri et al. (2007) Beat Fluri, Michael Wursch, and Harald C. Gall. 2007. Do Code and Comments Co-Evolve? On the Relation between Source Code and Comment Changes. In 14th Working Conference on Reverse Engineering (WCRE 2007). IEEE, 70–79. https://doi.org/10.1109/wcre.2007.21 Fluri et al. (2009) Beat Fluri, Michael Würsch, Emanuel Giger, and Harald C. Gall. 2009. Analyzing the co-evolution of comments and source code. Software Quality Journal 17, 4 (2009), 367–394. https://doi.org/10.1007/s11219-009-9075-x Forward and Lethbridge (2002) Andrew Forward and Timothy C. Lethbridge. 2002. The relevance of software documentation, tools and technologies: a survey. In Proceedings of the 2002 ACM symposium on Document engineering. ACM, 26–33. https://doi.org/10.1145/585058.585065 Garousi et al. (2015) Golara Garousi, Vahid Garousi-Yusifoğlu, Guenther Ruhe, Junji Zhi, Mahmoud Moussavi, and Brian Smith. 2015. Usage and usefulness of technical software documentation: An industrial case study. Information and Software Technology 57 (2015), 664–682. https://doi.org/10.1016/j.infsof.2014.08.003 Gloaguen et al. (2026) Thibaud Gloaguen, Niels Mündler, Mark Müller, Veselin Raychev, and Martin Vechev. 2026. Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents? arXiv:2602.11988 [cs.SE] Hata et al. (2019) Hideaki Hata, Christoph Treude, Raula Gaikovina Kula, and Takashi Ishio. 2019. 9.6 Million Links in Source Code Comments: Purpose, Evolution, and Decay. In 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE). IEEE, 1211–1221. https://doi.org/10.1109/icse.2019.00123 Hora et al. (2026) Andre Hora, João Eduardo Montandon, and Diego Elias Costa. 2026. What’s Inside a GitHub Repository? An Empirical Study on the Contents of 10K Projects. arXiv:2605.16701 [cs.SE] Horikawa et al. (2025) Kosei Horikawa, Hao Li, Yutaro Kashiwa, Bram Adams, Hajimu Iida, and Ahmed E. Hassan. 2025. Agentic Refactoring: An Empirical Study of AI Coding Agents. arXiv:2511.04824 [cs.SE] Ibrahim et al. (2012) Walid M. Ibrahim, Nicolas Bettenburg, Bram Adams, and Ahmed E. Hassan. 2012. On the relationship between comment update practices and Software Bugs. Journal of Systems and Software 85, 10 (2012), 2293–2304. https://doi.org/10.1016/j.jss.2011.09.019 Jimenez et al. (2023) Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. 2023. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? arXiv:2310.06770 [cs.CL] Kersten and Murphy (2006) Mik Kersten and Gail C. Murphy. 2006. Using task context to improve programmer productivity. In Proceedings of the 14th ACM SIGSOFT international symposium on Foundations of software engineering. ACM, 1–11. https://doi.org/10.1145/1181775.1181777 Khatri (2026) Prakhar Khatri. 2026. Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories. arXiv:2607.27250 [cs.SE] Ko et al. (2007) Amy J. Ko, Robert DeLine, and Gina Venolia. 2007. Information Needs in Collocated Software Development Teams. In 29th International Conference on Software Engineering (ICSE’07). IEEE, 344–353. https://doi.org/10.1109/icse.2007.45 Krippendorff (2004) K. Krippendorff. 2004. Reliability in Content Analysis: Some Common Misconceptions and Recommendations. Human Communication Research 30, 3 (2004), 411–433. https://doi.org/10.1093/hcr/30.3.411 Landis and Koch (1977) J. Richard Landis and Gary G. Koch. 1977. The Measurement of Observer Agreement for Categorical Data. Biometrics 33, 1 (1977), 159. https://doi.org/10.2307/2529310 Lethbridge et al. (2003) T.C. Lethbridge, J. Singer, and A. Forward. 2003. How software engineers use documentation: the state of the practice. IEEE Software 20, 6 (2003), 35–39. https://doi.org/10.1109/ms.2003.1241364 Li et al. (2026) Hao Li, Haoxiang Zhang, and Ahmed E. Hassan. 2026. AIDev: Studying AI Coding Agents on GitHub. https://doi.org/10.1145/3793302.3797249 arXiv:2602.09185 [cs.SE] Liu et al. (2024) Junwei Liu, Kaixin Wang, Yixuan Chen, Xin Peng, Zhenpeng Chen, Lingming Zhang, and Yiling Lou. 2024. Large Language Model-Based Agents for Software Engineering: A Survey. arXiv:2409.02977 [cs.SE] ACM TOSEM (accepted). Liu et al. (2025) Shukai Liu, Jian Yang, Bo Jiang, Yizhi Li, Jinyang Guo, Xianglong Liu, and Bryan Dai. 2025. Context as a Tool: Context Management for Long-Horizon SWE-Agents. arXiv:2512.22087 [cs.CL] Lulla et al. (2026) Jai Lal Lulla, Seyedmoein Mohsenimofidi, Matthias Galster, Jie M. Zhang, Sebastian Baltes, and Christoph Treude. 2026. On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents. arXiv:2601.20404 [cs.SE] Maalej et al. (2014) Walid Maalej, Rebecca Tiarks, Tobias Roehm, and Rainer Koschke. 2014. On the Comprehension of Program Comprehension. ACM Transactions on Software Engineering and Methodology 23, 4 (2014), 1–37. https://doi.org/10.1145/2622669 Majgaonkar et al. (2025) Oorja Majgaonkar, Zhiwei Fei, Xiang Li, Federica Sarro, and He Ye. 2025. Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories. arXiv:2511.00197 [cs.SE] McDonald et al. (2019) Nora McDonald, Sarita Schoenebeck, and Andrea Forte. 2019. Reliability and Inter-rater Reliability in Qualitative Research: Norms and Guidelines for CSCW and HCI Practice. Proceedings of the ACM on Human-Computer Interaction 3, CSCW (2019), 1–23. https://doi.org/10.1145/3359174 Mehtiyev and Assunção (2026) Tural Mehtiyev and Wesley Assunção. 2026. Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure. arXiv:2604.02547 [cs.SE] Mohsenimofidi et al. (2025) Seyedmoein Mohsenimofidi, Matthias Galster, Christoph Treude, and Sebastian Baltes. 2025. Context Engineering for AI Agents in Open-Source Software. arXiv:2510.21413 [cs.SE] Ouatiti et al. (2026) Youssef Esseddiq Ouatiti, Mohammed Sayagh, Hao Li, and Ahmed E. Hassan. 2026. Do AI Coding Agents Log Like Humans? An Empirical Study. arXiv:2604.09409 [cs.SE] Panthaplackel et al. (2020) Sheena Panthaplackel, Pengyu Nie, Milos Gligoric, Junyi Jessy Li, and Raymond Mooney. 2020. Learning to Update Natural Language Comments Based on Code Changes. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics, 1853–1868. https://doi.org/10.18653/v1/2020.acl-main.168 Parnin and Treude (2011) Chris Parnin and Christoph Treude. 2011. Measuring API documentation on the web. In Proceedings of the 2nd International Workshop on Web 2.0 for Software Engineering. ACM, 25–30. https://doi.org/10.1145/1984701.1984706 Poncin et al. (2011) Wouter Poncin, Alexander Serebrenik, and Mark van den Brand. 2011. Process Mining Software Repositories. In 2011 15th European Conference on Software Maintenance and Reengineering. IEEE, 5–14. https://doi.org/10.1109/csmr.2011.5 Popescu et al. (2026) Razvan Mihai Popescu, David Gros, Andrei Botocan, Rahul Pandita, Prem Devanbu, and Maliheh Izadi. 2026. Investigating Autonomous Agent Contributions in the Wild: Activity Patterns and Code Change over Time. https://doi.org/10.1145/3793302.3793354 arXiv:2604.00917 [cs.SE] Prana et al. (2018) Gede Artha Azriadi Prana, Christoph Treude, Ferdian Thung, Thushari Atapattu, and David Lo. 2018. Categorizing the Content of GitHub README Files. Empirical Software Engineering 24, 3 (2018), 1296–1327. https://doi.org/10.1007/s10664-018-9660-3 Ratol and Robillard (2017) Inderjot Kaur Ratol and Martin P. Robillard. 2017. Detecting fragile comments. In 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 112–122. https://doi.org/10.1109/ase.2017.8115624 Robbes et al. (2026) Romain Robbes, Théo Matricon, Thomas Degueule, Andre Hora, and Stefano Zacchiroli. 2026. Agentic Much? Adoption of Coding Agents on GitHub. arXiv:2601.18341 [cs.SE] Robillard (2009) Martin P. Robillard. 2009. What Makes APIs Hard to Learn? Answers from Developers. IEEE Software 26, 6 (2009), 27–34. https://doi.org/10.1109/ms.2009.193 Roehm et al. (2012) Tobias Roehm, Rebecca Tiarks, Rainer Koschke, and Walid Maalej. 2012. How do professional developers comprehend software?. In 2012 34th International Conference on Software Engineering (ICSE). IEEE, 255–265. https://doi.org/10.1109/icse.2012.6227188 Sadowski et al. (2015) Caitlin Sadowski, Kathryn T. Stolee, and Sebastian Elbaum. 2015. How developers search for code: a case study. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering. ACM, 191–201. https://doi.org/10.1145/2786805.2786855 Seaman (1999) C.B. Seaman. 1999. Qualitative methods in empirical studies of software engineering. IEEE Transactions on Software Engineering 25, 4 (1999), 557–572. https://doi.org/10.1109/32.799955 Sillito et al. (2008) J. Sillito, G.C. Murphy, and K. De Volder. 2008. Asking and Answering Questions during a Programming Change Task. IEEE Transactions on Software Engineering 34, 4 (2008), 434–451. https://doi.org/10.1109/tse.2008.26 Sillito et al. (2006) Jonathan Sillito, Gail C. Murphy, and Kris De Volder. 2006. Questions programmers ask during software evolution tasks. In Proceedings of the 14th ACM SIGSOFT international symposium on Foundations of software engineering. ACM, 23–34. https://doi.org/10.1145/1181775.1181779 Steinmacher et al. (2015) Igor Steinmacher, Tayana Conte, Marco Aurélio Gerosa, and David Redmiles. 2015. Social Barriers Faced by Newcomers Placing Their First Contribution in Open Source Software Projects. In Proceedings of the 18th ACM Conference on Computer Supported Cooperative Work & Social Computing. ACM, 1379–1392. https://doi.org/10.1145/2675133.2675215 Tan et al. (2007) Lin Tan, Ding Yuan, Gopal Krishna, and Yuanyuan Zhou. 2007. /*icomment: bugs or bad comments?*/. In Proceedings of twenty-first ACM SIGOPS symposium on Operating systems principles. ACM, 145–158. https://doi.org/10.1145/1294261.1294276 Treude and Baltes (2026) Christoph Treude and Sebastian Baltes. 2026. Context Rot in AI-Assisted Software Development: Repurposing Documentation Consistency for AI Configuration Artifacts. arXiv:2606.09090 [cs.SE] Treude et al. (2015) Christoph Treude, Martin P. Robillard, and Barthelemy Dagenais. 2015. Extracting Development Tasks to Navigate Software Documentation. IEEE Transactions on Software Engineering 41, 6 (2015), 565–581. https://doi.org/10.1109/tse.2014.2387172 Trinh et al. (2026) Tu Trinh, Mohamed Elfeki, Guangze Luo, Kelvin Luu, Nathan Hunt, Ernesto Hernandez, Nandan Marwaha, Yannis Yiming He, Charles Wang, Fernando Carabedo, Alessa Castillo, and Bing Liu. 2026. HiL-Bench (Human-in-Loop Benchmark): Do Agents Know When to Ask for Help? arXiv:2604.09408 [cs.AI] Uddin and Robillard (2015) Gias Uddin and Martin P. Robillard. 2015. How API Documentation Fails. IEEE Software 32, 4 (2015), 68–75. https://doi.org/10.1109/ms.2014.80 van der Aalst et al. (2012) Wil van der Aalst, Arya Adriansyah, Ana Karla Alves de Medeiros, Franco Arcieri, Thomas Baier, Tobias Blickle, Jagadeesh Chandra Bose, Peter van den Brand, Ronald Brandtjen, Joos Buijs, Andrea Burattin, Josep Carmona, Malu Castellanos, Jan Claes, Jonathan Cook, Nicola Costantini, Francisco Curbera, Ernesto Damiani, Massimiliano de Leoni, Pavlos Delias, Boudewijn F. van Dongen, Marlon Dumas, Schahram Dustdar, Dirk Fahland, Diogo R. Ferreira, Walid Gaaloul, Frank van Geffen, Sukriti Goel, Christian Günther, Antonella Guzzo, Paul Harmon, Arthur ter Hofstede, John Hoogland, Jon Espen Ingvaldsen, Koki Kato, Rudolf Kuhn, Akhil Kumar, Marcello La Rosa, Fabrizio Maggi, Donato Malerba, Ronny S. Mans, Alberto Manuel, Martin McCreesh, Paola Mello, Jan Mendling, Marco Montali, Hamid R. Motahari-Nezhad, Michael zur Muehlen, Jorge Munoz-Gama, Luigi Pontieri, Joel Ribeiro, Anne Rozinat, Hugo Seguel Pérez, Ricardo Seguel Pérez, Marcos Sepúlveda, Jim Sinur, Pnina Soffer, Minseok Song, Alessandro Sperduti, Giovanni Stilo, Casper Stoel, Keith Swenson, Maurizio Talamo, Wei Tan, Chris Turner, Jan Vanthienen, George Varvaressos, Eric Verbeek, Marc Verdonk, Roberto Vigo, Jianmin Wang, Barbara Weber, Matthias Weidlich, Ton Weijters, Lijie Wen, Michael Westergaard, and Moe Wynn. 2012. Process Mining Manifesto. In Lecture Notes in Business Information Processing. Springer Berlin Heidelberg, 169–194. https://doi.org/10.1007/978-3-642-28108-2_19 Wang et al. (2024b) Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Yanjun Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. 2024b. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. arXiv:2407.16741 [cs.SE] ICLR 2025. Wang et al. (2024c) Yanlin Wang, Wanjun Zhong, Yanxian Huang, Ensheng Shi, Min Yang, Jiachi Chen, Hui Li, Yuchi Ma, Qianxiang Wang, and Zibin Zheng. 2024c. Agents in Software Engineering: Survey, Landscape, and Vision. arXiv:2409.09030 [cs.SE] Wang et al. (2024a) Zora Zhiruo Wang, Akari Asai, Xinyan Velocity Yu, Frank F. Xu, Yiqing Xie, Graham Neubig, and Daniel Fried. 2024a. CodeRAG-Bench: Can Retrieval Augment Code Generation? arXiv:2406.14497 [cs.SE] Watanabe et al. (2026) Kan Watanabe, Rikuto Tsuchida, Takahiro Monno, Bin Huang, Kazuma Yamasaki, Youmei Fan, Kazumasa Shimari, and Kenichi Matsumoto. 2026. How AI Coding Agents Communicate: A Study of Pull Request Description Characteristics and Human Review Responses. arXiv:2602.17084 [cs.AI] Wen et al. (2019) Fengcai Wen, Csaba Nagy, Gabriele Bavota, and Michele Lanza. 2019. A Large-Scale Empirical Study on Code-Comment Inconsistencies. In 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC). IEEE, 53–64. https://doi.org/10.1109/icpc.2019.00019 Wilson (1927) Edwin B. Wilson. 1927. Probable Inference, the Law of Succession, and Statistical Inference. J. Amer. Statist. Assoc. 22, 158 (1927), 209–212. https://doi.org/10.1080/01621459.1927.10502953 Xia et al. (2025) Chunqiu Steven Xia, Yinlin Deng, Soren Dunn, and Lingming Zhang. 2025. Demystifying LLM-Based Software Engineering Agents. Proceedings of the ACM on Software Engineering 2, FSE (2025), 801–824. https://doi.org/10.1145/3715754 Xia et al. (2017) Xin Xia, Lingfeng Bao, David Lo, Pavneet Singh Kochhar, Ahmed E. Hassan, and Zhenchang Xing. 2017. What do developers search for on the web? Empirical Software Engineering 22, 6 (2017), 3149–3185. https://doi.org/10.1007/s10664-017-9514-4 Xia et al. (2018) Xin Xia, Lingfeng Bao, David Lo, Zhenchang Xing, Ahmed E. Hassan, and Shanping Li. 2018. Measuring Program Comprehension: A Large-Scale Field Study with Professionals. IEEE Transactions on Software Engineering 44, 10 (2018), 951–976. https://doi.org/10.1109/tse.2017.2734091 Yang et al. (2024) John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. arXiv:2405.15793 [cs.SE] Zhang et al. (2023) Fengji Zhang, Bei Chen, Yue Zhang, Jacky Keung, Jin Liu, Daoguang Zan, Yi Mao, Jian-Guang Lou, and Weizhu Chen. 2023. RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation. arXiv:2303.12570 [cs.CL] EMNLP 2023. Zhang et al. (2025) Sheng Zhang, Yifan Ding, Shuquan Lian, Shun Song, and Hui Li. 2025. CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion. arXiv:2509.16112 [cs.CL] Zhang et al. (2026) Xing Zhang, Guanghui Wang, Yanwei Cui, Wei Qiu, Ziyuan Li, Bing Zhu, and Peiyang He. 2026. Guardrails Beat Guidance: A Large-Scale Study of Rules, Skills, and Persistent Configuration for Coding Agents. arXiv:2604.11088 [cs.AI] Zhang et al. (2024) Yuntong Zhang, Haifeng Ruan, Zhiyu Fan, and Abhik Roychoudhury. 2024. AutoCodeRover: Autonomous Program Improvement. arXiv:2404.05427 [cs.SE] ISSTA 2024. Zhi et al. (2015) Junji Zhi, Vahid Garousi-Yusifoğlu, Bo Sun, Golara Garousi, Shawn Shahnewaz, and Guenther Ruhe. 2015. Cost, benefits and quality of software development documentation: A systematic mapping. Journal of Systems and Software 99 (2015), 175–198. https://doi.org/10.1016/j.jss.2014.09.042 Zhong and Su (2013) Hao Zhong and Zhendong Su. 2013. Detecting API documentation errors. In Proceedings of the 2013 ACM SIGPLAN international conference on Object oriented programming systems languages & applications. ACM, 803–816. https://doi.org/10.1145/2509136.2509523 Zhou et al. (2022) Shuyan Zhou, Uri Alon, Frank F. Xu, Zhiruo Wang, Zhengbao Jiang, and Graham Neubig. 2022. DocPrompting: Generating Code by Retrieving the Docs. arXiv:2207.05987 [cs.CL] ICLR 2023. Zimmermann et al. (2005) T. Zimmermann, A. Zeller, P. Weissgerber, and S. Diehl. 2005. Mining version histories to guide software changes. IEEE Transactions on Software Engineering 31, 6 (2005), 429–445. https://doi.org/10.1109/tse.2005.72