2026-11-26 15:48 UTC

ClickHouse releases open-source Loom for shared coding-agent memory and code indexing

state: significantheat: lowuncertainty: mediumrelevance: highcoding-agent-memory codebase-context agent-toolsClickHouse

What is this?

ClickHouse introduced Loom in a company blog post published November 13, 2026, and made it available as an open-source, Apache-2.0 project. Built on ClickHouse, Loom combines shared agent memory, document search, and a repository code index in one system, accessible through MCP, APIs, and SDKs. Its code-linked memories can be flagged for review when the referenced code changes; conflicting memories can also be surfaced rather than silently resolved. ClickHouse says it built Loom after evaluating memory tools while using its autonomous contributor GroeneAI. The supplied evidence is primarily ClickHouse’s own announcement and documentation; independent validation or adoption evidence is not provided.

Why it matters

Loom addresses a practical limitation of coding agents: useful knowledge from one session or agent often does not carry over, while saved notes can become stale as code evolves. Connecting shared memory to a code index could help teams transfer findings between agents and developers, reduce repeated repository exploration, and catch outdated context. The open-source release makes it available for teams to try, but performance figures are company-reported benchmarks, not independent evidence of broad benefit.

Current assessment

ClickHouse released Loom as an open-source, Apache-2.0 system combining shared agent memory, document search, and a repository code index, with MCP, API, and SDK access. The company says memories can be linked to code and flagged for review when referenced code changes, and reports improvements on internal coding-agent benchmarks; one reported memory-comparison gap was explicitly not statistically significant on its own. These are vendor-reported results, with no independent validation or adoption evidence in the case. Loom's significance is its potential to let teams share agent context and reduce repeated repository exploration, but general benefits remain uncertain; it also requires ClickHouse 26.5 or later, and its index does not include uncommitted changes. New evidence is only a repeated Show HN listing, while engagement is low and well below its peak.

Measured heat

now 0 pts/hpeak 30 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 338h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-12 13:00⭐ origin echo-reconstructedThe HN-linked ClickHouse announcement is the original publication: it introduces Loom and describes it as an open-source tool built on Click
ClickHouse on blog (echo) · attributed from hn.story.50529606
—
11-17 10:20first on hacker news · published · +117.3hLoom: agent memory that keeps up with your code
zlareb
—
11-17 10:20amplified on hacker newshn.story.50529606
zlareb
peak 1 · 0 comments · 15% of case engagement
11-21 18:11amplified on hacker news 👑hn.story.50591932
zlareb
peak 3 · 0 comments · 42% of case engagement
11-21 18:14amplified on hacker newshn.story.50591960
zlareb
peak 2 · 0 comments · 29% of case engagement
11-22 13:17amplified on hacker newshn.story.50599422
zlareb
peak 1 · 0 comments · 15% of case engagement
11-17 10:21our radar first saw it · +117.4hdiscovery anchor: hn.story.50529606—
pace: p44 vs 1845 stories at the 336h mark (now 338h old) — ahead of 42loop-agent-operated-product-experiment (1.2x), behind 5dive-self-hosted-coding-agents (0.8x)

Evidence (5) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnLoom: agent memory that keeps up with your code
Retrieved article excerpt

Open article · Retrieved 2026-11-17T10:22:37.669129+00:00

Shared agent memory, checked against your code as it changes.

