/mindwright:setupfrom mindwright
One-time download of the bge-m3 embedder and gte-reranker-modernbert-base cross-encoder into the local Hugging Face cache, plus a smoke test. Run once after installing mindwright before any memory features become active. First run is ~5-15 min depending on connection.
Ships in mindwright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Download the local models mindwright needs and verify the environment is sane. This is a one-time setup step. Subsequent sessions reuse the cached models.
node "${CLAUDE_PLUGIN_ROOT}/scripts/setup.js" --plugin-data "${CLAUDE_PLUGIN_DATA}"
The script:
node_modules empty. This runs synchronously and is one-time; it can take a few minutes when better-sqlite3 compiles from source. If the background self-heal already installed them, this step is a no-op; if that background prep is still in progress, the script exits early and asks you to wait a moment and re-run — expected, not a failure.Xenova/bge-m3 (1024-dim, 8192-token context) with dtype: 'q8', falling back to dtype: 'fp16' if the quantized ONNX file isn't shipped in the upstream repo. Progress lines go to stderr.Alibaba-NLP/gte-reranker-modernbert-base (raw-logit output — mindwright applies the sigmoid in code).("hello", "world") and asserts the score is in [0, 1].mindwright:setup ok … line to stdout on success, or a stack trace to stderr with exit code 1 on failure.Models cache in the plugin's persistent data dir (${CLAUDE_PLUGIN_DATA}/model-cache; override the location with MINDWRIGHT_MODEL_CACHE_DIR) so they survive plugin updates and /mindwright:reset. First run takes ~5-15 minutes depending on the connection. Re-running after the cache is warm is fast — the script still validates by re-loading and re-running the smoke test, but no bytes move over the network.
If the script fails with an HTTP error, retry — Hugging Face occasionally serves partial files. If it fails with not a valid Win32 application or a similar ABI mismatch on Windows, the issue is the better-sqlite3 / sqlite-vec binary combination, not the models; see the README for recovery.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joys-dawn/toolwright --plugin mindwright14 skills in this plugin
/assign-roleAttach a role tag to a session (yours or a peer's). Role-scoped procedural memories are filtered by role at retrieval time, so this controls which heuristics get injected. Assigning `consolidator` to a peer auto-spawns the dream cycle./dreamConsolidate the oldest ~70% of short-term observations into long-term facts. Reads the active long-term summary, drains a batch of exchanges, distills facts in your own context, and writes them back via deterministic CLI helpers./forgetSoft-archive a long-term fact so it stops surfacing in retrieval and the markdown mirrors. Reversible at the SQL level; the auto path treats it as gone.