Feature: Mimir as persistent cross-session memory backend (MCP-native, single binary, encrypted)
Feature request: Mimir as a persistent memory backend for AutoGen agents
Problem
AutoGen's multi-agent conversations are powerful, but they lack durable cross-session memory. Agent chat history, learned context, and long-term knowledge disappear when the process exits. Teams running production AutoGen deployments need a memory layer that survives restarts.
Proposed solution
Integrate Mimir as a memory backend — a single Rust binary with 29 MCP tools, AES-256 encryption, hybrid search, and zero infrastructure requirements.
Mimir is an MIT-licensed, MCP-native persistent memory engine for AI agents. Single Rust binary (~8MB), zero runtime dependencies.
Key features:
- 29 MCP tools — full memory lifecycle: remember, recall (FTS5), search (semantic), forget, decay, embed, cohere, vault export/import, journal, timeline
- Hybrid search — BM25 (FTS5) + dense embeddings + Reciprocal Rank Fusion
- AES-256-GCM encryption at rest
- Confidence decay — Ebbinghaus-based, auto-archives stale memories
- Web dashboard for browsing/editing memories
- Single binary — no Docker, Postgres, or cloud required
- MIT licensed — no restrictions
Integration approach (MCP-native)
# AutoGen agent with Mimir memory via MCP tools
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def get_mimir_tools():
server_params = StdioServerParameters(command="mimir", args=["--db", "agent_memory.db"])
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools() # Returns all 29 Mimir tools
return [MCPToolAdapter(t) for t in tools.tools]
assistant = AssistantAgent(
"assistant",
tools=await get_mimir_tools(),
system_message="Use mimir_remember to save important facts. Use mimir_recall to retrieve context."
)
Status
- Repo: Perseus-Computing-LLC/mimir
- Existing integrations: CrewAI (community PR open), LangGraph (issue filed), Google ADK, OpenClaw/ClawHub
- License: MIT
Would a PR or documentation showing the Mimir + AutoGen integration pattern be welcome?
Thanks for this proposal — cross-session memory is a real gap for production agents, and the single-binary design is clean.
One dimension worth considering alongside the storage layer is memory provenance. When multiple agents share a persistent memory store, the question becomes: who wrote this, and can I trust it? A memory poisoning attack on shared storage is hard to detect without cryptographic attribution.
We've been running this pattern in production with SunfishLoop (20+ agents across CrewAI/AutoGen/LangGraph) — every memory write is wallet-signed using the agent's existing ETH/SOL/BTC keypair (discoverable via /llms.txt). This means any agent can independently verify who wrote what without trusting the memory server. The wallet key serves double duty as both identity and attestation anchor — no separate PKI or key provisioning needed.
Mimir could expose a simple hook for per-write signing that lets callers attach a wallet-signed receipt to stored entries. That way the backend stays storage-focused but consumers get verifiable provenance for free.
For AutoGen, the memory backend question probably needs one extra layer: multi-agent memory scope.
A persistent memory engine is useful, but agents in a group should not all read/write one undifferentiated pool. I’d expect scopes like:
agent_private_memory
team_memory
project_memory
user_memory
And each recalled item should preserve whether it is:
observation | inference | verified_fact | decision | directive
That matters because in multi-agent conversations, recalled memory can easily become de facto instruction. A memory backend should help AutoGen distinguish prior context from authority.
A useful integration contract could be:
store candidate memory -> review/promote -> recall with scope + provenance -> render into prompt
rather than “agent saw it once, so all future agents should treat it as true.”
I’ve been exploring this from a Personal/Enterprise AI OS angle: persistent memory is most useful when paired with scope, provenance, lifecycle, and write authority.
Refs:
- https://github.com/hegu-1/personal-memory-vault-starter
- https://github.com/hegu-1/personal-ai-os
Agentic systems are turning into always-on factories: one request fans out into model calls, tool calls, policy checks, and storage.
The hard part is rarely tokens/sec — it is control-plane reliability:
- Fan-out control — hard cap on tools/steps per request before external writes
- Durable id + idempotency — one write per business object (ledger / preflight)
- Observable long jobs — progress + cooperative cancel on multi-minute runs
- Expected vs actual — durable artifact id before marking success
- Policy before action — gate that can refuse known-bad side effects
If you share one sanitized failing run (expected vs actual + tool result), I can map which pillar is broken. Architecture only.
Closing this, since the project has been discontinued. Thanks for your time.