Deploy Now

SaaS Alternative

Mem0 Zep Supermemory

Stars

490

Forks

42

Watchers

3

Developer links

GrayMatter

GrayMatter gives AI agents a persistent memory that survives between sessions, so every new run starts from stored facts instead of a blank slate. Agents save facts once and recall them by meaning, receiving the top eight relevant entries instead of a full history replay. A consolidation cycle extracts typed entities (people, organizations, and projects) and links co-mentioned items into a knowledge graph that grows from ordinary use. Every recall can return receipts showing the per-signal ranks, fused score, and provenance behind each fact, so you can audit why the agent remembered something. Deterministic decay gives facts a 30-day half-life and retires stale entries to tombstones, keeping the store current without manual cleanup. Claude Code hooks inject routine recall on every turn, and the context-sync command projects top facts into CLAUDE.md or AGENTS.md inside a set token budget. Agents curate their own memory through the memory_reflect tool, adding, updating, forgetting, and linking facts during a session. The workbench opens six views (Memory, Recall, Activity, Graph, Usage, and Status) for browsing namespaces, inspecting ranking receipts, and tracking subscription limits or API spend. Connect Claude Code, Cursor, Codex, OpenCode, Antigravity, or any MCP-compatible client over stdio, or call the REST API server on port 8080 from your own tooling. Export the graph to Obsidian with one command, turning entities into notes and edges into links. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

GrayMatter
GrayMatter
GrayMatter

Benefits

  • Memory That Survives Every Session
  • Facts persist in a local store across agent runs, so a coding assistant resumes with project context intact instead of re-reading full histories and burning your token quota on repetition.
  • Ninety Percent Fewer Context Tokens
  • Recall returns the top eight relevant facts in place of full-history injection, and the project reports about 90 percent lower context token use at equal answer quality.
  • Receipts For Every Recall Decision
  • The explain mode returns per-signal ranks, fused scores, and provenance for each recalled fact, giving you an audit trail for agent memory instead of opaque retrieval guesses.
  • One Binary, Zero External Services
  • A single static binary of about 10 MB runs the store, daemon, and servers, so deployment needs no Docker containers, Redis instances, database servers, config files, or cloud accounts.

Features

  • Persistent Fact Store
  • Facts live in a local store and survive restarts, recalled by meaning through semantic ranking that surfaces the top eight entries for each new agent prompt.
  • Knowledge Graph Extraction
  • Consolidation cycles extract typed entities and co-mention edges automatically, and every edge carries the fact IDs that produced it for full provenance.
  • REST API Server
  • The server command exposes memory over a REST API on port 8080, complementing the MCP stdio transport that MCP-compatible clients connect to directly.
  • Terminal Memory Workbench
  • The tui command opens six views covering Memory, Recall, Activity, Graph, Usage, and Status, with namespace browsing, filters, and a command palette.
  • Obsidian Graph Export
  • One export command converts entities into Obsidian notes and edges into links, producing a navigable vault from the automatically built knowledge graph.
  • Deterministic Memory Decay
  • Facts fade on a 30-day half-life when nothing touches them, retiring to tombstones instead of hard deletes, so stale context ages out predictably.

Apps Similar to GrayMatter