potentialpaper

RepoScope: Bridging Physical Structure and Logical Flow for Intent-Driven Repository Documentation

Zezhou Yang, Chaozheng Wang, Hailiang Huang, Peihua Zhang, TingPeng, yuetang deng, Chenxiong Qian

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Repository-level documentation generation is vital for human comprehension and autonomous agents, yet existing approaches fail to align high-level architectural intent with granular implementation details, resulting in documentation that lacks both global coherence and local fidelity. To address this, we propose RepoScope, a repository documentation generation framework that achieves alignment via two synergistic innovations. Specifically, RepoScope employs Physical-Logical Partitioning by jointly modeling directory structures and call graphs, effectively bridging the gap between physical layouts and logical dependencies while creating coherent documentation units. Within this partitioned space, we introduce Seeded Architectural Intent Lift, a mechanism that projects architectural intent top-down to steer granular analysis, which is then revised and lifted bottom-up via code evidence to ensure global-local consistency. Our experimental results on CodeWikiBench demonstrate state-of-the-art performance in aligning with human-authored documentation. Furthermore, the validation on real-world industrial systems shows that RepoScope yields superior correctness and completeness in empowering autonomous agents for CLI extraction compared to existing baselines.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

RepoScope introduces an effective approach for repository-level documentation by aligning code structure, dependencies, and architectural intent. Strong empirical results across benchmarks and real-world systems demonstrate its practical value. I recommend Accept.

Final justification

My meta-review already includes my updated justification after considering the author response.

Area Chair EbxJ · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

RepoScope introduces an effective approach for repository-level documentation by aligning code structure, dependencies, and architectural intent. Strong empirical results across benchmarks and real-world systems demonstrate its practical value. I recommend Accept.

Final justification

My meta-review already includes my updated justification after considering the author response.

Reviewer zitqOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

RepoScope is a framework for generating repository-level documentation. The core idea is to stop treating a codebase as a flat collection of files and instead reconcile two views of it: the physical directory tree and the logical call graph. Two components do the work. Physico-Logical Partitioning (PLP) groups code into "buckets" by starting from logical entry anchors, projecting their reachable components onto the path tree, and then refining bucket boundaries with a confidence-weighted blend of logical and physical affinity. Seeded Architectural Intent Lift (SAIL) then takes those buckets and runs a seed, revise, lift loop: it drafts an architectural intent for each bucket, validates and corrects that intent against fine-grained cell-level code observations, and lifts the revised intents into bucket, module, and repository documentation.

Strengths and weaknesses

Strengths

  • The motivating observation is correct and the framing is clean. Directory layout and call-graph dependency genuinely disagree in real repositories, features cross directory boundaries, and utilities pollute the dependency view. Building documentation units that arbitrate between the two is a reasonable thing to do, and the paper explains the arbitration with enough precision (Appendix A.3) that the design choices are legible.

  • CLI extraction with execution-based correctness is a real downstream task with a metric that cannot be talked into a higher number. The gap on System 3, where executable APIs rise from 5 (CodeWiki) to 17, is the kind of result that survives skepticism about the rest of the evaluation.

  • Breadth is good. Twenty-one repositories spanning seven languages and three orders of magnitude in size (16k to 1.7M LOC) is a serious sweep, and RepoScope wins on every one. The cost analysis in Table 7 is more careful than most, separating input from output tokens and noting that output is four times more expensive under the pricing used.

  • The ablation establishes a clean monotonic story: 36.21 (naive) to 57.89 (+PLP) to 73.88 (+SAIL), with coverage tracking the same path.

Weaknesses

  • The benchmark half of the evaluation has a length and self-preference confound that the paper never addresses. Quality Score and Coverage are assigned by an LLM judge, Coverage is literally the fraction of rubric leaves the judge marks satisfied, and RepoScope emits roughly 2.7 times more output tokens than CodeWiki (4.04M versus 1.52M in Table 7). Longer, more detailed documentation satisfies more rubric requirements almost by construction, and LLM judges are known to reward verbosity.

  • SAIL is never ablated internally, even though its novelty lives in the part that is hidden. The ablation has exactly three points, and the entire seed-revise-lift mechanism is collapsed into one of them.

  • No significance testing, and several wins are inside the noise. Generation runs at temperature 0.2, so it is stochastic, yet each repository is generated once. The three-times repetition mentioned in Appendix B applies only to the judge, not to generation. Some reported wins are tiny: 78.01 versus 77.67 on GraphRAG with tied coverage, 77.62 versus 76.42 on Rasa. The aggregate claim of "best on every repository" leans on margins that a single reseed could erase. The headline averages are large enough to believe, but the per-repository sweep is presented as if every cell were a clean win, and it is not.

  • Backbone generalization is somewhat oversold. Figure 2 shows GLM-4.7 failing to beat the baseline on several repositories, which the text acknowledges. The honest reading is that the method is sensitive to backbone capability, not that it generalizes across backbones. The abstract and Section 4 lean toward the rosier framing.

Questions

