Every plain vector memory server for coding agents has the same failure mode: if your agent saves a bad workaround once, the server keeps retrieving it with high cosine similarity forever.
I'm a student developer building Memoire (MIT), a local MCP memory server written in Rust + bundled SQLite using local all-MiniLM-L6-v2 ONNX embeddings (fastembed). Instead of treating every note as permanent truth, each memory starts in trial with a hand-set Beta trust score (2+s)/(4+s+f) plus time decay, and moves between live (trial/active) and hidden (probationary/quarantined) states as you reinforce or penalize it.
Shipping it over the last couple of weeks taught me more from things breaking than from writing the engine itself.
1. My own pre-registered benchmark didn't pass
Before promoting anything, I ran a pre-registered held-out eval (methodology) on Gemini 3.1 Flash Lite across 32 tasks per condition. The feedback-aware setup (11/32) did not beat plain vector retrieval (13/32, diff -0.0625, exact two-sided p = 0.7500, gate_not_passed).
That neither proves Memoire helps nor proves it cannot help (at n=32, you don't even have power to detect a 15-point jump), so I made zero accuracy claims and shipped v0.1.0 strictly as an alpha to get real developer friction first.
2. Everything I immediately broke in v0.1.0
The first clean uvx memoire-mcp==0.1.0 test exposed two ugly day-one traps:
-
memoire_healthreturnedreadyin 14 ms, then the very firstremember/recallcall downloaded ~87 MiB from Hugging Face synchronously into./.fastembed_cache(hitting 30–60s client tool timeouts). - Worse, I had accidentally named the GitHub repo
Memorie-AIinstead ofmemoire-ai, which collided with unrelated apps and mismatched all the package names.
In v0.1.1, I renamed the repo, added memoire-mcp --warmup (running a real remember + recall probe on an :memory: store, because prototype init on construction silently swallows embedding errors), and moved feedback dedup into an explicit SQLite feedback_events table (v4).
That feedback table also forced an interesting MCP trade-off: keying reinforcement on a per-process SESSION_ID stops an agent from voting +1 ten times in one run, even across interleaved sessions (s1 -> s2 -> s1). Keying penalties on that same process ID, though, would block a long-lived Cursor window from ever hitting 2 failures (2f > 3s+2) to quarantine a bad note. So penalties collapse duplicate IDs inside one call and only dedupe across retries when the caller passes a per-outcome event_id.
3. What real auditing and user feedback caught right after 0.1.1
Running a full audit on main (in v0.1.2) turned up two embarrassing runtime bugs:
-
workspaceFolderswas silently dead outside unit tests. My tests passed attribute objects, while real MCP clients sendworkspaceFoldersas plain dicts, so workspace-scoped.memoire_pathresolution wasn't firing. -
Async tools without GIL release still froze the server. All 16 MCP tools were synchronous
deffunctions running straight onFastMCP's asyncio loop, and PyO3 held the Python GIL during model downloads and SQLite I/O. Offloading toanyio.to_thread.run_sync+py.allow_threadsin Rust droppedcall_toolevent-loop lag from929 msto11 msin our A/B test.
And someone on the Cursor Forum pointed out a deeper flaw in the math: if a workaround gets reinforced 20 times (s=20) before a library upgrade breaks it, dropping below 0.40 takes 32 penalties. Fixing that cleanly with an explicit outdated reason / supersession pointer (and a smaller targeted poisoned-note retrieval eval) is next on the v0.2.0 list.
Try v0.1.2 locally
Prebuilt memoire-engine wheels currently cover Linux x86_64, macOS arm64, and Windows x86_64 (no memoire-engine PyPI sdist yet; memoire-mcp ships wheel + sdist). Embeddings run locally via ONNX Runtime after the one-time ~87 MiB download, and unreinforced notes default to MEMOIRE_TRIAL_CAP=1.
# macOS / Linux (PowerShell: $env:FASTEMBED_CACHE_DIR="$env:USERPROFILE\.memoire\fastembed_cache"; uvx memoire-mcp --warmup)
FASTEMBED_CACHE_DIR="$HOME/.memoire/fastembed_cache" uvx memoire-mcp --warmup
{
"mcpServers": {
"memoire": {
"command": "uvx",
"args": ["memoire-mcp"],
"env": {
"FASTEMBED_CACHE_DIR": "/absolute/path/to/.memoire/fastembed_cache"
}
}
}
}
If you test it in Claude Code, Cursor, or Claude Desktop, let me know where setup or tool selection breaks: https://github.com/tazwaryayyyy/memoire-ai
Top comments (0)