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.

Your files feed one local index that both agents and you query
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"| I

Code 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:

  1. Open Settings Go to Settings → Code Intelligence.

  2. 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.

  3. 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:

ToolUse it for
codeExploreA question such as "how does login work". One call returns the relevant source, how the symbols call each other and a blast radius.
codeSearchFinding a symbol by part of its name. Accepts filters like kind:function lang:ts path:src/auth; kind:route finds HTTP routes.
codeNodeOne symbol's full source, or a whole file with line numbers and who depends on it.
codeCallers / codeCalleesWhat calls a symbol, and what it calls.
codeImpactWhat could break if a symbol changes.
codeFilesThe indexed file tree.
codeStatusIndex size, freshness and machine sizing.
codeRipgrepPlain 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:

TabWhat it shows
StepsPick an endpoint and see everything it sets in motion: its handler, database and queue calls, and the responses it can send.
Entry pointsWhere to start reading: HTTP routes, files with many top-level calls, broad tests, and the most depended-on symbols.
MapAn architecture map derived from the graph. Each module sits one layer above the modules it depends on. Export it as PNG or SVG.
SymbolCallers, callees, type hierarchy, members and the blast radius of one symbol.
FlowA call path between two symbols, for example execute -> getFile.
Dead codeSymbols with no static reference anywhere in the index.
ScreensScreens and navigation between them. Shown only when the project uses a supported router.
SemanticSearch 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#

KeyAction
/Focus the search box
m f e s dMap, Flow, Entry points, Screens, Dead code
Backspace or [Back

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.

  1. Open the setting Go to Settings → Code Intelligence and pick the Folder the options apply to.

  2. Turn on Semantic search The first time, IZ Code downloads a small embedding model. The model runs on your machine.

  3. Pick a model (optional) The default is potion-code-16M-v2, tuned for code. potion-base-8M, potion-base-32M, potion-retrieval-32M and potion-multilingual-128M are also available. Changing the model re-embeds everything the next time the folder opens, or right away with Reindex.

  4. 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#

SettingValuesDefault
izcode.awe.index.enabledtrue, falsetrue
izcode.awe.semanticSearch.enabledtrue, falsefalse
izcode.awe.semanticSearch.modelone of the model ids abovepotion-code-16M-v2
izcode.awe.index.excludegitignore-style patternsnone
izcode.awe.index.deprioritizegitignore-style patternsnone
izcode.awe.index.extensionsmap of extension to languagenone
izcode.awe.index.includegitignore-style patternsnone
izcode.awe.index.includeIgnoredgitignore-style patternsnone
izcode.awe.index.webRootfolder inside the projectinferred

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 .gitignore drops it. Dependency and build folders such as node_modules are 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/settings.json
{
  "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.
Last updated: December 1, 2026Was this page helpful?