Code Intelligence
Index your code so agents find definitions, references and callers exactly, search code in plain words, and explore it in a graph.
Code Intelligence indexes the code in your project's folders. Your agents then find definitions, references, callers and implementations exactly, and search code by what it does. You get a graph of the code to explore and can generate wiki pages from it.
Before you start
Install Code Intelligence from the Marketplace. Your organization admin switches it on for your agents' role. It runs in the Studio desktop app.
Set it up
The first time an agent that uses Code Intelligence starts a chat, Studio shows the set-up steps.
- Read the two kinds of search and click Continue:
- Structural search: exact definitions, references and callers, built by an indexer for each language.
- Semantic search: search in plain words and find duplicates, with two models that run on your computer.
- Choose Semantic search and Index on file changes.
- Click Finish.
The models take about 500 MB and download at the first index. No code leaves your computer for indexing or search.
Install the indexers
Each language needs its indexer. Code Intelligence detects the languages in your folders and lists them.
- Open Settings → Extensions → Code Intelligence.
- Under SCIP Indexers, install the indexer for each language you use.
An indexer needs the language's own tools on your computer, for example Node.js for TypeScript. When they're missing, the row says "Language runtime not found. Install the toolchain first, then the SCIP indexer." Code Intelligence supports TypeScript, JavaScript, Python, Go, Java, Rust, C and C++, among others.
Choose which code it indexes
By default it indexes the current project's folder. To add more repositories:
- Open the Features menu and click Code Intelligence under Plugins.
- Click Add Repository and choose the folder.
Agents can then search several repositories as one. With Auto-index on file change on, Code Intelligence updates the index when you save a file. The chat's + menu shows the index state of the chat's folders.
What agents do with it
Ask the agent in plain words. For example:
- "What breaks if I change
calculateTax, and which tests cover it?" - "Where do we handle failed payments?"
- "Draw the architecture of this repository as a diagram."
- "Find code that duplicates this function."
The agent searches the graph, follows calls and imports, lists affected tests and HTTP routes, and draws Mermaid diagrams of packages, classes and call sequences.
Explore the code yourself
On the plugin's page, click Graph on an indexed repository. Studio opens a tab named "Graph ·" and the repository's name. Search for a symbol to see its neighbours, or pick a file to see what it imports and what imports it. Panels show an overview, the system architecture, the most connected symbols, possible dead code, TODO notes, files that change together and circular dependencies.
Generate wiki pages
- Open Settings → Extensions → Code Intelligence and turn on Enable wiki generation.
- Choose a Vendor and Model. Wiki generation needs an AI provider with a key or a signed-in program.
- In the graph tab, open Synthesis and choose a plan, such as the wiki for the full repository.
Wiki generation sends code to the AI provider you choose.
Best practices
- Install the indexers before you rely on search. Without an indexer, structural search can't find definitions in that language.
- Keep Auto-index on. Agents then work with the current code.
FAQ
Not yet. It runs in the Studio desktop app.
Yes. Agents search by symbol name, file path and the links between symbols.
A new embedding model needs a new index. Changing the reranker model needs no new index.