← ClaudeAtlas

devrites-refresh-indexeslisted

Refresh stale optional indexes. Use when structural lookup disagrees with live code or rite-doctor requests a synchronous reindex.
ViktorsBaikers/DevRites · ★ 1 · Code & Development · score 60
Install: claude install-skill ViktorsBaikers/DevRites
# devrites-refresh-indexes: keep the code-intelligence indexes fresh `tooling.md` says to cross-verify structural claims across codebase-memory-mcp, codegraph, and graphify, and that **a disagreement between indexes is a signal**: a fresh read of live code beats any index. A *stale* index manufactures exactly that disagreement. This keeps the three mechanical indexes current after edits so the next lookup is trustworthy. All three are **optional** (per `tooling.md`): each is refreshed only if its binary is on PATH **and** it already tracks this repo. None present → this is a silent no-op. Never installs anything, never blocks. Same incremental shape for all three; no LLM needed for code. | Index | Tracks repo when | Refresh | |---|---|---| | **codebase-memory-mcp** (primary) | binary present + repo in `list_projects` (or `.codebase-memory/`) | `codebase-memory-mcp cli index_repository '{"repo_path":"<root>"}'` | | **codegraph** | `.codegraph/` exists + `codegraph` on PATH | `codegraph sync` | | **graphify** | `graphify-out/` exists + `graphify` on PATH | `graphify update .` | ## Automatic (already wired: no action needed) The `Stop` hook `devrites-engine hook refresh-indexes` runs at end of turn. It self-guards: exits instantly unless an index tracks the repo, exits instantly if no source file changed since the last refresh, else stamps + locks and spawns a **detached** worker so the turn never blocks. ON by default; disable with `DEVRITES_REFRESH_INDEXES=off`. ## Manua