Codemem
Description
A lightweight persistent-memory companion for OpenCode & Claude
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
codemem
[](https://github.com/kunickiaj/codemem/actions/workflows/ci.yml) [](https://codecov.io/gh/kunickiaj/codemem) [](https://github.com/kunickiaj/codemem/releases)
Persistent memory for [OpenCode](https://opencode.ai) and [Claude Code](https://claude.ai/code). codemem captures what you work on across sessions, retrieves relevant context using hybrid search, and injects relevant context automatically in OpenCode.
- Local-first — everything lives in SQLite on your machine
- Hybrid retrieval — FTS5 BM25 lexical search + sqlite-vec semantic search, merged and re-ranked
- Automatic injection — the OpenCode plugin injects context into every prompt, no manual steps
- Claude Code plugin support — install from the codemem marketplace source
- Built-in viewer — browse memories, sessions, and observer output in a local web UI
- Peer-to-peer sync — replicate memories across machines without a central service
Quick start
**Prerequisites:** Node.js 24+ and npm (or pnpm)
OpenCode
- Install the OpenCode plugin and MCP config:
npx -y codemem setup --opencode-only
- Restart OpenCode.
The OpenCode plugin manages backend execution automatically — no separate global install is required.
- Verify:
# Works on fresh installs (no global codemem needed)
npx -y codemem stats
npx -y codemem db raw-events-status
That's it. The plugin captures activity, builds memories, and injects context from here on.
If you want `codemem` available directly on your `PATH` for manual commands, install the CLI globally:
npm
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development