Back

Kindex: shared memory for every agent

A

Alex Ungureanu

Wander8 min read

Memories on ruled rows drifting into the past; questions from four agents route traces from the memories they find to the agent that asked.

Every coding agent remembers for itself, and none of them can read the others. Kindex is the shared memory underneath them: one local knowledge graph that Claude Code, Codex, Gemini CLI, Google Antigravity, OpenCode, Cursor and any other MCP client read and write. It carries decisions, constraints, conversations and code structure across sessions, restarts and vendors, and it coordinates agents that work at the same time.

Kindex F26 is the version we benchmarked; its default answering path shipped in Kindex 0.49.0. Answering through kin ask, its question-answering path, Kindex scores 95.13% on LoCoMo1 and 97.80% on LongMemEval-S,2 above the published scores of the memory systems we compared, while every answer reads under an estimated 20k input tokens: 49% and 88% fewer than the full history. On BEAM, where conversations run to 10 million tokens,3 it scores 80.69% at 1M with default ask settings and 90.61% with the dataset's annotations, the protocol behind past.dev's 90.65%.4 Kindex is available under the Business Source License 1.1 and installs as a plugin or a CLI.

One graph, every agent

Kindex is not a transcript archive with search. It is a weighted graph with typed nodes, provenance and decay, and it decides how much of that graph each agent should see.

  • Continuity. Session-start, pre-compaction and stop hooks prime each agent with the context it needs, at one of five tiers from about 100 to 4,000 tokens, chosen by the budget left in its window.
  • A typed graph. Concepts, decisions, people, projects, sessions, documents, questions, artifacts and skills are nodes. Edges carry a type, a weight and their provenance, and decay over time.
  • Guardrails. Constraints are surfaced to the agent before a push, directives encode standing preferences, watches flag what needs attention and checkpoints run pre-flight.
  • Coordination. Agents working at once join a collab, attach the resources they hold, take advisory locks that edits respect, and post targeted or standing messages that appear in each other's context.
  • Code intelligence. ctags, cscope and tree-sitter put modules, symbols, imports and call graphs in the same graph as the decisions about them.
  • Memory of conversations. The text of every message is stored in full, with its speaker and role, and digested into dated facts, summaries and per-person profiles; kin ask answers from them.
  • Scope. .kin files let a service inherit its context from a platform team and an organisation. Nodes are private, team, org or public; public and org exports strip credentials, email addresses and activity actors.

Architecture

Kindex architecture: agents reach Kindex through its interface; conversations, code and documents are ingested into one SQLite store of typed nodes, weighted edges, an FTS5 index and embeddings; a digest and dream pass writes dated facts, summaries, profiles, directives and claims back; reads go through hybrid retrieval to context tiers or to kin ask, and context and answers return through the interface; locks, collabs and reminders coordinate agents
One store, many agents. Reads are sized to the reader's budget.

Everything lives in one SQLite database per profile, one per user by default. Nodes and edges are rows; an FTS5 index stays in sync through triggers; embeddings come from a configurable provider (Voyage, OpenAI, Gemini or a local model). Retrieval runs BM25 over FTS5, a breadth-first walk of the graph from the text hits, and vector search, then merges them by a weighted ensemble or reciprocal rank fusion.5 A tier formatter cuts the result to the reader's budget.

kin ask adds an answer on top of retrieval:

kin ask in six steps: question with optional hints, classify, search, fuse by rank, assemble dated evidence within a budget, one answer call; a draft that declines gets a second reading of whole excerpts; the agent receives the answer or the evidence
kin ask. The answer model reads one budgeted, dated context.

The answer model sees dated, chronologically ordered evidence trimmed to the messages that bear on the question, with relative dates already resolved by the digest. The whole answer, planner and reread included, stays under 20k estimated input tokens: 2.14 model calls per question on LoCoMo, 1.25 on LongMemEval-S and 1.09 on BEAM-1M.

Long-term memory

BenchmarkKindexpast.devExabase M-1HindsightMem0SupermemoryZep
Conversational memoryLoCoMo1,540 questions95.13%93.12%—92.0%92.5%—94.7%
Chat-assistant memoryLongMemEval-S500 questions97.80%—96.4%94.6%94.4%97.0%90.2%
Long-history memoryBEAM-1M700 questions80.69%without annotations——73.9%without annotations64.1%without annotations——
90.61%with annotations90.65%with annotations75.0%with annotations————
Published scores, each from the system's own report; answer models, judges and settings differ. The best score in each line sits in the blue box. Kindex uses default ask settings with gpt-6-luna as the answer model, except BEAM-1M with the annotations. LoCoMo excludes category 5 (adversarial). BEAM scores are rubric partial credit (0, 0.5 or 1 per item; event ordering by Kendall tau-b), not percent correct.

Sources: past.dev,4 Exabase,67 Hindsight,8 Mem0,9 Supermemory10 and Zep.11 "With annotations" means the answer prompt includes the dataset's annotations for the question. Supermemory's 97.0% is its LongMemEval-S accuracy with gpt-4o answering and judging (85.2% with Gemini 3 Pro).

Input saved against reading the full history. bar chart of Input tokens saved in % by Benchmark, 3 data points.0%25%50%75%100%LoCoMoLongMemEval-SBEAM-1MBenchmarkInput tokens saved48.7%88%97.8%
Input saved against reading the full history
BenchmarkInput tokens saved (%)
LoCoMo48.7
LongMemEval-S88
BEAM-1M97.8
Input saved against reading the full history (%) — Mean estimated input per question, all model calls together: Kindex against gpt-6-luna reading the whole history (11.5k vs 22.5k tokens on LoCoMo, 14.9k vs 124.1k on LongMemEval-S, 16.9k vs 737.9k on BEAM-1M). Accuracy rose at the same time: +4.3 points, +5.0 and +19.0 on the BEAM-1M sample both could answer.

The gains came with the same answer model, not a larger one, though not at identical settings: the full-history baseline answered in one call at reasoning effort high, while Kindex routes LoCoMo and BEAM-1M answers to xhigh and may add a planner call or a second reading. The first kin ask answered from the top 5 to 12 search hits, about 0.7k tokens, without the question's date; it scored 21.23 on LoCoMo. Four changes carried it to F25: dated evidence of the right size, facts written at ingest, the question's date with window search, and settings routed by the shape of the memory (dialogue between named people versus user–assistant transcripts).

Long histories: BEAM

BEAM ships each question with annotations: the topics an ordering question tests, the dates and arithmetic behind a temporal question, the rubric points a summary should cover, the preference under test, and why an abstention question cannot be answered. Exabase's published answer prompt adds them to the question, and past.dev uses that prompt.64 The F26 benchmark build (tag benchmark-f26) lets a caller pass guidance with a question: answer_question(hints=..., hint_queries=...), with ask.hint_mode: lead_both placing the hints before and after the evidence. That interface exists only in the benchmark build and was not released; LoCoMo and LongMemEval-S do not use it (95.13 and 97.80 on F26).

BEAM-1M against published systems. bar chart of Without the annotations, With the dataset's annotations* by System, 5 data points.0255075100Kindexpast.dev*Exabase M-1*HindsightMem0SystemScore80.6990.6190.657573.964.1
BEAM-1M against published systems
SystemWithout the annotationsWith the dataset's annotations*
Kindex80.79.92
past.dev*090.7
Exabase M-1*075
Hindsight73.90
Mem064.10
BEAM-1M against published systems — Kindex's bar is 80.69 with default settings, plus the gain from the dataset's annotations to 90.61. * The published answer prompt includes the annotations. Judges differ by system.

With the annotations Kindex is within 0.06 of past.dev at 500K and 1M, and below it at 100K (−0.42) and 10M (−0.88).

