Incremental Update
iw index update [options]Re-indexes only files whose content has changed since the last build. Typical update time: < 1 second.
Options
Section titled “Options”| Option | Default | Description |
|---|---|---|
-v | off | Show what changed |
How It Works
Section titled “How It Works”CARI tracks a SHA-256 content hash for every indexed file. When you run
iw index update, it:
- Scans the workspace for files
- Computes the current hash for each file
- Compares against the stored hash in
.iw/index.db - Re-indexes only files that changed
Unchanged files are completely skipped — no AST parsing, no keyword extraction, no git analysis.
Example
Section titled “Example”# 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.3sWhen to Use Update vs Build
Section titled “When to Use Update vs Build”| Scenario | Command |
|---|---|
| First time | iw index build |
| After editing a few files | iw index update |
| After changing depth mode | iw index build --depth full |
| After pulling lots of changes | iw index build |
| In CI (fresh checkout) | iw index build |
Next Steps
Section titled “Next Steps”- Build the Index — full build options
- CI Drift Check — pair with incremental updates