/memtomem:setup [path|project]from memtomem
Sets up and verifies a memtomem memory source, including project memory tier initialization. Guides through indexing, search verification, and bootstrap commands.
Ships in memtomem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use $ARGUMENTS as the memory source path, or project for this repository's project memory tier.
If the request does not clearly specify the memory source path, or project for this repository's project memory tier, ask before calling a tool — and
in a non-interactive context (a subagent or scripted run with nobody to ask), do not
stall and do not guess: stop and report insufficient_input naming the missing memory source path, or project for this repository's project memory tier.
A request that does specify the memory source path, or project for this repository's project memory tier proceeds normally in either context.
If the request is project — make this repository's project memory tier ready, the
project_local tier that handoff and harvest write to — follow "Project memory tier"
below instead of steps 1–6. To index a directory that is itself named project, give it as
./project or as an absolute path.
mem_status and treat the default provider=none BM25-only configuration as healthy.cd <project-root> && when the setup is project-specific. Retry only after the user completes that explicit trust step.mem_index on that path with force=false and auto_tag=false. This is a one-shot index and must not silently register a watcher root.mem_search to verify retrieval.Do not install Ollama, enable automation hooks, or edit host instruction files unless the user separately requests those actions.
Only mm mem init creates and registers this tier. Never create .memtomem/ or anything in
it, never edit .gitignore or ~/.memtomem/config.json, and never register the tier
through an MCP tool call — not when a step below fails, is refused, or goes unanswered. When
the command cannot run, the user runs it.
mm mem init takes no path: it uses the nearest directory, from its working directory
upward, that holds .git or pyproject.toml. So the command runs only in a directory
that itself holds .git (a file in a linked worktree, a directory otherwise), where that
nearest directory is the working directory. Run pwd -P and test -e .git: the
directory pwd -P printed is <root> when test -e .git exits 0. Git is not asked,
because Git's answer can differ from this rule (GIT_DIR, GIT_WORK_TREE).
When test -e .git exits non-zero, do not change directory: stop, say that the tier needs
the repository's root folder (the one that holds .git), and ask the user to run the
command in their terminal from there.
Tell the user what the command may change: it creates <root>/.memtomem/memories.local/,
appends memtomem's block to <root>/.gitignore (also on a later run when the block is
missing), and adds that directory to indexing.project_memory_dirs in
~/.memtomem/config.json, which every project on this machine shares. Then ask whether to
run it, and wait for the reply. Run it only on a yes to that question; the request that
started this workflow is not that answer. In a non-interactive context (a subagent or
scripted run with nobody to ask), or when the user declines or does not answer, do not
run it: stop and give the command. After the yes, run pwd -P once more in the shell that
will run the command; if it no longer prints <root>, stop and give the command.
uvx --python 3.12 --from 'memtomem[onnx]==0.7.15' mm mem init --scope project_local
A user who already has the CLI installed can run mm mem init --scope project_local
from the root instead.
If uvx is not available, the call is refused, or the command exits non-zero, stop: give
the command for the user's terminal, and its output when it ran. Do not retry it and do
not work around it.
Report the command's output as printed: it registers the tier, says
Already initialized: … Nothing to do., or says the directory was already registered and
has been recreated. Then call mem_status, the only memtomem call in this section, and
report the database path and Project root:. Look for a Project sources row that, with a
leading ~ expanded, is <root>/.memtomem/memories.local; the active project's rows are
listed first. The tier is ready for this session when that row is there and
Project root:, with a leading ~ expanded and without a trailing (bound), is
<root>. Otherwise report the command's result and the status result separately, say
which check failed — the row is missing, the list was cut short, or the row is there but
Project root: names another directory (give both paths) — and do not retry;
restarting the MCP server is the user's decision.
mem_status cannot see duplicate MCP registrations. Tell the user to check them in the
client's own MCP list, for example /mcp in Claude Code or codex mcp list in Codex CLI.
Before reporting results, note which memtomem tool namespaces this session
exposes. If both mcp__memtomem__mem_* and mcp__plugin_memtomem_memtomem__mem_*
tools are available, warn about possible duplicate registrations. Other aliases
exposing the same memtomem tool family also warrant a registration check.
Tool visibility alone does not prove two live processes or a shared database.
Recommend /mcp first to determine registration names and scopes. A single
visible namespace does not prove that no other registration exists.
The --claude-mcp diagnostic ships in the released CLI, but installing the
plugin does not put mm on the user's PATH — it registers an MCP server, not
the CLI. So offer the pinned form, which works either way:
uvx --python 3.12 --from "memtomem[all]==0.7.15" mm doctor --claude-mcp
This diagnostic runs in its own environment. It does not install dependencies
into, or repair, the plugin server environment.
Before installation, doctor compares manual registrations with the launch this
release's plugin bundles (memtomem[onnx]==0.7.15). After installation, it reads
the actual plugin manifest. Use /mcp to verify the session, and repeat the
diagnostic after installation.
If the user says they already have the CLI installed, mm doctor --claude-mcp
is the same check. Run it from the project being inspected. Neither is required
— /mcp and the scope-specific guidance below cover the same ground.
Name both remediations: keep the plugin by removing the confirmed manual entry
(claude mcp remove memtomem -s user for user scope; use -s local or
-s project for those scopes and replace the name for an alias), or keep the
manual entry by running /plugin uninstall memtomem@memtomem. Never remove
either registration yourself. Do not claim to have run the diagnostic unless
it was actually executed. If no duplication is visible, skip the warning silently.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub memtomem/memtomem --plugin memtomem9 skills in this plugin
/briefCompile a read-only task briefing from project memories, recent updates, and user preferences, list recent handoff IDs, and verify cited paths against the live Git worktree./handoffExplicitly save, resume, or list compact project handoffs shared by Claude Code, Codex CLI, Kimi Code, and other compatible runtimes./harvestReview session outcomes and the latest Git commits, check existing memories for duplicates, and explicitly save durable project decisions, fixes, or preferences./indexIndex or re-index an explicitly selected file or directory with memtomem. Use for initial ingestion or intentional refresh after file changes./recallRecall memtomem memories created in a date range. Use for recent memories or requests scoped by day, week, month, source, or namespace./rememberSave an explicit user-requested memory with memtomem. Use only when the user clearly asks to remember, record, or persist information for later.Other plugins' skills for the same job