NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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 page · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: system or tooling · Keywords: repository documentation, code analysis, architectural intent, call graph, CLI extraction, autonomous agents

Areas: Code & Coding Agents › Code Verification › Software engineering agents; AI Agents › Agent Benchmarking › Repository agents

Summary

RepoScope is a repository documentation generation framework that aligns physical directory structures with logical call graphs to produce coherent and faithful documentation, achieving state-of-the-art performance on CodeWikiBench and industrial CLI extraction.

Explained to a 5-year-old

People write computer code in folders. This code talks to other parts of the code. The new system looks at both the folders and the talks to make a good description. It makes sure the description matches what the code does. This helps robots understand the code better.

Explained to a 5-year-old, longer

When you look at a computer program, you see many files in different folders. These files are like pieces of a puzzle that need to fit together. Some files call other files, which means they depend on each other. The new system watches where the files are placed and how they call each other. It makes groups of files that make sense together. Then it reads the big picture of what the program is supposed to do. It uses that big picture to guide the details of each file group. After that, it checks the actual code to make sure the description is correct. This back-and-forth process helps the description stay true to the code. The result is a clear document that humans and robots can read easily. It helps people understand big software projects faster. It also lets robots automatically extract instructions for command-line tools.

For a technical reader

RepoScope jointly models directory layouts and call graphs to create coherent documentation units. It projects high-level architectural intent top-down and refines it bottom-up using code evidence. This dual-direction process ensures the generated documentation matches both the overall design and the detailed implementation. The framework was evaluated on CodeWikiBench and real-world industrial systems, showing superior alignment and completeness compared to existing baselines.

Problem

Repository documentation generation often fails to connect high-level architectural intent with low-level implementation details, resulting in documentation that lacks global coherence and local fidelity.

Method

The approach jointly models directory structures and call graphs to create physico-logical partitions, then projects architectural intent top-down and refines it bottom-up using code evidence to ensure consistency.

Results

The approach achieves state-of-the-art alignment with human documentation on CodeWikiBench and shows superior correctness and completeness for CLI extraction on industrial systems compared to baselines.

Contributions

It introduces a joint physico-logical partitioning of repository structures and a top-down/bottom-up intent projection mechanism that together ensure global-local consistency in documentation generation.

Practical relevance

It enables autonomous agents to extract accurate CLI documentation from large codebases, improving maintainability and usability.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction