---
title: "Introducing Loom: agent memory that keeps up with your code"
description: "Loom is an open-source tool built on ClickHouse that gives coding agents a shared code index and persistent memory, so each session does not start from zero. It was created because GroeneAI, an autonomous contributor to ClickHouse, had merged over 3,000 pull requests but every session began without context, forcing the agent to rebuild history or guess. Existing memory tools remembered what the agent wrote about code but could not see the code itself, and local code search remained separate from memory. Loom stores facts, preferences, and procedures in the same database as a full code index, checks saved facts against the actual code, and flags memories when the code they reference changes. On internal benchmarks, introducing Loom raised the mean answer-quality score on ClickHouse code questions from 0.78 to 0.84 and reduced average cost per question from $0.212 to $0.17."
---

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

[Clickhouse](https://yomu.fyi/company/clickhouse) · James Cunningham and Lareb Zafar · Nov 13, 2026

**Type:** Announcement

## Summary

Loom is an open-source tool built on ClickHouse that gives coding agents a shared code index and persistent memory, so each session does not start from zero. It was created because GroeneAI, an autonomous contributor to ClickHouse, had merged over 3,000 pull requests but every session began without context, forcing the agent to rebuild history or guess. Existing memory tools remembered what the agent wrote about code but could not see the code itself, and local code search remained separate from memory. Loom stores facts, preferences, and procedures in the same database as a full code index, checks saved facts against the actual code, and flags memories when the code they reference changes. On internal benchmarks, introducing Loom raised the mean answer-quality score on ClickHouse code questions from 0.78 to 0.84 and reduced average cost per question from $0.212 to $0.17.

## Context

GroeneAI, an autonomous contributor to ClickHouse, had merged over 3,000 pull requests by October but every session started from scratch, forcing it to rebuild linear history or guess. Existing agent memory tools remembered what the agent wrote about code but could not see the code itself, and local code search remained separate from memory. ClickHouse has more than 92,000 files and 318,000 commits, making it impossible for any agent or person to hold the full timeline in memory.

## Approach / What changed

Loom stores agent memory and a code index in the same ClickHouse database, using MCP, HTTP API, or Python/TypeScript SDKs for client connections. It indexes every function, class, and call graph in the repository, checks saved facts against the actual code, and flags memories when the code they reference changes. Teams can share a single Loom deployment with configurable read/write namespaces so that findings from one agent are available to another.

## Takeaways

- Loom stores agent memory and a code index in the same ClickHouse database, so memory is linked to the actual code it describes and can be checked for staleness.
- On 24 coding questions, Loom improved mean answer-quality score from 0.78 to 0.84 (about 8% lift) and reduced average cost per question from $0.212 to $0.17.
- Teams can share a single Loom deployment with configurable read/write namespaces, so findings from one agent (e.g., Claude Code) are available to another (e.g., Codex) without duplication.

## FAQ

### What kinds of memory does Loom store?

Loom stores facts, preferences, step-by-step procedures, reflections, background profiles, and scratch notes. Facts are versioned: a new value does not erase the old one, and conflicting facts are flagged. A pin prevents silent overwrites.

### How does Loom keep memories in sync with code changes?

Loom indexes every function, class, and call graph in the repository. When a saved memory references a function that gets renamed, Loom follows the rename. If the function is rewritten, the memory is flagged for review rather than silently going out of date.

### Does Loom actually improve agent performance?

Yes. On 24 coding questions with 3 runs each, the mean answer-quality score rose from 0.78 to 0.84 (about 8% lift), and average cost per question dropped from $0.212 to $0.17. On a file-finding task with 36 questions and 10 runs each, accuracy went from 91.4% to 96.4% with a similar cost reduction.

**Tags:** [Agent Memory](https://yomu.fyi/topic/agent-memory), [ClickHouse](https://yomu.fyi/topic/clickhouse), [Coding Agents](https://yomu.fyi/topic/coding-agents), [MCP](https://yomu.fyi/topic/mcp), [Open Source](https://yomu.fyi/topic/open-source)

- Source: [Clickhouse](https://clickhouse.com/blog/introducing-loom-agent-memory-that-keeps-up-with-your-code)
- Source URL: https://clickhouse.com/blog/introducing-loom-agent-memory-that-keeps-up-with-your-code
- Ingested by Yomu: 2026-11-13T18:01:09.099Z

[Read original post](https://clickhouse.com/blog/introducing-loom-agent-memory-that-keeps-up-with-your-code)