[Loom](https://github.com/ClickHouse/loom) is an open-source tool built on ClickHouse. It gives coding agents a shared code index and a place to keep what they learn, so the next session doesn't start from zero.

On our own benchmarks, introducing Loom pushed the mean answer-quality score on ClickHouse code questions from 0.78 up to 0.84.

## Why did we build Loom? #

[GroeneAI, our autonomous contributor](https://clickhouse.com/blog/meet-groeneai-our-autonomous-contributor-to-clickhouse), has been working on ClickHouse pull requests since March: reproducing CI failures, hunting for bugs and missing tests, and babysitting its own PRs through review; and by October it had more than 3,000 merged pull requests. Those numbers hide an early weakness, though: every GroeneAI session started from almost nothing.

Starting from nothing was really becoming a burden. Each branch had a relatively normal lifecycle: a build, an overnight CI run, a reviewer who came back later in the week, a detour turning up a test turned flaky since last Tuesday. Standard practices and quirks that built up into a sore lack of being able to start at the current state of history with no memory of linear history whatsoever. Without memory, the agent rebuilds all of linear history to get to the decision it has to make at-hand, or worse, guesses. With memory, it just simply… remembers. In one session GroeneAI remembered that a particular logical error had two throw sites and the open fix only covered one, checked the code, and pointed a maintainer at the right one.

So we went shopping for a memory system. We ran the two strongest agent memory tools we could find side by side on live traffic for three months, and both made the agent's answers better. Along the way, they took in more than 82,000 memory writes and 328 million characters of the agent's own transcripts, so we got a very good look at what they could and couldn't do.

The memory tools remembered what the agent had written *about* the code, but they could not see the code themselves. ClickHouse is more than 92,000 files and 318,000 commits on master, written by about 2,700 people over the years, and the median file has been edited by six different authors. For some perspective, this puts us at more commits than GCC, MySQL or Kubernetes. Nobody can (or should) hold the whole timeline of commits in their head, and the memory tools couldn’t either. While memories were persisted about the code, code search itself remained local. Local code search kept its own private index and couldn't tell you which function called which, or how all of the pieces fit together. Searching code and reasoning about it needed to converge on the same system instead of two that happened to live next to each other in Terminal.app on a developer’s laptop.

That is where we stopped evaluating and started building. We needed a memory that understood the repository as well as the transcripts, that let us reuse what GroeneAI had learned and share it with people and other agents, without exposing anything private. That became Loom.

## What did we build? #

Loom keeps memory and a code index in the same ClickHouse database, under one set of permissions. A maintainer's note gets stored with its source and linked to the code it describes, so you can tell later whether it's still accurate. Every run gets logged too: what the agent loaded, what it cost, and whether it actually finished.

It's open-source, and any team can run it against its own repository, with its own agents.

Shared project context, the author of each fact, pinned facts, and conflicts waiting for review. Example data.

Memory and the code index work fine on their own, but they're built to work together! A client connects over MCP, the HTTP API, or the Python and TypeScript SDKs, and that one connection can save memories, search code, record runs, and search documents.

Memory for the next session, and a code index for the current question.

## How does Loom actually work? #

As much as we love trusting the flashy authority of blog posts these days, we’d like to explain some concepts of what set Loom apart from other memory tools, and what design decisions were made along the way.

### What can Loom remember? #

Facts and preferences and step-by-step procedures show up in an ordinary search. Reflections on finished work, past events, background profiles, and scratch notes on work in progress mostly stay out of the way until something specifically asks for them.

Facts get revised instead of just piling up and becoming stale. Say an agent notes in March that a service defaults to `max_threads: 16`, then learns in June that the default has doubled. June doesn't erase March, it's a new version of the same fact, and the old value is still there if you ask what was true in April. If two people save conflicting facts around similar subjects, Loom flags it instead of just picking one, and a pin stops an update from silently overwriting a fact someone cares about. Just like your own brain, memories evolve with new context but retain the history of what you’ve learned when! It’s just nice to be able to write them down in a database instead of having to comb through all of those composition notebooks collecting dust under your childhood bed.

Documents, procedures, and one-off tasks get the same treatment: searchable when relevant, otherwise out of the way. A fact about code gets checked against the actual definition too, and flagged if that code changes. Humans are great at remembering state and state-change with the code they’ve been responsible for, but in an ever-growing repository like ClickHouse, it would be unreasonable to expect every human to centralize the state and state-change of *every other human’s work*.

### How does it read your code? #

Before an agent asks anything, Loom has already read the repository: every function, every class, and which ones call which. Ask where something is implemented, or what calls a given function, and you get real code and file paths back, not just text that matches your search terms, or our favorite: “Let me read the code before I answer anything!” accompanied by a full clone. A fast pass covers most languages; a slower, compiler-accurate pass backs it up for the big ones, and whichever is more precise wins.

That same index tells Loom when a saved memory might be going stale. If a note says a function leaks its buffer when called twice, and that function gets renamed, Loom follows the rename. If the function gets rewritten instead, the note gets flagged for review rather than silently going out of date. Nothing gets rewritten automatically. A flagged memory just shows up marked as changed, so whoever reads it next knows to double check. Imagine a bunch of sticky notes on your mental monitor that point out all of the times you had realized you had to look something up to remain a subject matter expert… might be nice. But it would be even nicer if everyone could leverage everyone else’s sticky notes so that we did not have hundreds of memory banks producing hundreds of the same or similar facts. It would be cool to be able to share those, wouldn’t it?

### How can teams share memories? #

Say one developer uses Claude Code to figure out what a change would break, and a teammate uses Codex, on a different laptop, to actually make the change. If they're both pointed at the same Loom deployment, Claude Code's findings are just there when Codex starts working, source and commit included, because both agents read and write the same namespace.

Claude Code writes the findings. Codex reads them. Both query the same code namespace.

You can control which side of that each agent gets. It’s not as if we just stuck everyone’s memories into the same namespace and said “fight for victory”. We have a few situations we’ve adopted:

- One-way: where a research agent writes and a coding agent reads. Appropriate for reduction of inference cost when you invest most of your cost in research and assignment. It’s like measuring twice and cutting once, but you’ve remembered literally every measurement you’ve ever made.
- Two/N-way: where both/all read and write. Appropriate for internal knowledge bases of company culture and colloquialisms. “Which team to go to for Topic X”, “What Slack channel is best for Question Y”, and most importantly: “What’s with everyone using this one random emoji?”
- Personal-to-Shared Promotions: where someone reads a shared team namespace but writes into their own, and promotes things across once they're ready to share. Teams can set a namespace open, approval-only, or closed, same as any other access control. Appropriate for teams who have to collaborate on maintaining the taste and design decisions of their codebase (hint: ClickHouse), ensuring that just like code, memories can be reviewed and maintained.

### How does a memory search actually run? #

When an agent asks memory a question, Loom doesn't run one nearest-neighbour lookup. It embeds the question and runs several searches in ClickHouse at once: a vector search over the fact embeddings, a keyword search with BM25 scoring over the same facts, a pass over verbatim chunks of long values, and, when the question names people or services, a hop through the entity graph. Every one of those is scoped to the namespaces the caller can read inside the query itself, not filtered afterwards.

One question splits into vector search, BM25, verbatim chunks, and the entity graph, then the four results fuse.

The results get fused into one ranking. Confidence, provenance, and reinforcement from past runs can nudge near-ties, but they're capped so they can't beat a closer match. Finally, Loom checks the winner's raw similarity without the previous weights applied. If the similarity ranking doesn't exceed dissimilarly ranked results, the search still returns the hits, but it tells the agent it doesn't know and marks them as too weak to answer from. Every result carries the scores that put it there.

Writes get the same scrutiny. A new fact is judged against its neighbours before it lands: merged, flagged as a duplicate, marked as a conflict, or rejected. Every version is kept, so a search can run as of a past date. The full inside view is in the [memory architecture](https://github.com/ClickHouse/loom/blob/main/docs/architecture/memory-architecture.md) doc. Every one of those search legs is a plain ClickHouse query against the same tables.

### Where do the memories get stored? #

Please try to hold back your surprise, but… we store the memories in ClickHouse. Shocker, we know. But bias aside, it’s an extremely appropriate datastore for this shape of data!

Most agent-memory setups end up as a pile of separate services: one for vector search, one for keyword search, one for the relationship graph, one for jobs, one for analytics. Every one of those is another thing to deploy, secure, and keep in sync.

Loom puts all of it. The facts, the embeddings, the full-text index, the code graph, task state, and the cost and audit trail, into one ClickHouse database. A search gets scoped to what the caller can see, then ranked by the vector and BM25 search above, and the usage data sits right next to everything else instead of living in a separate analytics tool. Updates, corrections, and embeddings each get a ClickHouse storage engine tuned for how they're actually read and written, not one generic table for everything.

Oh, and of course, traces can be sent to the best-in-class observability suite, Langfuse.

Vectors, text indexes, code relationships, task state, and usage records live in ClickHouse. Model providers, and optional Langfuse tracing, are separate services.

The setup also makes it easy to tell whether any of this is actually helping. Every run is logged with what it used and how it turned out, so a memory that keeps helping gets reinforced and one that doesn't ju
zlareb10
🟧 echo.blog ⭐The HN-linked ClickHouse announcement is the original publication: it introduces Loom and describes it as an open-source tool built on ClickClickHouse——
🟧 hnLoom: agent memory that keeps up with your codezlareb30
🟧 hnLoom: Shared memory, document search, and code indexing for AI agentszlareb20
🟧 hnShow HN: Loom – Memory that follows the code you editzlareb10

Interpretation history

Decision trace