@madgodinc1
Mad GodDeveloper▲5
ML Engineer, Mad God Inc
8m ago · Agents · Ust-Kamenogorsk

Mad God Inc: memory for AI agents, tooling and products on my own infrastructure

🧠 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
mgi-mind · long-term memory for AI agents

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.

How it works
Hybrid searchEach 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 modelA 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.
ProceduresError → fix pairs, so an agent finds the known fix when an error comes back.
LibrariesMemory split by project and topic; search one library or all of them.
Agent sessionsEach agent keeps its own session log, so context carries over between sessions.
Secret vaultEncrypted and terminal-only; agents cannot read it over MCP.
Fully localEmbeddings, search and reranking on your own hardware: no cloud, no API keys, no telemetry.
By the numbers
📦 30 releases (v0.13 → v2.10) · 320+ commits since June 2026
🧩 42,500+ memories · 34 libraries · 287 agent sessions in my own production brain

✅ Published on npm, the official MCP Registry and Glama (grade A)

One shared brain on my server that all my agents connect to, with nightly backups. Separate mgi-mind instances run inside other products: in CreepiDota it is the verified knowledge base behind match reviews.

npx -y mgi-mind mcp

🔗 github.com/madgodinc/mgi-mind

🛠 Agent tooling

mgi-pulse · a terminal log viewer and Toolong alternative
Opens a 2 GB log in 2.8 seconds. Its own query language, a watch mode with rules, Telegram alerts, and an MCP server so agents can read logs themselves.

🔗 github.com/madgodinc/mgi-pulse

Crescendo · agent orchestration
Hands out a task, verifies the result and deploys it.

🔗 github.com/madgodinc/crescendo

🎮 CreepiDota

A platform for Dota 2 players: Telegram bot, mini app and website. Teammate search, stats, and AI reviews of played matches.

  • 👥 About 20,000 users and growing
  • 🗄 Its own 2.4 GB match database (millions of rows of aggregated hero and item stats)
  • 📚 Game reference: 127 heroes · 734 abilities · 408 items
Facts-first match reviews. Code builds a numbered fact sheet about the match, and an mgi-mind knowledge base supplies verified hero and item data. The model must cite a specific fact for every claim, and a checker drops any sentence with a missing or wrong citation. Requests go through a custom LLM router with a queue, priorities and fallback models.

🔗 creepidota.com

📦 Other products
  • Hark · offline speech recognition: voice chat as subtitles over the game for deaf and hard-of-hearing players · madgodinc.net/hark
  • PlanHouse · 3D house planning with material estimates based on Russian building codes (SP and GOST)
  • RITM · a browser rhythm game that builds charts from your own music · github.com/madgodinc/mgi-game-ritm
💼 Client work
  • AI layer for a company on Bitrix24. Designed and prepared:

Bitrix24 → webhooks → orchestrator → LLM → answer validation The AI advises, the manager decides, every AI action is logged.

  • Agent platform for an AI provider. Slot dispatcher with a priority queue and preemption, a mobile control app, Claude / Codex / OpenCode integration, monitoring through mgi-pulse.
🤖 How I work with agents

Development runs through Claude Code and a team of agents that share memory in mgi-mind. Before any task an agent checks what has already been decided and which rules apply. Decisions and bugs found are recorded right away. Rules for design, writing, security and process live in separate libraries and load per task.

🖥 Infrastructure
2 servers · 256 GB RAM · 64 GB VRAM

In 2027 I plan to expand for large local models and build my own mini data center. The GPU choice will depend on the situation then: H100, A100 or the new RTX 50-series.

🤝 Open to collaboration and AI integration work

madgodinc.net · github.com/madgodinc

mcpai-agentsai-memoryopen-sourceself-hostedrust

Comments

No comments yet
Start the conversation.
Log in to join the thread.