Repository navigation
v0.2.0 β CLI, re-embed migration, Ollama, auto-recall hooks
The first feature release after v0.1.0. Lots of new capability β all backward-compatible.
π What's new
mnema CLI β use memory without an AI client
You no longer need Claude/Cursor/any MCP client to use Mnema. The mnema command now works as a terminal tool:
mnema add "Alice likes tea" --tags pref,tea --scope user:alice
mnema recall "what does alice drink?"
mnema search "preferences" --tag pref
mnema stats
mnema export -o backup.json # or: mnema import -i backup.json15 subcommands total (add, recall, search, get, update, forget, forget-scope, list-scopes, stats, decay, summarize, export, import, re-embed, doctor).
mnema re-embed β migrate when switching embedding model
Previously: change MNEMA_EMBEDDING β your data breaks. Now:
export MNEMA_EMBEDDING=openai
export MNEMA_OPENAI_API_KEY=sk-...
mnema re-embed # re-embeds every memory with the new modelSafe to interrupt and re-run. (#9)
Ollama embedding provider (by @faizmullaa) π
Run embeddings fully local via an Ollama server β no in-process model load:
export MNEMA_EMBEDDING=ollama
export MNEMA_EMBEDDING_MODEL=nomic-embed-textFirst community contribution! Thanks @faizmullaa. (#6, #17)
Auto-recall & auto-remember
SKILL.md now tells agents to recall at the start of a task and store durable facts the moment they appear β no more "you have to ask". New remember_this prompt template. (#1)
One-line installer + mnema-update
curl -fsSL https://raw.githubusercontent.com/mienetic/mnema/main/scripts/install.sh | bash
# later:
mnema-updateSets up uv, clones the repo, creates an isolated Python 3.11 venv, installs the mnema + mnema-update commands. Supports MNEMA_EXTRAS to pick backends/providers.
mnema --doctor --fix
Auto-remediates common setup problems (missing data dir, missing API key). (#2)
Setup guides for 8 MCP clients
Step-by-step instructions for Claude Desktop, Claude Code, Cursor, Zed, Cline, Continue.dev, Windsurf, and ZCode.
π Bug fixes (found during end-to-end testing)
- sqlite_vec path resolution:
FileExistsErrorwhen the backend path was a file whose name collided with a parent dir component. Fixed viaos.path.abspath(). - Importance 2β4, 6β7, 9 crashed: the
Importanceenum only had named levels (1/5/8/10). Added_coerce_importance()that snaps any int in [1, 10] to the nearest level. - Installer backend inference:
MNEMA_EXTRAS=sqlite_vec,localstill defaulted toMNEMA_BACKEND=chroma. The installer now infers the backend from the chosen extras and computes the rightbackend_pathper backend.
π By the numbers
- 86 tests (up from 48)
- 3 embedding providers (added Ollama)
- 15 CLI subcommands (new)
- 3 prompt templates (added
remember_this) - 11 MCP tools + 3 resources + 3 prompts
- 3 contributors welcome: @faizmullaa (merged), @Adiiiipawar & @jaineel132 (claimed issues)
π¦ Install / update
# First-time install
curl -fsSL https://raw.githubusercontent.com/mienetic/mnema/main/scripts/install.sh | bash
# Update an existing install
mnema-updateFull changelog: https://github.com/mienetic/mnema/blob/main/CHANGELOG.md