Mad God Inc: memory for AI agents, tooling and products on my own infrastructure
AI engineer from Kazakhstan · 5+ years in industrial automation
I build AI infrastructure that runs on my own servers, and products on top of it.Rust·Go·TypeScript·Python
The core project. A local memory server that lets AI agents store and retrieve knowledge across sessions. One Rust binary, a Qdrant vector database, ONNX models. Connects over MCP to Claude Code, Codex, Cursor or any MCP client.
| Hybrid search | Each memory is stored as two vectors: dense (multilingual-e5-base) for meaning, sparse BM25-style for exact terms. Merged with Reciprocal Rank Fusion, re-scored by a bge-reranker cross-encoder. |
| Validity model | A fact graph with a duel rule: when a new fact contradicts an old one, they are resolved instead of piling up. An entrenched fact holds, a strong new one replaces it, a borderline one goes to quarantine. Nothing is deleted; everything stays in a hash-chained audit log. |…