What does a "SAIL without grounded revision" variant (seed and lift only, no revision proposals, adjudication, or replay) score? This is the ablation that would justify the paper's main mechanism.

Limitations

yes

Formatting concerns

N/A

4 comments
Authors · CommentOpenReview ↗

Response to Q1 - Clarification of Document Length

Final-document length. The output-token comparison in Table 7 does not measure final-document length. Table 7 reports aggregate output across all LLM calls for cost analysis; RepoScope's count additionally includes generation-only intent seeds, cell drafts, revision proposals, adjudication, targeted replay, and hierarchical synthesis. We therefore separately tokenize only the final documentation retained after CodeWikiBench parsing, using the same K2 tokenizer for all methods.

Table R3-1: Final documentation length and aggregate CodeWikiBench performance over the seven core repositories.

Method Final Doc. Tokens (Total) Avg. per Repository Length Ratio Quality Score Coverage
CodeWiki 495,383 70,769 0.50× 55.08 286/486
DeepWiki 865,082 123,583 0.88× 60.76 297/486
RepoScope w/ PLP (w/o SAIL) 976,842 139,549 0.99× 57.89 280/486
RepoScope 984,715 140,674 1.00× 73.88 362/486
OpenDeepWiki 1,069,946 152,849 1.09× 36.77 163/486
DocAgent 1,348,915 192,702 1.37× 56.37 282/486

Length ratios are normalized by RepoScope Full.

RepoScope's final documentation contains 984,715 tokens, rather than the 4.04M pipeline output tokens reported in Table 7. It remains longer than CodeWiki and DeepWiki, so we do not claim that length has no effect; however, length alone cannot explain the gains. DocAgent produces 37.0% more final text than RepoScope, yet scores 17.51 points lower and covers 80 fewer rubric requirements. Within RepoScope, the PLP-only and full variants differ in length by only 0.8%, while SAIL improves Quality Score by 15.99 points and Coverage by 82 requirements. Because CodeWikiBench rubrics span both implementation details and high-level architectural relationships, additional function-level text does not automatically satisfy its requirements.

Evaluator self-preference. All methods are evaluated with the same representation, judge prompts, and fixed K2 evaluator, and the parsed artifacts contain no explicit method/model identifiers. Under this evaluator, MiniMax-M2.1 outperforms K2-Instruct on Logstash, Wazuh, and Electron. This does not eliminate all evaluator bias, but it weakens a simple self-preference explanation: the K2 judge does not systematically rank outputs from its own model family highest.

Together, the longer-yet-weaker DocAgent control, the near-length-matched internal ablation, and the cross-backbone results show that neither verbosity nor evaluator self-preference alone is sufficient to explain RepoScope's improvement. We will clarify that Table 7 reports pipeline consumption and add the final-document statistics and controls above.

Authors · CommentOpenReview ↗

Response to Q2 - Ablation Experiment of SAIL

A strictly stage-by-stage ablation is not well defined because seed construction, evidence-based revision, and hierarchical lifting are operationally coupled: the seed conditions cell-level documentation, accepted revisions update that seed and trigger targeted replay, and lifting consumes the revised intent together with replay-consistent cell documents. We therefore add Fixed Initial Intent as the cleanest internal control. It uses the same PLP buckets, intent-seed construction, and hierarchical lifting as full SAIL, but freezes the initial intents, disabling evidence-grounded revision and targeted replay. This comparison isolates the incremental contribution of revision and replay while preserving the inputs and structure required by the other two stages.

Table R3-2: Internal ablation of SAIL.

Repository RepoScope w/ PLP Fixed Initial Intent RepoScope Full
Score Cov. Score Cov. Score Cov.
OpenHands 78.02 53/67 69.23 49/67 88.03 58/67
Svelte 80.77 73/96 84.30 76/96 88.19 80/96
Puppeteer 33.50 29/82 46.06 38/82 76.60 58/82
ML-Agents 59.11 26/46 49.92 19/46 72.25 34/46
Logstash 50.22 27/57 45.05 28/57 62.98 38/57
Wazuh 57.45 30/46 58.65 31/46 67.48 35/46
Electron 46.13 42/92 59.23 56/92 61.63 59/92
Average / Total 57.89 280/486 58.92 297/486 73.88 362/486

RepoScope w/ PLP uses no architectural intent; Fixed Initial Intent retains seeding and lifting but disables evidence-grounded revision and replay; RepoScope Full enables the complete seed–revise–lift procedure.

Fixed Initial Intent improves over PLP-only by only 1.03 score points and 17 covered targets in total, while decreasing Quality Score on three repositories. Static intent guidance is therefore sometimes useful, but is neither uniformly beneficial nor sufficient. Moreover, a positive Fixed-over-PLP gain does not imply that the initial intent is already complete: on Puppeteer, Fixed Initial Intent improves the score by 12.56 points, yet enabling revision and replay produces a further 30.54-point gain.

Full SAIL outperforms Fixed Initial Intent on all seven repositories, increasing the average score from 58.92 to 73.88 and coverage from 297/486 to 362/486. Because seeding and hierarchical lifting are held fixed, this comparison isolates the value of allowing implementation evidence to revise the initial intent and replay the affected documentation.

