🔥 Hot Repo: Claude Code Forgets Nothing With This 62K-Star Plugin
claude-mem just shipped v12.2.0 with git worktree memory adoption — solving the context-bleed problem developers hit when merging branches. At 62K stars, it's the most-starred Claude Code plugin on GitHub.
By OMC Editorial on 2026-04-18
Every developer who uses Claude Code hits the same wall: you close a session, reopen it the next day, and Claude has no idea what you were doing. The model is stateless by design. claude-memhttps://github.com/thedotmack/claude-mem — a community-built plugin with 61,982 stars as of April 18, 2026 — patches that gap directly inside Claude Code's hook system.
What It Does
claude-mem hooks into five of Claude Code's lifecycle events SessionStart, UserPromptSubmit, PostToolUse, Stop, SessionEnd to silently record every tool call, read, edit, and write Claude performs. A background worker process running on port 37777 compresses those raw observations into AI-generated semantic summaries using Claude's own Agent SDK, then injects a filtered context block at the top of every new session.
The result: Claude starts each session knowing which files were touched, which bugs were fixed, and what was left unfinished — without the developer writing any prompts or maintaining manual notes.
Installation is one command:
bash
npx claude-mem install
The plugin auto-detects Claude Code's hooks directory, installs its own hook scripts, and starts the worker service. It also supports Gemini CLI and OpenCode via --ide flags.
v12.2.0: Worktree Adoption Ships Today
The release that went live this morning April 18, 3:14 AM UTC addresses one of the more painful edge cases in the Claude Code worktree workflow. When Claude Code runs agents in parallel git worktrees, each worktree accumulates its own observation history. Before v12.2.0, merging that worktree back into the main branch meant losing all context recorded during that branch's lifetime.
The new worktree adoption engine PR 2052 detects when a worktree has been merged and consolidates its observations under the parent project. A new npx claude-mem adopt CLI command lets developers trigger adoption manually with --dry-run and --branch flags. Auto-adoption also fires on worker startup, so most users will never need to run it e