Skip to content
Development
Command

/reindex

Rebuild the Repowise vector store by re-embedding all documentation pages. No LLM calls, only embedding API calls.

From plugin
repowise
8.1k17 skills17 commands1 MCP
> /plugin marketplace add repowise-dev/repowise
> /plugin install repowise@repowise

Command definition

reindex.md
description: Rebuild the Repowise vector store by re-embedding all documentation pages. No LLM calls, only embedding API calls.
allowed-tools: Bash(repowise reindex:*), Read, AskUserQuestion
disable-model-invocation: true

Repowise Reindex

Rebuild the vector store (embeddings) without regenerating documentation.

This is useful when:

  • You want semantic search on an index built without an embedder key
  • You switched embedding providers
  • The LanceDB vector data got corrupted

Steps

1. Check if `.repowise/` exists. If not: "This repo isn't indexed yet. Run `/repowise:init` first."

2. Run: `repowise reindex`, or `repowise reindex --embedder <name>` when the user named one.

This re-embeds all existing documentation pages into LanceDB. No LLM generation calls, only embedding API calls.

Available flags

  • `--embedder gemini|openai|openrouter|ollama|edenai|mock|auto`: embedding provider. `auto` (the default) keeps the repo's embedder, or picks one from the keys present when the repo has none yet
  • `--batch-size N`: pages per embedding batch, must be 1 or greater (default: 32)

Requirements

Semantic search needs a real embedder: a key for `gemini` (`GEMINI_API_KEY`/`GOOGLE_API_KEY`), `openai`, `openrouter` or `edenai`, or a local Ollama with `OLLAMA_EMBEDDING_MODEL` set. When none is available, `repowise reindex` exits 1 and prints the command that turns semantic search on; relay it and ask the user to set the key themselves, never in the chat. On an Index only repo there is no documentation to embed yet: `repowise update --full` builds it first.

Handling $ARGUMENTS

  • An embedder name (`gemini`, `openai`, `ollama`, ...): run `repowise reindex --embedder <name>`.
  • "full" or "from-scratch": reindex already re-embeds every page. To rebuild the documentation itself, suggest `repowise generate` (a model writes it, with a cost estimate first), or `repowise update --full` on an Index only repo (no key needed).
Read more
@repowise-dev
Ships withrepowise

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

8.1k8 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8.1k
Star history of repowise-dev/repowise on GitHub, a chart by star-history.com

Other commands on repowise.

ask

ask

Command

Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).

@repowise-dev@repowise-devInstall Command
context

context

Command

Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).

@repowise-dev@repowise-devInstall Command
coverage

coverage

Command

Ingest or inspect test-coverage reports (LCOV, Cobertura, Clover, Go cover profiles, JaCoCo, Salesforce Apex JSON, or repowise…

@repowise-dev@repowise-devInstall Command
decision

decision

Command

Work with architectural decisions — list, inspect health, add, or confirm auto-proposed decisions.

@repowise-dev@repowise-devInstall Command
doctor

doctor

Command

Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.

@repowise-dev@repowise-devInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command