Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 12 min read Announcement mediumAdept

Introducing Loom: agent memory that keeps up with your code

Loom is an open-source agent memory system that stores memories alongside a code index (functions, classes, call graph) in a single ClickHouse database, so facts about code are linked to definitions and flagged when that code is renamed or rewritten. Facts are versioned rather than overwritten, conflicts are flagged, and namespaces support one-way, N-way and personal-to-shared promotion sharing between agents like Claude Code and Codex. Retrieval fuses vector search, BM25, verbatim chunks and an entity graph scoped by permissions inside the query, and reports when the best match is too weak to answer from. On ClickHouse code questions, mean answer score rose from 0.78 to 0.84 with cost per question falling from $0.212 to $0.17, and memory.ask scored 96.6% on LongMemEval.

Related posts

  • How to build a retrieval system for agents

    Turso mediumAdept

    Memelord is a fully local memory system for coding agents that keeps a per-project SQLite database (via Turso) of corrections, insights and user-requested memories, embedded with all-MiniLM-L6-v2 and retrieved by cosine vector search at task start. Each memory carries a weight updated by exponential moving average from the agent's 0-3 usefulness ratings, plus time decay for unused memories, and memories flagged as wrong are deleted immediately. Integration with Claude Code uses an MCP server and lifecycle hooks, and a TypeScript SDK accepts a bring-your-own embedding function for custom agents. The argument is that retrieval beats dumping lessons into .md system prompts, which wastes the finite context window.

  • Give Your Coding Agents a Memory You Own

    Hugging Face mediumAdept

    funes is an open-source, single-binary memory layer that indexes the session traces of coding agents (Claude Code, Codex, pi, Hermes) so any agent can recall past decisions and rationale with exact provenance. A deterministic pipeline parses traces into a common turn-and-block shape, chunks and embeds them locally into an append-only Lance dataset, and answers queries with hybrid vector+BM25 search, rank fusion, cross-encoder reranking, recency reweighting and neighbor-chunk expansion. Memories can be published to a private Hugging Face dataset with secret redaction, letting them follow you across machines, agents and teammates. On a handoff-vs-recall benchmark, recall was 4-8x cheaper than a written handoff, while compaction failed on one task because its summary flattened key findings.

  • Giving OpenClaw a memory that actually works

    Turso mediumAdept

    Memelord, a per-project agent memory system built on Turso, plugs into OpenClaw through mcporter. It replaces OpenClaw's flat Markdown-chunk memory with weighted memories that are reinforced when useful, decay when ignored or unused, and are deleted when contradicted. Setup takes three commands, and the agent gets five MCP tools covering the task lifecycle. Retrieval is a single SQL query in a local SQLite file that ranks results by cosine similarity times an exponential recency decay, with embeddings generated locally by all-MiniLM-L6-v2.

  • The components of agent memory

    Anthropic Engineering mediumAdept

    Agent memory works best as a layered hierarchy: transcripts as an event log, notes Claude writes in-session, richer representations such as wikis, and context injected into every session, with an offline "dreaming" pass that reflects on transcripts to correct and reorganize memory. On a CL-Bench database task, newer Claude models closed the learning loop by recording validated rules, raising mean reward from about 0.56–0.66 to about 0.83. In Pokémon Red, a model that kept 10 focused files earned four badges, while one that logged everything into 413 files earned one. Stronger models do better when told what memory is for rather than given fixed rules, and dreaming caught a wrong navigation note that otherwise trapped the agent in a loop.

  • How to build evidence-grounded agent memory with OpenWiki and Graphs

    LangChain mediumAdept

    A compiled, source-linked wiki (OpenWiki) used as agent memory raised accuracy on cross-document questions from 0.10 to 0.52 versus keyword search alone on a synthetic 111-document insurance corpus scored against a 972-fact ledger, and cut cost per correct answer from about $0.55 to $0.19. Citation consistency stayed low, so the team added a lightweight evidence graph that materializes wiki citations and document references as typed edges (cites, supersedes, refers_to) between paragraphs, claims and pages, navigated by locate and expand tools. The graph built in under a second with no model calls and, over the wiki alone, improved accuracy 27%, doubled citation consistency, cut median latency 40% and cost per correct answer 58%. For simple single-passage lookups, search alone was equally accurate and faster, so compiled memory pays off only with repeated cross-source reasoning.

The quest for software engineering knowledge.

Look:
Layout: