acceptodds
Published as a conference paper at NeurIPS 2026

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

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 Physico-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 SAIL (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.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_zitqOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
2
Significance
3
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

Paper formatting concerns

N/A

Reviewer_R5LTOpenReview ↗
Rating
3
Clarity
2
Confidence
4
Originality
2
Quality
3
Significance
3
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

Paper formatting concerns

no

Reviewer_JKF5OpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
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

Paper formatting concerns

N/A

Final justification

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

Comments on the paper

1 comment
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.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.