Code Comprehensor: Hierarchical Documentation and Cross-Modal Retrieval for Large Repositories
[Inżynieria oprogramowania] Autorzy: Sujoy Roychowdhury, Joseph H. R. Isaac, Jiangning Gao i 2 więcej
Understanding large, complex, and rapidly evolving code bases remains a core challenge for software engineering at scale, hindering onboarding, maintenance, refactoring, and impact analysis. Providing this information to a Large-Language Model (LLM) is another hurdle, as the LLM must understand not only the required code method but also its associated methods in the grand scheme of the repository. We propose Code Comprehensor, a hybrid retrieval-reasoning framework combining (i) a code dependency callgraph, (ii) CodeScribe, which uses code-aware LLMs to generate hierarchical documentation across repository call graphs, and (iii) CodeContrast, a CLIP-style dual-encoder model trained on CodeScribe output to learn aligned text-code embeddings. CodeContrast enables fast, semantically precise retrieval of relevant code-context neighborhoods, which serve as grounded evidence for an MCP-based …
- Kategoria arxiv
- cs.SE
- Kategoria
- Inżynieria oprogramowania