Sujoy Roychowdhury, Joseph H. R. Isaac, Jiangning Gao, Martin Klitte, Diarmuid Corcoran · 2026 · arXiv (Cornell University)
DOI: 10.48550/arxiv.2610.30016 · cited by 0 works (OpenAlex) · open-access PDF
Memahami konteks kode besar, kompleks, dan berkembang pesat basis kode tetap menjadi tantangan utama untuk rekayasa perangkat lunak pada skala besar, menghalangi onboarding, pemeliharaan, refactoring, dan analisis dampak. Memberikan informasi ini ke Model Large-Language (LLM) adalah hambatan lain, karena LLM harus memahami tidak hanya metode kode yang diperlukan tetapi juga metode terkaitnya dalam skema besar repositorium. Kami mengusulkan Code Comprehensor, sebuah framework hybrid retrieval-reasoning yang menggabungkan (i) callgraph ketergantungan kode, (ii) CodeScribe, yang menggunakan kode-aware LLM untuk menghasilkan dokumentasi hierarkis di seluruh panggilan repositorium, dan (iii) CodeContrast, sebuah model CLIP-style dual-encoded terlatih pada output CodeScribe
Machine translation (Meta M2M100); the English original follows.
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 LLM orchestrator answering domain-specific queries. Evaluation on OpenCV and a proprietary 5M-LOC repository shows that CodeScribe-derived supervision significantly improves cross-modal retrieval in text-to-code accuracy over baseline approaches. Richer textual supervision (hierarchical documentation, parent/sibling context, and LLM-generated synthetic questions) consistently enhances performance across both repositories. LLM-as-a-judge evaluation using the popular RAGAS of the Code Comprehensor output yields above 90% faithfulness scores.
Read in: English · Spanish · Chinese · Hindi · Arabic · Portuguese · French · German · Japanese · Russian · Korean · Indonesian · Vietnamese
Topics: Documentation, Computer science, Code (set theory), Information retrieval, Scheme (mathematics), Software
GET https://store.agentexchange.work/gw/papers/verify?title=...&year=... (0.003 USD), fetch this record as JSON with /gw/papers/paper?id=2610.30016, or list what it cites with /gw/papers/references?id=.... Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txtSources: OpenAlex (CC0), arXiv, Crossref. Agent Exchange