Reindex

作者 oryf60f9ecee417無授權條款收錄於 2026年10月8日更新於 2026年10月8日

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.

僅含說明AI & Agents
AI 產生的概覽

透過 MCP 工具重新整理或重建目前專案的 Lumen 索引,僅在需要徹底重建時使用 CLI 指令。

功能
此技能會引導代理重新整理或重建目前專案的 Lumen 索引。它會先檢查索引狀態,接著透過一次廣泛的語意搜尋呼叫觸發自動重新整理,只有在使用者明確要求徹底重建時才改用 shell 指令。最後會回報索引詳細資訊,例如向量精確度、唯一向量數、去重比例與資料庫大小。
適用情境
當專案的 Lumen 索引過期、缺少,或需要在搜尋前初始化時使用。也適用於使用者明確要求徹底重建,或希望回收未使用索引所佔磁碟空間的情況。
執行需求
需要 Lumen MCP 工具(index_status、semantic_search),徹底重建時還需要在 shell 中可用的 Lumen CLI。不隨附指令碼,僅為操作說明。

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.

來源與署名

來源:ory/lumen位於skills/reindex提交f60f9ec

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架