Skip to content

Incremental Update

Terminal window
iw index update [options]

Re-indexes only files whose content has changed since the last build. Typical update time: < 1 second.

OptionDefaultDescription
-voffShow what changed

CARI tracks a SHA-256 content hash for every indexed file. When you run iw index update, it:

  1. Scans the workspace for files
  2. Computes the current hash for each file
  3. Compares against the stored hash in .iw/index.db
  4. Re-indexes only files that changed

Unchanged files are completely skipped — no AST parsing, no keyword extraction, no git analysis.

Terminal window
# After editing src/auth/service.ts:
iw index update -v
# Updated 1 file:
# src/auth/service.ts (content changed)
# Skipped 263 files (unchanged)
# Time: 0.3s
ScenarioCommand
First timeiw index build
After editing a few filesiw index update
After changing depth modeiw index build --depth full
After pulling lots of changesiw index build
In CI (fresh checkout)iw index build