Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub thaitype/gmemPersistent agent memory: capture learnings, write session retros, and judge what to promote.
Maintenance tools for gmem: migrate older gmem and crew-style memory to the current layout.
Optional extensions for gmem: set up typdoc so gmem-check checks memory frontmatter against schemas.
gmem keeps your coding agent's memory as plain Markdown files you own, so you can read every memory, decide what stays, and prune what no longer holds.
Status: v1.0.0-alpha.2. I have used this memory system for a while, and the results are good. Until now its two halves lived apart: memory and notes on one side, and typmem's retros and learnings on the other. This repo brings them together so they are easier to manage. The memory standard itself should not change much. Expect fixes to details, mostly for bugs. If something breaks or reads wrong, open an issue.

Most agent memory works like a recorder: it saves everything automatically and finds things again with semantic search, usually a vector index. You don't see what was kept, and you can't easily tell why one memory came back and another didn't.
gmem is a garden. Memory is plain Markdown in a folder you own. The agent still writes much of it, but each skill saves only what passes its own test, into a file you can open. The agent walks through it at the start of every task and finds files by their index rows, not by similarity. You decide what stays, and you prune it so the paths stay clear.
gmem-memory, gmem-note) and correct it when it is wrong (gmem-stop). The
agent keeps what it learns on its own with gmem-learn. Either way, it saves only
through a gmem skill, into a Markdown file you can read.index.md, one row per file saying
when to read it. The agent follows those rows instead of guessing by similarity.gmem-judge and gmem-tidy find what's stale, duplicated or
wrong. You approve what gets cut or moved.rules/ and precedents/ change only when a human
decides. The agent can suggest, never rewrite.A garden like this needs some work from you. In return, every memory can be read,
checked with git diff, and traced to whoever wrote it.
Add the marketplace, then install the plugin:
/plugin marketplace add thaitype/gmem
/plugin install gmem@gmem
gmem has the memory skills and the session-start hook.
We recommend that you turn off Claude Code's own auto memory. Otherwise Claude Code
also saves memories on its own, outside gmem, and you lose the single place where you
decide what is kept. Add this to ~/.claude/settings.json:
{
"env": {
"CLAUDE_CODE_DISABLE_AUTO_MEMORY": "1"
}
}
If the file already has an env block, add the key to it. The setting takes effect in
the next session.
npx skills@latest add thaitype/gmem
This installs the skills only, without the hook. See Opening the map at session start.
In this walkthrough, you set up gmem, save how something works and where a piece of work stands, and see the agent pick up both in a fresh session. It assumes you installed the Claude Code plugin.
Open Claude Code in your project and run the setup skill:
/gmem-setup
The agent asks one question at a time. First, whether you know gmem already (say no
and it runs gmem-ask to explain the pattern). Then which install mode: choose
Central memory, the default. Last, where the config file lives: choose User
level. When it finishes, it prints the folders it resolved:
memory -> /Users/you/.gmem/memory
note -> /Users/you/.gmem/note
rules -> /Users/you/.gmem/rules
precedents -> /Users/you/.gmem/precedents
learnings -> /Users/you/.gmem/learnings
proposals -> /Users/you/.gmem/proposals
retro -> /Users/you/.gmem/retro
config -> /Users/you/.gmem/gmem-config.toml
With Central memory, everything lives in one place in your home directory. See Install modes for the other three.
Then it asks whether to add typdoc, an optional helper for checking memory format.
gmem works without it, so keep the default, No. You can set it up later with
gmem-typdoc.
It also checks for grilling, wayfinder, and research, three skills from
mattpocock/skills, and offers to install
any that are missing. You can skip them for now. Only gmem-tidy uses them.
Start a fresh session with /clear.
Claude Code shows Opening the gmem map while the hook runs, and the agent loads gmem-map
before it answers you. The hook fires now because ~/.gmem/gmem-config.toml exists.
Tell the agent how something in your project works:
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.