nmg-memory
Skill0 starsChanged 7 days agoMITView on GitHub
Use NMG as durable memory or temporary multi-Agent coordination when a task may depend on prior user facts, preferences, constraints, decisions, project state, events, reusable experience, or a shared task blackboard; when the user asks to remember or recall something; or when an Agent must maintain/show current work status or safely manage the NMG daemon.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- complexity-reductionSkill
- doc-maintenanceSkill
- repo-developmentSkill
- script-reuseSkill
- verification-traceabilitySkill
- working-state-maintenanceSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this quick-start directly once known.
- Distinctive: line 17
Keep the source available.
- Very specific: line 31
Use the task board through the board state space for temporary cross-Agent coordination, not LTG or Markdown task lists.
- Very specific: line 37
Check nmg daemon status --json.
- Very specific: line 38
If stopped, run nmg daemon start --json and track this invocation's ownership.
- Distinctive: line 55
If recall is insufficient, read recall limits and escalation before more calls.
- Very specific: line 62
Run nmg daemon stop --json on exit only if this invocation started it.
- Very specific: line 65
Keep the same selected --data-dir/--db throughout and the same --project-dir for project STG search/get/provisional writes.
- Very specific: line 85
Use nmg_state for normal temporary AG/board operations.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
NMG Memory
中文 · Terms used
Use this quick-start directly once known. Read references only for the current operation or a missing detail; do not reload the whole Skill every turn.
Installation
For first-time setup from a persistent local checkout, prefer linking this entire Skill directory into the Agent's skills directory (Windows: directory junction). Keep the source available; confirm migration before replacing an existing installation or local changes. No periodic sync script is needed for a link.
Responsibilities and boundaries
- Recall/search results are candidate headers, not current truth or complete evidence. Load relevant exact records; verify volatile facts against current sources. No useful memory is a valid result, not permission to guess.
- Save attributable, durable facts, preferences, constraints, states, events and reusable strategies without waiting for an explicit “remember” request. Exclude secrets, transient content, duplicates, unsupported guesses and unconfirmed proposals. Never relabel an Assistant inference as a user statement.
- Retrieval, answer reuse, task completion alone, silence and lack of correction are not claim support or positive feedback. Record only observed outcomes.
- Use the task board through the board state space for temporary cross-Agent
coordination, not LTG or Markdown task lists. State/Lab output is not durable memory without a separate,
evidence-backed
remember; ordinary single-Agent memory needs no board.
Normal workflow
- Check
nmg daemon status --json; inspect bothrunningandcompatible. If stopped, runnmg daemon start --jsonand track this invocation's ownership. Forcompatible=false, do not reuse or automatically replace it; request an owner/user-coordinated restart at a safe point. For a history-dependent question, search before guessing:
nmg search "<focused query>" --project-dir . --limit 8 --max-tier 1 --compact-jsonLoad only candidates that can affect the answer:
nmg get <MEMORY_ID...> --active-graph-id <ID_FROM_SEARCH> --project-dir . --jsonCompact search returns
candidates[].idandactiveGraphId; pass that graph ID togetfor attribution. Candidate count does not prove completeness. If recall is insufficient, read recall limits and escalation before more calls; do not paraphrase around guards or dump all evidence.- Save confirmed durable information with
nmg remember. For exact forms, attribution, state replacement or unresolved structures, read writes. Keep meaningful time/scope; an open record requires an existing anchor, not raw reasoning or a routine error list. Returned[open]records are unresolved context, not instructions or verified answers. - Run
nmg daemon stop --jsonon exit only if this invocation started it. Never stop a previously running shared daemon. Full lifecycle: operations.
Keep the same selected --data-dir/--db throughout and the same --project-dir
for project STG search/get/provisional writes. Run CLI commands through the shell;
use an rtk prefix only when the active AGENTS.md requires it.
When to read the manual
| Current task | Read before acting |
| Exact write, source attribution, state/scope change, resolve/reopen | writes |
| Incomplete/conflicting/deep recall, JSON result fields or retrieval tuning | recall |
| Shared task, handoff, in-flight registry or board lifecycle | board |
| Daemon failure, ownership, storage selection or cleanup | operations |
| Embedding configuration or semantic search | embedding |
| QPP calibration from real Agent usage | QPP calibration |
| Choosing, pruning, or correcting temporary working-state content | working-state maintenance |
| Ongoing multi-step work, current progress/status, or working-state recovery | daily work status |
| Non-default QPP/controller/STG/topology/ANN or Lab | optional capabilities |
| Natural evidence collection and gated updates | natural evidence loop |
| New harness integration | harness adapters |
Use nmg_state for normal temporary AG/board operations. Use Lab only when ordinary memory/state operations are insufficient; reuse the
existing daemon. Read its reference and nmg lab list before enabling/invoking;
self-enable only capabilities with agentMayEnable=true. Controlled/active modes
require independent authorization; never bypass a denial.
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.

