Skip to content
Development
Command

/reindex

Fully rebuild the codebase index from scratch

From plugin
codebase-index
1629 skills9 commands1 MCP
Install
> /plugin marketplace add Helweg/open-codebase-index
> /plugin install codebase-index@helweg-plugins

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/reindex

Context preview

What this command does when you run it.

Fully rebuild the codebase index from scratch

Command definition

reindex.md
description: Fully rebuild the codebase index from scratch

Run the `index_codebase` tool with `force=true` to rebuild the index from scratch.

User input: $ARGUMENTS

Parse the input and set tool arguments:

  • force=true always
  • estimateOnly=false always
  • verbose=false (default, for token efficiency)
  • verbose=true if input contains "verbose" (for detailed output)

Examples:

  • `/reindex` → force=true, estimateOnly=false, verbose=false
  • `/reindex verbose` → force=true, estimateOnly=false, verbose=true

IMPORTANT: You MUST call `index_codebase` with `force=true`.

Show final statistics including files processed, chunks indexed, tokens used, and duration.

If indexing completes but the codebase still is not ready, tell the user to run `/status` next.

  • If `/status` reports failed embedding batches, fix the provider/auth issue and rerun `/index` normally.
  • If `/status` reports provider/model incompatibility again after a rebuild, surface that clearly as an unexpected issue.
Ships withcodebase-index

Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths. open-codebase-index is a local semantic code index for OpenCode, Jcode, Pi, Codex, Claude Code, and other MCP clients.

Get the whole plugin
Stats
170
Stars
31
Forks
Active
Maintenance
TypeScript
Language
MIT
License
4h ago
Last commit
7mo ago
Created

Repo: Helweg/open-codebase-index