A Claude Code plugin that shows what's happening - context usage, active tools, running agents, and todo progress
Install
/plugin marketplace add kunickiaj/codememInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →codemem
The code is still there. The reasoning usually isn’t.
codemem is persistent coding memory across sessions, machines, and teammates for OpenCode, Claude Code, Codex, and the Pi coding agent. It captures decisions, dead ends, and repository-specific traps, then automatically brings relevant context into later prompts.
- Automatic context injection — relevant memories reach the agent without asking it to search; unchanged memories already in OpenCode context are not repeated
- Optional sync and sharing — peer-to-peer sync carries selected project memory across machines; share project knowledge with a teammate or Team when it helps
- Local-first storage — memories live in SQLite on your machine; observer processing uses your configured model provider and can incur costs or consume plan usage
- Hybrid retrieval — FTS5 BM25 lexical search + sqlite-vec semantic search, merged and re-ranked
- Automatic injection for OpenCode 1 and 2 — the plugin injects context into every prompt, no manual steps; the OpenCode 2 integration is beta
- Claude Code plugin support — install from the codemem marketplace source
- Multi-agent — OpenCode, Claude Code, Codex, and pi share one project-scoped store
- Pi coding agent — session capture, automatic recall, and 14 native memory tools; no MCP required
- Built-in viewer — browse memories, sessions, and observer output in a local web UI
- Remote MCP access — advanced single-user self-hosting can expose an OAuth-protected Streamable HTTP MCP endpoint to configured remote clients; keep the localhost viewer private (guide)
Synthetic project memories, not real session data. Explore the Feed, Facts, and Projects walkthrough to see how to inspect what was captured.
Quick start
Prerequisites: Node.js 24.15+ and npm (or pnpm). Native database support covers macOS x64/arm64, Linux x64/arm64 (glibc 2.34+ or musl), and Windows x64. 32-bit targets, including Linux armv7, are not supported.
Linux: set ONNXRUNTIME_NODE_INSTALL=skip in your shell and the environment that launches OpenCode, Claude Code, Codex, or Pi before the first package install. This avoids downloading the unused ONNX Runtime GPU provider while keeping CPU inference. Setup-managed npx launchers cannot set it themselves.
OpenCode
Codemem requires OpenCode 1.18.29 or newer. One installed
@codemem/opencode-plugin package serves both host generations: OpenCode 1 calls
its server() entrypoint and OpenCode 2 calls its setup() entrypoint. OpenCode 2
support is validated against the exact stable @opencode/cli@2.0.24 and
@opencode/plugin@2.0.24 releases; Codemem labels its OpenCode 2 integration
beta until it has shipped through a full release cycle.
Similar plugs
Memori is agent-native memory infrastructure. A LLM-agnostic layer that turns agent execution and conversation into structured, persistent state for production systems. Built…