memsearch
Semantic memory search for markdown knowledge bases
Decision gist · record as of 2026-08-14
Yes, if you use one of the supported agent platforms (Claude Code, OpenClaw, Codex CLI, OpenCode) and want persistent, searchable conversation memory with zero configuration. The plugin model is genuinely zero-setup for end users. If you're building a custom agent, the Python API and CLI are available but would benefit from clearer stability guarantees. No known security vulnerabilities and active maintenance make it safe to adopt.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python ≥3.10.
- First-time embedding setup downloads ~558 MB ONNX model from HuggingFace Hub unless configured otherwise.
- Low friction: pure Python wheel with nine runtime dependencies including click, milvus-lite, and openai.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.
last release 2026-07-31 (14 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 83,002 downloads/mo, #14,107 on PyPI
Alternatives
Verify before relying
pip install memsearch
from memsearch import MemSearch
mem = MemSearch()
mem.add_memory("project.md", "content here")
results = mem.search("what did we discuss about caching?")- Whether the Python API is fully documented and stable for direct programmatic use outside plugin contexts.
- Performance characteristics when memory grows to thousands of markdown files or millions of indexed tokens.
- Whether background sync and skill distillation features are production-ready or still experimental.
What it is and what it does
Memsearch is a semantic memory layer for AI coding agents that indexes markdown files as a searchable knowledge base. It sits between agent platforms (Claude Code, OpenClaw, Codex CLI, OpenCode) and a vector database (Milvus Lite by default, or Zilliz Cloud), capturing conversation turns automatically and making them retrievable through natural language queries. Memories are stored as human-readable markdown files in `.memsearch/memory/`, with Milvus serving as a derived, rebuildable search index.
The package provides both plugin integrations (zero-config for end users) and a full Python API and CLI for developers building custom agents. It uses hybrid search combining dense vector embeddings (via ONNX, OpenAI, or Ollama), BM25 sparse retrieval, and reciprocal rank fusion reranking. A file watcher auto-indexes new or changed files in real time, and optional background tasks keep project and user notes current across sessions.
Use it for
- Persistent context across multiple agent conversations: capture decisions and code patterns once, recall them automatically in future sessions.
- Team memory for multi-agent workflows: shared markdown knowledge base indexed and searchable by all agents in an OpenClaw or self-hosted setup.
- Distilling repeated workflows into reusable agent skills: extract procedural patterns from conversation history and package them as installable skills.
- Local-first semantic search without API costs: use the default ONNX embedding provider to index and search markdown without sending data to external services.
- Version-controlled knowledge management: store all memories as plain markdown, enabling git-based collaboration and audit trails.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use one of the supported agent platforms (Claude Code, OpenClaw, Codex CLI, OpenCode) and want persistent, searchable conversation memory with zero configuration.
The plugin model is genuinely zero-setup for end users. If you're building a custom agent, the Python API and CLI are available but would benefit from clearer stability guarantees. No known security vulnerabilities and active maintenance make it safe to adopt.
Install
memsearch on PyPI
Before you install
Low friction: pure Python wheel with nine runtime dependencies including click, milvus-lite, and openai. Active maintenance with a release 14 days ago. Supports Python 3.10–3.13.
Requires Python ≥3.10. First-time embedding setup downloads ~558 MB ONNX model from HuggingFace Hub unless configured otherwise.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.
Quickstart
pip install memsearch
from memsearch import MemSearch
mem = MemSearch()
mem.add_memory("project.md", "content here")
results = mem.search("what did we discuss about caching?")
Verify before relying
- Whether the Python API is fully documented and stable for direct programmatic use outside plugin contexts.
- Performance characteristics when memory grows to thousands of markdown files or millions of indexed tokens.
- Whether background sync and skill distillation features are production-ready or still experimental.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesclickmilvus-liteopenaipathspecpymilvussetuptoolstomli-wtomliwatchdog |
| Maintenance | Actively maintained 14 days since the last release |
| First released | |
| Downloads | 83,002 / month, #14,107 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13 |
Evidence: memsearch-0.4.17-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “conversation history recall”
- memsearchMemsearch builds a searchable semantic memory index from markdown…
- memoriMemori is a Python SDK that automatically captures and recalls…
- zep-cloudZep Cloud SDK provides a client library for integrating Zep's context…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also mem0ai · memori · openviking · reme-ai · gptcache · agent-framework-mem0 · agent-framework-azure-ai · langmem · stashai · zep-cloud