Code Property Graph for code comprehension #2010
Replies: 6 comments 3 replies
-
Please vote for my other ideas:
|
Beta Was this translation helpful? Give feedback.
-
Does Roo-Code support gitingest (or faster alternatives)? All-Hands-AI/OpenHands#2185 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thinking how this is tied to the concept of the "RepoMap" |
Beta Was this translation helpful? Give feedback.
-
There are multiple graphs to consider: code structure graph (as written without observing use needs), and architecture graph (capturing key details and requirements). This applies to (a) optimizing context management, (b) bridging the gap between tested code and design notes, (c) creating new note-taking structures, and (d) synthesizing knowledge from debugging and user feedback. List of current discussions about graphing + note-taking #1954 #2009 #544 #2854 #2740 @dosu please observe related project discussions and their referenced links, summarize the most nuanced and cutting-edge memory designs (e.g. memory graphs, knowledge synthesis procedures) into a comprehensive checklist of requirements |
Beta Was this translation helpful? Give feedback.
-
Here is an interesting project that produces a graph in JSON with connected functions in your code base. Though it misses MCP Server. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Code Property Graph (CPG) is a powerful concept that creates a dynamic graph representation of your system design / architecture diagram, code that tracks dependencies in your code, searches to dead or duplicated code, helps finding bugs and do security/vulnerability and impact analysis but most importantly helps with the code comprehension: high-level of function, class and module dependencies, interact queries to your codebase. Helps LLMs to better reason.
If we can incorporate CPG principle into roo/cline copilot so LLMs could better comprehand and query code structure and its dependancies. Here are a few frameworks for this:
CodeQL
ShiftLeftSecurity/codepropertygraph
jQAssistant
joern
Fraunhofer-AISEC/cpg
FalkorDB: code-graph & backend
GitDiagram Convert any GitHub repository structure into a system design / architecture diagram
Beta Was this translation helpful? Give feedback.
All reactions