better-memory

better-memory is a Claude Code mod by xobotyi that keeps Claude Code's auto memory to facts that still hold: gates memory writes and sifts new entries when the session goes idle.

Updated 2026-12-01

What is better-memory?

better-memory is a Claude Code mod by xobotyi that keeps Claude Code's auto memory to facts that still hold: gates memory writes and sifts new entries when the session goes idle. It is listed under Context & memory and has 23 GitHub stars.

TypeClaude code mod
Authorxobotyi
Repositoryxobotyi/cc-foundry
Popularity23 GitHub stars
CategoryContext & memory
SecurityHigh risk (48/100)
Rank#526 of 9,397 Claude Code mods; #55 in Context & memory
LicenseMIT
Last commit2026-12-01
Hooks8 events
Seesevery tool call, mcp__better-memory__answer_instruction_proposal calls, mcp__better-memory__remove_entry calls, mcp__better-memory__write_entry calls
Draws onToolUse

Is better-memory safe to install?

better-memory scores 48/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables. It passed 3 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.sleep
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.process.runruns processes
$.process.spawn
$.session.append
$.session.id
$.session.info
$.session.messagesreads the transcript
$.session.repo
$.session.root
$.session.surfaces
$.session.turns
$.settings.readreads settings
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.list
$.tool.registerdrives Claude
$.ui.logdraws interface

How do I install better-memory?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/xobotyi/cc-foundry
    claude plugin validate ./cc-foundry/plugins/better-memory
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add xobotyi/cc-foundry && claude plugin install better-memory@foundry

Or ask Claude to set it up

Paste this into Claude Code and it installs better-memory for you:

Install the "better-memory" Claude Code mod from https://github.com/xobotyi/cc-foundry/tree/master/plugins/better-memory. Run claude plugin validate on it first and show me what it can access before you enable it.

More from xobotyi/cc-foundry

This repository has 4 Claude Code mods on MCPMods.

  • plugin-rollcall: Reloads plugins that settings enable but Claude Code skipped at startup (Review before installing)
  • skill-enforcer: Enforces skill invocation and reference reading via SEF checkpoints (Low risk)
  • wall-clock: Wall-clock and elapsed-time grounding for agent context (Low risk)