Code Intelligence
Code Intelligence builds a local index of every symbol, call and import in your project. Agents use it to answer structural questions in one tool call, and you can browse it yourself as maps, flows and call trails.
What it does#
When you open a folder, IZ Code parses your source files and keeps an index of:
- Symbols: functions, methods, classes, types and their signatures.
- The call graph: who calls what, and what each symbol calls.
- Dependencies: which files import which, and how far a change ripples out.
- Routes: HTTP routes and screen navigation for supported frameworks.
The index is built automatically the first time a folder opens, and a file watcher keeps it fresh as you edit. It is a SQLite database inside the folder (.izcode/awe-index.sqlite), built on your machine. Nothing is uploaded to build it.
flowchart LR
F[Source files] -->|parse| I[(Local index)]
W[File watcher] -->|keeps it fresh| I
A[Agent] -->|"codeCallers, codeImpact"| I
I -->|"source, calls, blast radius"| A
Y[You] -->|"Map, Flow, Symbol"| ICode Intelligence covers more than 20 languages. Rust, TypeScript, JavaScript, Python, Go, Java, C, C++, Ruby, PHP and C# get the richest detail (visibility, signatures, decorators, return types).
Use it when you want an agent to understand a large codebase without reading files one by one, or when you want to find your own way around unfamiliar code.
Turn it on or off#
Code Intelligence is on by default. You can change it during first-run setup, or later:
-
Open Settings Go to Settings → Code Intelligence.
-
Use the master switch Enable Code Intelligence sits at the top of the page. Turn it off to remove the Code Intelligence view and stop all indexing: no index is built or watched, and no memory or CPU is spent on it.
-
Turn it back on any time The index catches up with the files you changed while it was off.
How agents use it#
With Code Intelligence on, every agent session gets the code* tools and a short guide telling the agent when to use them:
| Tool | Use it for |
|---|---|
codeExplore | A question such as "how does login work". One call returns the relevant source, how the symbols call each other and a blast radius. |
codeSearch | Finding a symbol by part of its name. Accepts filters like kind:function lang:ts path:src/auth; kind:route finds HTTP routes. |
codeNode | One symbol's full source, or a whole file with line numbers and who depends on it. |
codeCallers / codeCallees | What calls a symbol, and what it calls. |
codeImpact | What could break if a symbol changes. |
codeFiles | The indexed file tree. |
codeStatus | Index size, freshness and machine sizing. |
codeRipgrep | Plain text or regex search over file contents, for strings and config values rather than symbols. |
Choose which of these tools an agent is offered in Configure Tools in the chat. In a workspace with several folders, every call covers all of them.
If a folder has no index yet, the tools say so in plain text and the agent falls back to text search and file reads.
Browse the index yourself#
Open Code Intelligence from the Activity Bar. The home view shows index statistics: files, symbols, edges, detected frameworks and when the folder was last indexed. If the folder has no index yet, choose Start indexing.
Press ⌘ K (macOS) or Ctrl K (Windows, Linux) to search for a symbol or file. The tabs along the top:
| Tab | What it shows |
|---|---|
| Steps | Pick an endpoint and see everything it sets in motion: its handler, database and queue calls, and the responses it can send. |
| Entry points | Where to start reading: HTTP routes, files with many top-level calls, broad tests, and the most depended-on symbols. |
| Map | An architecture map derived from the graph. Each module sits one layer above the modules it depends on. Export it as PNG or SVG. |
| Symbol | Callers, callees, type hierarchy, members and the blast radius of one symbol. |
| Flow | A call path between two symbols, for example execute -> getFile. |
| Dead code | Symbols with no static reference anywhere in the index. |
| Screens | Screens and navigation between them. Shown only when the project uses a supported router. |
| Semantic | Search by meaning (needs semantic search, below). |
Trails#
As you step into a call or up to a caller, the Trail bar records your path. Choose Read as flow to see it as a flow, or Save trail to name and keep it. Saved trails can be exported to JSON.
Share a view#
Choose Copy link to copy a link to the current view. A teammate who opens it sees the same view on their own checkout; no code is in the link. Open a link with the command Code Intelligence: Open Code Intelligence Link.... Links are only available for folders on your own machine.
Keyboard shortcuts in the view#
| Key | Action |
|---|---|
| / | Focus the search box |
| m f e s d | Map, Flow, Entry points, Screens, Dead code |
| Backspace or [ | Back |
Semantic search#
By default, codeSearch and codeExplore match symbol names. Semantic search adds a second signal so you can find symbols by the meaning of a question, for example "where is auth handled", without knowing the name.
-
Open the setting Go to Settings → Code Intelligence and pick the Folder the options apply to.
-
Turn on Semantic search The first time, IZ Code downloads a small embedding model. The model runs on your machine.
-
Pick a model (optional) The default is
potion-code-16M-v2, tuned for code.potion-base-8M,potion-base-32M,potion-retrieval-32Mandpotion-multilingual-128Mare also available. Changing the model re-embeds everything the next time the folder opens, or right away with Reindex. -
Search Use the Semantic tab, or let agents benefit automatically: each result is labelled as a match by name, by meaning, or both.
Reindex rebuilds the index (and the embeddings, when semantic search is on) for the selected folder. Progress shows in the status bar as Indexing with a percentage.
Settings#
| Setting | Values | Default |
|---|---|---|
izcode.awe.index.enabled | true, false | true |
izcode.awe.semanticSearch.enabled | true, false | false |
izcode.awe.semanticSearch.model | one of the model ids above | potion-code-16M-v2 |
izcode.awe.index.exclude | gitignore-style patterns | none |
izcode.awe.index.deprioritize | gitignore-style patterns | none |
izcode.awe.index.extensions | map of extension to language | none |
izcode.awe.index.include | gitignore-style patterns | none |
izcode.awe.index.includeIgnored | gitignore-style patterns | none |
izcode.awe.index.webRoot | folder inside the project | inferred |
The master switch can be set in your user settings or per folder in .izcode/settings.json, which wins. The izcode.awe.index.* patterns are read from the folder's .izcode/settings.json:
exclude: files that are never indexed.deprioritize: files that stay indexed but rank lower in search, such as docs, examples or fixtures.extensions: teach the indexer a new file extension, for example{ ".tpl": "php" }.include: first-party source to index even though.gitignoredrops it. Dependency and build folders such asnode_modulesare never brought back.includeIgnored: gitignored folders whose embedded Git repositories should be indexed anyway.webRoot: the folder a PHP project's document root points to.
{
"izcode.awe.index.exclude": ["legacy/**", "**/*.generated.ts"],
"izcode.awe.index.deprioritize": ["docs/**", "examples/**"],
"izcode.awe.index.extensions": { ".tpl": "php" }
}Tips and limits#
- Files edited since the last index pass may show shifted lines; the view warns you when a file changed on disk.
- Code Intelligence also works in SSH, peer and cloud workspaces: the index is built and stored on the remote machine.