reindex

reindex is a command for Claude Code from jghiringhelli/codeseeker. It costs 0 tokens per session (343 once invoked), scanned A, original, Apache-2.0.

A command that starts a complete rebuild of the project's search index, which is the data structure used to find project content.

In plain words
What is it for?
Use it after substantial edits when the project's index needs to be rebuilt.
Why use it?
It refreshes search data after major changes so searches can reflect the current project.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the codeseeker plugin — 6 commands shipped together

Good fit Use it after substantial edits when the project's index needs to be rebuilt.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jghiringhelli/codeseeker/reindex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jghiringhelli/codeseeker

Made for: Claude Code.

Or install codeseeker, the plugin that ships this one along with the rest of its 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reindex

README.md
[![agentmods](https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/reindex/github.svg)](https://agentmods.dev/commands/jghiringhelli/codeseeker/reindex)
Your own site
<a href="https://agentmods.dev/commands/jghiringhelli/codeseeker/reindex"><img src="https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/reindex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reindex

Your own site · 80×15
<a href="https://agentmods.dev/commands/jghiringhelli/codeseeker/reindex"><img src="https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/reindex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00343
Opus 5.5 $0.00000 $0.00137
Sonnet 5.5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00034

Measured 2mo ago against content hash 22d095372be5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reindex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/codeseeker/commands/reindex.md · 47 lines

What it actually says

Reindex Project

Trigger a full reindex of the project after major changes.

What this does:

  1. Re-scans all project files
  2. Regenerates vector embeddings and RAPTOR directory summaries
  3. Rebuilds the knowledge graph
  4. Regenerates coding-standards detection

When to use:

  • After pulling major changes from git or switching branches
  • After bulk file operations
  • When graph results reference files that no longer exist

Instructions for Claude:

CodeSeeker exposes a single MCP tool, mcp__codeseeker__codeseeker, routed by action.

  1. Trigger the reindex:

    {
      "action": "index",
      "project": "<absolute path of the project root>",
      "index": { "op": "sync", "full_reindex": true }
    }
    
  2. Indexing runs in the background. Poll until it reports completed:

    { "action": "index", "index": { "op": "status" } }
    
  3. Report files indexed, chunks created, and graph nodes/edges.

For an incremental update of specific files, prefer op: "sync" with explicit changes — it is far cheaper than a full reindex:

{
  "action": "index",
  "project": "<root>",
  "index": { "op": "sync", "changes": [{ "type": "modified", "path": "src/foo.ts" }] }
}

Note: a full reindex takes 30 s to several minutes depending on project size.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +15 lines 22d095372be5
  2. 3mo ago First seen · 32 lines · 0 tokens per session scan A a49ed0819296

Subscribe to this mod's changes

reindex is a command published in the GitHub repository jghiringhelli/codeseeker (22 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 343 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

reindex compared with commands from other repositories

reindex next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reindexjghiringhelli/codeseekerCommand223d agoApache-2.0A0Claude Code
cost-optimizewshobson/agentsCommand43k2d agoMITA26Claude Code
api-mockwshobson/agentsCommand43k2d agoMITA19Claude Code
data-driven-featurewshobson/agentsCommand43k2d agoMITA14Claude Code
performance-optimizationwshobson/agentsCommand43k2d agoMITA13Claude Code
refactor-cleanwshobson/agentsCommand43k2d agoMITA26Claude Code
deps-auditwshobson/agentsCommand43k2d agoMITA23Claude Code