Home / Claude Code mods / Context & memory / long-term-memory

long-term-memory

long-term-memory is a Claude Code mod by rathialok901 that remembers session summaries, decisions and preferences across sessions, in a file you can edit (/brain).

Updated 2026-10-16

What is long-term-memory?

long-term-memory is a Claude Code mod by rathialok901 that remembers session summaries, decisions and preferences across sessions, in a file you can edit (/brain). It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authorrathialok901
Repositoryrathialok901/claudemods
Popularityno public popularity data yet
CategoryContext & memory
SecurityReview before installing (68/100)
Rank#8,020 of 9,397 Claude Code mods; #716 in Context & memory
LicenseMIT
Last commit2026-10-16
Hooks5 events
Seescompaction
Draws onnothing

Is long-term-memory safe to install?

long-term-memory scores 68/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 4 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
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.model.forkdrives Claude
$.session.id
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.toastdraws interface

How do I install long-term-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/rathialok901/claudemods
    claude plugin validate ./claudemods/plugins/long-term-memory
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add rathialok901/claudemods && claude plugin install long-term-memory@claudemods

Or ask Claude to set it up

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

Install the "long-term-memory" Claude Code mod from https://github.com/rathialok901/claudemods/tree/main/plugins/long-term-memory. Run claude plugin validate on it first and show me what it can access before you enable it.

More from rathialok901/claudemods

This repository has at least 9 Claude Code mods on MCPMods.

  • agent-dashboard: Live pane of subagents: type, task, elapsed time, tool calls and status (Low risk)
  • auto-compact: Compacts the conversation once context passes a threshold (/compact-at) (Low risk)
  • budget-guard: Daily spend budget: warns as you approach it and asks before going over (/budget) (Low risk)
  • done-sound: Chime when a long turn finishes, a different sound when it fails (Low risk)
  • explain-risky: Explains risky commands in one plain-English line while their approval prompt is open (Low risk)
  • guardrails: Blocks destructive commands and access to secret files, for Claude and its agents (/guardrails) (Low risk)
  • mascot: A little character above the prompt that reacts to what Claude is doing (/mascot) (Low risk)
  • model-advisor: Picks Sonnet or Opus for each prompt by how hard it is (/model-advisor) (High risk)