← Back to Leaderboard
Mzilliztech

zilliztech/memsearch

Persistent agent memory with editable Markdown and a rebuildable Milvus index

Engineering Health (Methodology)
A+ · 93/100
Maintenance Activity
● Updated today
Latest Release
v0.4.27
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity20/20
CLIAPI
Total Stars
★ 2,991
24h Growth
+10
7d Growth
+35
Forks
301

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

zilliztech/memsearch Star History (2026-02-10 - 2026-12-04) ALL-TIME STAR HISTORY (2026-02 – 2026-12) +3k in 297d · avg +10/day 3.2k 1.6k 0 2026-02-10: ★ 12026-02-28: ★ 6302026-03-21: ★ 9252026-04-11: ★ 1,1492026-05-02: ★ 1,5352026-05-23: ★ 1,7752026-06-13: ★ 1,9392026-07-04: ★ 2,1522026-07-25: ★ 2,3482026-08-15: ★ 2,4502026-09-05: ★ 2,5482026-09-26: ★ 2,6432026-10-17: ★ 2,7432026-11-04: ★ 2,8122026-11-22: ★ 2,9202026-12-04: ★ 2,991 ★ 3k 2026-02 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

memsearch is a retrieval layer for agent memory, not the authoritative database for it. Markdown files hold the durable record. The Python core chunks those files, embeds the chunks and writes a derived Milvus index. PyMilvus connects to the backend, Milvus Lite provides the default local database, Click supports the CLI, and watchdog monitors file changes. The CLI and Python API expose indexing, search, expansion, watching and compaction.

Host-specific plugins sit above that core and handle tasks such as capturing completed turns and exposing recall inside an agent. Retrieval is progressive: find relevant chunks, expand the note for context, then consult the original transcript when supported and needed. This separation lets a custom agent reuse retrieval without adopting another host's capture hooks, but the capture policy and transcript integration remain the responsibility of the plugin or application.

Key Capabilities & Differentiators

Hybrid search combines dense-vector retrieval and sparse BM25 through reciprocal rank fusion. This gives both paraphrased questions and exact terms such as configuration keys a route into the result set. The Python API supports top_k and a source_prefix filter. SHA-256 content hashes let indexing skip unchanged content, while the file watcher handles ongoing edits. Jev is available as an additional remote reranking stage through the TypeSafe API.

Embeddings can run on CPU through ONNX bge-m3, use a local model through Ollama, or call OpenAI, the Python API default. Beyond daily journals, optional background tasks maintain PROJECT.md and USER.md when journal content has changed and the minimum interval has elapsed. Workflow distillation can produce Agent Skills candidates in .memsearch/skill-candidates/; those files can be reviewed and diffed before explicit installation. Automatic background distillation is off by default.

Trade-offs & Limitations

Compared with building directly on Milvus, memsearch supplies the Markdown ingestion pipeline and agent integrations, but its data model centers on journals and note chunks. Compared with plain Markdown and keyword search, it adds semantic recall and a path back to conversation context at the cost of embedding computation and index upkeep. Milvus is rebuildable, but recovery time still depends on corpus size and embedding throughput. A sensible backup plan prioritizes Markdown and separately preserves any original transcripts needed for deep recall.

A shared Milvus endpoint can centralize an index, but it does not by itself synchronize the authoritative Markdown or provide an agent-memory permissions model. source_prefix narrows retrieval; it is not an authorization boundary. Choose explicitly where journals, summaries and queries may go, especially if using hosted embeddings, a hosted index or remote reranking. If you enable skill distillation, review candidates before installation: those artifacts can become executable agent workflows rather than merely searchable notes.

Hardware & Deployment Guide

Run on Python 3.10 or newer; classifiers list Python 3.10–3.13, and the manifest specifies separate minimum PyMilvus and Milvus Lite versions for Windows. Install memsearch[onnx] for the CLI's CPU embedding path and plan for an approximately 558 MB bge-m3 download from Hugging Face Hub on first use. For a local trial, Milvus Lite defaults to ~/.memsearch/milvus.db. For a dedicated backend, set milvus_uri to a self-hosted Milvus Server, which can be deployed with Docker, or to Zilliz Cloud and supply milvus_token as needed.

