This release adds 2 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+4 more
Summary
AI summarySession start memory injection defaults reduced and double-fire bug fixed, cutting token usage by ~5-6×.
Full changelog
Cuts per-session memem token cost by ~5-6× by adopting claude-mem's SessionStart defaults and adding project scoping.
Measured on the dev vault (1926 memories): SessionStart injection drops from ~20K tokens → ~3.7K tokens per session.
Changed
Defaults overhauled (claude-mem parity):
MEMEM_SESSION_START_LIMIT(default 50, range 1-200) — total memories injected. Previous default was 500.MEMEM_SESSION_START_FULL(default 5, range 0-20) — of the top-ranked memories, how many show full content. Previous model loaded all L0 as full uncapped.MEMEM_SESSION_START_PROJECT(default =cwdbasename) — scope filter. memem now injects only memories from the current project's directory + cross-projectgeneralmemories. Pass"all"to disable scoping.
Unified ranking across L0-L3: top-N by importance × recency. Layers still drive classification but no longer gate injection at session start. Claude gets a flat 'top N most useful for this project right now' set.
Fixed
Double-fire on first turn. SessionStart and UserPromptSubmit previously both fired on the first message, injecting duplicate material. SessionStart now writes ~/.memem/.last-brief.json with primed: true. The next UserPromptSubmit consumes the flag and returns empty context, so subsequent prompts use normal topic-shift logic.
Saves ~5-10K tokens on the first prompt of every session.
Estimated per-session savings
| Dimension | v0.10.2 | v0.11.0 | Savings |
|---|---|---|---|
| SessionStart memory count | 500 + up to 20 L0 full | 45 compact + 5 full | ~10× fewer |
| SessionStart tokens | ~20K | ~3.7K | ~16K/session |
| First-prompt double-fire | ~5-10K extra | 0 | ~7K/first turn |
| Scope | all projects | current project only | ~10× less noise |
| Total first-turn cost | ~25-30K tokens | ~3.7K tokens | ~7× |
Backward compat
- Legacy
MEMEM_COMPACT_INDEX_LIMITstill honored as a fallback --limit NCLI argument still works- Memory layer classifier unchanged
- Existing vaults load cleanly
Upgrading
/plugin update memem
Restart Claude Code to pick up the new SessionStart hook behavior.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About TT-Wang/cortex-plugin
Persistent, self-evolving memory plugin for Claude Code. Background miner extracts durable lessons (decisions, conventions, bug fixes)
Related context
Beta — feedback welcome: [email protected]