원클릭으로
papyrus-rebuild-index
Atomic — regenerate .papyrus/index.json and (optionally) semantic vectors for a workspace
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Atomic — regenerate .papyrus/index.json and (optionally) semantic vectors for a workspace
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Atomic — search memories by filter (lexical or semantic), return ranked list
Atomic — mark a memory deprecated, optionally with supersedes link
Atomic — list memories whose review_after has passed
Atomic — fetch a single memory in full by id
Atomic — bidirectional graph walk from a starting need
Atomic — create a Papyrus workspace at a given path
| name | papyrus-rebuild-index |
| description | Atomic — regenerate .papyrus/index.json and (optionally) semantic vectors for a workspace |
Rebuild the JSON index for one workspace. Picks up external edits to RST files. When the optional papyrus[semantic] extra is installed, also re-embeds needs whose content hash changed into <workspace>/.papyrus/vectors.npy (and drops vectors for needs that no longer exist). Semantic reindex failures are swallowed so the base JSON rebuild never breaks.
<workspace>/.papyrus/index.json exists and contains exactly count needs; when extra is installed, vectors.npy exists with one row per current needinput:
(none; rebuilds every RST workspace in the chain)
output:
side effect: for each scope in chain: <workspace>/.papyrus/index.json rewritten
plus <workspace>/.papyrus/vectors.npy + vectors_meta.json if papyrus[semantic] installed
stdout: "Rebuilt index: <total> need(s) indexed."
exit: 0
After invocation, for each RST backend in the chain:
test -f <workspace>/.papyrus/index.json
# plus, when papyrus[semantic] is installed:
test -f <workspace>/.papyrus/vectors.npy
And parsed JSON has "needs": [...] list whose total length matches the <total> printed on stdout.
papyrus --workspace <dir> rebuild-index
MCP tool memory_rebuild:
{"workspace": "local"}
(The MCP tool is per-scope; the CLI command iterates all scopes in one call.)
After manual RST edit:
papyrus-rebuild-index to refresh .papyrus/index.jsonpapyrus-validate-links to check integrityPre-commit hygiene:
papyrus-rebuild-index for each workspacepapyrus-validate-linkspapyrus-validate-links — often chained after rebuildpapyrus-query — --semantic mode depends on a prior rebuild to populate vectors