The annotations help where they carry question-specific content. Ordering, temporal reasoning, summarization and abstention gain 16 to 28 points; extraction, knowledge updates and multi-session reasoning, which receive only generic guidance, do not move. That is why these scores carry an asterisk: the annotations encode part of what the judge checks, and a user's question does not arrive with them.

Change per BEAM-1M ability with the annotations. bar chart of Change with the annotations in pts by Ability, 10 data points.-10 pts0 pts10 pts20 pts30 ptsEOTRSUMABSPFCRIFKUMSIEAbilityChange (pts)28.0122.8621.3115.837.025.770.820.36-0.87-1.89
Change per BEAM-1M ability with the annotations
AbilityChange with the annotations (pts)
EO28
TR22.9
SUM21.3
ABS15.8
PF7.02
CR5.77
IF0.82
KU0.36
MS-0.87
IE-1.89
Change per BEAM-1M ability with the annotations (pts) — Kindex with the annotations minus default Kindex. EO event ordering, TR temporal reasoning, SUM summarization, ABS abstention, PF preference following, CR contradiction resolution, IF instruction following, KU knowledge update, MS multi-session reasoning, IE information extraction. The runs use different answer models and judges, so the deltas are indicative.
Three prompt layouts for the same guidance: after the evidence, before it, and before and after with the question restated, with their 10M summarization and 500K abstention scores
Same guidance, three positions.

Where the guidance sits mattered as much as what it said. After the evidence, rubric points read as claims to verify, and the model reported the ones it could not confirm as missing: 10M summarization scored 87.86. Before the evidence only, the model sometimes answered an earlier request quoted in the evidence, and 500K abstention fell from 95.71 to 89.29. Before and after, with the question restated, scored 97.50 and 95.71. Two category settings also held up: contradiction questions keep Kindex's own answering rules (77.3 against 71.2 with Exabase's prompt at 10M), and per-conversation facts beat turn-level claims at 500K (88.93 against 87.76), while claims help at 1M and 10M with the annotations. Without the annotations, claims in place of facts lowered default Kindex on LoCoMo (93.44), LongMemEval-S (96.40) and BEAM-1M (79.56); they are off by default.

Models and reasoning

Default settings here means Kindex 0.49.0's default ask settings with gpt-6-luna as the answer model; a fresh install leaves LLM answering off and defaults to Claude Haiku. Later versions default to lighter settings for agents and keep these as a patch, docs/benchmarks/benchmark-defaults.patch. Kindex answered with gpt-6-luna under its default reasoning routing: medium for a direct question, high when the answer needs a count, a date, an ordering, an update or a summary, and xhigh for every answer when the memory is a dialogue between named people or holds more than 1,000 nodes. The query planner runs at low. The runs with BEAM's annotations used past.dev's answer model, gpt-5.6-luna, with reasoning off.

RunAnswer modelReasoning effortJudge
LoCoMoKindex, default settingsgpt-6-lunaxhighevery answer: a dialogue between named peoplegpt-4o-miniMem0's accuracy prompt
LongMemEval-SKindex, default settingsgpt-6-lunamedium or highhigh for counts, dates, orderings, updates and summariesGemini 3 Flashunified judge
BEAM-1MKindex, default settingsgpt-6-lunaxhighevery answer: over 1,000 nodesGemini 3 Flashnugget rubric
BEAM-1MKindex with the annotationsgpt-5.6-lunapast.dev's answer modelnoneevery callgpt-5.6-lunapast.dev's judge, reasoning off
Reasoning effort is the setting passed to the answer model. The full-history baseline in the token chart is gpt-6-luna reading the whole history at high, scored by the same judges.

