Force rebuild of Codex CLI documentation search index
Rebuilds Codex CLI documentation search index immediately for up-to-date results.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install openai-ecosystem@melodic-software[--force] (optional)Clear and immediately rebuild the codex-cli-docs search index. This is faster than /clear-codex-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-codex-docs-cache | Clears cache only | Rebuild on next search (lazy) |
/rebuild-codex-docs-index | Clears + rebuilds | Immediate (eager) |
This command clears the Codex CLI documentation search cache and immediately rebuilds the index.
First, check the current cache state. 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 and build time. Confirm that search is now available.
## Index Rebuilt
Successfully rebuilt Codex CLI documentation search index.
**New index stats:**
- Documents: X
- Build time: Xms
**Search is now available.**