🕸️Code Intelligence
Mapping code into queryable graphs for AI agents · 19 terms
Code Intelligence Basics
4Tools that read code and map it, the named things they track, the parser that reads them and the index that keeps answers fast.
Tools that read code and map how its parts link up. People and AI use the map.
A named thing in code, like a function or a class, that tools can find and track.
A stored list of where each name in a codebase is made and used.
A fast tool that turns code into a tree of parts. It keeps up as you type.
Code Navigation
3Moving around code in an editor: jumping to where a name is made, listing where it is used, and the protocol editors ask through.
A shared way for any code editor to get help with a language. One server serves all.
An editor command. It jumps from a name to the place where it is made.
An editor command. It lists each place in the code a name is used.
Code Graphs
4Maps of a codebase as dots and lines: which functions call which, which parts need which, and every path through a function.
A map of a codebase as dots and lines: its parts and how they link.
A map of which functions call which, drawn as dots and arrows.
A map of which files or packages need which others. Arrows show the need.
A map of each path a function can take. It splits at each if and loop.
Code Search
5Finding code by its exact words or by what it means, the tools that do it, and the short outline AI tools read first.
Finding code by its text or a pattern. It can look in one project or many.
Finding code by what it means. A plain question finds the right function.
A fast command. It looks in every file in a folder for a word or pattern.
A tool that searches and maps the code in all of a team's projects at once.
A short outline of a codebase. It lists the files and main names for AI tools.
Code Analysis
3Reading code without running it to find what a change will hit, what never runs, and where a value can travel.
Working out what else a code change will hit, before you make it.
Finding code that never runs or that nothing uses. Then it can go.
Following a value through a program. You see where it starts and where it ends.