m3-guide
Skill26 starsChanged 57 days agoApache-2.0View on GitHub
How to use m3 memory well — search-first protocol, write vs supersede, chatlog access and its store-topology trap, and verifying capture is live. Use when working with m3 memory tools or unsure which one fits.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentsAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
When m3 contradicts what you think you remember, trust m3 — context degrades across session boundaries, memory does not.
- Very specific: line 29
Write as you go: If it took effort to learn and will matter later, memory_write it — decisions, corrections, runbooks, preferences.
- Very specific: line 31
Update, don't duplicate: Search before writing; prefer memory_update or memory_supersede (retires the old claim with a supersedes edge, …
- Very specific: line 62
Only some tools load at startup — tools_list_domains / tools_load_domain reach the rest (100+ in total).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Using m3 Memory
Tool names and signatures come from the MCP tool list. This is the part that isn't in a tool description: the protocol, and the traps.
Trust order
m3 memory > artifacts (git, handoff files) > session context. When m3 contradicts what you think you remember, trust m3 — context degrades across session boundaries, memory does not.
Verify capture is live
Registered ≠ working. The server can be connected while chatlog capture is
silently dead. Call chatlog_status once early in a substantive session. If
hooks are off or last_write is null/stale, say so loudly and don't proceed
silently — a dead chatlog means this session's decisions vanish at the next
session boundary. Never degrade quietly to flat files.
Protocol
- Search first.
memory_searchbefore re-deriving anything about this user, project, or machine. A settled decision re-litigated is a bug reintroduced. - Write as you go. If it took effort to learn and will matter later,
memory_writeit — decisions, corrections, runbooks, preferences. - Update, don't duplicate. Search before writing; prefer
memory_updateormemory_supersede(retires the old claim with asupersedesedge, keeps history) over a near-duplicate. Duplicates degrade later retrieval. - Link. Reference related memories as
[[name]]somemory_graphtraversal stays useful.
Chat log
Captured turns from host agents live in a store separate from curated memory.
Reach them with chatlog_search, chatlog_list_conversations, and
chatlog_promote (promotes turns into curated memory).
⚠️ Never open a database file directly
The chat store and main store may be two databases, one unified database, or PostgreSQL — a deployment choice only the tools know.
Querying agent_memory.db for type='chat_log' returns zero rows on a split
deployment even when capture is perfectly healthy — a false emergency. On a
PostgreSQL primary there's no local file at all. Use chatlog_status;
m3 chatlog status --json reports unified: true|false if you need the
topology.
Scoping
Passing conversation_id, agent_filter, user_id, or scope enforces the
filter strictly: an empty result means nothing matched in that scope, not that
the store is empty.
More
Only some tools load at startup — tools_list_domains / tools_load_domain
reach the rest (100+ in total). Health: m3 doctor, m3 chatlog doctor.
Full reference: docs/AGENT_INSTRUCTIONS.md
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.

