/demarkus-memory:soul-archive <soul path or directory/>from demarkus-memory
Archives a soul document or all live documents under a directory, preserving history while hiding them from lists and lookup. Requires human approval before writing.
Ships in demarkus-memory. Installing the plugin adds it to Claude Code.
Archived: fetches as archived, every version kept, no unarchive tool (the operator restores). mark_archive archives and drops, in each ancestor hub, the bullets that only linked what was archived. Read-only until step 4.
$ARGUMENTS: one path; trailing / means directory. Empty: ask. Never /index.md or the store root; a project hub only inside its own directory target.
Slug, root and bound soul: the session header Project slug: ... Project root: ... Bound store: .... Header absent, or the user means another project (ask for its directory): run
"$HOME/.demarkus/bin/demarkus-plugin" registry project --dir <project-dir>
<project-dir>: "${CLAUDE_PROJECT_DIR}", or the named directory as one POSIX-safe shell word. Read its verdict= line: use: continue with slug=, store=, root=; use, root unconfirmed: <reason>: name the reason once, continue; stop: <reason>: relay it, stop, never fall back to the local soul. A header present: act on its Verdict: the same way. Exit 127 (a sandbox, e.g. Cowork): Host-only commands stop; else the slug is the one the user names or confirms (^[a-z0-9][a-z0-9._-]*$, never the working directory; ask once unless a blank slug means the whole soul), the store demarkus-memory (the local soul), no more shell. Any other non-zero exit, or a zero exit without a verdict= line: surface it, stop. <root> below is the project root: / for the soul's root project, else /<slug>/. Every mark_* call goes through the store's server (mcp__<store>__mark_*); a tool not connected or missing (older binary): say so, name the server, point at /soul-status, stop.
Scope. Target outside <root>: the user confirms it, else stop.
Collect. Document: mark_fetch; ok continues; archived or not-found: say so, stop; other failure: surface, stop. Directory: mark_list for the live documents (next-cursor as cursor until complete: true, recurse into subdirectories; over 100 list calls or 500 documents: stop, ask for a narrower directory); not-found or none: say so, stop; a listing failure: surface, stop. Keep the paths and their count <N>.
Gate. Approval on the exact target: the document, or the directory with its <N> documents (the paths on request). Declined: stop, nothing written.
Archive. One mark_archive call: url the path (a broker store: mark://<world>/<path>); a directory adds recursive: true and expected_docs: <N>. The tool lists again and refuses when the live count moved (archive refused: the set changed, back to step 2), else archives every document in listing order (bounded at 500), then drops the hub bullets whose links all pointed at what was archived; a bullet with a link elsewhere stays. Other tool error: surface verbatim, stop.
Report. The tool's lines verbatim: paths with versions, failures, hubs: bullets dropped, every note: (a hub left as it was). status: partial: name what did not archive; a bullet linking the directory stays until everything under it is archived.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub latebit-io/demarkus --plugin demarkus-memory13 commands in this plugin
/promoteSoul and projectPromote a soul document up to a shared knowledge system: stage, distill, gate, publish, and back-stamp the source/promote-scanSoul and projectSweep the soul for promotion candidates (high-signal, durable, not-yet-promoted docs worth lifting to the knowledge system) and present them for /promote/soulSoul and projectShow the index of this project's soul (the bound soul, or the local one when unbound)/soul-contextSoul and projectRestore session context from the current project's soul (recent journal, active work)/soul-curateSoul and projectBring one soul document into shape (summary, stable headings, hub rules, a split into a hub plus topic files when it outgrows one fetch), or apply the doctor's fixable findings across a directory. Human gate before any write the report header does not mark `approval: none`./soul-defaultStepsSet this project's default soul write target (the binding the destination gate enforces).Other plugins' commands for the same job