diff --git a/README.md b/README.md index cbf6d6ba89..eaa992cb75 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@

ClickHouse Loom

- Shared memory, document search and code intelligence for AI agents.
- For Claude Code, Codex, Cursor and your own agents. + An open-source, self-hosted knowledge factory for coding agents.
+ Apache-2.0. For Claude Code, Codex, Cursor and your own agents.

@@ -21,6 +21,7 @@

+ Try it · What Loom is for · Benchmarks · Get started · @@ -29,44 +30,90 @@ Documentation

-

- Loom dashboard showing shared agent memories, a pinned fact and flagged conflicts - Library search: three passages from a refunds policy, an on-call runbook and an FX note, each cited by document, revision and lines - A repository's Explore tab: payments.fx.convert with its definition and callers -

+ + +Loom is an open-source ([Apache-2.0](./LICENSE)), self-hosted knowledge factory for +coding agents. It keeps a code index, the memories agents write about that code, and +the review of those memories. + +Agents query the code index for definitions, callers and change impact. +[Code index](./docs/use-cases/code-intelligence.md) + +A memory links to the files and symbols it names. It follows that code through a +refactor, is shown when an agent reads or edits the file, and is flagged when the code +changes. +[Memory linked to code](https://loom.clickhouse.com/docs/use-cases/memory-linked-to-code) + +An agent that finds a memory or a document wrong or outdated, or finds knowledge +missing, files a report with `knowledge.reports.submit`. The report does not edit its +target. A namespace admin resolves a report about a target only once readers are +served a newer revision of that target, and a later agent reads that revision. A +report that names no target is resolved in the admin's words. +[Knowledge reports](./docs/features/knowledge.md#knowledge-reports) + +The built-in curator is a separate pass, on a schedule, and off until an operator +sets `LOOM_CURATOR_ENABLED` and a namespace admin sets that namespace's mode to +something other than `off`. A pass lists what needs a person: pending proposals, +accepted facts with a harm report or a failed grade, and served facts whose linked +code or source document changed. In `assist` mode it also records a model's opinion +on whether each pending proposal fits the namespace guide. The pass changes no fact +and accepts nothing. A proposal is served only after a person who did not write it +accepts that text. [Curator](./docs/architecture/curator.md) + +## Try it -Loom is an open-source, self-hosted MCP server that gives your agents long-term, shared -memory: what one agent learns in a session, the next agent or tool can find. -In an authenticated team deployment, each agent uses a token scoped to namespaces and -read or write roles. [Check shared memory and denied access](./docs/getting-started/connect-a-coding-agent.md#share-a-team-namespace-with-separate-credentials). +To try it with nothing installed, open it in a codespace: -Agents connect through MCP, HTTP, Python or TypeScript. Self-host with Docker or -[on Kubernetes with the Helm chart](./docs/operations/kubernetes.md); agent context and -index data live in [ClickHouse](https://loom.clickhouse.com/docs/use-cases/self-hosted-clickhouse), and a -deployment can choose [Postgres at first boot](./docs/operations/postgres.md) for live -memory and knowledge state. The dashboard brings memories, repositories, tasks and runs -into one place. +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ClickHouse/loom?quickstart=1) +([what it runs and who can reach it](./docs/getting-started/quickstart.md#try-it-in-github-codespaces)) + +For the default personal installation, with Docker installed (on Windows, in a WSL 2 +terminal where `docker` works: Docker Desktop with its WSL integration on, or Docker Engine +installed in the distribution): + +```bash +curl -fsSL https://github.com/ClickHouse/loom/releases/latest/download/install.sh -o loom-install.sh && sh loom-install.sh && rm loom-install.sh +``` + +Run it from your home directory, or another +[directory only you can write to](./docs/getting-started/quickstart.md#fast-path-released-image-no-clone). +The installer starts Loom and ClickHouse, applies migrations and prints the dashboard URL: +**http://localhost:7777/**; on a new install it then checks that a memory saves and reads +back. On a terminal it also offers to connect Claude Code, Codex and the VS Code editor +profile when it finds them and, on a new install, opens the dashboard. The image includes +the server, workers, dashboard and Python, TypeScript and Go compiler indexers, plus the +C++ one on `amd64`; TypeScript dependencies are prepared automatically. +[Quickstart and pinned releases](./docs/getting-started/quickstart.md) ## What Loom is for +Further reading on the pieces above, and on memory shared across agents. + +- **Memories linked to the code they are about**, which follow it through refactors, are + flagged when it changes and appear when an agent reads or edits it. + [Memory linked to code](https://loom.clickhouse.com/docs/use-cases/memory-linked-to-code) - **Long-term memory shared across your coding agents**, with plugins that load context at session start and capture the session as it runs. [Memory for coding agents](https://loom.clickhouse.com/docs/use-cases/agent-memory) · [Choose a memory setup](https://loom.clickhouse.com/agent-memory-selector) · [Compare memory options](https://loom.clickhouse.com/docs/guides/compare-coding-agent-memory) · [Connect a coding agent](./docs/getting-started/connect-a-coding-agent.md) +- **A code index of your repositories** that coding agents query for definitions, + callers and change impact. [Code index](./docs/use-cases/code-intelligence.md) · + [Language support and limits](./docs/features/code-index/overview.md#language-support) + +## More uses + - **Memory for an agent application**, per user, from the Python or TypeScript SDK. [Your first agent](./docs/getting-started/first-agent.md) - **A multi-user MCP memory server** with namespaces, roles and tokens. [Multi-user mode](./docs/getting-started/quickstart.md#start-in-multi-user-mode) · [Namespaces and sharing](./docs/features/namespaces-and-sharing.md) · [MCP client setup](https://loom.clickhouse.com/docs/features/integrations/mcp-clients) -- **A code index of your repositories** that coding agents query for definitions, - callers and change impact. [Code index](./docs/use-cases/code-intelligence.md) · - [Language support and limits](./docs/features/code-index/overview.md#language-support) -- **Memories linked to the code they are about**, which follow it through refactors, are - flagged when it changes and appear when an agent reads or edits it. - [Memory linked to code](https://loom.clickhouse.com/docs/use-cases/memory-linked-to-code) - **Lower model cost for coding agents**, as [measured](#measured-results) below. [Coding-agent cost](./docs/use-cases/coding-agent-cost.md) - **Document search with citations (RAG)**, including PDF, `.docx` and `.pptx` files the @@ -99,6 +146,24 @@ for memory architecture choices, data ownership and operating responsibilities. Loom is not an in-process library for one agent's short-lived memory, nor an agent framework. [When Loom does not fit](./docs/getting-started/overview.md#when-it-does-not-fit) +Loom is an open-source, self-hosted MCP server that gives your agents long-term, shared +memory: what one agent learns in a session, the next agent or tool can find. +In an authenticated team deployment, each agent uses a token scoped to namespaces and +read or write roles. [Check shared memory and denied access](./docs/getting-started/connect-a-coding-agent.md#share-a-team-namespace-with-separate-credentials). + +Agents connect through MCP, HTTP, Python or TypeScript. Self-host with Docker or +[on Kubernetes with the Helm chart](./docs/operations/kubernetes.md); agent context and +index data live in [ClickHouse](https://loom.clickhouse.com/docs/use-cases/self-hosted-clickhouse), and a +deployment can choose [Postgres at first boot](./docs/operations/postgres.md) for live +memory and knowledge state. The dashboard brings memories, repositories, tasks and runs +into one place. + +

+ Loom dashboard showing shared agent memories, a pinned fact and flagged conflicts + Library search: three passages from a refunds policy, an on-call runbook and an FX note, each cited by document, revision and lines + A repository's Explore tab: payments.fx.convert with its definition and callers +

+ ## Measured results | Evaluation | With Loom | Without Loom | Efficiency gain | Scope | @@ -142,28 +207,7 @@ Single-user is not a reduced-feature edition. You can also [switch an existing installation without deleting its data](./docs/getting-started/quickstart.md); grant new accounts access to the existing namespaces. -To try it with nothing installed, open it in a codespace: - -[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ClickHouse/loom?quickstart=1) -([what it runs and who can reach it](./docs/getting-started/quickstart.md#try-it-in-github-codespaces)) - -For the default personal installation, with Docker installed (on Windows, in a WSL 2 -terminal where `docker` works: Docker Desktop with its WSL integration on, or Docker Engine -installed in the distribution): - -```bash -curl -fsSL https://github.com/ClickHouse/loom/releases/latest/download/install.sh -o loom-install.sh && sh loom-install.sh && rm loom-install.sh -``` - -Run it from your home directory, or another -[directory only you can write to](./docs/getting-started/quickstart.md#fast-path-released-image-no-clone). -The installer starts Loom and ClickHouse, applies migrations and prints the dashboard URL: -**http://localhost:7777/**; on a new install it then checks that a memory saves and reads -back. On a terminal it also offers to connect Claude Code, Codex and the VS Code editor -profile when it finds them and, on a new install, opens the dashboard. The image includes -the server, workers, dashboard and Python, TypeScript and Go compiler indexers, plus the -C++ one on `amd64`; TypeScript dependencies are prepared automatically. -[Quickstart and pinned releases](./docs/getting-started/quickstart.md) +The install command and the Codespaces button are in [Try it](#try-it). The installation lives in `~/.loom` (`LOOM_INSTALL_DIR` chooses another directory): the Compose file and the startup settings in `~/.loom/.env`. Running the install command again