This is an early release preview. You may encounter bugs.
Graph Memory logo
Unclaimed

Tool memory coding

Graph Memory

Builds a typed knowledge graph from agent conversations for compressed context and cross-session recall

B 76/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About Graph Memory.

Graph Memory is a memory plugin for the DeepSeek Harness, with a maintained adapter for OpenClaw. It takes over the model-visible history of an agent conversation without deleting the host's event log: by default it keeps the newest five completed user turns, strips completed reasoning and tool traces from future requests, and automatically recalls relevant older or cross-session question-and-answer pairs when they matter.

The graph is a navigation layer, not a replacement for evidence. Each completed turn is written as one self-contained summary, from which subject-predicate-object triples are derived, and the summaries, triples, and detected communities only help locate memories: the original question and final answer remain the stored evidence that travels with any graph hit. Writing one turn costs a single auxiliary model call, while community detection and ranking run locally. Recall uses vector top-k search with a full-text fallback, and invalid extractions are quarantined rather than repaired.

Memory is durable in local SQLite with stable provenance and cross-session, cross-project recall. A reported 20-turn run on GLM-5.2 cut the first-request context at turn 20 from about 57,000 tokens to about 11,000, roughly an 80 percent reduction. Embeddings are optional through OpenAI-compatible endpoints, and without them it falls back to full-text search without blocking the conversation.

  • Context takeover: keeps a configurable number of newest completed turns and replaces the older model surface with one archive marker
  • Lightweight extraction: ingests only the user question and final answer under a strict structured contract, not reasoning or tool transcripts
  • Query-first recall: vector top-k with a full-text fallback, carrying the exact source question and answer with each graph hit
  • Navigation graph: turn summaries, subject-predicate-object triples, and communities locate memories while originals stay the evidence
  • Durable store: local SQLite with stable provenance and cross-session, cross-project recall
  • Safe failures: invalid extraction is quarantined and the conversation continues, with no repair of bad data
  • Host support: a native DeepSeek Harness adapter and a maintained OpenClaw Context Engine adapter
  • Agent tools: status, search, deterministic record, stats, maintenance, and extraction-retry tools, with automatic recall needing no tool call
  • Optional embeddings: OpenAI-compatible embedding endpoints, with a full-text fallback when absent

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with Graph Memory.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get Graph Memory →

Browse the catalog