Lightweight persistent memory plugin for Claude Code. Zero dependencies, just markdown.
npx claudepluginhub asyrafhussin/memexLightweight persistent memory plugin for Claude Code. Zero dependencies, just markdown.
Lightweight persistent memory plugin for Claude Code. Zero dependencies, just markdown files.
Claude Code loses all context when the session resets or hits the context limit. You have to re-explain what you were working on every time.
Two markdown files that persist your session state:
memory/latest.md — What was done, what's next (overwritten each session)MEMORY.md ## NOW — 3-line status pointer (always loaded by Claude Code)Total overhead: ~50 lines. No database. No dependencies. No runtime.
/plugin marketplace add AsyrafHussin/memex
/plugin install memex@memex
Restart Claude Code. The plugin auto-creates a memory/ folder in your project on first save.
Once installed, memex runs automatically with no manual steps required:
| When | What Happens |
|---|---|
| Session starts | Reads memory/latest.md and restores context |
Before git commit | Reminds Claude to update memory before committing |
Before git push | Reminds Claude to ensure memory was committed |
Before /clear or auto-compact | Saves memory before context is wiped |
| Session ends (Ctrl+C) | Extracts basic summary from transcript as fallback |
You can also save manually at any time:
/memex:save Save current session state to memory
/memex:status Show what was done and what's next
## Session 2026-02-13
### Completed
- Added project description, location, date fields (823741f)
- Added edit progress update feature
### Next
- KB permissions (per-user access restrictions)
### Decisions
- Used single pivot table with role column instead of 2 separate tables
### Gotchas
- Migration ordering: FK tables must be created before referencing tables
your-project/
memory/
latest.md <- overwritten each session (what happened, what's next)
/plugin marketplace update memex
/plugin update memex@memex
/plugin uninstall memex@memex
/plugin marketplace remove memex
| Hook | Trigger |
|---|---|
SessionStart | New session, resume, /clear, or auto-compact — loads previous memory |
PreToolUse (Bash) | Detects git push — reminds to save first |
PreCompact | Before /clear or auto-compaction — urgent save |
SessionEnd | Session exit — fallback transcript extraction |
MIT
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
No description available.
Code intelligence powered by a knowledge graph — execution flows, blast radius, and semantic search