Codemem banner
kunickiaj kunickiaj

Codemem

Development community

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

[![CI](https://github.com/kunickiaj/codemem/actions/workflows/ci.yml/badge.svg)](https://github.com/kunickiaj/codemem/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/kunickiaj/codemem/branch/main/graph/badge.svg)](https://codecov.io/gh/kunickiaj/codemem) [![Release](https://img.shields.io/github/v/release/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
codemem viewer — feed tab

Quick start

**Prerequisites:** Node.js 24+ and npm (or pnpm)

OpenCode

  1. Install the OpenCode plugin and MCP config:
npx -y codemem setup --opencode-only
  1. Restart OpenCode.

The OpenCode plugin manages backend execution automatically — no separate global install is required.

  1. 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