Epicode
An open-source spatial AI memory system that stores agent memories as tetrahedrons in 3D space, builds a knowledge graph from them, and serves persistent cross-session memory to AI agents over MCP.
Epicode stores memories in continuous 3D space and automatically extracts relationships between them into a knowledge graph, giving AI agents persistent memory across sessions. Search combines BM25 keyword matching with HNSW vector search, and memories carry validity windows and a freshness-decay score for time-aware recall.
It exposes 35 tools over MCP for any MCP-compatible agent, uses a structured memory response format with topology and placement metadata, and supports multi-tenant cloud use with quotas and invite codes. A self-hosted defense component watches SSH, web and honeypot traffic and bans attackers automatically, and call-detail statistics are exposed on a stats endpoint.
The backend is written in Rust with Axum, Tokio, SQLite and ONNX Runtime for embeddings; the frontend is React, TypeScript and Vite. It runs locally with Docker Compose.