ClickhouseJames Cunningham and Lareb ZafarAnnouncement
Introducing Loom: agent memory that keeps up with your code
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.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.