From tea-rags
Force full re-index with zero downtime by building a new versioned collection in the background while search continues on the current index. Requires explicit user confirmation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tea-rags:force-reindex [path to codebase][path to codebase]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Runs `forceReindex` in background subagent. Search stays available throughout
Runs forceReindex in background subagent. Search stays available throughout
via collection aliases.
This skill MUST ONLY be invoked when the user explicitly requests it. Agents MUST NOT auto-trigger force-reindex on stale markers, index status, or any automated signal.
Before executing, MUST:
AskUserQuestion:
question: "Force reindex will rebuild the entire index for <path>. This can take several minutes. Proceed?"
options:
- { label: "Yes, reindex", description: "Start full reindex in background" }
- { label: "Cancel", description: "Do not reindex" }
Confirm with user (see above). If user cancels, stop.
Extract path from user message or argument. If absent, use current working
directory.
Dispatch background subagent with run_in_background: true (full reindex
takes minutes — background justified):
Agent tool:
description: "Force reindex in background"
run_in_background: true
prompt: |
Call mcp__tea-rags__index_codebase with:
- path: <extracted path>
- forceReindex: true
Report the COMPLETE response as-is — every field returned by the tool.
Do not cherry-pick fields. Whatever the endpoint returns, summarize it all.
ALWAYS include the duration field — users need to see how long indexing took.
Tell the user: "Force reindex started in background. Search continues on the current index — zero downtime. You'll be notified when the new index is ready."
When background agent completes, report full result to user. Include all metrics and duration — do not summarize or omit fields.
index_codebase with forceReindex: true in the foreground/tea-rags:index insteadnpx claudepluginhub artk0de/tearags-mcp --plugin tea-ragsIndexes or reindexes a codebase via MCP tool. First-time setup registers an alias; subsequent runs do incremental reindex of only changed files.
Triggers manual reindex of TypeScript/JavaScript codebase using matrix_reindex tool. Use after external file changes, stale or incomplete indexes, or mass file renames/moves.
Refreshes or rebuilds the Lumen index for the current project using semantic_search for automatic updates or CLI purge/index for clean rebuilds. Reports index status before and after.