Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By alibaizhanovv0.1.4Apache-2.0In 1 marketplace
Keeps your Claude Code context across /clear, new sessions and other machines through a hosted memory backend. Needs a Mengram API key, and a Stop hook sends each turn's conversation transcript to Mengram's servers.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
Connects to a remote server outside your machine
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Persistent memory for Claude Code that survives /clear, auto-compaction, machine switches, and team handoffs. The SessionStart hook fires after every compact and re-injects your context — the summary can be lossy, the memory isn't.
Unlike CLAUDE.md (static) or filesystem memory (per-machine), Mengram is a hosted memory backend with hybrid retrieval (vector + BM25 + RRF), temporal decay, and cross-device sync. Same memory in Claude Code on your laptop, on your work machine, on Cursor, on ChatGPT.
| Component | What it does |
|---|---|
MCP server (mengram) | 30 tools — add, search, search_all, recall, profile, reflect, etc. Invoke via /mengram:* |
| SessionStart hook | Prepends your cognitive profile to Claude's context on session open |
| Stop hook | Persists the conversation transcript at end-of-turn for fact / episode / procedure extraction |
| Skill | Tells Claude when to recall and when to capture |
Not in the plugin yet: the compaction checkpoint (v2.44+). Before a
compaction, a PreCompact hook writes the working state down — the last
prompts, the files just edited, the last commands, where Claude left off —
and SessionStart puts it back verbatim after compact or resume. The
host's summary can drop those; the checkpoint can't. It ships with the CLI
hooks and coexists with the plugin:
pip install mengram-ai && mengram hook install # Claude Code
mengram hook install --codex # the same hooks under Codex
# 1. Get a free API key (40 adds + 200 searches/month free)
open https://mengram.io
# 2. Save the key once — hooks and MCP pick it up from here in every session
mkdir -p ~/.mengram && echo '{"api_key": "om-your-key-here"}' > ~/.mengram/config.json
# 3. Install the plugin
claude plugin marketplace add alibaizhanov/mengram
claude plugin install mengram@mengram
(export MENGRAM_API_KEY=om-... in your shell profile works too — the env var
always wins over the config file.)
/clear — or close the terminal and start a fresh session.That's the whole product. Every session from now on starts with your context loaded.
Your past Claude Code sessions are already on disk. Feed them in and memory starts full, not empty:
pip install mengram-ai
mengram import claude-code # imports your ~20 most recent sessions
Secrets (API keys, tokens) are redacted before anything leaves your machine. Re-runs skip already-imported sessions.
Free tier: 40 adds + 200 searches per month. Paid tiers from $5/mo. Self-host is supported (Apache 2.0) — see https://github.com/alibaizhanov/mengram.
Conversations transit Mengram's extraction pipeline (POST /v1/add_text), which extracts:
Retrieval combines vector similarity (OpenAI text-embedding-3-large), BM25 keyword match, and Reciprocal Rank Fusion. Facts decay via the Ebbinghaus forgetting curve so stale context doesn't drown new context.
First-run self-check: until the plugin has verified one successful round-trip to the API, failures are loud — a one-line message in Claude Code tells you exactly what's broken (no key found / key found but verification failed). After the first success, failures go back to silent so an outage never spams you.
Opt-in heartbeat: set MENGRAM_HEARTBEAT=25 (env) or "heartbeat": 25 in ~/.mengram/config.json and every 25th successful save shows one line — [mengram] heartbeat: 150 conversations saved to memory so far. Silence-when-enabled means something is wrong; that's the point.
source=claude_codeMENGRAM_API_KEY before launching Claude CodeMengram is Apache 2.0. Self-host to keep all data on your own infra.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub alibaizhanov/mengram --plugin mengramPlugins from other owners that cover similar ground