To determine whether this improvement results from indiscriminate rewriting or selective evidence-triggered correction, we additionally report the frequency of accepted intent revisions.

Table R3-3: Accepted intent revisions across repositories.

Repository Total Buckets Buckets with Accepted Revisions Revision Rate
OpenHands 86 18 20.93%
Svelte 111 11 9.91%
Puppeteer 34 11 32.35%
ML-Agents 54 13 24.07%
Logstash 29 6 20.69%
Wazuh 58 9 15.52%
Electron 42 3 7.14%
Total 414 71 17.15%

Only 71/414 buckets (17.15%) receive accepted revisions, showing that SAIL largely preserves initial intents that remain compatible with implementation evidence. More importantly, Tables R3-2 and R3-3 exhibit a consistent cross-repository relationship: repositories with lower revision rates obtain smaller Full-over-Fixed gains, such as Electron (7.14%, +2.40) and Svelte (9.91%, +3.89), whereas repositories with higher revision rates obtain substantially larger gains, such as ML-Agents (24.07%, +22.33) and Puppeteer (32.35%, +30.54).

This pattern is consistent with SAIL’s intended adaptive behavior: when the initial intent remains sufficiently aligned with the implementation, little revision is required and static intent already approaches full SAIL; when code evidence exposes incomplete or incorrect assumptions, more buckets are revised and adaptive correction yields correspondingly larger gains. We will add this internal ablation and revision analysis to distinguish the limited and inconsistent effect of static intent guidance from the selective, evidence-grounded adaptation enabled by full SAIL.

Authors · CommentOpenReview ↗

Response to Q3 - Statistics of the Results

Each documentation set was generated once, while the three repetitions in Appendix B apply only to judging. The repository-level scores are therefore single-generation point estimates, and we do not claim statistical significance for narrow margins such as GraphRAG (78.01 vs. 77.67) and Rasa (77.62 vs. 76.42). These cases should be interpreted as near-ties rather than statistically established wins.

We use a conservative low-temperature configuration (T=0.2) to limit sampling variability while retaining non-greedy generation. This setting is also adopted in recent code-oriented LLM evaluations and software-engineering agents, where it is used as a conservative choice for improving consistency and reproducibility [R1–R3]. The configuration was fixed globally across all repositories and was not tuned per repository. Nevertheless, a nonzero temperature does not eliminate generation stochasticity, and because each documentation set was generated only once, the current experiments do not quantify sensitivity to regeneration.

We will therefore replace “best on every repository” with “the highest observed point estimate on every repository in the reported run,” describe small-margin cases as near-ties, and clarify that table bolding denotes observed maxima rather than statistically established wins. We will also revise Appendix B, Threats to Validity, and the NeurIPS checklist to distinguish repeated judging from repeated generation.

Our main conclusion concerns the aggregate trend rather than the significance of every repository-level comparison: RepoScope exceeds the strongest per-repository baseline by 12.34 points on average across 21 repositories, so the overall finding does not depend on the few near-tied cases.

  • [R1] Naman Jain et al. “LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code.” ICLR 2025.

  • [R2] Zhiruo Wang et al. “CODERAG-BENCH: Can Retrieval Augment Code Generation?” Findings of NAACL 2025.

  • [R3] Junjie Bai et al. “POLO: An LLM-Powered Project-Level Code Performance Optimization Framework.” IJCAI 2025.

Response to Q4 — Backbone sensitivity and claim calibration.

“Backbone generalization” overstates what Figure 2 establishes. The results do not show uniform or model-agnostic gains: MiniMax-M2.1 generally outperforms DeepWiki, whereas GLM-4.7 produces mixed results and fails to surpass the baseline on several repositories. The framework is therefore clearly sensitive to the backbone’s capabilities.

We will rename Section C.3 as “Cross-Backbone Evaluation and Sensitivity” and state this qualification at the beginning of the section. Our revised claim is that RepoScope can be instantiated with multiple backbones, but its improvements are not guaranteed across all models and depend on the backbone’s ability to select evidence, revise intent, and perform hierarchical synthesis. We will also revise the abstract and Section 4 to remove any implication of uniform cross-backbone improvement.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for your thoughtful comments. We have provided additional clarifications in our rebuttal and would greatly appreciate your feedback if you have a chance to review them before the discussion period ends.

We would be happy to clarify any remaining questions. Thank you very much for your time and consideration.

Reviewer R5LTOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes REPOSCOPE, a repository-level documentation generation framework that aims to align high-level architectural intent with low-level implementation details. Its first component, Physical-Logical Partitioning (PLP), partitions a repository into documentation "buckets" by combining directory structure with call-graph reachability, so that documentation units reflect both physical organization and logical dependencies. Its second component, Seeded Architectural Intent Lift (SAIL), assigns each bucket an initial architectural-intent seed, revises that seed using code-level evidence, and then lifts the revised intents into bucket-, module-, and repository-level documentation. The paper evaluates REPOSCOPE on CodeWikiBench and three closed-source industrial C++ systems, reporting better documentation quality/coverage and improved downstream CLI/API extraction by agents compared with OpenDeepWiki and CodeWiki.

