Hicortex is a shared memory system for AI agent clusters, letting multiple agents, projects, and machines share the same memory, reducing repeated explanations and assumptions.
Purpose: to provide a persistent, self-correcting memory layer for coding agents, capturing the decisions, corrections, and context from a session so the entire agent cluster can reuse them.
Key capabilities:
- Push-based recall: in supported coding agents, every prompt injects a compact recall index, so agents see relevant memories without actively retrieving them; queries involve zero LLM calls, incurring no API costs or rate-limit impact.
- Nightly consolidation: each night it reads the day's sessions, distills key points, and generates Learnings, associations, and a knowledge graph.
- Self-correction: outdated facts are rewritten in place by date and source, near-duplicates are merged into one, and superseded decisions are demoted so they no longer surface.
- Memory reinforcement and decay: used memories strengthen, unused ones decay, and associations are created automatically.
- Hybrid retrieval: BM25 plus vector search, with no LLM calls at query time.
- Local-first: raw sessions never leave the machine; only distilled memories are stored.
- Dashboard and graph: /dashboard shows growth, recall adoption, and nightly summaries; /viz shows the knowledge graph clustered by domain.
- Nine MCP tools: hicortex_search, hicortex_get, hicortex_recent, hicortex_ingest, hicortex_lessons, hicortex_index, hicortex_graph, hicortex_update, hicortex_delete, plus a /learn skill for saving explicit lessons.
Usage: init automatically detects the environment, configures an LLM (Ollama, Claude CLI, or an API key), installs a local daemon (launchd on macOS, systemd on Linux), and registers the MCP tools with Claude Code. Multi-machine deployments can point thin clients at a shared server, with clients needing no local database or LLM. init also automatically installs the Pi extension, OpenCode plugin, Hermes plugin, and OpenClaw plugin. The first nightly run by default captures only the last 7 days of sessions; use hicortex nightly --recapture-window <days> to import more.
Tech stack:TypeScript, Node.js 20+, SQLite + sqlite-vec + FTS5, ONNX embeddings (bge-small-en, CPU), MCP over HTTP/SSE.
Limitations and licensing: free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0; commercial use requires a per-seat license. The AGENTS.md at the repository root defines a machine-verifiable validation contract, and contributors must run the full command chain before declaring completion.