From mammoth
Durable cross-session memory via AllSource Prime. Recall what was learned in past sessions — decisions, task history, code context — and record salient new facts as you work, so the user never re-explains the project twice. Use at the START of a session to orient (recall prior context before answering non-trivial questions), and DURING work to record decisions, gotchas, and outcomes worth remembering. Triggers on "what did we decide about X", "remember this", "why did we do Y", "recall", "have we discussed", "load context", or any question that depends on prior-session knowledge. Also use PROACTIVELY: recall before answering architecture/decision/history questions; record after a non-obvious decision is made. mammoth = the memory layer; caveman makes few token, mammoth never forget token.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mammoth:mammoth-memoryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Durable agent memory, backed by the AllSource Prime MCP server (`prime_*` tools)
Durable agent memory, backed by the AllSource Prime MCP server (prime_* tools)
running local-only against a project .prime/ data dir — durable WAL + Parquet,
no account, survives restarts. A general-purpose recall/record loop.
Hard rule — provenance: record your own analysis (decisions, rationale, gotchas, outcomes, summaries). NEVER write raw proprietary source code, secrets, API keys, or full file contents into Prime nodes/embeddings unless the user explicitly says it's OK. Metadata, file paths, and your conclusions are fine.
Availability gate: only act if prime_* tools are present. If they are not,
skip silently — do not announce "memory unavailable" unless the user asks. The
plugin's .mcp.json wires the server; tools surface after the user approves the
project MCP server on session start. The allsource-prime binary must be on
PATH (cargo install allsource-prime, or use the mammoth installer).
Do this before answering any question that depends on prior-session knowledge — architecture choices, "why did we…", task history, who/what/when — and at the start of a fresh session for orientation.
prime_stats to see if memory has anything at all.
Cold/empty store → skip recall, proceed normally, don't fabricate context.prime_context with the user's question as query
(tier L2, the default — adds the compressed index + vectors + graph). For a
pure "what do I know about X" lookup, prime_recall with text = the query
is enough. Ask for top_k 5.Tool params come from each tool's input schema — prime_context requires
query; prime_recall takes text (server embeds in-process via fastembed) or
a precomputed vector, plus optional depth (0 = vector-only, 1+ = graph
expansion) and top_k. Don't guess names; the schemas are authoritative.
Record after something worth remembering happens. Best-effort: if a call fails, note it briefly and continue — recording never blocks the real work.
What counts as salient:
What is NOT salient (do not write — keeps the store signal-dense):
Recording steps:
prime_search (by type) or
prime_neighbors to check if a node already exists. Create with
prime_add_node only if absent. Always include a domain property — domains
power the compressed index's cross-references. Pick a type from the tool's
set: decision, insight, concept, project, event, person, metric.prime_embed with text = your written
fact/decision (NOT source code), keyed by the node's entity_id (the id
prime_add_node returned). This is what makes it findable later.prime_add_edge to link the new node to related ones
(depends_on, causes, impacts, requires). Cross-domain edges are the
highest-value: they make the index's cross-reference section useful.prime_stats → if non-empty and the topic is
non-trivial, prime_context to pull relevant prior knowledge before answering.insight/
decision node + embed.With --auto-inject on (the shipped .mcp.json enables it), a compressed index
is injected as the prime://auto-context resource each conversation — you often
already have a high-level map before calling anything. Use
prime_context/prime_recall to go from that map to specifics.
prime_* tools exist before acting (silent skip if not).prime_context/prime_recall) before answering a
prior-knowledge question; cited memory when used.domain; salient nodes are embedded so they're
recallable.Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub all-source-os/all-source --plugin mammoth