---
title: "Introducing Loom: agent memory that keeps up with your code"
description: "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."
url: "https://swe.quest/articles/introducing-loom-agent-memory-that-keeps-up-with-your-code-c33a0d0178bbd2de"
canonical: "https://clickhouse.com/blog/introducing-loom-agent-memory-that-keeps-up-with-your-code"
source: "ClickHouse"
published: "2026-11-13"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 12
tags: ["ai-agents","ai-coding","vector-search","search","open-source"]
---

# Introducing Loom: agent memory that keeps up with your code

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-11-13, 12 min read, Announcement. Original: [https://clickhouse.com/blog/introducing-loom-agent-memory-that-keeps-up-with-your-code](https://clickhouse.com/blog/introducing-loom-agent-memory-that-keeps-up-with-your-code)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- coding agents ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))
- vector search basics ([easy posts on Vector search](https://swe.quest/tags/vector-search.md?difficulty=easy))

## Keywords

Loom, ClickHouse, MCP, BM25, LongMemEval, Claude Code, Codex, Langfuse

## Related posts

- [How to build a retrieval system for agents](https://swe.quest/articles/how-to-build-a-retrieval-system-for-agents-08b9b297721895b1.md): Turso · 2026-02-20 · Medium · 5 min read · AI agents, Vector search, SQLite, AI for coding, RAG & retrieval
  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.
- [Give Your Coding Agents a Memory You Own](https://swe.quest/articles/give-your-coding-agents-a-memory-you-own-a4b8ff1b9b62d4a5.md): Hugging Face · 2026-09-03 · Medium · 9 min read · AI agents, AI for coding, RAG & retrieval, Search, Developer tools
  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.
- [Giving OpenClaw a memory that actually works](https://swe.quest/articles/giving-openclaw-a-memory-that-actually-works-f9bbbfa6dfaba92b.md): Turso · 2026-02-23 · Medium · 4 min read · AI agents, Vector search, SQLite, AI for coding
  Memelord, a per-project agent memory system built on Turso, plugs into OpenClaw through mcporter.
- [The components of agent memory](https://swe.quest/articles/the-components-of-agent-memory-6ad54605491f6c6e.md): Anthropic Engineering · 2026-11-06 · Medium · 21 min read · AI agents, LLMs, Evaluation
  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.
- [How to build evidence-grounded agent memory with OpenWiki and Graphs](https://swe.quest/articles/how-to-build-evidence-grounded-agent-memory-with-openwiki-and-graphs-4ca8c5cc48ba2f30.md): LangChain · 2026-10-28 · Medium · 8 min read · AI agents, RAG & retrieval, Evaluation, LLMs
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
