Force full project re-index
Force complete project re-indexing for troubleshooting or testing. Re-processes all files regardless of changes. Use when search results seem stale or after system changes.
/plugin marketplace add squirrelsoft-dev/infinite-memory/plugin install infinite-memory@squirrelsoft-dev-toolsForce a complete re-index of the entire project, even if files haven't changed. Useful for troubleshooting, testing, or after schema changes.
IMPORTANT: DO NOT DELETE THE DATABASE!
This command re-indexes files by calling index_project with force=true.
The database and existing records stay intact - only file embeddings are regenerated.
Get the current working directory:
pwd
Warn user about the operation:
⚠️ Re-indexing entire project
This will re-process all files, even if unchanged.
For large projects, this may take time.
Files in project: ~{FILE_COUNT}
Estimated time: ~{ESTIMATE} seconds
Continue?
[Yes, re-index] [Cancel]
If user confirms, call index_project MCP tool:
project_pathforce: true to re-index all files regardless of changesShow progress and results:
/index-project commandUser: /re-index
⚠️ Re-indexing entire project
This will re-process all 487 files in /Users/me/projects/api-service.
Estimated time: ~30 seconds.
Continue?
User: [Yes, re-index]
Re-indexing /Users/me/projects/api-service...
Progress: ████████████████████ 100% (487/487 files)
✅ Re-index complete!
- 487 files processed
- 487 files re-indexed
- 0 files failed
- Completed in 0.32s
- Storage: ~2.1 MB (refreshed)
All files have been re-indexed. Memory is fresh!
Troubleshooting:
Testing:
After System Changes:
When NOT to Use:
/index-project or auto-indexing/index-file or let hook handle itBased on project size:
Throughput: ~1,500 files/second on SSD with 8GB RAM
| Feature | /index-project | /re-index |
|---|---|---|
| Skips unchanged files | ✅ Yes (hash-based) | ❌ No (forces re-index) |
| Use case | Normal indexing | Troubleshooting/testing |
| Speed | Fast (skips most) | Slower (processes all) |
| When to use | Regular workflow | Special situations |
For a true "fresh start":
User: Can you clear the index and re-index from scratch?