/gmem:gmem-askfrom gmem
Explains the gmem memory system: why it exists, every memory type (memory, note, rules, precedents, learnings, proposals, retro), the memory lifecycle, which skill to use when, and the four install modes. Read-only reference for users asking how gmem works or which skill to use.
Ships in gmem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The explainer for the whole garden. Answer what the user asked first. If they asked for
the whole pattern, or gmem-setup called you, walk through the sections in order and keep
each one short. Do not write or move any file from here.
What reaches an agent's context shapes how the agent behaves. So gmem puts a human in charge of that context.
Some beds are fenced: rules/ and precedents/ change only when a human decides.
| Kind | Holds | Who writes it |
|---|---|---|
memory | Current understanding, revised in place. A dated ledger, plus active/ with correction/ (mistakes and what to do instead) and reference/ (how things work). | You tell the agent (gmem-memory); you tell the agent it got something wrong (gmem-stop, manual only) |
note | A status board for one piece of work: done, open, next. | The agent, on your request or at wrap-up (gmem-note) |
rules | What must never be broken. | A human only |
precedents | Decisions to follow unless there is a stated reason not to. | A human only |
learnings | One durable fact per file, learned from the work itself. | The agent (gmem-learn) |
proposals | Suggestions to promote, fix or remove a learning. | The agent (gmem-judge); a human acts on them |
retro | The diary of a session: what happened, decisions, dead ends, open threads. | The agent (gmem-retro) |
Learning or retro? Ask: "will this still matter after this work is done?" Yes — it is a learning, a fact true for anyone. No — it is retro material, a story for tomorrow-you.
Who wins on conflict: rules > precedents > active > learnings. Notes and retros are
context, not authority.
| Stage | What happens | Skills |
|---|---|---|
| Capture | Something worth keeping enters memory | gmem-memory, gmem-learn, gmem-stop, gmem-note, gmem-retro; gmem-bye at the end of a session |
| Use | The agent reads memory before it works, in a fixed order | gmem-recall, with gmem-map as the guide |
| Review | New learnings are sorted | gmem-judge |
| Promote | A human turns a proposal into a precedent or a rule | none; you edit the files and the index |
| Prune | Memory is checked and cleaned against the real code | gmem-check, gmem-tidy |
| Retire | Stale memory is edited or deleted; finished notes are set to done | gmem-memory, gmem-note |
Writing something down
| If this is true | Use |
|---|---|
| You are telling the agent how something works, or updating what it knows about a topic | gmem-memory |
| The agent found out a durable fact from its own work | gmem-learn |
| You want to log what happened in a session | gmem-retro |
| You want the next session to know where a piece of work stands | gmem-note |
| The agent got something wrong and you want it recorded | gmem-stop (manual: run /gmem-stop) |
| You are done for now and want one checkpoint over all of the above | gmem-bye |
Looking after it
| If you want to | Use |
|---|---|
| Sort the new learnings and get proposals for the good ones | gmem-judge |
| Audit all memory against the real code and fix it with you | gmem-tidy |
| Check the format and layout, changing nothing | gmem-check (run it before you commit memory) |
Reading and orienting
| If you want to | Use |
|---|---|
| Know what memory says about the task in front of you | gmem-recall |
| See the whole garden and the everyday rhythm | gmem-map |
| Choose where each kind is stored | gmem-setup |
Every mode is a preset of where the seven kinds live. ${USER} is your home directory,
${PROJECT} is the project root.
| # | Mode | memory | note | rules | precedents | learnings | proposals | retro |
|---|---|---|---|---|---|---|---|---|
| 1 | Central memory (default) | ${USER} | ${USER} | ${USER} | ${USER} | ${USER} | ${USER} | ${USER} |
| 2 | Home Repo Pattern memory | ${PROJECT} | ${PROJECT} | ${PROJECT} | ${PROJECT} | ${PROJECT} | ${PROJECT} | ${PROJECT} |
| 3 | Dedicated agents memory | ${PROJECT} | ${PROJECT} | ${USER} | ${USER} | ${USER} | ${USER} | ${USER} |
| 4 | Custom | your choice per kind |
| Mode | Fits | Trade-off | Config file |
|---|---|---|---|
| Central memory | Newcomers, and anyone who wants everything in one place in their home directory | One shared active/ and note pool for every project, so context from different projects can mix. Nothing is in a project's git history. | User level (recommended) |
| Home Repo Pattern memory | One home repo on your own machine that points at many code repos | Everything travels with the repo in git and is easy to share. It only suits work run from that one home. | Project level (recommended) |
| Dedicated agents memory | Each agent or project home keeps its own context and status, while what is learned and decided is shared at user level | Context stays separate per home, and learnings are shared. Learnings from different homes land in one pool. | User level (recommended) |
| Custom | You want a split none of the presets give | You choose each kind, so you also own the consequences. | No recommendation |
Examples live in examples/. The
home repo matches mode 2 (based on
https://www.aihero.dev/the-home-repo-pattern). The
dedicated agents example matches
mode 3: each agent home keeps its own memory and note, and rules, precedents, learnings,
proposals and retro live in ~/.gmem.
Offer to run gmem-setup to pick a mode and write the config. If gmem-setup called you,
hand back to it now and let it continue with its next question.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gmem, memory-system, agent-memory, context-management, skill-reference
Other plugins' skills for the same job
13 skills in this plugin
/gmem-byeEnd-of-session checkpoint that checks whether anything from the session belongs in a note, memory, retro, or learning, and records only what qualifies. Use proactively on any wrap-up or goodbye signal in Thai or English — "จบแล้ว", "พอแค่นี้ก่อน", "บาย", "done for now", "wrapping up", "good night", or "note/memory/retro if needed" — even if the user doesn't mention memory. Not for logging a correction — use gmem-stop./gmem-checkChecks gmem memory without changing it — whether files follow gmem's rules (layout, file names, complete indexes, one note per topic) and whether their format is right (required frontmatter, links that resolve), using typdoc when it is set up. Reports each finding with the skill that fixes it. Use before committing memory, after hand edits, at the start of gmem-tidy, or when the user asks to "check memory", "validate memory", "lint memory", or "is my memory OK". Read-only — to fix what it finds, use gmem-tidy, gmem-judge or gmem-migrate./gmem-judgenpx claudepluginhub thaitype/gmem --plugin gmem