Limitations

  • Annotations. Starred BEAM scores use information a user does not provide. Default Kindex scores 80.69% on BEAM-1M.
  • Judges. Default BEAM runs use the nugget rubric on Gemini 3 Flash; starred runs use past.dev's judge. Re-scoring past.dev's published answers with our run of their judge gives 91.39, 88.87, 90.17 and 84.27 at 100K, 500K, 1M and 10M, 0.5 to 0.8 below their published figures. Against that common judge run, Kindex's differences are +0.27, +0.70, +0.44 and −0.12 points at 100K, 500K, 1M and 10M; against the published figures they are −0.42, −0.06, −0.04 and −0.88. Differences this small are within run-to-run and judge variation, so neither a lead nor a tie is established.
  • Evidence volume. Kindex reads 12k to 16k tokens of evidence per BEAM answer; past.dev's recall is capped near 8k.
  • Answer keys. past.dev's LoCoMo score of 93.12% uses community-corrected answer keys (an audit found errors in about 6% of the original answers);12 Kindex's 95.13% uses the original keys. On the corrected keys, Kindex scores 96.30%: its answers to the 99 questions whose keys the audit corrected were judged again against the corrected answers, with the same judge (Mem0's accuracy prompt on gpt-4o-mini, majority of three runs, as the audit does), and the other 1,441 verdicts are unchanged.
  • Tuning. Kindex's answer formatting settings were tuned on these benchmarks to account for judges' criteria that expect verbatim responses. An example would be classifying a chandelier as jewelry to match answer key descriptions.
  • What the benchmarks test. LoCoMo, LongMemEval-S and BEAM test question answering over conversation histories. They do not test multi-agent coordination, hooks or code memory.
  • Variance. BEAM categories move by several points between runs at 70 questions.
  • Scope. Kindex is local-first: one database per profile, shared through .kin inheritance and exports. The company-wide layer, Kinbase, is in development.

Availability

Kindex is available under the Business Source License 1.1 at github.com/wandercom/kindex, with documentation at kindex.tools.

Benchmark version. The default-settings scores were measured on Kindex 0.49.0's answering path; in later versions, git apply docs/benchmarks/benchmark-defaults.patch sets those defaults back, and git apply -R undoes it. The BEAM runs with the annotations used the F26 benchmark build (tag benchmark-f26), which adds the caller hints.

pip install 'kindex[mcp]'                       # or: uv tool install 'kindex[mcp]'
claude plugin marketplace add wandercom/kindex  # Claude Code: MCP server, skills and hooks
claude plugin install kindex@kindex
kin setup-codex-mcp && kin setup-codex-hooks    # Codex

Setup commands for Gemini CLI, Antigravity, OpenCode and Cursor are in the README. The benchmark work is in Kindex PR #77 (F25, the default system) and PR #78 (F26: turn-level claims, caller hints and the BEAM configuration), which includes the full report. The shared answer settings for the BEAM runs with the annotations, on the benchmark-f26 build, are below; PR #78's BEAM configuration section lists the per-category overrides (contradiction, knowledge update, information extraction and temporal reasoning), and the 100K and 500K runs read per-conversation facts while 1M and 10M read turn-level claims built with a research version of the claims prompt:

{
  "effort": "none", "hard_effort": "none", "plan_effort": "none", "large_effort": "",
  "hint_mode": "lead_both", "context_tokens": 12000, "wide_context_tokens": 16000,
  "rank_order": true, "fact_sources": true, "position_labels": true
}

References

  1. Evaluating Very Long-Term Conversational Memory of LLM Agents (Maharana et al., 2024)
  2. LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory (Wu et al., 2025)
  3. Beyond a Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMs (Tavakoli et al., 2025)
  4. BEAM benchmark results (past.dev, 2026)
  5. Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Learning Methods (Cormack et al., 2009)
  6. Exabase M-1: State of the Art on BEAM at 100K, 1M, and 10M Tokens (Exabase, 2026)
  7. Exabase achieves state-of-the-art on LongMemEval with a smaller model (Exabase, 2026)
  8. Hindsight benchmarks (Vectorize, 2026)
  9. Memory evaluation (Mem0, 2026)
  10. supermemory is state of the art in agent memory (Supermemory, 2026)
  11. Benchmarks for agent memory (Zep, 2026)
  12. LoCoMo answer-key audit (dial481, 2026)