Building Agentis Memory for Shared AI Agent Knowledge

I tried to fork Redis and embed ONNX Runtime in C. After a week of segfaults, I asked myself: why am I torturing myself with C when I've been writing Java for 12+ years? So I built my own Redis from scratch. Here's the backstory: We were building a multi-agent system for production incident investigation. 6 AI agents running in parallel — logs, metrics, PagerDuty, Confluence, Slack, history — each digging through its own data source. The problem? They had no shared memory. LogsInvestigator found OOMKilled — that's the root cause. But MetricsInvestigator didn't know. It was building its own theory about CPU spikes. The Synthesizer got 3 competing hypotheses, 2 of which were garbage. I looked at what's available: → Mem0: REST API + external embeddings + Docker + custom SDK → Zep: REST API + Postgres + external embeddings + custom SDK → Redis Stack: RESP protocol, but embeddings still external Every solution required network calls for embeddings. Three hops to save one fact. For working memory — that's unacceptable. So I built Agentis Memory: ✦ Speaks Redis protocol (RESP) — any Redis client works out of the box ✦ Embeddings computed locally via ONNX Runtime (all-MiniLM-L6-v2) ✦ Single binary ~150MB, zero dependencies ✦ No API keys, no REST, no custom SDKs Two commands that change everything: • MEMSAVE key "text" → chunks, embeds, indexes automatically • MEMQUERY namespace "query" 5 → semantic search in milliseconds The fun part about performance: First version on plain JVM → 2x slower than Redis 😅 After GraalVM native-image + SIMD via Java Vector API → 1.36x FASTER than Redis 168K ops/sec vs Redis's 123K. At pipeline depth 100 → 3.19M ops/sec. And yes — I benchmarked it against Redis 7.4, Dragonfly, and Lux. Honest numbers, no cherry-picking. Now Claude Desktop, Claude Code, Codex, and Junie all share memory through Agentis Memory. Agents understand context faster, make fewer mistakes, don't duplicate work. The project is open source (Apache-2.0). Detailed write-up with benchmarks and architecture: https://lnkd.in/diREt3cs GitHub: https://lnkd.in/dAEgsuJn

To view or add a comment, sign in

Explore content categories