Shared code index
Members of a project share their code index. A fresh clone loads a teammate's index instead of building its own from scratch, a checkout that fell far behind catches up from it, and files a teammate already parsed are not parsed again.
What it is#
IZ Code builds a code index of every folder you open: symbols, calls, routes, and the search agents use. On a large repository the first build takes a while. In a team project, members publish snapshots of their index, and everyone else starts from the closest one.
| Situation | What the team index does |
|---|---|
| You open a fresh clone | The app loads the snapshot of your commit (or the nearest one) into the empty index, then parses only the files that differ. |
| You pull a lot of commits | When HEAD moved past many files since the last full pass, the app loads a newer snapshot, if that saves at least half the parsing. |
| You open a branch or edit files | Before parsing a file, the app asks the project's shared parse cache for a teammate's result for the same file content. Only misses are parsed. |
flowchart TD
dev["Developer app or CI"] -- "Publish snapshot" --> srv[("Encrypted snapshots")]
srv -- "Load nearest snapshot" --> mate["Teammate's fresh clone"]
mate --> diff["Parse only files that differ"]
diff --> cache{"In shared parse cache?"}
cache -- "Yes" --> reuse(["Reuse teammate result"])
cache -- "No" --> parse(["Parse locally"])Everything runs in the background. The index works the same with or without the team; the team only makes it faster.
Privacy#
- Encrypted. A snapshot is sealed with a key derived for your project and repository. The server stores bytes it cannot read. The parse cache is sealed the same way, under keys the server cannot reverse.
- Uncommitted work stays local. Files that differ from the commit (modified, staged, untracked) are left out of a snapshot. Whoever loads it parses those files from their own disk.
- Policy exclusions. Paths listed in
awe.excludeGlobs(for example**/secrets/**) never leave a machine, neither in a snapshot nor in the parse cache. - Only your project. Snapshots are readable by project members (Viewer and up) and published by Developers and up.
Use it#
- Open a folder of a project repository If a snapshot exists, the status bar shows Index: downloading from team and then Index: from team (commit abc1234) · N files.
- Check the team index Open Settings ▸ Code Intelligence ▸ Team index. It shows the project and your role, the project policy, the catch-up threshold, the last team activity, and the list of Snapshots.
- Publish a snapshot Choose Publish now to upload this folder's index as the snapshot of its current commit. You need the Developer role. Files that differ from the commit are left out.
- Or let it publish itself With Publish automatically on (the default), the app publishes at most once a day, on the default branch, 10 minutes after indexing settles.
The Code Intelligence top bar shows a Team badge with the same status. Click it, or the status bar item, to open the team index settings.
Status messages#
| Status bar | Meaning |
|---|---|
| Index: from team (commit abc1234) · N files | The empty index was seeded from a snapshot. |
| Index: caught up from team (commit abc1234) · N files updated | A far-behind index was replaced by a newer snapshot. |
| Index: kept this folder's own index (team snapshot abc1234 would not save work) | A snapshot was found but parsing locally was cheaper. |
| Index: published to team (commit abc1234) · N files | Your snapshot was uploaded. |
The snapshot list#
Each snapshot shows its commit, branch, date, author (or CI when a CI pipeline published it with a service token), file count and size. HEAD marks the commit your folder is at. uncommitted · N left out means it was published from a worktree with changes.
The web shows the same list on the project's Team index page, where maintainers and the publisher can delete a snapshot. The project keeps the 10 most recent snapshots per repository.
Code Intelligence links#
A link to a Code Intelligence view lets a teammate see exactly what you see, on their own checkout. The link names the view (a symbol, a file, the map, entry points, dead code, trails, flows, screens, steps) and the repository, never the code.
- Copy the link
In the Code Intelligence top bar, choose Copy link (a web link) or Copy app link (an
izcode://link). - Send it Paste it into chat, a ticket or a spec. The web link opens a page on izcode.dev with Open in IZ Code; the link's details stay in the browser.
- Open it Click the link, or run Open Code Intelligence Link... from the Command Palette and paste it. IZ Code runs the view again on your own index. If your checkout is at another commit, it tells you.
The repository must be open in the window. Links can be made from folders on this machine only.
Settings#
| Setting | Values | Default |
|---|---|---|
izcode.awe.catchUpThreshold | Changed files since the last full pass before a catch-up is tried | 200 |
Project or organization policy, set on the web (see policies):
| Policy key | Values | Default |
|---|---|---|
awe.share | Use team snapshots | true |
awe.uploadSnapshots | Allow publishing snapshots | true |
awe.autoPublish | Publish automatically | true |
awe.parseCache | Use the shared parse cache | true |
awe.excludeGlobs | Globs that never leave a machine; a project's list replaces the organization's | none |
awe.catchUpThreshold | Overrides izcode.awe.catchUpThreshold for the project | not set |
In awe.excludeGlobs, * stays inside one folder, ** crosses folders, a pattern without / matches in any folder (like .gitignore), and dir/ means everything under it. An invalid pattern stops publishing instead of risking a leak.