allsource-prime-memory
Skill4 starsChanged yesterdayApache-2.0View on GitHub
Durable cross-session memory for OpenClaw agents via AllSource Prime. Recall decisions, task history and project context from earlier sessions before answering, and record salient new facts as you work, so the user never re-explains the same thing twice. Use at the start of a session to orient, before answering "what did we decide / why did we / have we discussed" questions, and after a non-obvious decision or discovery. Triggers on "remember this", "recall", "what did we decide about X", "load context".
- Installs packages
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- allsource-incident-statusSkill
- allsource-partnershipsSkill
- ritual-fullSkill
- ritualSkill
- semantic-isaSkill
- admin-healthSkill
- allsource-data-accessSkill
- allsource-debugSkill
- allsource-incident-statusSkill
- allsource-mcp-setupSkill
- allsource-onboardSkill
- chronos-data-flow-embeddedSkill
- chronos-data-flowSkill
- chronos-durabilitySkill
- chronos-embedded-durabilitySkill
- chronos-releaseSkill
- fly-statusSkill
- mammoth-memorySkill
- ritual-fullSkill
- ritualSkill
- semantic-isaSkill
- seo-aeo-auditSkill
- allsource-customerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 77
Never write secrets, API keys, credentials, raw proprietary source code or full file contents into Prime unless the user explicitly says so.
- Distinctive: line 83
Before answering a question that depends on earlier sessions, and at the start of a session on a non-trivial topic:
- Distinctive: line 89
Use what comes back and say it came from memory ("from an earlier session: …"), so the user can see and correct it.
- Distinctive: line 94
After a decision, a non-obvious gotcha, a durable project fact, or an outcome:
- Very specific: line 96
Look for an existing node with prime_search or prime_neighbors.
- Distinctive: line 105
Do not record transient state, step narration, chit-chat, or anything already in the code, git history or project docs.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AllSource Prime memory
AllSource Prime is an MCP server that gives the agent durable memory: a
knowledge graph plus vector recall, stored locally as a write-ahead log and
Parquet files under ~/.prime/memory. It survives restarts and needs no
account. Its only network use is the one-time embedding-model download in setup
step 2; memories leave the machine only when both --sync-to and --api-key
are set.
Source and licence (Apache-2.0): https://github.com/all-source-os/all-source
Setup
The memory tools come from the Prime MCP server, so it must be registered once.
- Install the binary: the installer above downloads the release for this OS,
or run
cargo install allsource-prime(gives a binary namedallsource-prime). - Warm the embedding model once, with network access:
allsource-prime --mode warm Register the server in
openclaw.json(use the full path of the installed binary when it is not onPATH), then restart the gateway or node:{ mcp: { servers: { prime: { command: "allsource-prime", args: ["--data-dir", "~/.prime/memory", "--auto-inject"] } } } }On a headless node host the same entry goes under
nodeHost.mcp.servers.
The tools appear as prime_* (prime_stats, prime_context, prime_recall,
prime_search, prime_add_node, prime_embed, prime_add_edge,
prime_neighbors, …). If they are absent, skip this skill silently unless the
user asks about memory.
Provenance rule
Record your own analysis: decisions, rationale, gotchas, outcomes, summaries. Never write secrets, API keys, credentials, raw proprietary source code or full file contents into Prime unless the user explicitly says so. File paths, metadata and conclusions are fine.
Recall
Before answering a question that depends on earlier sessions, and at the start of a session on a non-trivial topic:
prime_stats. An empty store means skip recall; never invent prior context.prime_contextwith the user's question asquery(top 5). For a plain "what do I know about X",prime_recallwithtextis enough.- Use what comes back and say it came from memory ("from an earlier session: …"), so the user can see and correct it.
Record
After a decision, a non-obvious gotcha, a durable project fact, or an outcome:
- Look for an existing node with
prime_searchorprime_neighbors; update it rather than duplicating. Otherwiseprime_add_nodewith atype(decision,insight,concept,project,event,person,metric) and adomainproperty. prime_embedwithidset to the node'sentity_idandtextset to the written fact (not source code), so semantic recall can find it.prime_add_edgeto related nodes (depends_on,causes,impacts,requires).
Do not record transient state, step narration, chit-chat, or anything already in the code, git history or project docs. A failed write is noted briefly and never blocks the user's task.
On request
- "remember this": record the user's words as an
insightordecisionnode and embed it. - "what did we decide / why / have we discussed": recall first, answer from memory, cite it.
- "forget X": find the node and remove it with
prime_forget.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

