Skip to content

ClickHouse Loom documentation

Loom is a memory, document and code-index server for AI agents, stored in ClickHouse, with Postgres as an option for live memory and knowledge state. Agents and people reach it over MCP, HTTP, the Python and TypeScript SDKs, and the dashboard. This page lists every page in reading order.

Start here

Step Read
1. Decide Overview → Evaluate Loom
2. Install Quickstart → Deployment
3. Connect agents Connect a coding agent → Integrations
4. SDK and API Your first agent → Python SDK / HTTP API
5. Namespaces and access Identities and namespaces → Tokens and grants
6. Code index Code index → Repositories → Code-index operations
7. Operate Monitoring · Troubleshooting · Upgrades · Backup and recovery

Use cases

One page per need, each saying what Loom does for it and where to start: agent memory · document search and RAG · code index for coding agents · code index by language · coding-agent model cost · multi-agent shared context · autonomous agents: recall, audit, erasure · runs, traces and PR history · self-hosted on ClickHouse · all use cases.

1. Getting started

2. Install and run the server

3. Connect agents

Integrations · MCP clients · Agent instructions · Claude Code · Codex · Cursor · VS Code · Frameworks · Grep shim · Langfuse · ClickStack · OKF

4. SDK and API

Reference index · HTTP API · MCP · Python SDK · TypeScript SDK · Environment · Operations · Configuration · Workers · CLI · Errors · Status · Schema · Extractor contract. Operations and fields change between releases; unknown and removed fields says how a client sees one the server no longer reads.

5. Namespaces, access and the memory model

Guides

Agent integration · Headless bots · Tokens and grants · Trace and resume long runs · Optimize a namespace · Investigation-agent memory · Extraction pipelines · Performance tuning · Debugging · Query Loom from Postgres

Features

6. Code index

Overview · Repositories · Freshness · History and PRs · Operations · Code-index operations runbook

Architecture

System overview · Server layout · ClickHouse · Memory architecture · Storage authority · Cells · Storage layout · Code-index architecture · Document extraction · Document sources · LLM and embeddings · Security · Assistant design · Failure and recovery · Rolling upgrades

Benchmarks

Overview · Coverage · Methodology · Running · Results · Adding a case · Skill eval

Development

For contributors: repository guide · local development · testing · code generation · migrations · release process · documentation style · curation loop design · extending Loom · add an operation · add a worker · add a table · add language support · dashboard design. CONTRIBUTING.md covers the pull-request workflow.

Also

Glossary: Loom's terms, defined once. FAQ: the first questions, one paragraph each. llms.txt: a generated index of every page for agents.