Grain Studios
Cortex
Self-healing memory platform with autonomous graph construction
Project Details
Challenge
AI systems needed persistent, self-healing memory that operates without cloud dependencies — running 24/7 on local hardware with zero downtime.
Approach
Built a three-tier resilience architecture: process auto-restart, application-level graceful degradation, and infrastructure warm standby. Memory graph auto-generates relationship edges using local LLMs.
Outcome
Production system running continuously on Apple Silicon. 2,400+ memories with 12,000+ auto-generated edges. Sub-3ms query latency. Zero cloud dependencies.
Metrics
2,400+
Memories
Persistent knowledge nodes
12K+
Edges
Auto-generated relationships
<3ms
Latency
Query response time
Tech Stack
PythonPostgreSQLChromaDBRedisOllamaLangGraph