Strengths and weaknesses

The core notion of "architectural intent" is underspecified and hard to validate. The paper repeatedly claims that REPOSCOPE recovers and propagates architectural intent, but "intent" is not defined with a precise operational criterion. In practice, it appears to be inferred by LLMs from bucket context, code snippets, artifacts, tests, and generated summaries. This makes it difficult to distinguish true architectural intent from plausible LLM-generated interpretation. (Q1)

The evaluation relies heavily on LLM-as-judge. For CodeWikiBench, the paper uses rubric-based LLM-as-judge metrics such as Quality Score and Coverage. This is more appropriate than n-gram overlap, but it still raises concerns about judge bias, rubric quality, evaluator consistency, and whether the generated documentation is truly correct rather than merely matching expected documentation style. The paper does not sufficiently address judge reliability, inter-judge agreement, judge/model bias, or whether the same/similar model family is used for generation and evaluation. Since the reported gains are large. For example, OpenHands: 88.03 vs. 70.41 over DeepWiki, and Puppeteer: 76.60 vs. 57.94. The paper should verify that these are not artifacts of rubric interpretation or evaluator preference. (Q2)

The method is highly complex and contains many heuristic stages. PLP involves anchor selection, pruning, consolidation, reachability profiles, sharing-aware footprints, adaptive complexity budgets, affinity refinement, local arbitration weights, and repository-level objective checks. Many important details are deferred to appendices. This complexity may make the method difficult to reproduce, tune, debug, or compare fairly against simpler documentation pipelines. (Q3)

The downstream CLI extraction task may conflate documentation quality with agent/tool effects. The paper uses Claude Code with HARNESS.md to extract CLI-accessible APIs from industrial systems. Better results with REPOSCOPE are promising, but the outcome depends on the agent, prompt, harness quality, extraction workflow, and execution environment, not only the documentation. The authors themselves note that the CLI extraction agent is not task-specific for multi-step API composition, leaving uncertainty about how much of the improvement is due to documentation versus the particular agent setup. (Q4)

Questions

See Q1-Q4.

Limitations

yes

Formatting concerns

no

4 comments
Authors · CommentOpenReview ↗

Response to Q1 - Operational Definition and Scope of Architectural Intent

In RepoScope, architectural intent does not refer to developers’ private mental states, undocumented historical motivations, or a uniquely recoverable original design rationale. We operationally define architectural intent as an evidence-traceable and revisable hypothesis about: (i) the system-level role of an implementation region, (ii) the responsibilities and salient behaviors it owns, and (iii) the interfaces and cross-boundary interactions through which it contributes to the current architecture.

For each fixed enriched PLP bucket Bˉk=(Vk,Fk,Tk)\bar{B}_k=(V_k,F_k,T_k), SAIL represents this hypothesis as

z~k=⟨rk,Rk,Ik,Ek,Qk,ck⟩,\tilde{z}_k= \left\langle r_k,\mathcal{R}_k,\mathcal{I}_k, \mathcal{E}_k,\mathcal{Q}_k,c_k \right\rangle,

recording its provisional architectural role (rkr_k), expected responsibilities and behaviors (Rk\mathcal{R}_k), expected interfaces and boundary interactions (Ik\mathcal{I}_k), supporting repository evidence (Ek\mathcal{E}_k), unresolved questions (Qk\mathcal{Q}_k), and confidence (ckc_k). Each seed is therefore an evidence-traceable hypothesis rather than a final interpretation.

Operationally, a statement qualifies as architectural intent only if it:

  1. concerns an implementation region’s architectural role, responsibility, or boundary interaction rather than merely local behavior;
  2. is traceable to observable source, dependency, test, or artifact evidence; and
  3. is explicitly treated as provisional and can be revised when subsequent evidence contradicts, narrows, or extends it.

Evidence-grounded revision and traceability. PLP fixes the bucket to which each intent is attributed. SAIL may expose bounded cross-bucket context when interpreting that bucket, but this context does not alter bucket membership or intent attribution. Each initial seed remains provisional: when cell-level observations indicate that it is incomplete, overly broad, or inaccurate, a cell may emit a revision proposal citing concrete code evidence. The adjudication stage assigns each proposal ACCEPT, REJECT, or DEFER; only accepted proposals modify the intent state and trigger targeted replay for the affected cells. Generated summaries may provide contextual support, but cannot serve as the sole evidence for a revision. Thus, the LLM performs semantic interpretation, while evidence constraints and explicit adjudication govern which interpretations are allowed to change the intent state.

Accordingly, RepoScope does not claim to recover a uniquely correct historical intent. Instead, it evaluates whether an inferred intent is traceable to repository evidence, consistent with the observed implementation, and revisable when subsequent evidence contradicts, narrows, or extends it.

