Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistants
Tsvi Cherny-Shahar, Amiram Yehudai

TL;DR
This paper introduces the Repository Intelligence Graph (RIG), a deterministic architectural map for multilingual repositories that improves code assistant accuracy and efficiency by providing explicit build and test structure information.
Contribution
The paper presents RIG and SPADE, a novel method for extracting and representing repository structure as an LLM-friendly JSON, enhancing code assistant performance across diverse projects.
Findings
RIG improves accuracy by 12.2% on average.
RIG reduces completion time by 53.9%.
Efficiency improves by 57.8% in seconds per correct answer.
Abstract
Repository aware coding agents often struggle to recover build and test structure, especially in multilingual projects where cross language dependencies are encoded across heterogeneous build systems and tooling. We introduce the Repository Intelligence Graph (RIG), a deterministic, evidence backed architectural map that represents buildable components, aggregators, runners, tests, external packages, and package managers, connected by explicit dependency and coverage edges that trace back to concrete build and test definitions. We also present SPADE, a deterministic extractor that constructs RIG from build and test artifacts (currently with an automatic CMake plugin based on the CMake File API and CTest metadata), and exposes RIG as an LLM friendly JSON view that agents can treat as the authoritative description of repository structure. We evaluate three commercial agents (Claude…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Machine Learning and Algorithms
