Search papers, labs, and topics across Lattice.
Comprendia is an Eclipse plugin that enhances Java code comprehension by integrating structural dependency visualization with LLM-powered explanations on an interactive graph. The tool employs Graph-Aware Callee Pruning (GACP) to deliver contextually relevant LLM explanations while also providing features like clone detection and CVE risk overlays. Evaluation on a Java project with known clones and vulnerabilities illustrates how Comprendia facilitates developer understanding and control over the codebase.
GACP enables LLMs to provide precise code explanations by leveraging a multi-edge-type dependency graph, ensuring developers stay in control of their comprehension process.
Comprendia is an Eclipse plugin that integrates structural dependency visualization with LLM-powered code explanation on a shared interactive graph for Java program comprehension. The tool rests on four pillars: (1) a multi-edge-type dependency graph with live search and multiple layouts; (2) LLM explanations grounded in Graph-Aware Callee Pruning (GACP), an auditable strategy that selects relevant callees using the same graph the developer navigates; (3) a clone-detection overlay that highlights duplication and suggests extract-to-parent refactoring opportunities; and (4) a CVE risk overlay powered by OSV.dev. GACP uses graph distance, inheritance collapse, and edge-type weighting to produce prompts that are reproducible across LLM families and traceable to visible graph nodes. We demonstrate Comprendia on a Java project containing known clones and vulnerabilities, showing how the unified graph substrate supports comprehension while keeping the developer in control. Screencast: https://youtu.be/1wlh_RYehzA