Cross-model consistency. To assess whether the operationalized intent hypotheses are strongly model-specific, we generate them for the same seven repositories using seven configurations from three model families and embed each intent segment with all-MiniLM-L6-v2. For each model pair, we first compute semantic similarity on each of the seven corresponding repositories and then average the seven repository-level similarities to obtain the reported table entry.

K2-T K2.6 G4.7 G5.2 M2.1 M2.5
K2-I 0.797 0.788 0.771 0.782 0.803 0.784
K2-T — 0.782 0.753 0.781 0.775 0.761
K2.6 — — 0.784 0.801 0.795 0.779
G4.7 — — — 0.781 0.762 0.775
G5.2 — — — — 0.792 0.791
M2.1 — — — — — 0.803

K2-I/T denote K2-Instruct/Thinking; G denotes GLM; M denotes MiniMax.

Across all 21 model pairs, the mean similarity is 0.783 (range: 0.753–0.803). The cross-family mean is 0.781, close to the within-family mean of 0.790. We interpret this result as evidence of substantial cross-model consistency relative to non-corresponding regions, not as evidence that the inferred intent is uniquely correct or identical to developers’ original design rationale. Because cosine similarity is embedding- and domain-dependent, we calibrate this value using a within-repository hard-negative baseline: for each model pair, we randomly permute region correspondences while preserving the repository, model pair, and number of regions. Corresponding regions score 0.783 on average, compared with 0.488 for mismatched regions, yielding a margin of 0.295.

We will add this operational definition and its validation criteria to Section 3.2 and include the cross-model consistency analysis in the revision.

Authors · CommentOpenReview ↗

Response to Q2 - Reliability of LLM-as-Judge Evaluation

We interpret CodeWikiBench scores as alignment with human-authored technical requirements, rather than standalone proof of factual correctness.

Evaluation reliability and bias controls. CodeWikiBench decomposes repository-specific rubrics into concrete leaf-level requirements, and the judge makes binary satisfaction decisions rather than assigning a holistic fluency or style score. All methods use the same benchmark split, rubric trees, judge prompts, evaluator, and aggregation procedure; we further set the evaluator temperature to 0 and repeat each evaluation three times.

Checks against evaluator preference and verbosity. Under the same fixed K2 evaluator, MiniMax-M2.1 outperforms K2-Instruct on several repositories, arguing against a simple same-family preference. We additionally add the evaluation of DocAgent (a direct length/detail control) on CodeWikiBench: its final documentation is 37.0% longer than RepoScope's, yet performs substantially worse in both Quality Score and Coverage. Within RepoScope, the PLP-only and full variants differ in final length by only 0.8%, while SAIL yields substantial gains in both metrics. Thus, evaluator self-preference, verbosity, and function-level detail alone are insufficient to explain the reported improvements.

Judge-independent validation. In the industrial CLI-extraction experiment, documentation is consumed by a fixed Claude Code agent, while correctness is determined by expert-identified APIs and actual execution under expert-specified tests. The progression from Raw Code to OpenDeepWiki, CodeWiki and RepoScope reported in Table 2 therefore provides judge-independent evidence that better documentation improves executable downstream performance. We additionally report a pre-existing, one-month, method-identity-blinded developer rollout. Twenty-one developers completed 57 backend functionality-level test-construction assignments, producing 179 executable test cases under Raw Code, anonymized CodeWiki, or anonymized RepoScope support. Median completion times were 148, 126, and 103 minutes, respectively, corresponding to reductions of 30.4% over Raw Code and 18.3% over CodeWiki for the RepoScope condition.

Together, these controls support Quality Score and Coverage as measures of requirement satisfaction, while executable tests and the developer rollout provide independent evidence of downstream correctness and practical developer utility.

Response to Q3 - PLP Complexity and Reproducibility

PLP is a coherent three-stage decomposition pipeline: call-graph reachability identifies functional origins, the repository path tree initializes physically grounded buckets, and affinity refinement corrects the remaining physical–logical mismatches. The individual substeps are separated to expose their intermediate representations and decisions, rather than because they constitute independently tuned heuristics.

PLP uses model assistance only for ambiguous or high-impact classification cases during entry and test filtering. These reviews are enabled with fixed prompts and configurations in all reported experiments. Given the resulting classifications, anchor consolidation, path-guided bucket initialization, affinity computation, component reassignment, and objective-based acceptance are deterministic. Repository-adaptive quantities, including the complexity budget and local arbitration weights, are computed from repository-level statistics, while the remaining global thresholds and objective weights are fixed across repositories and provided in the released configuration. Refinement is further constrained: a candidate partition edit is accepted only when it does not increase the unified repository-level objective.

