reindex

reindex is a command for Claude Code from sunub/obsidian-mcp-server. It costs 21 tokens per session (414 once invoked), scanned A, original, ISC.

A command that rebuilds the local vector search index for an Obsidian Vault. A vector index helps find notes by meaning rather than only matching exact words.

In plain words
What is it for?
Use it for incremental indexing of changed notes or for rebuilding the entire index from scratch.
Why use it?
It refreshes missing or outdated search data without requiring a full rebuild every time, while also supporting a forced complete rebuild.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the vault-tidy plugin — 1 skill, 4 commands, 1 hook, 1 MCP server shipped together

Good fit Use it for incremental indexing of changed notes or for rebuilding the entire index from scratch.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sunub/obsidian-mcp-server
Claude Code
/plugin install vault-tidy

Made for: Claude Code.

Or install vault-tidy, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 hook, 1 MCP server.

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/sunub/obsidian-mcp-server/reindex/github.svg)](https://agentmods.dev/commands/sunub/obsidian-mcp-server/reindex)
Your own site
<a href="https://agentmods.dev/commands/sunub/obsidian-mcp-server/reindex"><img src="https://agentmods.dev/badge/commands/sunub/obsidian-mcp-server/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/sunub/obsidian-mcp-server/reindex"><img src="https://agentmods.dev/badge/commands/sunub/obsidian-mcp-server/reindex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 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.00021 $0.00414
Opus 5.5 $0.00008 $0.00166
Sonnet 5.5 $0.00004 $0.00083
Haiku 4.5 $0.00002 $0.00041

Measured today against content hash b2697b40eaa9, 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 today.

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.

plugin/commands/reindex.md · 29 lines

What it actually says

Vault 벡터 인덱스 재색인

전체 벡터 인덱스 구축은 시간이 오래 걸리는 운영 작업이므로 MCP 도구가 아니라 CLI 서브커맨드로 실행한다.

인자 처리

  • 전달된 인자: $ARGUMENTS
  • --force 또는 -f가 포함되면 기존 벡터 캐시를 초기화하고 전체 문서를 처음부터 다시 색인한다.
  • 인자가 없으면 변경되었거나 누락된 문서만 증분 색인한다.

절차

  1. 실행할 범위(증분 색인 vs --force 전체 초기화 재색인)를 사용자에게 한 줄로 알린다. --force인 경우 시간이 오래 걸릴 수 있음을 함께 알리고 실행 전 확인을 받는다.
  2. VAULT_DIR_PATH 환경변수가 설정되어 있는지 확인하고, 비어 있으면 먼저 설정을 안내한다.
  3. 아래 CLI 명령을 실행한다.
    • 로컬 개발 플러그인(${CLAUDE_PLUGIN_ROOT}/../build/index.js가 존재하는 경우): node "${CLAUDE_PLUGIN_ROOT}/../build/index.js" reindex (옵션이 있으면 --force 추가)
    • 배포 패키지 환경: npx -y @sunub/obsidian-mcp-server@latest reindex (옵션이 있으면 --force 추가)
  4. 실행 결과를 보고한다.
    • 로컬 임베딩 모델이 없어 실패하면 npx @sunub/obsidian-mcp-server setup 실행을 안내한다.
    • 성공하면 색인 모드와 처리된 문서 수를 요약해 알린다.
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. today First seen · 29 lines · 21 tokens per session scan A b2697b40eaa9

Subscribe to this mod's changes

reindex is a command published in the GitHub repository sunub/obsidian-mcp-server (2 stars, last pushed yesterday), licensed ISC. It adds 21 tokens to every session and 414 once invoked, about $0.0001 per session on Opus 5.5. 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-11-27.

Related

reindex compared with commands from other repositories

reindex next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reindexsunub/obsidian-mcp-serverCommand2yesterdayISCA21Claude Code
queryingupstash/redis-jsCommand988todayMITA0Claude Code
ingestGalbaz1/video-research-mcpCommand237d agoMITA10Claude Code
agentget-convex/convex-agent-pluginsCommand1171mo agoMITA21Claude Code, Cursor
inference.embedstratalab/strata-coreCommand5todayApache-2.0A0Claude Code
vector.batch_upsertstratalab/strata-coreCommand5todayApache-2.0A0Claude Code
proofragunshDee/proofragCommand26d agoMITA22Claude Code