Persistent memory for AI agents. Every session starts where the last one ended.
Every session starts from zero. You re-explain your architecture, your decisions, your preferences — over and over. Context windows compress. Conversations end. Knowledge disappears.
neo-cortex gives your AI agent a real memory — semantic search across hundreds of past conversations, automatic knowledge extraction, and intelligent consolidation.
Stop hook saves conversation turns to local DB
Gemini extracts atomic facts — one fact, one memory
Jina AI encodes as 1024-dim vectors
ChromaDB + SQLite FTS5 + concept graph
Idle consolidation — merge similar, decay noise
Vector similarity + full-text search fused with Reciprocal Rank Fusion. Never miss relevant context.
Memories gain energy when recalled, decay when forgotten. Ebbinghaus curve with execution-day tracking.
SimHash (64-bit, Hamming ≤ 3) prevents storing the same fact twice, even across sessions.
NetworkX knowledge graph with spreading activation. Interactive 3D visualization in the web dashboard.
The agent reflects on its own work patterns. Mature insights can graduate to identity amendments.
7-category filter prevents junk — test output, file listings, micro-fixes never pollute your memory.
| Tool | Description |
|---|---|
memory_query | Semantic search — "what did we decide about auth?" |
memory_search | Filter by project, activity type, or text |
memory_timeline | Recent memories in chronological order |
memory_stats | Total memories, sessions, energy levels, version |
memory_get | Full details of specific memories by ID |
memory_ingest | Manually store a conversation turn |
memory_dream | Consolidation — boost strong, decay noise |
memory_spontaneous | Rediscover forgotten high-energy memories (7+ days stale) |
memory_rebuild | Wipe and rebuild from conversation log |
memory_identity_review | Self-reflection — propose identity insights with evidence |
memory_dashboard | Web UI — browse memories + 3D concept graph |
Both services offer generous free tiers for development.
Add this file to your project root:
Auto-bootstraps on first launch. Restart once to activate hooks.
Teach Claude when to use its memory:
This prompt works with Claude Code (Anthropic CLI). Paste it at the start of a new session.
All memories are stored locally in SQLite files inside your project. No telemetry. No cloud storage. No accounts. The only external calls are to Jina AI (embeddings) and Gemini (distillation) — both with free tiers and transparent API usage.
Runtime for neo-cortex
For the uvx command
CLI with MCP support
Jina AI + Google Gemini