To support reproduction, debugging, and transparent comparison, we provide the complete implementation, default configurations, model-review prompt and configuration, and evaluation scripts in the anonymous repository (https://anonymous.4open.science/r/RepoScope-E9B4/). Appendix A specifies the equations, decision rules, and stage-wise implementation details. We will revise the main text to present PLP as a compact end-to-end workflow, clearly distinguish rule-based, model-assisted, repository-adaptive, and deterministic operations.

Authors · CommentOpenReview ↗

Response to Q4 - Potential Workflow Limitation

The downstream comparison keeps all evaluated factors except the documentation source fixed within each system. Across Raw Code, OpenDeepWiki, CodeWiki, and RepoScope, we use the same Claude Code agent and Claude-Opus configuration, prompt structure, tools, complete repository access, execution environment, and expert-specified tests.

HARNESS.md standardizes task execution without supplying solution information. Each industrial system has its own expert-written HARNESS.md, reflecting its execution environment and interface conventions; within that system, the identical HARNESS.md is reused unchanged across all four documentation conditions. The harness specifies only the operational task protocol, including the required CLI format, invocation conventions, execution environment, and validation procedure. It does not enumerate the target APIs, identify their implementation locations, reveal which components realize the target functionality, or specify the call compositions required for successful execution. The agent must recover this solution information from the repository and, when available, its documentation.

Repeated independent runs control for variation in individual agent trajectories. We conduct five independent runs for each system–documentation condition, yielding 60 agent runs in total. Each run begins from a clean execution environment and a fresh Claude Code session, with no conversation history or intermediate artifacts carried over from previous runs. We deduplicate the APIs extracted across the five runs and report their union in Table 2; each unique API in this union is then evaluated using the same expert-specified execution tests. The same run budget and aggregation protocol are applied to every condition.

Raw Code provides the key no-documentation control with complete source access. It exposes all implementation facts available to the documentation-assisted conditions while using the same agent, harness, and execution workflow. The fixed workflow and complete source access are therefore insufficient by themselves to explain the gains; structured documentation improves how the same agent locates, relates, and operationalizes repository functionality, with RepoScope providing the strongest support.

Claude Code serves as a fixed general-purpose repository-level consumer rather than a task-specific extraction pipeline. It is a general-purpose coding agent designed for repository-level software-development tasks, making the evaluation closer to how generated documentation would be used in practice than a task-specific API-extraction pipeline. We keep the agent and workflow fixed and compare the relative improvement enabled by each documentation source, rather than attempting to maximize the absolute extraction ceiling. Our conclusion is therefore about the relative utility of documentation within the same realistic workflow.

Accordingly, this experiment supports a scoped claim: RepoScope provides greater downstream utility than the compared documentation sources under a controlled general-purpose agent workflow, rather than establishing an agent-independent measure of documentation quality. CodeWikiBench provides complementary evaluation on public repositories outside this CLI workflow.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for your thoughtful comments and feedback. We have provided our responses and additional clarifications in the rebuttal.

As the discussion period is coming to an end, we would greatly appreciate it if you could take a look at our response and let us know whether the clarifications address your main concerns. We would be happy to answer any remaining questions.

Thank you very much for your time and consideration.

Reviewer JKF5OpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes REPOSCOPE, a framework for repository-level documentation generation. The key idea is to construct documentation units by combining physical repository structure with logical call-graph structure, and then generate documentation through an intent-guided process that seeds, revises, and lifts architectural intent across cells, buckets, modules, and the whole repository. The paper evaluates the method on CodeWikiBench and on three industrial C++ systems through a downstream CLI extraction task.

Strengths and weaknesses

Strengths:

  1. The problem is timely and practically important. Repository-level understanding is increasingly relevant for both human developers and coding agents, and the paper correctly identifies that file-level or directory-level summarization often misses architectural intent. The combination of physical layout and logical dependency structure is a reasonable and well-motivated design choice.

  2. The empirical results are strong. REPOSCOPE improves over DeepWiki, CodeWiki, and OpenDeepWiki across the reported public benchmarks, and the downstream industrial evaluation is a valuable addition because it tests whether the generated documentation actually helps an agent perform a concrete software-engineering task. The ablation study is also useful: PLP and SAIL both appear to contribute, and the monotonic improvements support the claim that the gains are not solely from using a larger generation budget.

  3. The paper is generally well organized. The pipeline is clearly decomposed into PLP and SAIL, and the appendix provides many implementation details, case studies, cost analysis, and limitations.

Weaknesses:

  1. Much of the public evaluation relies on rubric-based LLM-as-judge. This is understandable for documentation quality, but it also makes the magnitude of the reported improvements harder to fully trust, especially because generated documentation can be verbose, stylistically aligned with rubrics, or evaluator-friendly without necessarily being more useful to developers. A human evaluation, even on a subset of repositories, would substantially strengthen the paper.

  2. The industrial evaluation is interesting but difficult to independently verify. The systems are confidential, the agent uses Claude Code with Claude-Opus, and the task depends on expert-written HARNESS.md files. This makes it hard to separate the contribution of documentation quality from the particular agent workflow, harness design, and hidden properties of the systems. The paper acknowledges some of this, but the evidence would be stronger with a public downstream task that can be fully reproduced.

  3. The novelty is somewhat incremental. The paper combines several reasonable ideas—call-graph-aware grouping, hierarchy construction, top-down intent seeding, bottom-up revision, and LLM-based synthesis—but many components resemble existing decomposition-and-aggregation or agentic documentation pipelines. The conceptual contribution is compelling, but the paper could better distinguish which mechanisms are genuinely new versus engineering refinements of known repository summarization patterns.

Questions
  1. How much of the improvement comes from better structure versus simply producing more detailed or longer documentation?

  2. Are the LLM judges blind to the method identity and normalized for length/style?

Limitations

yes

Final justification

Thanks for your response. They addressed my concerns and I would increase the score to 4.

Formatting concerns

N/A

4 comments
Authors · CommentOpenReview ↗

Response to Q1 - Clarification of Document Length

To test whether document length or function-level detail alone can account for the observed gains, we measure the final evaluated document length and introduce DocAgent as a longer, function-level baseline.

Table R1-1: Final documentation length and CodeWikiBench performance over the seven core repositories.

Method Final Doc. Tokens (Total) Avg. per Repository Length Ratio Quality Score Coverage
CodeWiki 495,383 70,769 0.50× 55.08 286/486
DeepWiki 865,082 123,583 0.88× 60.76 297/486
RepoScope w/ PLP (w/o SAIL) 976,842 139,549 0.99× 57.89 280/486
RepoScope 984,715 140,674 1.00× 73.88 362/486
OpenDeepWiki 1,069,946 152,849 1.09× 36.77 163/486
DocAgent 1,348,915 192,702 1.37× 56.37 282/486

Final documentation length. Table 7 in the paper reports aggregate token consumption across all LLM calls in the generation pipeline for cost analysis, not the length of the final documentation evaluated by CodeWikiBench. RepoScope's 4.04M output tokens include both retained documentation and intermediate outputs from intent construction, cell drafting, revision, replay, and hierarchical synthesis. As shown in Table R1-1, we separately tokenize only the final text retained after CodeWikiBench parsing, using the same K2 tokenizer and excluding generation-only intermediate artifacts. Thus, RepoScope's final documentation contains 984,715 tokens. We will add the final document token counts in the paper.

Table R1-2: DocAgent versus RepoScope on the seven core repositories.

Repository DocAgent [Score (Cov.)] RepoScope [Score (Cov.)]
OpenHands 72.62 (50/67) 88.03 (58/67)
Svelte 49.03 (49/96) 88.19 (80/96)
Puppeteer 60.94 (51/82) 76.60 (58/82)
ML-Agents 60.34 (30/46) 72.25 (34/46)
Logstash 55.56 (34/57) 62.98 (38/57)
Wazuh 52.72 (25/46) 67.48 (35/46)
Electron 43.37 (43/92) 61.63 (59/92)
Average 56.37 (282/486) 73.88 (362/486)

DocAgent and the PLP-only variant as length controls. DocAgent generates extensive function-level documentation and produces 1,348,915 tokens, which is 37.0% more than RepoScope. Nevertheless, it scores 17.51 points lower, covers 80 fewer requirements, and underperforms RepoScope on all seven repositories. Table R1-2 shows that additional text or function-level detail alone is insufficient to obtain strong CodeWikiBench performance. The benchmark evaluates repository-specific requirements spanning architectural structure and implementation details, so information must be correctly selected, organized, and grounded rather than merely stated at greater length. The internal ablation provides the same pattern: RepoScope w/ PLP produces almost the same amount of final text as the full system (976,842 vs. 984,715 tokens; only 0.8% shorter), yet scores 15.99 points lower and covers 82 fewer requirements. The PLP-only variant already produces nearly the same amount of evaluated text as the full system; the additional gains therefore arise from how SAIL interprets, revises, and hierarchically organizes that information rather than from a substantial increase in final-document length. These controls provide evidence that document length alone is insufficient to explain the improvement.

Response to Q2 - Judge Blinding and Normalization of CodeWikiBench

The judges were blind to explicit method identity, while document length and style were not normalized.

Following CodeWikiBench, all outputs are converted into the same docs_tree.json/structured_docs.json schema and exposed through the same document-access interface. The evaluation further uses the same benchmark split, rubrics, judge prompts, and judge configuration across methods. Our audit found no method/model names or other system-identifying metadata in the parsed artifacts, so the judges were blind to explicit method identity.

However, each method's hierarchy, prose, and amount of content remain visible; the protocol therefore standardizes representation and access, but does not normalize length or style. The corresponding length-controlled analyses are reported in our response to Q1.

Authors · CommentOpenReview ↗

Response to W1 - LLM-as-Judge Reliability and Human Evaluation

Q1 and Q2 address judge blinding and the potential effects of verbosity. Experiment 2 already provides deterministic downstream validation through expert-defined execution tests; here, we provide complementary evidence from developers in an actual backend-testing workflow. To complement the automated evaluations with human evidence, we analyze a method-identity-blinded rollout from June 1 to June 30 across the three industrial systems. Twenty-one developers were randomly assigned to three support conditions, with seven developers per condition: raw code only, raw code augmented with anonymized CodeWiki documentation, or raw code augmented with anonymized RepoScope documentation. The testing workflow and expert validation criteria were fixed across conditions. Assignments were balanced across the three systems and matched by functionality type and estimated difficulty, while all completed assignments were required to satisfy the same expert-defined acceptance criteria.

Developers completed 57 functionality-level test-construction assignments, with 19 assignments per condition, producing 179 executable test cases. Each assignment targeted one newly added or modified backend functionality and typically required multiple test cases covering normal, boundary, and failure conditions. Median completion time per functionality was 148, 126, and 103 minutes under Raw Code, CodeWiki, and RepoScope, respectively. The RepoScope condition was associated with a 30.4% lower median completion time than Raw Code and an 18.3% lower median than CodeWiki. Based on document-access logs, developers consulted the provided documentation in 5/19 CodeWiki assignments (26.3%) and 12/19 RepoScope assignments (63.2%).

Response to W2 - Potential workflow limitation

HARNESS.md provides operational task specifications, not system-specific solution information. Each industrial system is paired with its own expert-written HARNESS.md to accommodate its execution environment and interface conventions. Within a given system, the identical HARNESS.md is reused unchanged across Raw Code, OpenDeepWiki, CodeWiki, and RepoScope. The harness specifies only the operational information required to conduct the task, including the required CLI format, invocation conventions, execution environment, and validation procedure. It does not enumerate the target APIs, reveal their implementation locations, identify the components realizing the target functionality, or provide the call compositions required for successful execution. The agent must recover this solution information from the repository and, when available, its documentation.

Within each system, all configured factors except the documentation condition are held fixed. The Claude Code agent, Claude-Opus configuration, system-specific HARNESS.md, tools, complete source access, execution environment, and expert-specified tests are identical across Raw Code, OpenDeepWiki, CodeWiki, and RepoScope. To reduce dependence on any single agent trajectory, we conduct five independent runs for each system–documentation condition, resulting in 60 agent runs in total. Each run starts from a clean execution environment and a fresh Claude Code session, with no conversation history or intermediate artifacts carried over across runs. We deduplicate the APIs extracted across the five runs and report their union; every unique API in this union is then evaluated using the same expert-specified execution tests. The same five-run budget and aggregation protocol are applied to every condition. Raw Code therefore measures what the fixed workflow can cumulatively recover from complete source access and shared operational knowledge alone. Under this controlled protocol, the progression across conditions reflects the additional downstream utility provided by documentation, with RepoScope providing the strongest support.

CodeWikiBench provides a public, reproducible benchmark evaluation on open-source repositories, while Experiment 2 provides complementary execution-based evidence in real industrial systems. We therefore interpret Experiment 2 as measuring cumulative downstream utility under the same fixed five-run agent budget, rather than single-run expected performance or an agent-independent measure of documentation quality. A public executable downstream benchmark would further strengthen the evaluation by adding independently reproducible execution-based evidence, and we plan to extend the same controlled protocol to public repositories in future work.

Authors · CommentOpenReview ↗

Response to W3 - Insufficient differentiation of the conceptual novelty

Our contribution does not lie in these primitives individually, but in how architectural intent of different entities is discovered and utilized throughout repository documentation.

What prior pipelines do. Existing repository-documentation methods already follow a decomposition-and-aggregation paradigm: they partition repositories into local code units, summarize these units with dependency-derived context such as call graphs, and compose the resulting summaries into higher-level documentation. Despite differences in implementation, these methods are primarily concerned with how local information should be selected, organized, and aggregated at repository scale.

RepoScope instead focuses on two questions in this paradigm:

  1. how to extract a repository-level architectural view for different entities across different documentation granularities, such that each unit is understood by the responsibility it serves in the overall system;

  2. how to reconcile this provisional architectural interpretation with concrete code evidence, allowing it to guide local analysis while still being verified, refined, or corrected by the implementation.

PLP addresses the first question. It reconciles physical organization with logical reachability to construct responsibility-oriented buckets, providing the repository-level context needed to interpret each unit by its architectural role rather than only by its local behavior.

SAIL addresses the second question. It treats the inferred architectural view as a provisional hypothesis rather than a fixed conclusion: the intent seed guides fine-grained documentation, concrete code observations verify, refine, or correct it, and the revised intent is then lifted into bucket-, module-, and repository-level documentation.

RepoScope therefore differs from conventional decomposition-and-aggregation pipelines in both structural modeling and information flow: PLP determines where and over what architectural scope intent should be discovered, while SAIL determines how that intent should guide local interpretation, be revised by implementation evidence, and propagate through the documentation hierarchy. This separation is also supported empirically by the ablation results in Table 6: PLP improves over naive bottom-up generation on every repository, while adding SAIL on top of PLP yields further gains in both quality score and coverage across all seven repositories. The conceptual novelty lies in this coupled formulation, rather than in the individual graph, hierarchy, prompting, or synthesis techniques used to implement it.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you for your thoughtful comments and feedback. We have provided our responses and additional clarifications in the rebuttal.

As the discussion period is coming to an end, we would greatly appreciate it if you could take a look at our response and let us know whether the clarifications address your main concerns. We would be happy to answer any remaining questions.

Thank you very much for your time and consideration.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…