Skip to content
Development
Skill

/reindex

Refresh or rebuild the bundled Lumen index for the current project, preferring MCP-driven refreshes and using the CLI only for an explicit clean rebuild.

From plugin
lumen
3183 skills2 agents2 hooks1 MCP

Claude Code

$ npx -y skills add ory/lumen --skill reindex --agent claude-code

SKILL.md

reindex.SKILL.md
name: reindex
description: Refresh or rebuild the bundled Lumen index for the current project, preferring MCP-driven refreshes and using the CLI only for an explicit clean rebuild.

Lumen Reindex

Refresh or rebuild the bundled Lumen index for the current project.

Steps

1. Call the Lumen `index_status` tool for the current working directory so you can report the current state before making changes. 2. If the user wants the index refreshed or seeded, call the Lumen `semantic_search` tool with a broad natural-language query and set `path` or `cwd` to the current working directory. The search tool refreshes stale or missing indexes automatically. 3. If the user explicitly asks for a clean rebuild, explain the options and run one via the shell:

  • `lumen index --force .` — reprocesses every file for the current project

without wiping other worktrees or their shared vectors. Prefer this.

  • `lumen clean --days 0 && lumen index .` — deletes every cached index not

held by an active indexer lock before rebuilding; locked collections are skipped and counted in the summary. Use only when the user asks for a full wipe.

  • `lumen clean` — removes indexes for projects that no longer exist or have

not been used in 30 days. Use to reclaim disk space, not to rebuild the current project. 4. After the refresh or rebuild, report the new index status, including vector precision, unique vectors, shared references, deduplication ratio, database bytes, and reclaimable bytes when available.

Read more
@ory
Ships withlumen

Save 30% token costs when using Claude Code, Codex, OpenCode for free - with open source, local semantic search. Works for small and large codebases and monorepos! Enterprise-ready and fully compliant via Ollama and SQLite-vec.

3183 skills2 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
318
Star history of ory/lumen on GitHub, a chart by star-history.com

Other skills on lumen.

add-benchmark

add-benchmark

Add a new benchmark task to the bench-swe pipeline from a real GitHub bug-fix. The human provides the GitHub issue or PR URL; the…

@ory@oryInstall Skill
doctor

doctor

Run a health check on the bundled Lumen semantic search setup for the current project, verify backend reachability and index…

@ory@oryInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about reindex.

Which coding agents can use reindex?
reindex installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.