Local embeddings and a local index do not by themselves make a plugin offline: initial model provisioning, session summaries and optional remote reranking have separate connectivity requirements. Validate the complete capture-to-recall loop with the chosen host, including what leaves the machine. The v0.4.25 release addressed interrupted maintenance locks and Windows launcher behavior; v0.4.26 fixed DSH summary timeout handling; v0.4.27 added an Antigravity plugin and replaced a retired native capture summary model. These releases illustrate why plugin compatibility and model availability should be tested on upgrades.

Storage: Markdown is authoritative; Milvus holds a derived index that can be rebuilt.
Retrieval: Dense vectors and BM25 sparse results are fused with reciprocal rank fusion (RRF); Jev is an optional remote reranking stage.
Recall: Search returns relevant chunks, expansion supplies surrounding note context, and transcript lookup traces entries back to the original conversation.
Index synchronization: SHA-256 content hashes skip unchanged content, and a file watcher supports automatic updates.
Local runtime: ONNX bge-m3 runs embeddings on CPU with an approximately 558 MB first-run model download; Milvus Lite uses a local database file.
Memory maintenance: PROJECT.md and USER.md refreshes and automatic skill distillation are opt-in; skill candidates remain inactive until installed.
Best For

Developers and teams that switch between supported coding agents, or build their own, and want editable long-term journals with semantic and keyword recall.

Skip If

You need a turnkey multi-tenant memory service with centralized authorization and auditing, require end-to-end offline operation without validating plugin dependencies, or only need exact keyword lookup.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIAPI
uv tool install --upgrade "memsearch[onnx]"
agy plugin install https://github.com/zilliztech/memsearch/tree/main/plugins/antigravity

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
memsearch ★3k+35PythonMITPersistent agent memory with editable Markdown and a rebuildable Milvus index
EverOS14k+41PythonApache-2.0Local Markdown and indexes give AI agents portable long-term memory
OpenViking43.2k+255PythonAGPL-3.0A directory-scoped RAG database for inspectable agent knowledge and memory
Memori17.9k+337Python—An SDK-based agent memory layer for persistent state across sessions.

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/zilliztech/memsearch.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

zilliztech/memsearch Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about memsearch

How do I integrate memsearch into a custom agent without a plugin?

Use the async MemSearch API with paths pointing to your Markdown directories. Call index() to build the searchable index and search(..., top_k=..., source_prefix=...) to retrieve relevant chunks within an optional source scope. Capture and transcript expansion are separate integration concerns; the API shown is a Python library interface, not an HTTP service.

Does local indexing require a GPU, and how should I size the host?

The ONNX bge-m3 path runs on CPU and does not require a GPU for embeddings. Its approximately 558 MB first-run download is the model artifact size, not a RAM or VRAM estimate. Size disk for the model, Markdown corpus and Milvus index; test CPU, RAM and indexing throughput against your own corpus and concurrency. OpenAI embeddings move model computation off-host but require network access and credentials.

Can I use memsearch commercially and keep the deployment self-hosted?

The MIT license permits commercial use and self-hosting, subject to preserving the required notices when distributing copies or substantial portions. That does not determine the terms of a hosted backend or model provider. For sensitive deployments, review what each plugin captures, which services receive data, and how your team controls access and retention for journals, transcripts and indexes.

When is memsearch a better fit than direct Milvus integration or plain Markdown search?

Choose memsearch when agent capture, editable journals and the path from a search hit back to its original context are part of the requirement. Build directly on Milvus if you already own ingestion, retrieval and access control and want to define the entire data model yourself. Use plain Markdown and keyword search if exact lookup is enough and you can forgo semantic recall, embeddings and vector index maintenance.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining zilliztech/memsearch? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature zilliztech/memsearch on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare