Clear and immediately rebuild the docs-management search index. This is faster than `/clear-claude-docs-cache` + waiting for next search because it triggers the rebuild immediately.
Clears and immediately rebuilds the documentation search index for instant updates.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install claude-code-observability@melodic-softwareClear and immediately rebuild the docs-management search index. This is faster than /clear-claude-docs-cache + waiting for next search because it triggers the rebuild immediately.
index.yaml or documentation filesgit pull with documentation changes| Command | Action | Search Availability |
|---|---|---|
/clear-claude-docs-cache | Clears cache only | Rebuild on next search (lazy) |
/rebuild-claude-docs-index | Clears + rebuilds | Immediate (eager) |
This command clears the documentation search cache and immediately rebuilds the index.
First, check the current cache state by running the cache manager info command. Report whether the cache exists, is valid, and when it was last built.
Unless the user passed --force, show a rebuild plan with the current cache state and ask for confirmation before proceeding. Explain that rebuilding takes a few seconds and search will be unavailable during the rebuild.
Once confirmed (or if --force was passed):
Report the new index statistics including document count, terms indexed, and build time. Confirm that search is now available.
## Index Rebuilt
Successfully rebuilt Claude Code documentation search index.
**New index stats:**
- Size: 1.8 MB
- Terms indexed: 6,020
- Documents: 451
- Tags: 33
- Categories: 16
- Build time: 45ms
**Search is now available.**
The inverted index enables fast documentation search by:
The index automatically rebuilds when:
--clear-cache flag is passed to find_docs.pyThe cache_manager.py uses content hashes (not just mtime) to detect changes. This correctly handles git operations where mtime changes but content doesn't.