# ClickHouse Loom > Self-hosted MCP server that gives AI agents shared long-term memory, document search with citations, and a code index stored in ClickHouse. Use the [MCP installation runbook](https://loom.clickhouse.com/docs/llms-install.md) to install Loom for Cline or another MCP client. ## Docs - [ClickHouse Loom documentation](https://loom.clickhouse.com/docs): 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. - [Frequently asked questions](https://loom.clickhouse.com/docs/faq): Short answers to the first questions people ask. Each links to the page that explains it. - [Glossary](https://loom.clickhouse.com/docs/glossary): Loom's terms, alphabetically, each defined once. Code identifiers are in backticks. ## Architecture - [Agno user-memory database](https://loom.clickhouse.com/docs/architecture/agno-adapter): The Agno adapter implements the user-memory methods of its 3.2 BaseDb interface through the synchronous Loom SDK. - [Assistant design](https://loom.clickhouse.com/docs/architecture/assistant): This page is the design of Loom's assistant, which answers questions about what a namespace holds and how it is used, with a citation for every claim. - [Cells](https://loom.clickhouse.com/docs/architecture/cells): A deployment's memory can outgrow one Postgres primary and one ClickHouse service, and an org may want its memory in services of its own. - [Claude API memory file tree](https://loom.clickhouse.com/docs/architecture/claude-memory-adapter): The Claude API memory adapter implements the framework's Python memory-tool bases and TypeScript memory handlers through Loom knowledge documents. - [ClickHouse](https://loom.clickhouse.com/docs/architecture/clickhouse): Durable Loom state lives in ClickHouse, except document bytes in an optional S3-compatible bucket and, under the Postgres memory authority, the Postgres tables… - [Code index architecture](https://loom.clickhouse.com/docs/architecture/code-index-architecture): This page is the inside view of the code index: how files become chunks, symbols and edges, and how the two tiers stay current. - [Cost budgets](https://loom.clickhouse.com/docs/architecture/cost-budgets): Namespace and named-user caps use the rolling 24-hour cost ledger in agent_events. - [Definition drafts](https://loom.clickhouse.com/docs/architecture/definition-drafts): Needs knowledge_gaps_enabled for gap drafts or knowledge_query_history_enabled for query history. - [Dify tools adapter](https://loom.clickhouse.com/docs/architecture/dify-adapter): The Dify plugin calls Loom through the Python SDK and stores no content locally. Its three native tools map to memory.set, memory.search and knowledge.search. - [Document extraction](https://loom.clickhouse.com/docs/architecture/document-extraction): An uploaded original is parsed into one shape, the extraction artifact, by an extractor service: a separate process with its own dependencies, never the Loom… - [Document source push notifications](https://loom.clickhouse.com/docs/architecture/source-push): Needs LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true to request document source syncs from provider notifications. - [Document sources](https://loom.clickhouse.com/docs/architecture/document-sources): A document source pulls files from a document store (a shared-folder store, a page store, a project tracker, a meeting store) into a namespace's documents and… - [Documentation translation requests](https://loom.clickhouse.com/docs/architecture/documentation-translation): The translation generator splits prepared English text into bounded requests, then checks the assembled translation before writing it. - [Failure and recovery](https://loom.clickhouse.com/docs/architecture/failure-and-recovery): The primary write and every access decision fail closed. Derived data and telemetry fail open and are repaired. - [GitHub tracker feed](https://loom.clickhouse.com/docs/architecture/github-feed): The GitHub feed maintains a team's tracker record in the team's ClickHouse database. - [Google ADK memory service](https://loom.clickhouse.com/docs/architecture/google-adk-adapter): The Google ADK adapter implements the framework's memory service through Loom's Python and TypeScript SDKs. Framework packages are optional dependencies. - [Haystack document store and retriever](https://loom.clickhouse.com/docs/architecture/haystack-adapter): The optional Haystack 3.5 adapter implements its document-store protocol and a native retrieval component through the synchronous Loom SDK. - [Knowledge gaps](https://loom.clickhouse.com/docs/architecture/knowledge-gaps): Loom records the searches that found nothing a caller could use and groups them, once a day, into knowledge gaps: the questions several people asked that the… - [Live connected-source search](https://loom.clickhouse.com/docs/architecture/live-source-search): search.query(live=true) adds an ephemeral section from the asker's own connected Drive and Notion registrations. The default is false. - [LLM and embedding architecture](https://loom.clickhouse.com/docs/architecture/llm-architecture): Loom has two pluggable providers: an embedder (server/embedding/) that turns text into vectors, and an LLM client (server/llm/) that completes prompts. - [Memory architecture](https://loom.clickhouse.com/docs/architecture/memory-architecture): The memory plane stores facts in loom.memory, makes them searchable through loom.memory_embeddings, and derives evidence, chunks, graph rows and statistics… - [Memory consent and derived text](https://loom.clickhouse.com/docs/architecture/memory-consent): A deletion contracts memory and records content refusal before its tombstone commits. memory.delete, a successful memory.delete_version, natural-language… - [Microsoft Agent Framework context provider](https://loom.clickhouse.com/docs/architecture/agent-framework-adapter): LoomContextProvider implements the framework's context-provider interface over the asynchronous Python SDK. - [n8n adapter](https://loom.clickhouse.com/docs/architecture/n8n-adapter): The n8n community package stores conversation history and durable facts in a Loom deployment through the TypeScript SDK. - [OpenAI Agents conversation sessions](https://loom.clickhouse.com/docs/architecture/openai-agents-sessions): LoomSession implements the native Python and TypeScript session interfaces over Loom episodic memories. - [Pipecat demonstration recording](https://loom.clickhouse.com/docs/architecture/pipecat-demo-recording): The optional pipecat-demo.yml workflow renders a timestamped execution visualization of an authenticated native Pipecat text-memory check. - [Provider reconfiguration](https://loom.clickhouse.com/docs/architecture/provider-reconfiguration): Loom stores dashboard model configuration as encrypted, versioned rows in loom.provider_configuration. - [Rolling upgrades: builds N-1 and N side by side](https://loom.clickhouse.com/docs/architecture/rolling-upgrades): Every Loom process is a full replica behind one URL, and an upgrade replaces them one at a time. - [Security](https://loom.clickhouse.com/docs/architecture/security): Loom separates tenants by columns: every row carries the identity tuple, and every read filters on it. - [Server layout](https://loom.clickhouse.com/docs/architecture/server-layout): server/ is organised by domain. - [Sharing knowledge](https://loom.clickhouse.com/docs/architecture/sharing): A collection is a namespace that only grants open. A grant can name a person signed in to Loom, or an end user, group or agent of a service in front of Loom. - [Storage authority: Postgres for live memory, ClickHouse for search](https://loom.clickhouse.com/docs/architecture/storage-authority): Loom runs with one of two memory authorities, chosen per deployment by LOOM_STORAGE_AUTHORITY. - [Storage layout: which store holds each table, and why](https://loom.clickhouse.com/docs/architecture/storage-layout): Each Loom table belongs in Postgres or ClickHouse by how it is read and written; this page places every table, with the wave that moves it. - [System overview](https://loom.clickhouse.com/docs/architecture/system-overview): Loom is a Python server (a FastAPI application plus a supervisor of background workers) and ClickHouse, with Postgres as an option for live memory and… ## Benchmarks - [Adding a benchmark case, dataset or suite](https://loom.clickhouse.com/docs/benchmarks/adding-a-case): The committed sets are small (set sizes), so a new case is the cheapest way to improve the suite. - [Benchmark coverage](https://loom.clickhouse.com/docs/benchmarks/coverage): This matrix shows which parts of Loom's memory, knowledge and code flows have a reproducible public measurement. - [Benchmark methodology](https://loom.clickhouse.com/docs/benchmarks/methodology): This page covers what the harnesses compute, how a delta is judged against noise, when two numbers compare, and where the numbers are biased. - [Benchmark results](https://loom.clickhouse.com/docs/benchmarks/results): This page lists only numbers that a committed file reproduces. - [Benchmarks overview](https://loom.clickhouse.com/docs/benchmarks/overview): Ranking levers, similarity gates, cache thresholds and extraction prompts change behaviour that a unit test cannot judge. - [Running the benchmarks](https://loom.clickhouse.com/docs/benchmarks/running): python bench/x.py puts bench/ on sys.path, not the root. With another checkout's virtualenv on the path, the harness silently runs that checkout's code. - [SDK issue resolution](https://loom.clickhouse.com/docs/benchmarks/sdk-issue-resolution): The SDK issue harness measures proposed patches with and without Loom code lookup. - [Skill eval](https://loom.clickhouse.com/docs/benchmarks/skill-eval): The skill eval grades the loom-memory skill by the namespace an agent leaves behind. ## Concepts - [Agentic memory](https://loom.clickhouse.com/docs/concepts/memory): Learn how agentic memory works, when to use working and long-term memory, and how Loom keeps facts, sources and revisions available across runs. - [Identities and namespaces](https://loom.clickhouse.com/docs/concepts/identities-and-namespaces): Loom answers two questions on every call: whose row is this (the identity tuple, plus two columns the server stamps), and may this caller touch it (the token,… - [Retrieval and ranking](https://loom.clickhouse.com/docs/concepts/retrieval-and-ranking): This page explains how memory.search finds rows. ## Development - [Add a background worker](https://loom.clickhouse.com/docs/development/adding-a-worker): A worker is a row in server/workers/registry.py (_WORKERS) plus a module with one pass function. enabled_workers() turns the enabled rows into WorkerSpecs, and… - [Add a ClickHouse table or column](https://loom.clickhouse.com/docs/development/adding-a-table): Loom's ClickHouse state is tables in the loom and loom_telemetry databases; under the Postgres memory authority, live memory, knowledge state and the records… - [Add an operation](https://loom.clickhouse.com/docs/development/adding-an-operation): An operation is declared once, in the registry. - [Add language support to the code index](https://loom.clickhouse.com/docs/development/adding-language-support): A language is supported when the fast tier has a lane for it. Code index explains the tiers and lists what each language gets. - [Code generation](https://loom.clickhouse.com/docs/development/code-generation): Several files in the repository are derived from the code: the SDKs' operation tables and wire types, the reference pages, the Codex plugin's copies, the op… - [Curation loop design](https://loom.clickhouse.com/docs/development/curation-loop-design): This page is the design of the curation loop, which turns what people ask into definitions an organization stands behind. - [Dashboard design](https://loom.clickhouse.com/docs/development/dashboard-design): The dashboard at / is built on ClickHouse's design system, Click UI, in its dark theme. - [Documentation style guide](https://loom.clickhouse.com/docs/development/documentation-style): How to place a new page in the right section, write it in the house style, and pass the documentation checks on the first push. - [Extend Loom](https://loom.clickhouse.com/docs/development/extending-loom): Loom has one registry per kind of thing: operations, workers, settings, providers, language lanes, extraction steps and tracker sources. - [Local development](https://loom.clickhouse.com/docs/development/local-development): This page sets up a checkout for working on Loom's code. To evaluate Loom without changing it, the quickstart (loom up) is shorter. - [Migrations](https://loom.clickhouse.com/docs/development/migrations): This page holds the rules for writing a migration. - [Release process](https://loom.clickhouse.com/docs/development/release-process): Loom follows SemVer: the server, both SDKs, the web app, the root skills (loom-code, loom), the Cursor plugin and the Agent Plugins package that ship them, and… - [Repository guide](https://loom.clickhouse.com/docs/development/repository-guide): What every top-level directory holds, where a concern lives inside server/, the order to read the code in, and the conventions a pull request fails without. - [Testing](https://loom.clickhouse.com/docs/development/testing): Which suite a test belongs in, what each suite needs to run, how tests skip when their environment is missing, which gates CI enforces, and how to regenerate… ## Features - [Conversations and sessions](https://loom.clickhouse.com/docs/features/conversations-and-sessions): Storing a turn does not create a memory; to turn a conversation into facts, post it to memory.set_from_messages. - [Entity graph](https://loom.clickhouse.com/docs/features/entity-graph): Loom keeps an entity graph beside the memory rows, in the same ClickHouse database. Entities are nodes. - [Knowledge documents](https://loom.clickhouse.com/docs/features/knowledge): A knowledge document is text an agent looks things up in: a runbook, a specification, a README. - [Namespaces and sharing](https://loom.clickhouse.com/docs/features/namespaces-and-sharing): A namespace is the unit of isolation and sharing inside an org. - [Runs](https://loom.clickhouse.com/docs/features/runs): A run is one execution of a task, such as "triage issue 1234". run.begin opens it and returns a run_id; the agent passes that id on its writes (memory.set,… - [Tasks, decisions and policies](https://loom.clickhouse.com/docs/features/tasks-and-decisions): Three planes sit beside memory for coordination between agents. - [The dashboard](https://loom.clickhouse.com/docs/features/dashboard): The dashboard is a React single-page app the Loom server serves at its root URL. - [Unified search and context packs](https://loom.clickhouse.com/docs/features/unified-search): loom_search searches memory, profile, knowledge, past conversations and readable issues and PRs across the caller's namespaces in one round trip. context.pack… ### Code Index - [Adding repositories](https://loom.clickhouse.com/docs/features/code-index/repositories): A fresh install indexes no repository. Entries come from two sources, merged: the repositories people add themselves and the operator's configuration. - [Code index for coding agents over MCP](https://loom.clickhouse.com/docs/features/code-index/overview): With code workers enabled for a repository, Loom indexes it into ClickHouse and answers structure questions through the code.* operations: where a symbol is… - [Code index freshness](https://loom.clickhouse.com/docs/features/code-index/freshness): The index trails the repository: it indexes merged commits on a configured branch, pass by pass, and each tier advances its own watermark. - [Code operations](https://loom.clickhouse.com/docs/features/code-index/operations): This page maps questions to code.* ops. Every argument and output is in the generated operations reference, and in each op's MCP description. - [History, PRs and releases](https://loom.clickhouse.com/docs/features/code-index/history-and-prs): Inspect merged PRs, review comments and regression candidates in ClickHouse Loom. History collection is opt-in, and candidate rankings do not prove causation. ### Integrations - [Integrations](https://loom.clickhouse.com/docs/features/integrations): Integrations put Loom's tools in front of a model, capture its conversations, or receive its telemetry. - [Agent frameworks and orchestrators](https://loom.clickhouse.com/docs/features/integrations/frameworks): The SDKs ship adapters that present Loom through a framework's own memory or retrieval interface. - [Agent instructions](https://loom.clickhouse.com/docs/features/integrations/agent-instructions): A short block in an agent's instruction file tells it when to load Loom's context, save a fact and use the code index instead of grepping or reading files. - [Agent Substrate](https://loom.clickhouse.com/docs/features/integrations/agent-substrate): Needs Agent Substrate v1.0.0 and Loom's Helm chart in one Kubernetes cluster: Substrate's egress gateway adds each agent's Loom token to its MCP calls. - [Claude Code plugin](https://loom.clickhouse.com/docs/features/integrations/claude-code): Source: integrations/claude-code-plugin/, Node ESM scripts with no dependencies. The Codex build runs the same scripts; see . - [ClickStack and HyperDX](https://loom.clickhouse.com/docs/features/integrations/clickstack): Loom always emits OpenTelemetry; the HyperDX sources, dashboards and the erasure step need configuring. - [Codex plugin](https://loom.clickhouse.com/docs/features/integrations/codex): The Codex plugin gives Codex the same Loom integration as Claude Code: MCP tools, hooks that capture the session and load a primer, and the code shunt. - [Cursor](https://loom.clickhouse.com/docs/features/integrations/cursor): Connect Cursor to Loom over MCP. Share project decisions across sessions, use indexed code, and choose a local or team MCP setup. - [Langfuse](https://loom.clickhouse.com/docs/features/integrations/langfuse): Needs LOOM_LANGFUSE_URL and LOOM_LANGFUSE_ADMIN_TOKEN; nothing is sent until both are set. - [LibreChat](https://loom.clickhouse.com/docs/features/integrations/librechat): Needs LibreChat v0.8.8 (MIT), a Loom server that serves the assistant toolset, and one Loom viewer token per person. - [OKF bundles](https://loom.clickhouse.com/docs/features/integrations/okf): A namespace can be rendered as an OKF (Open Knowledge Format) v0.2 bundle: one Markdown file per memory with YAML frontmatter, an index.md per directory… - [Connect to Loom's MCP memory server](https://loom.clickhouse.com/docs/features/integrations/mcp-clients): Connect Claude Code, Codex, Cursor and other MCP clients to Loom. Check shared recall through separate writer and reader sessions. - [The grep shim](https://loom.clickhouse.com/docs/features/integrations/grep-shim): The grep shim is a grep/rg wrapper that appends each hit's enclosing function, from the code index, to the match line; it needs Node 18 or later, a viewer… - [VS Code](https://loom.clickhouse.com/docs/features/integrations/vscode): Connect GitHub Copilot in VS Code to Loom over MCP. Save project decisions and recall them across chats and editors with access to the same namespace. ### Memory - [Conflicts and refusal](https://loom.clickhouse.com/docs/features/memory/conflicts-and-refusal): Every memory write is judged against the facts the namespace already holds. - [Extraction from transcripts](https://loom.clickhouse.com/docs/features/memory/extraction): memory.set_from_messages takes a transcript and the server decides what in it is durable. - [History and provenance](https://loom.clickhouse.com/docs/features/memory/history-and-provenance): Every write to memory makes a new version; nothing is edited in place. - [Procedures and learnings](https://loom.clickhouse.com/docs/features/memory/procedures-and-learnings): Use procedural memory to give AI agents reusable steps for recurring tasks. Find matching procedures, inspect prior runs, and review candidate lessons. - [Retention and erasure](https://loom.clickhouse.com/docs/features/memory/retention-and-erasure): Loom deletes no memory unless its writer, the namespace owner or the operator asks. Memory has no default lifetime. - [Search and ask](https://loom.clickhouse.com/docs/features/memory/search-and-ask): memory.search returns ranked hits for the agent to read. memory.ask runs the same retrieval and has an LLM write an answer grounded in those memories, citing… - [Working memory and profiles](https://loom.clickhouse.com/docs/features/memory/working-memory-and-profiles): Use memory.set for anything a later session should find by asking. Use these planes for what it should be told without asking. - [Writing memory](https://loom.clickhouse.com/docs/features/memory/writing): A memory is one claim stored under a key in a namespace. ### Observability - [Audit log](https://loom.clickhouse.com/docs/features/observability/audit): Audit rows, the audit_verifier worker and the checkpoint chain are on by default. - [Cost and usage](https://loom.clickhouse.com/docs/features/observability/cost-and-usage): Track coding-agent token usage, cache activity, and estimated model cost by session. Check for unpriced turns and view Loom's server-side spend separately. - [Telemetry](https://loom.clickhouse.com/docs/features/observability/telemetry): All three share the request id. The audit log is a separate record of who changed what, with tamper evidence. ### Tracker - [Issue duplicate checks and regression candidates for agents](https://loom.clickhouse.com/docs/features/tracker/overview): With LOOM_TRACKER_ORG set and a registered source, Loom lets agents check whether a bug is already reported and rank changes that may have introduced a… - [Maintain a GitHub tracker record](https://loom.clickhouse.com/docs/features/tracker/github-feed): loom tracker-feed copies repository issues, pull requests, issue comments and inline review comments into a team's dedicated ClickHouse database. - [Tracker record contract](https://loom.clickhouse.com/docs/features/tracker/record-contract): The tracker.* ops, and the tracker legs of code.* and loom_search, read a team's issues, pull requests and incidents live from the team's own ClickHouse with a… ## Getting Started - [Configure models and API keys](https://loom.clickhouse.com/docs/getting-started/models-and-keys): Your coding agent, Loom's internal LLM and Loom's embedding model are separate choices. - [Evaluate Loom](https://loom.clickhouse.com/docs/getting-started/evaluate): Test shared agent memory and namespace isolation. Compare coding tasks with and without memory using the same acceptance tests, budgets, and starting revisions. - [Overview](https://loom.clickhouse.com/docs/getting-started/overview): Loom is a server that stores memory, documents, conversations, an entity graph and a code index for AI agents, as rows in ClickHouse, with Postgres as an… - [Quickstart](https://loom.clickhouse.com/docs/getting-started/quickstart): This page boots Loom on a laptop and saves a first memory over HTTP, Python and MCP. It needs no API key and no account. - [Set up Loom with your coding agent](https://loom.clickhouse.com/docs/getting-started/agent-setup): This page is for a coding agent, Claude Code or Codex, asked to install Loom on the machine it runs on and to prove that the install works. - [Shared memory for Claude Code, Codex and Cursor](https://loom.clickhouse.com/docs/getting-started/connect-a-coding-agent): Share persistent project memory across Claude Code, Codex and Cursor. Verify that a fresh coding session retrieves a fact saved by another tool. - [What's included](https://loom.clickhouse.com/docs/getting-started/whats-included): This page lists Loom's main capabilities, self-hosted from the Apache-2.0 repository: one section per area, each row linked to the page that covers it. - [Your first agent](https://loom.clickhouse.com/docs/getting-started/first-agent): This tutorial builds a small agent with the Python SDK. ## Guides - [Guides](https://loom.clickhouse.com/docs/guides): Choose AI software factory tools, evaluate shared agent memory, and follow Loom workflows for repository questions and source-backed knowledge. - [Code tools for model integrations](https://loom.clickhouse.com/docs/guides/code-tools): An indexed code namespace and a token with read access let an SDK tool loop investigate definitions, behavior and relationships with loom_code_lookup. - [Customize the extraction pipeline](https://loom.clickhouse.com/docs/guides/extraction-pipeline): memory.set_from_messages runs its transcript through an ordered list of steps that share one state. - [Debug a request](https://loom.clickhouse.com/docs/guides/debugging): Loom tags everything one request does with the same id, so tracing a request is a join. - [Headless bots](https://loom.clickhouse.com/docs/guides/headless-bots): A headless bot runs with no person to paste a token, notice a silent failure or say "remember this". - [How to choose AI software factory tools](https://loom.clickhouse.com/docs/guides/software-factory-tools): Compare AI software factory tools for planning, coding, review, CI, deployment and shared memory. Score a pilot on release gates and cost per accepted change. - [Import ClickGap memory](https://loom.clickhouse.com/docs/guides/importing-clickgap-memory): loom import-clickgap loads one SQLite export shape, a ClickGap lessons store, into a Loom namespace; skip this page unless you have such an export. - [Integrate Loom into an agent](https://loom.clickhouse.com/docs/guides/agent-integration): This guide covers what an agent sends to Loom and how it reads the answers: the client surface, the identity, what to write, and how to read. - [Optimize a namespace from its audit](https://loom.clickhouse.com/docs/guides/optimize-namespace): A writer that uses memory.set as an object store (JSON blobs under hash keys, leases as memories, documents as claims) leaves every table consistent and recall… - [Query Loom from Postgres](https://loom.clickhouse.com/docs/guides/query-from-postgres): This guide reads a tenant's memories, conversations and usage from the org's own Postgres, where they can be joined with the application's tables. - [Answer repository questions without a local checkout](https://loom.clickhouse.com/docs/guides/repository-questions): Give triage agents, design assistants and team chatbots access to indexed repositories. Retrieve code citations and check answer scope, freshness and completeness. - [Store an investigation agent's memory](https://loom.clickhouse.com/docs/guides/investigation-agent-memory): An investigation agent produces several kinds of state, and Loom has a plane for each. This page says which plane each kind goes to. - [Teaching with Loom](https://loom.clickhouse.com/docs/guides/teaching): Loom can serve as the lab environment for a course on AI agents, information retrieval, databases or software engineering. - [Tokens and grants](https://loom.clickhouse.com/docs/guides/tokens-and-grants): Every call carries one JWT. The token fixes the caller (sub), the org, the namespaces it may read and the roles it holds. - [Trace and resume long agent runs](https://loom.clickhouse.com/docs/guides/trace-and-resume): Resume an AI agent after a crash with a durable checkpoint. Run a catalog job twice and verify that retrying a saved item creates one result. - [Tune Loom's performance](https://loom.clickhouse.com/docs/guides/performance-tuning): Every lever on this page is a setting or a request field. The configuration reference gives each setting's default and meaning. - [Use Loom without the dashboard](https://loom.clickhouse.com/docs/guides/without-the-dashboard): Everything the /me dashboard does can be done from a terminal, a script or an agent's shell. ## Operations - [Attaching the first cell](https://loom.clickhouse.com/docs/operations/cell-attach): loom cell attach turns a prepared first cell (loom cell prepare, mode recording, directory row attaching) into a serving one: it places every org the cell… - [Backup and recovery](https://loom.clickhouse.com/docs/operations/backup-and-recovery): A Loom backup is a ClickHouse backup, plus the document bucket while any catalog row names an object in it, and under the Postgres authority a backup of… - [Cell control upgrades and recovery](https://loom.clickhouse.com/docs/operations/cell-control): Cell control mutations require generation-aware clients and router handlers, and direct access to the cell's Postgres. - [ClickHouse Cloud and Managed Postgres](https://loom.clickhouse.com/docs/operations/clickhouse-cloud): This guide runs Loom on Kubernetes over two managed services: ClickHouse Cloud for projections, vectors, history and analytics, and ClickHouse Managed Postgres… - [Code index operations](https://loom.clickhouse.com/docs/operations/code-index-operations): This page covers how to enable the code index workers, configure repositories and keep the index current; the code index runs only when an operator enables its… - [Copying a namespace to another Loom](https://loom.clickhouse.com/docs/operations/okf-sync): A job inside the private network copies one namespace from a private Loom to a public one on a schedule: loom export-okf reads it from the private Loom, and… - [Deployment](https://loom.clickhouse.com/docs/operations/deployment): Loom is one server image plus ClickHouse (and Postgres, under LOOM_STORAGE_AUTHORITY=postgres), with the document extractor service as an image of its own (… - [Exporting usage to a data warehouse](https://loom.clickhouse.com/docs/operations/analytics-export): loom export-analytics writes one UTC day of usage and a snapshot of the namespaces to an S3 bucket as Parquet files, one file per entity per day, for a data… - [Kubernetes](https://loom.clickhouse.com/docs/operations/kubernetes): deploy/helm/loom runs Loom as N identical replicas on Kubernetes: one Deployment of web pods over one ClickHouse service, each pod a full replica. - [Maintenance](https://loom.clickhouse.com/docs/operations/maintenance): Every command here is a loom subcommand; run it inside the container that has the deployment's environment (docker exec loom-server loom …, or loom-workers in… - [Monitoring](https://loom.clickhouse.com/docs/operations/monitoring): Metric names and labels are catalogued in telemetry. - [Postgres memory authority](https://loom.clickhouse.com/docs/operations/postgres): This guide sets up a Loom deployment whose live memory and knowledge document heads are held in Postgres, on ClickHouse Managed Postgres or on a self-hosted… - [Running N replicas](https://loom.clickhouse.com/docs/operations/replicas): Every Loom process is a full replica. - [Runtime settings](https://loom.clickhouse.com/docs/operations/runtime-settings): Every setting is an environment variable LOOM_ read at startup, and can also go in the YAML settings file (configuration reference). - [Single sign-on (OIDC)](https://loom.clickhouse.com/docs/operations/sso): Loom can hand the human sign-in to an OpenID Connect identity provider. - [Supported versions](https://loom.clickhouse.com/docs/operations/supported-versions): Releases N and N−1 get fixes, and an SDK at X.Y works with a server at X.Y or X.(Y−1). - [Troubleshooting](https://loom.clickhouse.com/docs/operations/troubleshooting): Each entry gives a symptom, the check that confirms its cause, and the fix. To follow one request through the ledger, query log and traces, see debug a request. - [Update a cell's configuration or addresses](https://loom.clickhouse.com/docs/operations/cell-update): loom cell update reserves a configuration before the cell accepts it. Run it with that cell's stores, LOOM_CELL, and the router operator credential configured. - [Upgrades](https://loom.clickhouse.com/docs/operations/upgrades): An upgrade replaces the image (and the document extractor's, which holds no state) and applies the migrations the new build carries. ## Reference - [Reference](https://loom.clickhouse.com/docs/reference): Reference pages say what exists and what each option means. The reasons behind a design are in Concepts and Architecture. - [CLI reference](https://loom.clickhouse.com/docs/reference/cli): loom is the one command-line entry point for running, maintaining and connecting to a Loom deployment. - [Configuration reference](https://loom.clickhouse.com/docs/reference/configuration): Every setting is declared in one file, server/settings/catalog.py, and is an environment variable LOOM_ read at startup into server.settings.settings. - [Environment variables reference](https://loom.clickhouse.com/docs/reference/environment): Almost everything Loom is configured with is a settings field: the environment variable LOOM_ of a field on server.settings.Settings, listed with its… - [Errors reference](https://loom.clickhouse.com/docs/reference/errors): Every refusal Loom makes carries a stable, upper-case code. The code is the contract; the message is for people and can change in any release. - [Extractor contract](https://loom.clickhouse.com/docs/reference/extractor-contract): An extractor is an HTTP service the Loom server sends an original file to and gets its extraction artifact back from. - [Go SDK for AI agent memory](https://loom.clickhouse.com/docs/reference/go-sdk): Connect a Go service to self-hosted Loom to save, retrieve, search, and delete agent memories over HTTP. - [HTTP API reference](https://loom.clickhouse.com/docs/reference/http-api): Every Loom operation is one HTTP endpoint, POST /v1/, generated from the operation registry in server/operations/ (server/transport/http.py,… - [MCP reference](https://loom.clickhouse.com/docs/reference/mcp): Loom serves its operations as MCP tools at /mcp. Any MCP client that speaks streamable HTTP connects with a URL and a bearer token. - [Operations reference](https://loom.clickhouse.com/docs/reference/operations): An operation (op) is one named unit of work on the Loom wire, such as memory.set or code.search. Each op is declared once, in the operation registry. - [Python SDK reference](https://loom.clickhouse.com/docs/reference/python-sdk): The Python SDK (clickhouse-loom, source in sdk/python/loom/) is an async client over the HTTP API. - [Schema reference](https://loom.clickhouse.com/docs/reference/schema): Loom keeps its ClickHouse state in the loom and loom_telemetry databases. - [SQL surface](https://loom.clickhouse.com/docs/reference/sql-surface): The SQL surface is a set of read-only ClickHouse views over a tenant's memories, memory history, conversations and request ledger. - [Status of Loom's surfaces](https://loom.clickhouse.com/docs/reference/status): This page counts each op group's stable ops, names its experimental ones, and lists every boolean setting that loads false, so a caller can tell, before… - [TypeScript SDK reference](https://loom.clickhouse.com/docs/reference/typescript-sdk): The TypeScript SDK (@clickhouse/loom, source in sdk/typescript/src/) is a typed client over the HTTP API. - [Workers reference](https://loom.clickhouse.com/docs/reference/workers): A worker is a supervised background loop: one pass function run on an interval by the worker supervisor. ### Operations - [admin operations](https://loom.clickhouse.com/docs/reference/operations/admin): The exact fields each admin.* operation takes and returns. - [agents operations](https://loom.clickhouse.com/docs/reference/operations/agents): The exact fields each agents.* operation takes and returns. - [assistant operations](https://loom.clickhouse.com/docs/reference/operations/assistant): The exact fields each assistant.* operation takes and returns. - [audit operations](https://loom.clickhouse.com/docs/reference/operations/audit): The exact fields each audit.* operation takes and returns. - [blacklist operations](https://loom.clickhouse.com/docs/reference/operations/blacklist): The exact fields each blacklist.* operation takes and returns. - [calibration operations](https://loom.clickhouse.com/docs/reference/operations/calibration): The exact fields each calibration.* operation takes and returns. - [code operations](https://loom.clickhouse.com/docs/reference/operations/code): The exact fields each code.* operation takes and returns. - [collection operations](https://loom.clickhouse.com/docs/reference/operations/collection): The exact fields each collection.* operation takes and returns. - [conflicts operations](https://loom.clickhouse.com/docs/reference/operations/conflicts): The exact fields each conflicts.* operation takes and returns. - [connection operations](https://loom.clickhouse.com/docs/reference/operations/connection): The exact fields each connection.* operation takes and returns. - [consolidations operations](https://loom.clickhouse.com/docs/reference/operations/consolidations): The exact fields each consolidations.* operation takes and returns. - [context operations](https://loom.clickhouse.com/docs/reference/operations/context): The exact fields each context.* operation takes and returns. - [conversation operations](https://loom.clickhouse.com/docs/reference/operations/conversation): The exact fields each conversation.* operation takes and returns. - [cost operations](https://loom.clickhouse.com/docs/reference/operations/cost): The exact fields each cost.* operation takes and returns. - [decision operations](https://loom.clickhouse.com/docs/reference/operations/decision): The exact fields each decision.* operation takes and returns. - [erasure operations](https://loom.clickhouse.com/docs/reference/operations/erasure): The exact fields each erasure.* operation takes and returns. - [extraction_policy operations](https://loom.clickhouse.com/docs/reference/operations/extraction_policy): The exact fields each extraction_policy.* operation takes and returns. - [facts operations](https://loom.clickhouse.com/docs/reference/operations/facts): The exact fields each facts.* operation takes and returns. - [grants operations](https://loom.clickhouse.com/docs/reference/operations/grants): The exact fields each grants.* operation takes and returns. - [help operations](https://loom.clickhouse.com/docs/reference/operations/help): The exact fields each help.* operation takes and returns. - [inbox operations](https://loom.clickhouse.com/docs/reference/operations/inbox): The exact fields each inbox.* operation takes and returns. - [insights operations](https://loom.clickhouse.com/docs/reference/operations/insights): The exact fields each insights.* operation takes and returns. - [knowledge operations](https://loom.clickhouse.com/docs/reference/operations/knowledge): The exact fields each knowledge.* operation takes and returns. - [learnings operations](https://loom.clickhouse.com/docs/reference/operations/learnings): The exact fields each learnings.* operation takes and returns. - [memory operations](https://loom.clickhouse.com/docs/reference/operations/memory): The exact fields each memory.* operation takes and returns. - [memory_schema operations](https://loom.clickhouse.com/docs/reference/operations/memory_schema): The exact fields each memory_schema.* operation takes and returns. - [mentor operations](https://loom.clickhouse.com/docs/reference/operations/mentor): The exact fields each mentor.* operation takes and returns. - [namespace operations](https://loom.clickhouse.com/docs/reference/operations/namespace): The exact fields each namespace.* operation takes and returns. - [observe operations](https://loom.clickhouse.com/docs/reference/operations/observe): The exact fields each observe.* operation takes and returns. - [ops operations](https://loom.clickhouse.com/docs/reference/operations/ops): The exact fields each ops.* operation takes and returns. - [org operations](https://loom.clickhouse.com/docs/reference/operations/org): The exact fields each org.* operation takes and returns. - [policy operations](https://loom.clickhouse.com/docs/reference/operations/policy): The exact fields each policy.* operation takes and returns. - [procedure operations](https://loom.clickhouse.com/docs/reference/operations/procedure): The exact fields each procedure.* operation takes and returns. - [profile operations](https://loom.clickhouse.com/docs/reference/operations/profile): The exact fields each profile.* operation takes and returns. - [profile_schema operations](https://loom.clickhouse.com/docs/reference/operations/profile_schema): The exact fields each profile_schema.* operation takes and returns. - [run operations](https://loom.clickhouse.com/docs/reference/operations/run): The exact fields each run.* operation takes and returns. - [search operations](https://loom.clickhouse.com/docs/reference/operations/search): The exact fields each search.* operation takes and returns. - [session operations](https://loom.clickhouse.com/docs/reference/operations/session): The exact fields each session.* operation takes and returns. - [task operations](https://loom.clickhouse.com/docs/reference/operations/task): The exact fields each task.* operation takes and returns. - [tracker operations](https://loom.clickhouse.com/docs/reference/operations/tracker): The exact fields each tracker.* operation takes and returns. - [ui operations](https://loom.clickhouse.com/docs/reference/operations/ui): The exact fields each ui.* operation takes and returns. - [webhook operations](https://loom.clickhouse.com/docs/reference/operations/webhook): The exact fields each webhook.* operation takes and returns. - [working_memory operations](https://loom.clickhouse.com/docs/reference/operations/working_memory): The exact fields each working_memory.* operation takes and returns. ## Use Cases - [Use cases](https://loom.clickhouse.com/docs/use-cases): Each page answers one question people and agents ask when they look for a tool: what Loom does for that need and where to start. - [Agent runs, traces and PR history](https://loom.clickhouse.com/docs/use-cases/runs-and-pr-history): Record scoped agent runs and conversations, check tracker-backed bug drafts for duplicates and inspect candidate pull requests without claiming a proven cause. - [Memory, recall, audit and erasure for autonomous agents](https://loom.clickhouse.com/docs/use-cases/autonomous-agents): Give autonomous AI agents self-hosted long-term memory. Resume a stopped job, reuse facts across runs, and audit who wrote each fact. - [Build a knowledge factory for AI agents](https://loom.clickhouse.com/docs/use-cases/knowledge-factory): Build a knowledge factory with Loom. Publish a runbook, retrieve a cited revision, and update a saved lesson while keeping its history. - [Code intelligence for C++, Python, TypeScript, Go, Rust, Java and infrastructure code](https://loom.clickhouse.com/docs/use-cases/code-intelligence-by-language): Loom's code index answers a coding agent's structure questions in the languages a repository holds: where a symbol is defined, who calls it, and what a change… - [Document search and RAG for agents](https://loom.clickhouse.com/docs/use-cases/document-search): Index internal documents and give AI agents cited passages over MCP, HTTP or SDKs. Check source revisions and scope access by namespace. - [Lower model cost for coding agents](https://loom.clickhouse.com/docs/use-cases/coding-agent-cost): With the Loom plugin and code index, Claude Code answered questions about the ClickHouse codebase at 6% to 21% lower model cost than without it on all three… - [A code index for coding agents](https://loom.clickhouse.com/docs/use-cases/code-intelligence): Search indexed repositories over MCP, inspect definitions and callers, check tier-specific commits and follow code-linked lessons before changing code. - [Memory for coding agents across sessions and tools](https://loom.clickhouse.com/docs/use-cases/agent-memory): Choose and evaluate shared memory for coding agents with cross-session recall, scoped access, corrected facts and lessons linked to current code. - [Memory linked to code for coding agents](https://loom.clickhouse.com/docs/use-cases/memory-linked-to-code): Link agent lessons to functions, classes and files. Follow those links through refactors and check which lessons refer to changed or removed code. - [Self-hosted agent memory on ClickHouse](https://loom.clickhouse.com/docs/use-cases/self-hosted-clickhouse): Evaluate self-hosted agent memory for coding agents. Verify local semantic recall and query decision history and writer provenance with SQL. - [Shared memory for a software factory and multi-agent workflows](https://loom.clickhouse.com/docs/use-cases/multi-agent): Choose shared agent memory for a software factory. Test one coding-agent handoff for source freshness, scoped access and evidence a reviewer can reuse. ## Español ### Docs - [Glosario](https://loom.clickhouse.com/docs/es/glossary): Los términos de Loom, en orden alfabético, cada uno definido una sola vez. Los identificadores de código van entre acentos graves. - [Preguntas frecuentes](https://loom.clickhouse.com/docs/es/faq): Respuestas breves a las primeras preguntas que suele hacer la gente. Cada una enlaza a la página que la explica. ### Architecture - [Adaptador de herramientas de Dify](https://loom.clickhouse.com/docs/es/architecture/dify-adapter): El plugin de Dify llama a Loom a través del SDK de Python y no almacena contenido de forma local. - [Adaptador de n8n](https://loom.clickhouse.com/docs/es/architecture/n8n-adapter): El paquete de la comunidad de n8n almacena el historial de conversaciones y los hechos duraderos en un despliegue de Loom mediante el SDK de TypeScript. - [Árbol de archivos de memoria de la Claude API](https://loom.clickhouse.com/docs/es/architecture/claude-memory-adapter): El adaptador de memoria de la Claude API implementa las bases de la herramienta de memoria del framework en Python y los handlers de memoria en TypeScript… - [Arquitectura del índice de código](https://loom.clickhouse.com/docs/es/architecture/code-index-architecture): Esta página es la vista interna del índice de código: cómo los archivos se convierten en fragmentos, símbolos y aristas, y cómo se mantienen actualizados los… - [Autoridad de almacenamiento: Postgres para la memoria activa, ClickHouse para la búsqueda](https://loom.clickhouse.com/docs/es/architecture/storage-authority): Loom funciona con una de dos autoridades de memoria, que se elige por despliegue mediante LOOM_STORAGE_AUTHORITY. - [Base de datos de memoria de usuario de Agno](https://loom.clickhouse.com/docs/es/architecture/agno-adapter): El adaptador de Agno implementa los métodos de memoria de usuario de su interfaz BaseDb 3.2 a través del SDK síncrono de Loom. - [Borradores de definiciones](https://loom.clickhouse.com/docs/es/architecture/definition-drafts): Requiere knowledge_gaps_enabled para los borradores de brechas o knowledge_query_history_enabled para el historial de consultas. - [Celdas](https://loom.clickhouse.com/docs/es/architecture/cells): La memoria de un despliegue puede crecer más allá de un primario de Postgres y un servicio de ClickHouse, y una organización puede querer su memoria en… - [Document store y retriever de Haystack](https://loom.clickhouse.com/docs/es/architecture/haystack-adapter): El adaptador opcional de Haystack 3.5 implementa su protocolo de document store y un componente de recuperación nativo a través del SDK síncrono de Loom. - [Estructura del servidor](https://loom.clickhouse.com/docs/es/architecture/server-layout): server/ está organizado por dominio. - [Extracción de documentos](https://loom.clickhouse.com/docs/es/architecture/document-extraction): Un original subido se analiza y se convierte en una única estructura, el artefacto de extracción, mediante un servicio extractor: un proceso independiente con… - [Fallos y recuperación](https://loom.clickhouse.com/docs/es/architecture/failure-and-recovery): La escritura principal y toda decisión de acceso fallan de forma cerrada (fail closed). - [Feed de GitHub para el tracker](https://loom.clickhouse.com/docs/es/architecture/github-feed): El feed de GitHub mantiene el registro de tracker de un equipo en la base de datos ClickHouse del equipo. - [Notificaciones push de fuentes de documentos](https://loom.clickhouse.com/docs/es/architecture/source-push): Requiere LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true para solicitar sincronizaciones de fuentes de documentos a partir de las notificaciones del proveedor. - [Presupuestos de costo](https://loom.clickhouse.com/docs/es/architecture/cost-budgets): Los límites por espacio de nombres y por usuario con nombre usan el registro de costo móvil de 24 horas en agent_events. - [Proveedor de contexto de Microsoft Agent Framework](https://loom.clickhouse.com/docs/es/architecture/agent-framework-adapter): LoomContextProvider implementa la interfaz de proveedor de contexto del framework sobre el SDK asíncrono de Python. - [Reconfiguración de proveedores](https://loom.clickhouse.com/docs/es/architecture/provider-reconfiguration): Loom almacena la configuración de modelos del dashboard como filas cifradas y versionadas en loom.provider_configuration. - [Servicio de memoria de Google ADK](https://loom.clickhouse.com/docs/es/architecture/google-adk-adapter): El adaptador de Google ADK implementa el servicio de memoria del framework a través de los SDK de Python y TypeScript de Loom. - [Sesiones de conversación de OpenAI Agents](https://loom.clickhouse.com/docs/es/architecture/openai-agents-sessions): LoomSession implementa las interfaces de sesión nativas de Python y TypeScript sobre las memorias episódicas de Loom. - [Solicitudes de traducción de la documentación](https://loom.clickhouse.com/docs/es/architecture/documentation-translation): El generador de traducciones divide el texto en inglés preparado en solicitudes acotadas y luego verifica la traducción ensamblada antes de escribirla. ### Benchmarks - [Añadir un caso, un dataset o una suite de benchmark](https://loom.clickhouse.com/docs/es/benchmarks/adding-a-case): Los conjuntos incluidos en el repositorio son pequeños (tamaños de los conjuntos), así que añadir un caso nuevo es la forma más barata de mejorar la suite. - [Cobertura de benchmarks](https://loom.clickhouse.com/docs/es/benchmarks/coverage): Esta matriz muestra qué partes de los flujos de memoria, conocimiento y código de Loom tienen una medición pública reproducible. - [Evaluación de la skill](https://loom.clickhouse.com/docs/es/benchmarks/skill-eval): La evaluación de la skill califica la skill loom-memory según el espacio de nombres que un agente deja tras de sí. - [Metodología de benchmarks](https://loom.clickhouse.com/docs/es/benchmarks/methodology): Esta página describe qué calculan los harnesses, cómo se juzga un delta frente al ruido, cuándo dos números son comparables y dónde están sesgados los números. - [Resumen de benchmarks](https://loom.clickhouse.com/docs/es/benchmarks/overview): Las palancas de ranking, los umbrales de similitud, los umbrales de caché y los prompts de extracción cambian un comportamiento que una prueba unitaria no… ### Concepts - [Recuperación y ranking](https://loom.clickhouse.com/docs/es/concepts/retrieval-and-ranking): Esta página explica cómo memory.search encuentra filas. ### Development - [Agregar una tabla o columna de ClickHouse](https://loom.clickhouse.com/docs/es/development/adding-a-table): El estado de ClickHouse en Loom son tablas en las bases de datos loom y loom_telemetry; bajo la autoridad de memoria en Postgres, la memoria activa, el estado… - [Añadir compatibilidad con un lenguaje al índice de código](https://loom.clickhouse.com/docs/es/development/adding-language-support): Un lenguaje cuenta con compatibilidad cuando el nivel rápido tiene una vía para él. Índice de código explica los niveles y enumera lo que obtiene cada lenguaje. - [Añadir un worker en segundo plano](https://loom.clickhouse.com/docs/es/development/adding-a-worker): Un worker es una fila en server/workers/registry.py (_WORKERS) más un módulo con una función de pasada. enabled_workers() convierte las filas habilitadas en… - [Añadir una operación](https://loom.clickhouse.com/docs/es/development/adding-an-operation): Una operación se declara una sola vez, en el registro. - [Extender Loom](https://loom.clickhouse.com/docs/es/development/extending-loom): Loom tiene un registro por cada tipo de elemento: operaciones, workers, ajustes, proveedores, carriles de lenguaje, pasos de extracción y fuentes del tracker. - [Generación de código](https://loom.clickhouse.com/docs/es/development/code-generation): Varios archivos del repositorio se derivan del código: las tablas de operaciones y los tipos de wire de los SDK, las páginas de referencia, las copias del… - [Guía de estilo de la documentación](https://loom.clickhouse.com/docs/es/development/documentation-style): Cómo ubicar una página nueva en la sección correcta, escribirla con el estilo de la casa y superar las comprobaciones de la documentación en el primer push. - [Proceso de lanzamiento](https://loom.clickhouse.com/docs/es/development/release-process): Loom sigue SemVer: el servidor, ambos SDK, la aplicación web, las skills raíz (loom-code, loom), el plugin de Cursor y el paquete Agent Plugins que las… ### Features - [Ejecuciones](https://loom.clickhouse.com/docs/es/features/runs): Una ejecución (run) es una ejecución de una tarea, como "triage issue 1234". run.begin la abre y devuelve un run_id; el agente pasa ese id en sus escrituras (… - [Grafo de entidades](https://loom.clickhouse.com/docs/es/features/entity-graph): Loom mantiene un grafo de entidades junto a las filas de memoria, en la misma base de datos de ClickHouse. Las entidades son nodos. #### Code Index - [Actualidad del índice de código](https://loom.clickhouse.com/docs/es/features/code-index/freshness): El índice va por detrás del repositorio: indexa los commits fusionados de una rama configurada, pasada a pasada, y cada nivel avanza su propia marca de agua. - [Agregar repositorios](https://loom.clickhouse.com/docs/es/features/code-index/repositories): Una instalación nueva no indexa ningún repositorio. - [Historial, PR y releases](https://loom.clickhouse.com/docs/es/features/code-index/history-and-prs): Estas ops necesitan el historial de PR fusionados; el worker code_pr_history está desactivado por defecto (LOOM_CODE_PR_HISTORY_ENABLED). #### Integrations - [Agente Substrate](https://loom.clickhouse.com/docs/es/features/integrations/agent-substrate): Requiere Agente Substrate v1.0.0 y el chart de Helm de Loom en un mismo clúster de Kubernetes: el gateway de salida de Substrate agrega el token de Loom de… - [ClickStack y HyperDX](https://loom.clickhouse.com/docs/es/features/integrations/clickstack): Loom siempre emite OpenTelemetry; las fuentes de HyperDX, los paneles y el paso de borrado necesitan configuración. - [El shim de grep](https://loom.clickhouse.com/docs/es/features/integrations/grep-shim): El shim de grep es un wrapper de grep/rg que añade a la línea de cada coincidencia la función que la contiene, obtenida del índice de código; requiere Node 18… - [Instrucciones para agentes](https://loom.clickhouse.com/docs/es/features/integrations/agent-instructions): Un bloque corto en el archivo de instrucciones de un agente le indica cuándo cargar el contexto de Loom, guardar un hecho y usar el índice de código en lugar… - [Langfuse](https://loom.clickhouse.com/docs/es/features/integrations/langfuse): Necesita LOOM_LANGFUSE_URL y LOOM_LANGFUSE_ADMIN_TOKEN; no se envía nada hasta que ambos estén definidos. - [Paquetes OKF](https://loom.clickhouse.com/docs/es/features/integrations/okf): Un espacio de nombres se puede renderizar como un paquete OKF (Open Knowledge Format) v0.2: un archivo Markdown por memoria con frontmatter YAML, un index.md… - [VS Code](https://loom.clickhouse.com/docs/es/features/integrations/vscode): Conecta GitHub Copilot a Loom por MCP. Guarda decisiones y recupéralas desde sesiones y editores con acceso al mismo espacio de nombres. #### Memory - [Historial y procedencia](https://loom.clickhouse.com/docs/es/features/memory/history-and-provenance): Cada escritura en la memoria crea una nueva versión; nada se edita en el mismo lugar. - [Memoria de trabajo y perfiles](https://loom.clickhouse.com/docs/es/features/memory/working-memory-and-profiles): Usa memory.set para todo aquello que una sesión posterior deba encontrar al preguntar. Usa estos planos para lo que se le debe comunicar sin que lo pida. #### Observability - [Registro de auditoría](https://loom.clickhouse.com/docs/es/features/observability/audit): Las filas de auditoría, el worker audit_verifier y la cadena de checkpoints están activados por defecto. #### Tracker - [Contrato de registros del tracker](https://loom.clickhouse.com/docs/es/features/tracker/record-contract): Las ops tracker.*, y los tramos de tracker de code.* y loom_search, leen en vivo las incidencias, los pull requests y los incidentes de un equipo desde el… - [Mantener un registro de tracker de GitHub](https://loom.clickhouse.com/docs/es/features/tracker/github-feed): loom tracker-feed copia issues, pull requests, comentarios de issues y comentarios de revisión en línea de un repositorio en una base de datos ClickHouse… - [Verificación de duplicados de issues y candidatos de regresión para agentes](https://loom.clickhouse.com/docs/es/features/tracker/overview): Con LOOM_TRACKER_ORG definido y una fuente registrada, Loom permite a los agentes comprobar si un error ya fue reportado y ordenar los cambios que pueden haber… ### Getting Started - [Configura Loom con tu agente de programación](https://loom.clickhouse.com/docs/es/getting-started/agent-setup): Esta página es para un agente de programación, Claude Code o Codex, al que se le pide instalar Loom en la máquina donde se ejecuta y demostrar que la… - [Configurar modelos y claves de API](https://loom.clickhouse.com/docs/es/getting-started/models-and-keys): Tu agente de programación, el LLM interno de Loom y el modelo de embeddings de Loom son elecciones independientes. - [Descripción general](https://loom.clickhouse.com/docs/es/getting-started/overview): Loom es un servidor que almacena memoria, documentos, conversaciones, un grafo de entidades y un índice de código para agentes de IA, como filas en ClickHouse,… - [Evaluar Loom](https://loom.clickhouse.com/docs/es/getting-started/evaluate): Evalúa la decisión que necesitas tomar, no cada harness del repositorio. - [Inicio rápido](https://loom.clickhouse.com/docs/es/getting-started/quickstart): Esta página pone en marcha Loom en un portátil y guarda una primera memoria por HTTP, Python y MCP. No necesita ninguna API key ni cuenta. - [Memoria compartida para Claude Code, Codex y Cursor](https://loom.clickhouse.com/docs/es/getting-started/connect-a-coding-agent): Loom ofrece a Claude Code, Codex y Cursor una memoria a largo plazo compartida mediante plugins o herramientas MCP conectados al mismo servidor autoalojado. - [Qué incluye](https://loom.clickhouse.com/docs/es/getting-started/whats-included): Esta página enumera las principales capacidades de Loom, autoalojadas desde el repositorio con licencia Apache-2.0: una sección por área, con cada fila… ### Guides - [Ajustar el rendimiento de Loom](https://loom.clickhouse.com/docs/es/guides/performance-tuning): Cada palanca de esta página es un ajuste de configuración o un campo de solicitud. - [Bots sin interfaz](https://loom.clickhouse.com/docs/es/guides/headless-bots): Un bot sin interfaz (headless) se ejecuta sin una persona que pegue un token, note un fallo silencioso o diga "recuerda esto". - [Consultar Loom desde Postgres](https://loom.clickhouse.com/docs/es/guides/query-from-postgres): Esta guía lee las memorias, conversaciones y el uso de un tenant desde el Postgres propio de la organización, donde se pueden unir con las tablas de la… - [Depurar una solicitud](https://loom.clickhouse.com/docs/es/guides/debugging): Loom etiqueta todo lo que hace una solicitud con el mismo id, por lo que rastrear una solicitud es un join. - [Enseñar con Loom](https://loom.clickhouse.com/docs/es/guides/teaching): Loom puede servir como entorno de laboratorio para un curso sobre agentes de IA, recuperación de información, bases de datos o ingeniería de software. - [Importar memoria de ClickGap](https://loom.clickhouse.com/docs/es/guides/importing-clickgap-memory): loom import-clickgap carga un único formato de exportación SQLite, un almacén lessons de ClickGap, en un espacio de nombres de Loom; omite esta página a menos… - [Integrar Loom en un agente](https://loom.clickhouse.com/docs/es/guides/agent-integration): Esta guía cubre lo que un agente envía a Loom y cómo lee las respuestas: la superficie del cliente, la identidad, qué escribir y cómo leer. - [Personalizar el pipeline de extracción](https://loom.clickhouse.com/docs/es/guides/extraction-pipeline): memory.set_from_messages procesa su transcripción mediante una lista ordenada de pasos que comparten un mismo estado. - [Rastrear y reanudar ejecuciones largas de agentes](https://loom.clickhouse.com/docs/es/guides/trace-and-resume): Una ejecución larga (procesar 300 archivos, rastrear un repositorio, completar un plan) puede detenerse a mitad de camino: un fallo, una ventana de contexto… - [Usar Loom sin el dashboard](https://loom.clickhouse.com/docs/es/guides/without-the-dashboard): Todo lo que hace el dashboard /me se puede hacer desde una terminal, un script o el shell de un agente. ### Operations - [Ajustes en tiempo de ejecución](https://loom.clickhouse.com/docs/es/operations/runtime-settings): Cada ajuste es una variable de entorno LOOM_ que se lee al arrancar, y también puede ir en el archivo de ajustes YAML (referencia de configuración). - [ClickHouse Cloud y Managed Postgres](https://loom.clickhouse.com/docs/es/operations/clickhouse-cloud): Esta guía ejecuta Loom en Kubernetes sobre dos servicios gestionados: ClickHouse Cloud para proyecciones, vectores, historial y analítica, y ClickHouse Managed… - [Ejecutar N réplicas](https://loom.clickhouse.com/docs/es/operations/replicas): Cada proceso de Loom es una réplica completa. - [Exportar el uso a un data warehouse](https://loom.clickhouse.com/docs/es/operations/analytics-export): loom export-analytics escribe un día UTC de uso y una instantánea de los espacios de nombres en un bucket de S3 como archivos Parquet, un archivo por entidad y… - [Versiones compatibles](https://loom.clickhouse.com/docs/es/operations/supported-versions): Las versiones N y N−1 reciben correcciones, y un SDK en X.Y funciona con un servidor en X.Y o X.(Y−1). ### Reference - [Referencia](https://loom.clickhouse.com/docs/es/reference): Las páginas de referencia explican qué existe y qué significa cada opción. Las razones detrás de un diseño están en Conceptos y Arquitectura. - [Contrato del extractor](https://loom.clickhouse.com/docs/es/reference/extractor-contract): Un extractor es un servicio HTTP al que el servidor de Loom envía un archivo original y del que recibe su artefacto de extracción. - [Referencia de la CLI](https://loom.clickhouse.com/docs/es/reference/cli): loom es el único punto de entrada de línea de comandos para ejecutar, mantener y conectarse a un despliegue de Loom. - [Superficie SQL](https://loom.clickhouse.com/docs/es/reference/sql-surface): La superficie SQL es un conjunto de vistas de ClickHouse de solo lectura sobre las memorias de un tenant, el historial de memorias, las conversaciones y el… #### Operations - [Operaciones `observe`](https://loom.clickhouse.com/docs/es/reference/operations/observe): Los campos exactos que recibe y devuelve cada operación observe.*. - [Operaciones `ui`](https://loom.clickhouse.com/docs/es/reference/operations/ui): Los campos exactos que recibe y devuelve cada operación ui.*. - [Operaciones de `admin`](https://loom.clickhouse.com/docs/es/reference/operations/admin): Los campos exactos que recibe y devuelve cada operación admin.*. - [Operaciones de `agents`](https://loom.clickhouse.com/docs/es/reference/operations/agents): Los campos exactos que recibe y devuelve cada operación agents.*. - [Operaciones de `assistant`](https://loom.clickhouse.com/docs/es/reference/operations/assistant): Los campos exactos que recibe y devuelve cada operación assistant.*. - [Operaciones de `audit`](https://loom.clickhouse.com/docs/es/reference/operations/audit): Los campos exactos que recibe y devuelve cada operación audit.*. - [Operaciones de `blacklist`](https://loom.clickhouse.com/docs/es/reference/operations/blacklist): Los campos exactos que recibe y devuelve cada operación blacklist.*. - [Operaciones de `collection`](https://loom.clickhouse.com/docs/es/reference/operations/collection): Los campos exactos que recibe y devuelve cada operación collection.*. - [Operaciones de `conflicts`](https://loom.clickhouse.com/docs/es/reference/operations/conflicts): Los campos exactos que recibe y devuelve cada operación conflicts.*. - [Operaciones de `consolidations`](https://loom.clickhouse.com/docs/es/reference/operations/consolidations): Los campos exactos que recibe y devuelve cada operación consolidations.*. - [Operaciones de `context`](https://loom.clickhouse.com/docs/es/reference/operations/context): Los campos exactos que recibe y devuelve cada operación context.*. - [Operaciones de `cost`](https://loom.clickhouse.com/docs/es/reference/operations/cost): Los campos exactos que recibe y devuelve cada operación cost.*. - [Operaciones de `extraction_policy`](https://loom.clickhouse.com/docs/es/reference/operations/extraction_policy): Los campos exactos que recibe y devuelve cada operación extraction_policy.*. - [Operaciones de `grants`](https://loom.clickhouse.com/docs/es/reference/operations/grants): Los campos exactos que recibe y devuelve cada operación grants.*. - [Operaciones de `help`](https://loom.clickhouse.com/docs/es/reference/operations/help): Los campos exactos que recibe y devuelve cada operación help.*. - [Operaciones de `inbox`](https://loom.clickhouse.com/docs/es/reference/operations/inbox): Los campos exactos que recibe y devuelve cada operación inbox.*. - [Operaciones de `insights`](https://loom.clickhouse.com/docs/es/reference/operations/insights): Los campos exactos que recibe y devuelve cada operación insights.*. - [Operaciones de `memory_schema`](https://loom.clickhouse.com/docs/es/reference/operations/memory_schema): Los campos exactos que recibe y devuelve cada operación memory_schema.*. - [Operaciones de `mentor`](https://loom.clickhouse.com/docs/es/reference/operations/mentor): Los campos exactos que recibe y devuelve cada operación mentor.*. - [Operaciones de `org`](https://loom.clickhouse.com/docs/es/reference/operations/org): Los campos exactos que recibe y devuelve cada operación org.*. - [Operaciones de `procedure`](https://loom.clickhouse.com/docs/es/reference/operations/procedure): Los campos exactos que recibe y devuelve cada operación procedure.*. - [Operaciones de `profile_schema`](https://loom.clickhouse.com/docs/es/reference/operations/profile_schema): Los campos exactos que recibe y devuelve cada operación profile_schema.*. - [Operaciones de `run`](https://loom.clickhouse.com/docs/es/reference/operations/run): Los campos exactos que recibe y devuelve cada operación run.*. - [Operaciones de `session`](https://loom.clickhouse.com/docs/es/reference/operations/session): Los campos exactos que recibe y devuelve cada operación session.*. - [Operaciones de `webhook`](https://loom.clickhouse.com/docs/es/reference/operations/webhook): Los campos exactos que recibe y devuelve cada operación webhook.*. - [Operaciones de `working_memory`](https://loom.clickhouse.com/docs/es/reference/operations/working_memory): Los campos exactos que recibe y devuelve cada operación working_memory.*. ### Use Cases - [Casos de uso](https://loom.clickhouse.com/docs/es/use-cases): Casos de uso de Loom para agentes de IA: memoria compartida, búsqueda de documentos e índice de código. - [Búsqueda de documentos y RAG para agentes](https://loom.clickhouse.com/docs/es/use-cases/document-search): Permite que los agentes de IA busquen en documentos internos mediante MCP. Recupera pasajes con su fuente y revisión y limita el acceso por espacio de nombres. - [Contexto compartido para flujos de trabajo con varios agentes](https://loom.clickhouse.com/docs/es/use-cases/multi-agent): Coordina el trabajo entre agentes con memoria compartida, colas de tareas persistentes y registros de decisiones que indican quién escribió cada dato. - [Ejecuciones de agentes, trazas e historial de PR](https://loom.clickhouse.com/docs/es/use-cases/runs-and-pr-history): Loom registra el trabajo que hacen los agentes de código, como ejecuciones y conversaciones de sesión con búsqueda, y lo conecta con el historial de tu código. - [Inteligencia de código para C++, Python, TypeScript, Go, Rust, Java e infraestructura como código](https://loom.clickhouse.com/docs/es/use-cases/code-intelligence-by-language): El índice de código de Loom responde a las preguntas de estructura de un agente de programación en los lenguajes que contiene un repositorio: dónde se define… - [Memoria a largo plazo y compartida para agentes de IA](https://loom.clickhouse.com/docs/es/use-cases/agent-memory): Comparte decisiones y lecciones entre agentes de programación y sesiones con un servidor MCP autoalojado y permisos por espacio de nombres. - [Memoria de agentes autoalojada en ClickHouse](https://loom.clickhouse.com/docs/es/use-cases/self-hosted-clickhouse): Despliega Loom en tu infraestructura con Docker o Kubernetes y consulta con SQL la memoria de los agentes almacenada en ClickHouse. - [Memoria vinculada al código para agentes de programación](https://loom.clickhouse.com/docs/es/use-cases/memory-linked-to-code): Vincula las lecciones de los agentes a funciones, clases y archivos. Consulta su estado cuando el código cambia, se mueve o se elimina. - [Memoria, recuperación, auditoría y borrado para agentes autónomos](https://loom.clickhouse.com/docs/es/use-cases/autonomous-agents): Los agentes autónomos pueden recuperar hechos versionados, reutilizar procedimientos, auditar su origen y borrar datos dentro de un ámbito definido. - [Menor costo de modelo para agentes de programación](https://loom.clickhouse.com/docs/es/use-cases/coding-agent-cost): Con el plugin de Loom y el índice de código, Claude Code respondió preguntas sobre el código base de ClickHouse con un costo de modelo entre un 6% y un 21%… - [Un índice de código para agentes de programación](https://loom.clickhouse.com/docs/es/use-cases/code-intelligence): Busca en repositorios Git indexados por MCP, identifica definiciones y llamadas y comprueba la revisión del código que respalda la respuesta. ## 日本語 ### Docs - [ClickHouse Loom ドキュメント](https://loom.clickhouse.com/docs/ja): AIエージェント向けの共有メモリ、文書検索、コードインデックスを備えたセルフホスト型MCPサーバー。 - [よくある質問](https://loom.clickhouse.com/docs/ja/faq): 最初によく寄せられる質問への短い回答です。各回答から、詳しく説明しているページへリンクしています。 - [用語集](https://loom.clickhouse.com/docs/ja/glossary): Loom の用語をアルファベット順に並べ、それぞれ一度だけ定義します。コード上の識別子はバッククォートで示します。 ### Architecture - [Agno ユーザーメモリデータベース](https://loom.clickhouse.com/docs/ja/architecture/agno-adapter): Agno アダプターは、同期版 Loom SDK を通じて、3.2 の BaseDb インターフェースにおけるユーザーメモリのメソッドを実装します。マイナーバージョンを固定したオプションの依存関係は、コア SDK とサーバーには含まれません。 - [Claude API メモリファイルツリー](https://loom.clickhouse.com/docs/ja/architecture/claude-memory-adapter): Claude API メモリアダプタは、フレームワークの Python メモリツール基底クラスと TypeScript メモリハンドラを、Loom のナレッジドキュメントを通じて実装します。フレームワークの SDK はオプションの依存関係です。 - [Dify ツールアダプター](https://loom.clickhouse.com/docs/ja/architecture/dify-adapter): Dify プラグインは Python SDK を通じて Loom を呼び出し、コンテンツをローカルに保存しません。3 つのネイティブツールは、それぞれ memory.set、memory.search、knowledge.search に対応します。 - [GitHub トラッカーフィード](https://loom.clickhouse.com/docs/ja/architecture/github-feed): GitHub フィードは、チームのトラッカーレコードをチームの ClickHouse データベース内に維持します。Loom の serving プロセスは、そのレコードを既存の読み取り専用トラッカーソースを通じて読み取ります。 - [Google ADK メモリサービス](https://loom.clickhouse.com/docs/ja/architecture/google-adk-adapter): Google ADK アダプターは、Loom の Python SDK と TypeScript SDK を通じて、フレームワークのメモリサービスを実装します。フレームワークのパッケージはオプションの依存関係です。 - [Haystack ドキュメントストアとリトリーバー](https://loom.clickhouse.com/docs/ja/architecture/haystack-adapter): オプションの Haystack 3.5 アダプターは、同期版 Loom SDK を通じて、ドキュメントストアのプロトコルとネイティブのリトリーバルコンポーネントを実装します。コア SDK とサーバーはこのフレームワークに依存しません。各 HTTP 呼び出しのクライアントの有効期間は SDK が管理します。 - [Microsoft Agent Framework コンテキストプロバイダー](https://loom.clickhouse.com/docs/ja/architecture/agent-framework-adapter): LoomContextProvider は、非同期 Python SDK 上でフレームワークのコンテキストプロバイダーインターフェースを実装します。オプションの extra は、テスト済みのフレームワークのマイナーシリーズのみを許可します。コア SDK とサーバーはフレームワークをインポートしません。 - [n8n アダプター](https://loom.clickhouse.com/docs/ja/architecture/n8n-adapter): n8n コミュニティパッケージは、TypeScript SDK を通じて、会話履歴と永続的なファクトを Loom のデプロイメントに保存します。このノードは、ストレージサービスやローカルキャッシュを追加しません。 - [OpenAI Agents の会話セッション](https://loom.clickhouse.com/docs/ja/architecture/openai-agents-sessions): LoomSession は、Loom のエピソードメモリ上にネイティブの Python および TypeScript セッションインターフェースを実装します。既存のツールは、会話の範囲を超えて事実を別途保持できます。フレームワークのパッケージは任意の依存関係のままです。 - [コードインデックスのアーキテクチャ](https://loom.clickhouse.com/docs/ja/architecture/code-index-architecture): このページはコードインデックスの内部構造を説明します。ファイルがどのようにチャンク、シンボル、エッジになるか、そして 2 つのティアがどのように最新の状態を保つかを扱います。各 op が答える内容、対応言語とその解析の深さ、as_of の読み方については、コードインデックスの概要と鮮度を参照してください。 - [コスト予算](https://loom.clickhouse.com/docs/ja/architecture/cost-budgets): 名前空間とネームドユーザーの上限は、agent_events のローリング 24 時間コスト台帳を使用します。正の値を持つ名前空間ポリシーは、対応するサーバーのデフォルト値を上書きします。0 は継承を意味し、両方のティアで 0 の場合はその上限が無効になります。 - [サーバーのレイアウト](https://loom.clickhouse.com/docs/ja/architecture/server-layout): server/ はドメインごとに構成されています。各プロダクトプレーンは 1 つのパッケージを持ち、そのパッケージにワイヤ宣言、ハンドラー、純粋なロジック、ClickHouse へのアクセス、バックグラウンドループがまとまっています。import が向けられる方向はテストによって固定されています。 - [ストレージオーソリティ:ライブメモリは Postgres、検索は ClickHouse](https://loom.clickhouse.com/docs/ja/architecture/storage-authority): Loom は、デプロイごとに LOOM_STORAGE_AUTHORITY で選択する 2 つのメモリオーソリティのいずれかで動作します。clickhouse(デフォルト)の場合、メモリアーキテクチャで説明されているとおり、ClickHouse がすべてを保持します。 - [ドキュメントソースのプッシュ通知](https://loom.clickhouse.com/docs/ja/architecture/source-push): プロバイダーの通知からドキュメントソースの同期を要求するには、LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true が必要です。通知がドキュメントの内容を書き込んだり、ソースのアクセスポリシーを変更したりすることはありません。 - [ドキュメント翻訳リクエスト](https://loom.clickhouse.com/docs/ja/architecture/documentation-translation): 翻訳ジェネレーターは、準備済みの英語テキストを上限付きのリクエストに分割し、組み立てた翻訳を書き込む前に検査します。英語が常に正本です。 - [プロバイダーの再構成](https://loom.clickhouse.com/docs/ja/architecture/provider-reconfiguration): Loom は、ダッシュボードのモデル設定を、暗号化されたバージョン管理付きの行として loom.provider_configuration に保存します。1 つの設定には、コミット済みの先行バージョンが 1 つあります。古いバージョンに基づく保存は拒否されます。 - [定義ドラフト](https://loom.clickhouse.com/docs/ja/architecture/definition-drafts): ギャップドラフトには knowledge_gaps_enabled が、クエリ履歴には knowledge_query_history_enabled が必要です。どちらの経路でも、モデルが書いた定義は管理者のレビューキューに入ります。モデルが定義を公開することはありません。 - [障害とリカバリ](https://loom.clickhouse.com/docs/ja/architecture/failure-and-recovery): プライマリへの書き込みとすべてのアクセス判定は、フェイルクローズで動作します。派生データとテレメトリはフェイルオープンで動作し、後から修復されます。成功を返したリクエストは、約束した内容を永続的に保存済みです。それと並んで投影されるデータは、ワーカーが追いつかせます。 ### Benchmarks - [スキル評価](https://loom.clickhouse.com/docs/ja/benchmarks/skill-eval): スキル評価では、エージェントが残した名前空間を基準に loom-memory スキルを採点します。スキルは何をどこに置くかを定めています。 - [ベンチマークのカバレッジ](https://loom.clickhouse.com/docs/ja/benchmarks/coverage): このマトリクスは、Loom のメモリ、ナレッジ、コードの各フローのうち、どの部分に再現可能な公開測定があるかを示します。測定済みの動作、実行可能なハーネス、そして公開された品質の根拠がまだない製品機能を区別しています。 - [ベンチマークのケース、データセット、スイートを追加する](https://loom.clickhouse.com/docs/ja/benchmarks/adding-a-case): コミット済みのセットは小さいため(セットのサイズ)、新しいケースを追加するのがスイートを改善する最も手軽な方法です。まずファイルのヘッダーまたは _comment を読んでください。ほとんどのファイルに、正解データ(gold)をどのように作成したか、新しい行が満たすべき条件が記載されています。 - [ベンチマークの概要](https://loom.clickhouse.com/docs/ja/benchmarks/overview): ランキングのレバー、類似度ゲート、キャッシュのしきい値、抽出プロンプトは、ユニットテストでは判断できない挙動を変えます。これらはそれぞれ、bench/ 配下のハーネスによって決定されます。ハーネスは、実際のプロバイダーを使用するライブサーバーに対して HTTP 経由で実行されます。 - [ベンチマーク手法](https://loom.clickhouse.com/docs/ja/benchmarks/methodology): このページでは、ハーネスが何を計算するか、差分をノイズに対してどのように判定するか、2 つの数値がいつ比較可能になるか、そして数値にどこで偏りが生じるかを説明します。 ### Concepts - [アイデンティティと名前空間](https://loom.clickhouse.com/docs/ja/concepts/identities-and-namespaces): Loom はすべての呼び出しで 2 つの問いに答えます。1 つは、その行は誰のものか(アイデンティティタプルと、サーバーが付与する 2 つのカラム)、もう 1 つは、呼び出し元がその行に触れてよいか(トークン、名前空間のグラント、およびその分類)です。このページではそのモデルを説明します。 ### Development - [ClickHouse のテーブルまたはカラムを追加する](https://loom.clickhouse.com/docs/ja/development/adding-a-table): Loom の ClickHouse の状態は、loom データベースと loom_telemetry データベースのテーブルに保存されます。Postgres メモリオーソリティを使う場合、ライブのメモリ、ナレッジの状態、およびそれに付随するレコードは Postgres に保存されます。 - [Loom の拡張](https://loom.clickhouse.com/docs/ja/development/extending-loom): Loom には種類ごとに 1 つのレジストリがあります:オペレーション、ワーカー、設定、プロバイダー、言語レーン、抽出ステップ、トラッカーソースです。Loom を拡張するには、適切なレジストリに行を追加します。HTTP、MCP、SDK、生成されるリファレンスは、それに追従します。 - [オペレーションの追加](https://loom.clickhouse.com/docs/ja/development/adding-an-operation): オペレーションはレジストリ内で一度だけ宣言します。 - [コードインデックスへの言語サポートの追加](https://loom.clickhouse.com/docs/ja/development/adding-language-support): コードインデックスは、リポジトリを 2 つのティアで読み取ります。 - [コード生成](https://loom.clickhouse.com/docs/ja/development/code-generation): リポジトリ内の複数のファイルは、コードから生成されています。SDK のオペレーションテーブルとワイヤ型、リファレンスページ、Codex プラグインのコピー、op reach マニフェスト、スキーマダンプがそれにあたります。いずれもコミットされているため、読む側は何も実行せずに内容を確認できます。 - [テスト](https://loom.clickhouse.com/docs/ja/development/testing): テストをどのスイートに置くか、各スイートの実行に必要なもの、環境が揃っていない場合にテストがどのようにスキップされるか、CI が強制するゲート、そしてテストが固定している内容の再生成方法について説明します。 - [バックグラウンドワーカーを追加する](https://loom.clickhouse.com/docs/ja/development/adding-a-worker): ワーカーは、server/workers/registry.py の行(_WORKERS)と、1 つのパス関数を持つモジュールで構成されます。 - [マイグレーション](https://loom.clickhouse.com/docs/ja/development/migrations): このページには、マイグレーションを書くためのルールをまとめています。デプロイメントがマイグレーションを適用する方法、およびアップグレードとロールバックの手順は、アップグレードを参照してください。schemas/README.mdは、schemas/ ディレクトリの構成を示し、オペレーター向けのツールを一覧にしています。 - [リポジトリガイド](https://loom.clickhouse.com/docs/ja/development/repository-guide): トップレベルの各ディレクトリに何が置かれているか、server/ 内のどこに各関心事があるか、コードを読む順序、そしてこれを守らないとプルリクエストが通らない規約を説明します。 ### Features - [エンティティグラフ](https://loom.clickhouse.com/docs/ja/features/entity-graph): Loom は、メモリの行と同じ ClickHouse データベース内に、メモリの行と並べてエンティティグラフを保持します。エンティティがノードです。同じメモリの中で言及された 2 つのエンティティは、共起エッジでつながります。 - [会話とセッション](https://loom.clickhouse.com/docs/ja/features/conversations-and-sessions): Loom は 3 種類のセッション状態を保持し、それぞれ独自のプレーンに置きます。 - [実行(Runs)](https://loom.clickhouse.com/docs/ja/features/runs): run とは、「issue 1234 をトリアージする」のような、タスクを 1 回実行することです。run.begin が run を開いて run_id を返します。エージェントはその id を書き込み(memory.set、memory.update、observe.record)に渡します。 #### Code Index - [コードインデックスの鮮度](https://loom.clickhouse.com/docs/ja/features/code-index/freshness): インデックスはリポジトリに遅れて追随します。設定されたブランチにマージされたコミットを、パスごとにインデックス化し、各ティアは独自のウォーターマークを進めます。インデックスされたコードに依拠する前に、回答に鮮度メタデータが含まれていればそれを確認し、該当するティアのステータスも確認してください。 - [リポジトリの追加](https://loom.clickhouse.com/docs/ja/features/code-index/repositories): 新規インストールの状態では、インデックス対象のリポジトリはありません。エントリは、ユーザーが自分で追加したリポジトリと、オペレーターの設定という 2 つのソースから取得され、マージされます。ここで追加した名前空間に対するオペレーターのエントリはスキップされます(下記のルールを参照)。 - [履歴、PR、リリース](https://loom.clickhouse.com/docs/ja/features/code-index/history-and-prs): これらの op にはマージ済み PR の履歴が必要です。code_pr_history ワーカーはデフォルトでオフになっています(LOOM_CODE_PR_HISTORY_ENABLED)。 #### Integrations - [ClickStack と HyperDX](https://loom.clickhouse.com/docs/ja/features/integrations/clickstack): Loom は常に OpenTelemetry を出力します。HyperDX のソース、ダッシュボード、消去ステップについては設定が必要です。 - [Codex プラグイン](https://loom.clickhouse.com/docs/ja/features/integrations/codex): Codex プラグインは、Claude Code と同じ Loom 連携を Codex に提供します。MCP ツール、セッションを記録してプライマーを読み込むフック、コードシャントが含まれます。 - [Cursor](https://loom.clickhouse.com/docs/ja/features/integrations/cursor): CursorをLoomにMCPで接続し、プロジェクトの判断や教訓をセッション間で共有します。ローカルとチーム向けの接続方法を紹介します。 - [grep shim](https://loom.clickhouse.com/docs/ja/features/integrations/grep-shim): grep shim は grep/rg のラッパーで、コードインデックスから取得した各ヒットを囲む関数を、マッチ行の末尾に追加します。Node 18 以降、viewer トークン、およびコードインデックス内のリポジトリが必要です。 - [Langfuse](https://loom.clickhouse.com/docs/ja/features/integrations/langfuse): LOOM_LANGFUSE_URL と LOOM_LANGFUSE_ADMIN_TOKEN が必要です。両方を設定するまで、何も送信されません。両方を設定すると、OpenTelemetry のスパンツリーが OTLP 経由で Langfuse に転送されます。 - [OKF バンドル](https://loom.clickhouse.com/docs/ja/features/integrations/okf): 名前空間は、OKF (Open Knowledge Format) v0.2 のバンドルとしてレンダリングできます。 - [VS Code](https://loom.clickhouse.com/docs/ja/features/integrations/vscode): VS CodeのGitHub CopilotをMCPでLoomに接続します。同じ名前空間へのアクセス権を持つセッションやエディター間でプロジェクトの判断を共有できます。 - [エージェント Substrate](https://loom.clickhouse.com/docs/ja/features/integrations/agent-substrate): エージェント Substrate v1.0.0 と Loom の Helm チャートを同じ Kubernetes クラスターに配置する必要があります。Substrate のエグレスゲートウェイが、各エージェントの Loom トークンを MCP 呼び出しに付与します。 - [エージェント向け指示](https://loom.clickhouse.com/docs/ja/features/integrations/agent-instructions): エージェントの指示ファイルに短いブロックを置くと、Loom のコンテキストを読み込むタイミング、事実を保存するタイミング、grep やファイル読み取りの代わりにコードインデックスを使うタイミングをエージェントに伝えられます。このページでは、そのブロックと、各クライアントがそれを読み込むファイルを一度だけ示します。 #### Memory - [ワーキングメモリとプロファイル](https://loom.clickhouse.com/docs/ja/features/memory/working-memory-and-profiles): エージェントに検索ではなく毎回そのまま渡されるテキストを保持するプレーンが 2 つあります。 - [履歴と来歴](https://loom.clickhouse.com/docs/ja/features/memory/history-and-provenance): メモリへの書き込みはすべて新しいバージョンを作成し、その場で編集されるものはありません。バージョンは追記専用のミラーに保持されるため、バックグラウンドのマージ後も事実の履歴は残ります。各行には、誰が書き込んだか、どのようにメモリに入ったかが記録されます。 #### Observability - [テレメトリ](https://loom.clickhouse.com/docs/ja/features/observability/telemetry): Loom は自身の状態を次の 3 つのレイヤーで報告します。 - [監査ログ](https://loom.clickhouse.com/docs/ja/features/observability/audit): 監査行、audit_verifier ワーカー、チェックポイントチェーンは、デフォルトで有効です。 #### Tracker - [GitHub トラッカーレコードの保守](https://loom.clickhouse.com/docs/ja/features/tracker/github-feed): loom tracker-feed は、リポジトリの issue、プルリクエスト、issue コメント、インラインのレビューコメントを、チーム専用の ClickHouse データベースにコピーします。Loom は、その結果のビューを読み取り専用のトラッカーソースとして読み取ります。 - [エージェント向けの Issue 重複チェックとリグレッション候補](https://loom.clickhouse.com/docs/ja/features/tracker/overview): LOOM_TRACKER_ORG を設定してソースを登録すると、Loom はトラッカーのレコードとインデックス済みの PR 履歴を使って、エージェントがバグがすでに報告されているかを確認したり、リグレッションを引き起こした可能性のある変更をランク付けしたりできるようになります。 - [トラッカーレコードコントラクト](https://loom.clickhouse.com/docs/ja/features/tracker/record-contract): tracker.* op、および code.* と loom_search のトラッカー部分は、チーム自身の ClickHouse から、読み取り専用の認証情報を使って、チームの issue、プルリクエスト、インシデントをライブで読み取ります。Loom はレコードをコピーしません。 ### Getting Started - [Claude Code、Codex、Cursor の共有メモリ](https://loom.clickhouse.com/docs/ja/getting-started/connect-a-coding-agent): Loom は、同じセルフホスト型サーバーに接続したプラグインまたは MCP ツールを通じて、Claude Code、Codex、Cursor に共有の長期メモリを提供します。各チームメンバーに、チームの名前空間へのアクセス権を持つトークンを発行すれば、エージェントは他のメンバーが保存した事実を検索できます。 - [Loom を評価する](https://loom.clickhouse.com/docs/ja/getting-started/evaluate): 評価の対象は、リポジトリ内のすべてのハーネスではなく、これから下す必要がある判断です。このガイドでは、まずコストのかからないプロダクトのスモークテストを行い、次にワークロード固有の品質テストへ進みます。公開ベンチマークスイートは、公表されている主張を監査または再現する必要がある場合の最後のステップです。 - [クイックスタート](https://loom.clickhouse.com/docs/ja/getting-started/quickstart): このページでは、ノート PC 上で Loom を起動し、HTTP、Python、MCP で最初のメモリを保存します。API キーもアカウントも不要です。 - [コーディングエージェントで Loom をセットアップする](https://loom.clickhouse.com/docs/ja/getting-started/agent-setup): このページは、Claude Code や Codex などのコーディングエージェントが、実行中のマシンに Loom をインストールし、そのインストールが正しく動作することを確認するためのものです。実行するコマンド、してはいけないこと、各チェックで確認すべき内容、そして報告する内容を示します。 - [含まれる機能](https://loom.clickhouse.com/docs/ja/getting-started/whats-included): このページでは、Apache-2.0 リポジトリからセルフホストできる Loom の主な機能を一覧にしています。分野ごとにセクションを分け、各行から、その機能を扱うページへリンクしています。残りのドキュメントはドキュメント索引にまとめています。いくつかの機能は有効化が必要です。方法はリンク先のページに記載しています。 - [概要](https://loom.clickhouse.com/docs/ja/getting-started/overview): Loom は、AI エージェント向けのメモリ、ドキュメント、会話、エンティティグラフ、コードインデックスを ClickHouse の行として保存するサーバーです。ライブメモリとナレッジ状態には、オプションとして Postgres も利用できます。 ### Guides - [ClickGap メモリのインポート](https://loom.clickhouse.com/docs/ja/guides/importing-clickgap-memory): loom import-clickgap は、ClickGap の lessons ストアという 1 種類の SQLite エクスポート形式を Loom の名前空間に読み込みます。このようなエクスポートがない場合は、このページを読み飛ばしてください。 - [Loom で教える](https://loom.clickhouse.com/docs/ja/guides/teaching): Loom は、AI エージェント、情報検索、データベース、ソフトウェアエンジニアリングの講座の実習環境として利用できます。各学生は、Docker を使うノート PC 上、または手元に何もインストールしなくてよい GitHub codespace 上で、自分専用のシングルユーザースタックを実行します。 - [Loom のパフォーマンスをチューニングする](https://loom.clickhouse.com/docs/ja/guides/performance-tuning): このページで扱う調整項目は、すべて設定またはリクエストのフィールドです。各設定のデフォルト値と意味については、設定リファレンスを参照してください。トレードオフを計測できる項目については、計測に使うコマンドを併記しています。 - [Postgres から Loom にクエリする](https://loom.clickhouse.com/docs/ja/guides/query-from-postgres): このガイドでは、テナントのメモリ、会話、使用量を、組織自身の Postgres から読み取ります。Postgres 上ではアプリケーションのテーブルと結合できます。ここではオープンソースの拡張機能 pg_clickhouse を使います。 - [エージェントへの Loom の組み込み](https://loom.clickhouse.com/docs/ja/guides/agent-integration): このガイドでは、エージェントが Loom に何を送り、返答をどのように読むかを説明します。対象は、クライアントの範囲、アイデンティティ、何を書き込むか、どのように読み取るかです。前提となるのは、メモリとアイデンティティと名前空間の知識です。 - [ダッシュボードを使わずに Loom を使う](https://loom.clickhouse.com/docs/ja/guides/without-the-dashboard): /me ダッシュボードでできることは、すべてターミナル、スクリプト、またはエージェントのシェルから実行できます。loom login で一度サインインしたら、loom call または Python SDK を使います。このページでは、ダッシュボードの各ビューに対応するコマンドと SDK 呼び出しを示します。 - [ヘッドレスボット](https://loom.clickhouse.com/docs/ja/guides/headless-bots): ヘッドレスボットは、トークンを貼り付ける人も、サイレントな失敗に気づく人も、「これを覚えておいて」と言う人もいない状態で動作します。このガイドでは、ボットの ID、接続の確認、3 つのランタイム、ボットが書き込む内容、そして動作が止まってしまったボットの診断方法を説明します。 - [リクエストのデバッグ](https://loom.clickhouse.com/docs/ja/guides/debugging): Loom は 1 つのリクエストが行うすべての処理に同じ id を付与するため、リクエストの追跡は結合(join)で行えます。このページでは、レスポンスヘッダーから、回答を決定したコンポーネントまでを、1 つのリクエストについて順にたどります。 - [抽出パイプラインのカスタマイズ](https://loom.clickhouse.com/docs/ja/guides/extraction-pipeline): memory.set_from_messages は、トランスクリプトを、1 つの状態を共有する順序付きのステップのリストで処理します。リクエストは pipeline_steps でこのリストを置き換えられます。ステップの並べ替えやスキップ、オペレーターが登録したインプロセスのステップの呼び出しが可能です。 - [監査結果に基づく名前空間の最適化](https://loom.clickhouse.com/docs/ja/guides/optimize-namespace): memory.set をオブジェクトストアとして使うライター(ハッシュキー配下の JSON blob、メモリとして保存されたリース、claim として保存されたドキュメント)は、すべてのテーブルを整合した状態に保つ一方で、recall を役に立たないものにします。 - [長時間のエージェント実行のトレースと再開](https://loom.clickhouse.com/docs/ja/guides/trace-and-resume): 長時間の実行(300 個のファイルの処理、リポジトリのクロール、計画の実行)は、クラッシュ、コンテキストウィンドウの枯渇、デプロイ、一時停止などで途中で止まることがあります。実行の run_id をキーとするワーキングメモリのブロックが、進捗を ClickHouse に保持します。 ### Operations - [ClickHouse Cloud と Managed Postgres](https://loom.clickhouse.com/docs/ja/operations/clickhouse-cloud): このガイドでは、2 つのマネージドサービス上の Kubernetes で Loom を実行します。プロジェクション、ベクトル、履歴、分析には ClickHouse Cloud を使い、メモリのオーソリティには ClickHouse Managed Postgres を使います。 - [N 個のレプリカの実行](https://loom.clickhouse.com/docs/ja/operations/replicas): すべての Loom プロセスは完全なレプリカです。1 つの ClickHouse サービスと 1 つの URL の背後で、必要な数だけ実行できます。スティッキーセッションは不要です。各プロセスはすべての op を処理し、すべてのトークンを検証し、共有サービスに書き込みます。 - [コードインデックスの運用](https://loom.clickhouse.com/docs/ja/operations/code-index-operations): このページでは、コードインデックスのワーカーを有効にする方法、リポジトリを設定する方法、インデックスを最新に保つ方法を説明します。コードインデックスは、オペレーターがワーカーを有効にしてリポジトリを設定した場合にのみ動作します。 - [サポート対象バージョン](https://loom.clickhouse.com/docs/ja/operations/supported-versions): リリース N と N−1 には修正が提供されます。X.Y の SDK は、X.Y または X.(Y−1) のサーバーと組み合わせて動作します。 - [シングルサインオン(OIDC)](https://loom.clickhouse.com/docs/ja/operations/sso): Loom は、人間のサインインを OpenID Connect の ID プロバイダーに任せることができます。 - [トラブルシューティング](https://loom.clickhouse.com/docs/ja/operations/troubleshooting): 各項目では、症状、原因を確認するためのチェック、そして対処方法を示します。1 件のリクエストを台帳、クエリログ、トレースにわたって追跡するには、リクエストのデバッグを参照してください。 - [メンテナンス](https://loom.clickhouse.com/docs/ja/operations/maintenance): ここで紹介するコマンドはすべて loom サブコマンドです。デプロイメントの環境変数が設定されたコンテナ内で実行してください(docker exec loom-server loom …、分割構成のデプロイメントでは loom-workers)。すべてのフラグは CLI リファレンスに記載されています。 - [モニタリング](https://loom.clickhouse.com/docs/ja/operations/monitoring): このページでは、何を監視すべきかを説明します。Loom は次の 4 つの手段で自身の状態を報告します。 - [ランタイム設定](https://loom.clickhouse.com/docs/ja/operations/runtime-settings): すべての設定は起動時に読み込まれる環境変数 LOOM_ であり、YAML 設定ファイルにも記述できます(設定リファレンス)。 - [使用状況のデータウェアハウスへのエクスポート](https://loom.clickhouse.com/docs/ja/operations/analytics-export): loom export-analytics は、UTC の1日分の使用状況と名前空間のスナップショットを、Parquet ファイルとして S3 バケットに書き出します。ファイルはエンティティごと、日ごとに1つで、データウェアハウスが読み込むためのものです。 - [名前空間を別の Loom にコピーする](https://loom.clickhouse.com/docs/ja/operations/okf-sync): プライベートネットワーク内のジョブが、スケジュールに従って 1 つの名前空間をプライベートな Loom からパブリックな Loom にコピーします。 ### Reference - [リファレンス](https://loom.clickhouse.com/docs/ja/reference): リファレンスのページでは、何が存在し、各オプションが何を意味するかを説明します。設計の背景にある理由は、コンセプトとアーキテクチャに記載しています。手順については、ガイドと運用のセクションを参照してください。 - [MCP リファレンス](https://loom.clickhouse.com/docs/ja/reference/mcp): Loom は、その操作を MCP ツールとして /mcp で提供します。streamable HTTP に対応した MCP クライアントであれば、URL とベアラートークンで接続できます。ツール一覧は HTTP API と同じ操作レジストリから生成されます。 - [SQL サーフェス](https://loom.clickhouse.com/docs/ja/reference/sql-surface): SQL サーフェスは、テナントのメモリ、メモリ履歴、会話、リクエスト台帳に対する、読み取り専用の ClickHouse ビューの集合です。組織が使用する SQL クライアント、BI ツール、ウェアハウスのジョブは、loom sql-access が作成する ClickHouse ユーザーでこれらのビューを読み取ります。 - [エクストラクターの契約](https://loom.clickhouse.com/docs/ja/reference/extractor-contract): エクストラクターは、Loom サーバーが元のファイルを送信し、その抽出アーティファクトを受け取る HTTP サービスです。 このページは、両者間の契約のバージョン 1 です。サービスが提供しなければならないものを定めます。 - [ワーカーリファレンス](https://loom.clickhouse.com/docs/ja/reference/workers): ワーカーは、監視されるバックグラウンドループです。ワーカースーパーバイザーが、1 つのパス関数を一定の間隔で実行します。ワーカーは、リクエストが待つべきではない処理を担当します。 - [環境変数リファレンス](https://loom.clickhouse.com/docs/ja/reference/environment): Loom の設定のほとんどは settings フィールドです。これは server.settings.Settings のフィールドに対応する環境変数 LOOM_ で、デフォルト値と意味は自動生成された設定リファレンスに一覧があります。このページでは、それ以外の変数を扱います。 #### Operations - [`admin` 操作](https://loom.clickhouse.com/docs/ja/reference/operations/admin): 各 admin.* 操作が受け取るフィールドと返すフィールドの詳細です。 - [`assistant` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/assistant): 各 assistant.* オペレーションが受け取り、返すフィールドの正確な定義です。 - [`audit` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/audit): 各 audit.* オペレーションが受け取るフィールドと返すフィールドの正確な一覧です。 - [`calibration` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/calibration): 各 calibration.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`collection` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/collection): 各 collection.* オペレーションが受け取るフィールドと返すフィールドの一覧です。 - [`consolidations` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/consolidations): 各 consolidations.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`context` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/context): 各 context.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`cost` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/cost): 各 cost.* オペレーションが受け取るフィールドと返すフィールドの一覧です。 - [`decision` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/decision): 各 decision.* オペレーションが受け取るフィールドと返すフィールドを正確に示します。 - [`extraction_policy` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/extraction_policy): 各 extraction_policy.* オペレーションが受け取るフィールドと返すフィールドの正確な定義です。 - [`insights` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/insights): 各 insights.* オペレーションが受け取るフィールドと返すフィールドの正確な一覧です。 - [`memory_schema` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/memory_schema): 各 memory_schema.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`mentor` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/mentor): 各 mentor.* オペレーションが受け取る入力フィールドと返す出力フィールドを、正確に示します。 - [`observe` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/observe): 各 observe.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`procedure` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/procedure): 各 procedure.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`profile_schema` 操作](https://loom.clickhouse.com/docs/ja/reference/operations/profile_schema): 各 profile_schema.* 操作が受け取るフィールドと返すフィールドの詳細です。 - [`run` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/run): 各 run.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`session` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/session): 各 session.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 - [`webhook` オペレーション](https://loom.clickhouse.com/docs/ja/reference/operations/webhook): 各 webhook.* オペレーションが受け取るフィールドと返すフィールドの詳細です。 ### Use Cases - [ユースケース](https://loom.clickhouse.com/docs/ja/use-cases): 各ページは、人やエージェントがツールを探すときに挙げる一つの疑問に答えます。そのニーズに対して Loom が何をするか、そしてどこから始めるかを説明します。 - [AI エージェントのための長期メモリと共有メモリ](https://loom.clickhouse.com/docs/ja/use-cases/agent-memory): セルフホスト型MCPサーバーで、開発チームの判断や教訓をエージェントとセッションの間で共有し、名前空間ごとにアクセスを管理します。 - [C++、Python、TypeScript、Go、Rust、Java、インフラコード向けのコードインテリジェンス](https://loom.clickhouse.com/docs/ja/use-cases/code-intelligence-by-language): Loom のコードインデックスは、リポジトリに含まれる言語について、コーディングエージェントの構造に関する質問に答えます。シンボルがどこで定義されているか、誰が呼び出しているか、変更が何に影響するかです。リポジトリが追加済みで、LOOM_CODE_INGEST_ENABLED=true が設定されている必要があります。 - [ClickHouse 上のセルフホスト型エージェントメモリ](https://loom.clickhouse.com/docs/ja/use-cases/self-hosted-clickhouse): DockerまたはKubernetesでLoomをセルフホストし、ClickHouseに保存したエージェントメモリをSQLで検索できます。 - [エージェントの実行、トレース、PR 履歴](https://loom.clickhouse.com/docs/ja/use-cases/runs-and-pr-history): Loom は、コーディングエージェントが行った作業を実行(run)と検索可能なセッション会話として記録し、コード履歴に結び付けます。実行にはゴールと結果が記録され、Claude Code プラグインがセッションのターン使用量を報告する場合(デフォルトで有効)はモデルのコストも記録されます。 - [エージェント向けのドキュメント検索と RAG](https://loom.clickhouse.com/docs/ja/use-cases/document-search): AIエージェントがMCPで社内文書を検索し、根拠となる箇所と文書の版を確認できます。名前空間ごとにアクセスを制御します。 - [コーディングエージェントのモデルコストを下げる](https://loom.clickhouse.com/docs/ja/use-cases/coding-agent-cost): Loom プラグインとコードインデックスを使うと、Claude Code が ClickHouse のコードベースに関する質問に答える際のモデルコストは、測定した 3 つの質問セットすべてで、使わない場合より 6% から 21% 低くなりました。 - [コーディングエージェント向けのコードインデックス](https://loom.clickhouse.com/docs/ja/use-cases/code-intelligence): MCPでインデックス済みのGitリポジトリを検索し、定義や呼び出し元、回答の根拠となるコードのリビジョンを確認できます。 - [コーディングエージェント向けのコードに紐づくメモリ](https://loom.clickhouse.com/docs/ja/use-cases/memory-linked-to-code): エージェントの教訓を関数、クラス、ファイルに紐づけ、リファクタリングやコードの変更・削除に応じて状態を確認できます。 - [マルチエージェントワークフローのための共有コンテキスト](https://loom.clickhouse.com/docs/ja/use-cases/multi-agent): 共有メモリ、永続的なタスクキュー、決定の記録を使い、複数のエージェント間で作業とその背景を引き継ぎます。 - [自律型エージェントのためのメモリ、リコール、監査、消去](https://loom.clickhouse.com/docs/ja/use-cases/autonomous-agents): 自律型エージェントが履歴付きの事実を検索し、手順を再利用できるメモリです。書き込みの監査と範囲を指定したデータ消去にも対応します。 ## 한국어 ### Docs - [ClickHouse Loom 문서](https://loom.clickhouse.com/docs/ko): AI 에이전트를 위한 공유 메모리, 문서 검색, 코드 인덱스를 제공하는 자체 호스팅 MCP 서버. - [용어집](https://loom.clickhouse.com/docs/ko/glossary): Loom의 용어를 알파벳순으로 정리하며, 각 용어는 한 번만 정의합니다. 코드 식별자는 백틱으로 표시합니다. - [자주 묻는 질문](https://loom.clickhouse.com/docs/ko/faq): 사람들이 가장 먼저 묻는 질문에 대한 짧은 답변입니다. 각 답변은 자세히 설명하는 페이지로 연결됩니다. ### Architecture - [Agno 사용자 메모리 데이터베이스](https://loom.clickhouse.com/docs/ko/architecture/agno-adapter): Agno 어댑터는 동기식 Loom SDK를 통해 3.2 BaseDb 인터페이스의 사용자 메모리 메서드를 구현합니다. 마이너 버전이 고정된 선택적 의존성은 코어 SDK와 서버에 포함되지 않습니다. - [Claude API 메모리 파일 트리](https://loom.clickhouse.com/docs/ko/architecture/claude-memory-adapter): Claude API 메모리 어댑터는 프레임워크의 Python 메모리 도구 베이스와 TypeScript 메모리 핸들러를 Loom 지식 문서를 통해 구현합니다. 프레임워크 SDK는 선택적 의존성입니다. - [ClickHouse](https://loom.clickhouse.com/docs/ko/architecture/clickhouse): Loom의 영구 상태는 ClickHouse에 저장됩니다. 단, 문서 바이트는 선택 사항인 S3 호환 버킷에 저장되며, Postgres 메모리 권한(authority) 아래에서는 라이브 메모리, 지식 상태, 그리고 이와 함께 있는 레코드가 Postgres 테이블에 저장됩니다. - [Dify 도구 어댑터](https://loom.clickhouse.com/docs/ko/architecture/dify-adapter): Dify 플러그인은 Python SDK를 통해 Loom을 호출하며 콘텐츠를 로컬에 저장하지 않습니다. 기본 제공 도구 세 가지는 각각 memory.set, memory.search, knowledge.search에 대응합니다. - [GitHub 트래커 피드](https://loom.clickhouse.com/docs/ko/architecture/github-feed): GitHub 피드는 팀의 ClickHouse 데이터베이스에 팀의 트래커 기록을 유지합니다. Loom의 서빙 프로세스는 기존 읽기 전용 트래커 소스를 통해 그 기록을 읽습니다. 피드는 이슈 본문, 댓글, 풀 리퀘스트를 Loom의 배포 테이블에 넣지 않습니다. - [Google ADK 메모리 서비스](https://loom.clickhouse.com/docs/ko/architecture/google-adk-adapter): Google ADK 어댑터는 Loom의 Python 및 TypeScript SDK를 통해 프레임워크의 메모리 서비스를 구현합니다. 프레임워크 패키지는 선택적 의존성입니다. - [Haystack 문서 저장소와 리트리버](https://loom.clickhouse.com/docs/ko/architecture/haystack-adapter): 선택 사항인 Haystack 3.5 어댑터는 동기식 Loom SDK를 통해 문서 저장소 프로토콜과 네이티브 검색 컴포넌트를 구현합니다. 코어 SDK와 서버는 이 프레임워크에 의존하지 않습니다. - [LLM 및 임베딩 아키텍처](https://loom.clickhouse.com/docs/ko/architecture/llm-architecture): Loom에는 교체 가능한 두 가지 제공자가 있습니다. 텍스트를 벡터로 변환하는 임베더(server/embedding/)와 프롬프트를 완성하는 LLM 클라이언트(server/llm/)입니다. 각각 설정에 따라 프로세스당 한 번 선택됩니다. - [Microsoft Agent Framework 컨텍스트 프로바이더](https://loom.clickhouse.com/docs/ko/architecture/agent-framework-adapter): LoomContextProvider는 비동기 Python SDK 위에서 프레임워크의 컨텍스트 프로바이더 인터페이스를 구현합니다. 선택적 extra는 테스트를 거친 프레임워크 마이너 시리즈만 허용하며, 코어 SDK와 서버는 프레임워크를 import하지 않습니다. - [n8n 어댑터](https://loom.clickhouse.com/docs/ko/architecture/n8n-adapter): n8n 커뮤니티 패키지는 TypeScript SDK를 통해 대화 기록과 지속적인 사실을 Loom 배포 환경에 저장합니다. 이 노드들은 별도의 스토리지 서비스나 로컬 캐시를 추가하지 않습니다. - [OpenAI Agents 대화 세션](https://loom.clickhouse.com/docs/ko/architecture/openai-agents-sessions): LoomSession은 Loom 에피소드 메모리 위에서 네이티브 Python 및 TypeScript 세션 인터페이스를 구현합니다. 기존 도구는 대화와 별도로 사실을 계속 보관할 수 있습니다. 프레임워크 패키지는 선택적 의존성으로 유지됩니다. - [문서 번역 요청](https://loom.clickhouse.com/docs/ko/architecture/documentation-translation): 번역 생성기는 준비된 영어 텍스트를 크기가 제한된 요청으로 나누고, 조립한 번역을 파일에 쓰기 전에 검사합니다. 영어가 기준 원본으로 유지됩니다. - [문서 소스 푸시 알림](https://loom.clickhouse.com/docs/ko/architecture/source-push): 제공자 알림으로 문서 소스 동기화를 요청하려면 LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true가 필요합니다. 알림은 문서 내용을 쓰거나 소스의 접근 정책을 변경하지 않습니다. 일반 15분 폴링은 계속 활성 상태로 유지되며, 누락된 전달을 복구하는 경로입니다. - [문서 추출](https://loom.clickhouse.com/docs/ko/architecture/document-extraction): 업로드된 원본은 추출기 서비스가 추출 아티팩트라는 하나의 형태로 파싱합니다. 추출기 서비스는 자체 의존성을 가진 별도의 프로세스이며, Loom 서버가 아닙니다. - [비용 예산](https://loom.clickhouse.com/docs/ko/architecture/cost-budgets): 네임스페이스 및 지정 사용자 한도는 agent_events의 24시간 롤링 비용 원장을 사용합니다. 양수인 네임스페이스 정책은 해당하는 서버 기본값을 덮어씁니다. 0은 기본값을 상속하며, 두 티어 모두 0이면 해당 한도가 비활성화됩니다. - [서버 레이아웃](https://loom.clickhouse.com/docs/ko/architecture/server-layout): server/는 도메인별로 구성됩니다. 각 제품 플레인은 와이어 선언, 핸들러, 순수 로직, ClickHouse 접근, 백그라운드 루프를 담은 패키지 하나를 소유하며, 임포트가 향할 수 있는 방향은 테스트로 고정되어 있습니다. - [셀](https://loom.clickhouse.com/docs/ko/architecture/cells): 배포의 메모리가 Postgres 프라이머리 하나와 ClickHouse 서비스 하나의 한계를 넘어설 수 있고, 조직이 자신만의 서비스에 메모리를 두기를 원할 수도 있습니다. 셀(cell)은 이 문서가 설명하는 하나의 완전한 Loom 배포입니다. - [장애와 복구](https://loom.clickhouse.com/docs/ko/architecture/failure-and-recovery): 기본 쓰기와 모든 접근 결정은 실패 시 닫힌 상태(fail closed)로 동작합니다. 파생 데이터와 텔레메트리는 실패 시 열린 상태(fail open)로 동작하며 이후 복구됩니다. - [정의 초안](https://loom.clickhouse.com/docs/ko/architecture/definition-drafts): 갭 초안에는 knowledge_gaps_enabled가, 쿼리 기록에는 knowledge_query_history_enabled가 필요합니다. 두 경로 모두 모델이 작성한 정의를 관리자 검토 대기열에 넣습니다. 모델은 정의를 직접 게시하지 않습니다. - [코드 인덱스 아키텍처](https://loom.clickhouse.com/docs/ko/architecture/code-index-architecture): 이 페이지는 코드 인덱스의 내부를 설명합니다. 파일이 어떻게 청크, 심볼, 엣지가 되는지, 그리고 두 티어가 어떻게 최신 상태를 유지하는지를 다룹니다. 각 op가 무엇에 답하는지, 지원하는 언어와 그 깊이, as_of를 읽는 방법은 코드 인덱스 개요와 최신성에 있습니다. - [프로바이더 재구성](https://loom.clickhouse.com/docs/ko/architecture/provider-reconfiguration): Loom은 대시보드 모델 구성을 loom.provider_configuration에 암호화된 버전 관리 행으로 저장합니다. 구성에는 커밋된 이전 버전이 하나 있으며, 오래된 버전을 기준으로 한 저장은 거부됩니다. ### Benchmarks - [벤치마크 개요](https://loom.clickhouse.com/docs/ko/benchmarks/overview): 랭킹 레버, 유사도 게이트, 캐시 임계값, 추출 프롬프트는 단위 테스트로 판단할 수 없는 동작을 바꿉니다. 이러한 항목은 각각 bench/ 아래의 하니스가 결정하며, 하니스는 실제 프로바이더를 사용해 실행 중인 서버에 HTTP로 접속하여 동작합니다. - [벤치마크 방법론](https://loom.clickhouse.com/docs/ko/benchmarks/methodology): 이 페이지에서는 하네스가 무엇을 계산하는지, 변화량(delta)을 노이즈와 비교해 어떻게 판단하는지, 두 수치를 언제 비교할 수 있는지, 그리고 수치에 어디서 편향이 생기는지를 다룹니다. - [벤치마크 범위](https://loom.clickhouse.com/docs/ko/benchmarks/coverage): 이 매트릭스는 Loom의 메모리, 지식, 코드 흐름 중 어느 부분에 재현 가능한 공개 측정이 있는지 보여 줍니다. 측정된 동작, 실행 가능한 하네스, 그리고 아직 공개된 품질 근거가 없는 제품 기능을 구분합니다. - [벤치마크 케이스, 데이터셋 또는 스위트 추가하기](https://loom.clickhouse.com/docs/ko/benchmarks/adding-a-case): 커밋된 세트는 규모가 작으므로(세트 크기), 새 케이스를 추가하는 것이 스위트를 개선하는 가장 저렴한 방법입니다. 먼저 파일의 헤더나 _comment를 읽어 보세요. 대부분 정답(gold)을 어떻게 만들었는지, 새 행이 어떤 조건을 충족해야 하는지 설명하고 있습니다. - [스킬 평가](https://loom.clickhouse.com/docs/ko/benchmarks/skill-eval): 스킬 평가는 에이전트가 남긴 네임스페이스를 기준으로 loom-memory 스킬을 채점합니다. 스킬은 무엇을 어디에 둘지 규정합니다. ### Concepts - [검색과 순위 지정](https://loom.clickhouse.com/docs/ko/concepts/retrieval-and-ranking): 이 페이지는 memory.search가 행을 찾는 방식을 설명합니다. 네임스페이스에 대해 여러 검색 경로를 동시에 실행하고, 각 경로의 후보를 하나의 풀로 합친 뒤, 관련도와 제한된 보정 항목으로 풀의 순위를 매기고, 가장 좋은 결과가 답변의 근거로 삼을 만큼 충분한지 판단합니다. - [아이덴티티와 네임스페이스](https://loom.clickhouse.com/docs/ko/concepts/identities-and-namespaces): Loom은 모든 호출에서 두 가지 질문에 답합니다. 이 행은 누구의 것인가(아이덴티티 튜플과 서버가 기록하는 두 개의 컬럼), 그리고 호출자가 이 행에 접근해도 되는가(토큰, 네임스페이스의 권한 부여, 그리고 네임스페이스의 분류)입니다. 이 페이지에서는 그 모델을 설명합니다. ### Development - [ClickHouse 테이블 또는 컬럼 추가](https://loom.clickhouse.com/docs/ko/development/adding-a-table): Loom의 ClickHouse 상태는 loom 및 loom_telemetry 데이터베이스의 테이블로 구성됩니다. Postgres 메모리 authority를 사용하는 경우 라이브 메모리, 지식 상태, 그리고 이와 함께 있는 레코드는 Postgres에 있습니다. - [Loom 확장하기](https://loom.clickhouse.com/docs/ko/development/extending-loom): Loom에는 종류별로 레지스트리가 하나씩 있습니다. 연산, 워커, 설정, 프로바이더, 언어 레인, 추출 단계, 트래커 소스입니다. Loom을 확장하려면 알맞은 레지스트리에 행을 추가하세요. HTTP, MCP, SDK, 생성된 레퍼런스가 그 행을 따라갑니다. - [대시보드 디자인](https://loom.clickhouse.com/docs/ko/development/dashboard-design): /의 대시보드는 ClickHouse의 디자인 시스템인 클릭 UI를 다크 테마로 적용하여 만들어졌습니다. 이 페이지에서는 외관과 동작이 어디에서 비롯되는지, 이를 어떻게 변경하는지, 그리고 대시보드 변경 사항을 검토할 때 적용하는 규칙을 설명합니다. - [릴리스 절차](https://loom.clickhouse.com/docs/ko/development/release-process): Loom은 SemVer를 따릅니다. 서버, 두 SDK, 웹 앱, 루트 스킬(loom-code, loom), 이를 함께 배포하는 Cursor 플러그인과 Agent Plugins 패키지, 그리고 Gemini CLI 확장은 하나의 버전 X.Y.Z를 공유합니다. - [마이그레이션](https://loom.clickhouse.com/docs/ko/development/migrations): 이 페이지는 마이그레이션을 작성하는 규칙을 다룹니다. 배포 환경에서 마이그레이션을 적용하는 방법과 업그레이드 및 롤백 절차는 업그레이드에 있습니다. schemas/README.md는 schemas/ 디렉터리의 구성을 안내하고 운영자용 도구를 나열합니다. - [백그라운드 워커 추가](https://loom.clickhouse.com/docs/ko/development/adding-a-worker): 워커는 server/workers/registry.py(_WORKERS)의 한 행과 패스 함수 하나를 가진 모듈로 구성됩니다. enabled_workers()는 활성화된 행을 WorkerSpec으로 변환하고, WorkerSupervisor(server/workers/… - [오퍼레이션 추가하기](https://loom.clickhouse.com/docs/ko/development/adding-an-operation): 오퍼레이션은 레지스트리에 한 번만 선언합니다. HTTP 라우트(POST /v1/), OpenAPI 스키마, MCP 도구(loom_), 카탈로그(/v1/operations, ops.capabilities), SDK op 테이블,… - [코드 생성](https://loom.clickhouse.com/docs/ko/development/code-generation): 저장소의 여러 파일은 코드에서 파생됩니다. SDK의 작업(operation) 테이블과 wire 타입, 레퍼런스 페이지, Codex 플러그인의 사본, op reach 매니페스트, 스키마 덤프가 그 예입니다. - [코드 인덱스에 언어 지원 추가하기](https://loom.clickhouse.com/docs/ko/development/adding-language-support): 빠른 티어에 해당 언어를 처리하는 레인이 있으면 그 언어를 지원하는 것입니다. 코드 인덱스에서 티어에 대한 설명과 각 언어가 제공받는 기능 목록을 확인할 수 있습니다. - [테스트](https://loom.clickhouse.com/docs/ko/development/testing): 테스트가 어느 스위트에 속하는지, 각 스위트를 실행하는 데 무엇이 필요한지, 환경이 갖춰지지 않았을 때 테스트가 어떻게 건너뛰는지, CI가 어떤 게이트를 강제하는지, 그리고 테스트가 고정해 둔 결과물을 어떻게 다시 생성하는지를 설명합니다. ### Features - [네임스페이스와 공유](https://loom.clickhouse.com/docs/ko/features/namespaces-and-sharing): 네임스페이스는 org 안에서 격리와 공유의 단위입니다. - [대화와 세션](https://loom.clickhouse.com/docs/ko/features/conversations-and-sessions): 턴을 저장해도 메모리가 생성되지는 않습니다. 대화를 사실로 변환하려면 memory.set_from_messages로 전송하세요. 소유자는 추출된 메모리를 잃지 않고도 대화 기록을 끌 수 있으며, 브리프는 회상 시 사실과 경쟁하지 않습니다. - [실행](https://loom.clickhouse.com/docs/ko/features/runs): 실행(run)은 "이슈 1234 분류"와 같은 작업 하나를 한 번 수행하는 단위입니다. run.begin이 실행을 열고 run_id를 반환합니다. - [엔티티 그래프](https://loom.clickhouse.com/docs/ko/features/entity-graph): Loom은 메모리 행 옆에 같은 ClickHouse 데이터베이스로 엔티티 그래프를 유지합니다. 엔티티는 노드입니다. - [태스크, 결정, 정책](https://loom.clickhouse.com/docs/ko/features/tasks-and-decisions): 메모리 옆에는 에이전트 간 조정을 위한 세 가지 플레인이 있습니다. 모든 op는 어떤 MCP 목록에서든 이름으로 호출할 수 있으며, all 목록에 표시되는 op는 MCP 툴셋에 정리되어 있습니다. #### Code Index - [리포지토리 추가](https://loom.clickhouse.com/docs/ko/features/code-index/repositories): 새로 설치한 상태에서는 어떤 리포지토리도 인덱싱되어 있지 않습니다. 항목은 두 가지 출처에서 오며 서로 병합됩니다. 사용자가 직접 추가한 리포지토리와 운영자의 구성입니다. 여기에서 추가한 네임스페이스에 대한 운영자 항목은 건너뜁니다(아래 규칙 참조). - [코드 인덱스 최신성](https://loom.clickhouse.com/docs/ko/features/code-index/freshness): 인덱스는 저장소보다 늦게 반영됩니다. 인덱스는 설정된 브랜치에 병합된 커밋을 패스 단위로 색인하며, 각 티어는 자체 워터마크를 따로 진행합니다. 색인된 코드를 신뢰하기 전에 답변에 최신성 메타데이터가 있으면 그것을 확인하고, 해당 티어의 상태도 확인하세요. - [코드 작업](https://loom.clickhouse.com/docs/ko/features/code-index/operations): 이 페이지는 질문을 code.* op에 대응시켜 보여 줍니다. 모든 인자와 출력은 자동 생성된 작업 레퍼런스와 각 op의 MCP 설명에서 확인할 수 있습니다. - [히스토리, PR, 릴리스](https://loom.clickhouse.com/docs/ko/features/code-index/history-and-prs): 이 op들을 사용하려면 병합된 PR 히스토리가 필요합니다. code_pr_history 워커는 기본적으로 꺼져 있습니다 (LOOM_CODE_PR_HISTORY_ENABLED). #### Integrations - [ClickStack과 HyperDX](https://loom.clickhouse.com/docs/ko/features/integrations/clickstack): Loom은 항상 OpenTelemetry를 내보냅니다. HyperDX 소스, 대시보드, 삭제 단계는 별도로 설정해야 합니다. - [Cursor](https://loom.clickhouse.com/docs/ko/features/integrations/cursor): Cursor를 MCP로 Loom에 연결해 프로젝트 결정과 교훈을 여러 세션에서 공유합니다. 로컬 연결과 팀 서버 설정을 확인할 수 있습니다. - [grep shim](https://loom.clickhouse.com/docs/ko/features/integrations/grep-shim): grep shim은 grep/rg를 감싸는 래퍼로, 코드 인덱스에서 찾은 각 결과의 상위 함수를 일치하는 줄 끝에 덧붙입니다. Node 18 이상, 뷰어 토큰, 그리고 코드 인덱스에 등록된 리포지토리가 필요합니다. - [Langfuse](https://loom.clickhouse.com/docs/ko/features/integrations/langfuse): LOOM_LANGFUSE_URL과 LOOM_LANGFUSE_ADMIN_TOKEN이 필요하며, 두 값이 모두 설정되기 전에는 아무것도 전송되지 않습니다. 두 값이 설정되면 OpenTelemetry 스팬 트리가 OTLP를 통해 Langfuse로 전달됩니다. - [OKF 번들](https://loom.clickhouse.com/docs/ko/features/integrations/okf): 네임스페이스는 OKF(Open Knowledge Format) v0.2 번들로 렌더링할 수 있습니다. - [VS Code](https://loom.clickhouse.com/docs/ko/features/integrations/vscode): VS Code의 GitHub Copilot을 MCP로 Loom에 연결합니다. 같은 네임스페이스에 접근하는 세션과 편집기에서 프로젝트 결정을 공유할 수 있습니다. - [리브레챗](https://loom.clickhouse.com/docs/ko/features/integrations/librechat): 리브레챗 v0.8.8(MIT), 어시스턴트 툴셋을 제공하는 Loom 서버, 그리고 사용자 한 명당 Loom viewer 토큰 하나가 필요합니다. - [에이전트 서브스트레이트](https://loom.clickhouse.com/docs/ko/features/integrations/agent-substrate): 에이전트 서브스트레이트 v1.0.0과 Loom의 Helm 차트가 하나의 Kubernetes 클러스터에 있어야 합니다. Substrate의 egress 게이트웨이가 각 에이전트의 Loom 토큰을 해당 에이전트의 MCP 호출에 추가합니다. - [에이전트 지침](https://loom.clickhouse.com/docs/ko/features/integrations/agent-instructions): 에이전트의 지침 파일에 짧은 블록 하나를 넣으면, 에이전트가 Loom의 컨텍스트를 불러올 시점, 사실을 저장할 시점, 그리고 grep이나 파일 읽기 대신 코드 인덱스를 사용할 시점을 알 수 있습니다. #### Memory - [기록과 출처](https://loom.clickhouse.com/docs/ko/features/memory/history-and-provenance): 메모리에 대한 모든 쓰기는 새 버전을 만들며, 어떤 것도 제자리에서 수정되지 않습니다. 버전은 추가 전용(append-only) 미러에 보관되므로, 백그라운드 병합이 일어나도 사실의 이력은 그대로 남습니다. - [워킹 메모리와 프로필](https://loom.clickhouse.com/docs/ko/features/memory/working-memory-and-profiles): 에이전트에게 검색으로 찾게 하지 않고 매번 직접 전달하는 텍스트를 보관하는 두 개의 플레인이 있습니다. #### Observability - [감사 로그](https://loom.clickhouse.com/docs/ko/features/observability/audit): 감사 행, audit_verifier 워커, 체크포인트 체인은 기본적으로 켜져 있습니다. #### Tracker - [GitHub 트래커 레코드 유지 관리](https://loom.clickhouse.com/docs/ko/features/tracker/github-feed): loom tracker-feed는 저장소의 이슈, 풀 리퀘스트, 이슈 댓글, 인라인 리뷰 댓글을 팀 전용 ClickHouse 데이터베이스로 복사합니다. Loom은 이렇게 만들어진 뷰를 읽기 전용 트래커 소스를 통해 읽습니다. 복사된 콘텐츠, 백업, 삭제는 팀이 책임집니다. - [트래커 레코드 계약](https://loom.clickhouse.com/docs/ko/features/tracker/record-contract): tracker.* op와 code.*, loom_search의 트래커 구간은 팀의 이슈, 풀 리퀘스트, 인시던트를 읽기 전용 자격 증명으로 팀 자체 ClickHouse에서 실시간으로 읽습니다. Loom은 레코드를 복사하지 않습니다. ### Getting Started - [Claude Code, Codex, Cursor를 위한 공유 메모리](https://loom.clickhouse.com/docs/ko/getting-started/connect-a-coding-agent): Loom은 같은 셀프 호스팅 서버에 연결된 플러그인 또는 MCP 도구를 통해 Claude Code, Codex, Cursor에 공유 장기 메모리를 제공합니다. 팀원마다 팀 네임스페이스에 접근할 수 있는 토큰을 발급하면, 각자의 에이전트가 다른 팀원이 저장한 사실을 찾을 수 있습니다. - [Loom 평가하기](https://loom.clickhouse.com/docs/ko/getting-started/evaluate): 저장소에 있는 모든 하니스를 평가하는 것이 아니라, 내려야 하는 결정을 평가하세요. 이 가이드는 비용이 들지 않는 제품 스모크 테스트로 시작해 워크로드별 품질 테스트로 넘어갑니다. 공개 벤치마크 스위트는 게시된 주장을 감사하거나 재현해야 할 때 거치는 마지막 단계입니다. - [개요](https://loom.clickhouse.com/docs/ko/getting-started/overview): Loom은 AI 에이전트를 위한 메모리, 문서, 대화, 엔티티 그래프, 코드 인덱스를 ClickHouse의 행으로 저장하는 서버이며, 라이브 메모리와 지식 상태용으로 Postgres를 선택적으로 사용할 수 있습니다. - [모델과 API 키 설정](https://loom.clickhouse.com/docs/ko/getting-started/models-and-keys): 코딩 에이전트, Loom의 내부 LLM, Loom의 임베딩 모델은 서로 별개의 선택 사항입니다. OpenAI 모델을 사용하는 Loom 서버에 Claude Code를 연결할 수도 있고, Claude를 사용하는 서버에 Codex를 연결할 수도 있습니다. - [빠른 시작](https://loom.clickhouse.com/docs/ko/getting-started/quickstart): 이 페이지는 노트북에서 Loom을 부팅하고 HTTP, Python, MCP로 첫 메모리를 저장하는 방법을 설명합니다. API 키와 계정이 필요하지 않습니다. - [코딩 에이전트로 Loom 설정하기](https://loom.clickhouse.com/docs/ko/getting-started/agent-setup): 이 페이지는 Claude Code나 Codex 같은 코딩 에이전트가 자신이 실행되는 머신에 Loom을 설치하고, 설치가 제대로 동작하는지 증명해야 할 때 참고하는 문서입니다. - [포함된 기능](https://loom.clickhouse.com/docs/ko/getting-started/whats-included): 이 페이지는 Apache-2.0 저장소에서 셀프 호스팅으로 사용할 수 있는 Loom의 주요 기능을 영역별로 나누어 나열합니다. 각 행은 해당 내용을 다루는 페이지로 연결됩니다. 문서 색인에서 나머지 문서를 확인할 수 있습니다. ### Guides - [ClickGap 메모리 가져오기](https://loom.clickhouse.com/docs/ko/guides/importing-clickgap-memory): loom import-clickgap은 SQLite 내보내기 형식 중 하나인 ClickGap lessons 저장소를 Loom 네임스페이스로 불러옵니다. - [Loom 성능 튜닝](https://loom.clickhouse.com/docs/ko/guides/performance-tuning): 이 페이지의 모든 조정 항목은 설정 또는 요청 필드입니다. 구성 레퍼런스에서 각 설정의 기본값과 의미를 확인할 수 있습니다. 트레이드오프를 측정할 수 있는 경우, 이 페이지에 측정에 사용하는 명령을 명시합니다. - [Loom으로 가르치기](https://loom.clickhouse.com/docs/ko/guides/teaching): Loom은 AI 에이전트, 정보 검색, 데이터베이스 또는 소프트웨어 공학 강의의 실습 환경으로 사용할 수 있습니다. 각 학생은 Docker가 설치된 노트북이나, 로컬 컴퓨터에 아무것도 설치하지 않아도 되는 GitHub codespace에서 자신만의 단일 사용자 스택을 실행합니다. - [Postgres에서 Loom 쿼리하기](https://loom.clickhouse.com/docs/ko/guides/query-from-postgres): 이 가이드는 테넌트의 메모리, 대화, 사용량을 조직 자체의 Postgres에서 읽는 방법을 설명합니다. 이렇게 읽으면 애플리케이션의 테이블과 조인할 수 있습니다. 여기에서는 오픈 소스 pg_clickhouse 확장을 사용합니다. - [감사 결과로 네임스페이스 최적화하기](https://loom.clickhouse.com/docs/ko/guides/optimize-namespace): memory.set을 객체 저장소처럼 사용하는 작성자(해시 키 아래의 JSON blob, 메모리로 저장한 lease, 클레임으로 저장한 문서)는 모든 테이블의 일관성은 유지하지만 recall은 쓸모없게 만듭니다. - [긴 에이전트 실행 추적 및 재개](https://loom.clickhouse.com/docs/ko/guides/trace-and-resume): 긴 실행(파일 300개 처리, 리포지토리 크롤링, 계획 수행)은 도중에 멈출 수 있습니다. 크래시, 가득 찬 컨텍스트 윈도우, 배포, 일시 중지 등이 원인입니다. - [대시보드 없이 Loom 사용하기](https://loom.clickhouse.com/docs/ko/guides/without-the-dashboard): /me 대시보드에서 하는 모든 작업은 터미널, 스크립트 또는 에이전트의 셸에서도 할 수 있습니다. loom login으로 한 번 로그인한 다음 loom call 또는 Python SDK를 사용하세요. 이 페이지는 각 대시보드 화면을 해당하는 명령과 SDK 호출에 대응시켜 보여 줍니다. - [에이전트에 Loom 통합하기](https://loom.clickhouse.com/docs/ko/guides/agent-integration): 이 가이드는 에이전트가 Loom에 무엇을 보내고 응답을 어떻게 읽는지를 다룹니다. 클라이언트 표면, 아이덴티티, 무엇을 기록할지, 어떻게 읽을지를 설명합니다. 메모리와 아이덴티티와 네임스페이스를 이해하고 있다고 가정합니다. - [요청 디버그](https://loom.clickhouse.com/docs/ko/guides/debugging): Loom은 하나의 요청이 수행하는 모든 작업에 동일한 id를 태깅하므로, 요청을 추적하는 일은 조인(join) 한 번으로 끝납니다. 이 페이지는 응답 헤더에서 시작해 답변을 결정한 컴포넌트까지 하나의 요청을 따라갑니다. 배포 자체가 정상이 아닌 경우에는 문제 해결에서 시작하세요. - [추출 파이프라인 사용자 지정](https://loom.clickhouse.com/docs/ko/guides/extraction-pipeline): memory.set_from_messages는 대화 기록을 하나의 상태를 공유하는 순서 있는 단계 목록에 통과시킵니다. 요청은 pipeline_steps로 이 목록을 대체할 수 있습니다. - [헤드리스 봇](https://loom.clickhouse.com/docs/ko/guides/headless-bots): 헤드리스 봇은 토큰을 붙여 넣어 줄 사람도, 조용히 발생한 실패를 알아차릴 사람도, "이걸 기억해 줘"라고 말할 사람도 없는 상태로 실행됩니다. 이 가이드는 봇의 ID, 연결 확인, 세 가지 런타임, 봇이 기록하는 내용, 그리고 응답이 없어진 봇을 진단하는 방법을 다룹니다. ### Operations - [N개 레플리카 실행하기](https://loom.clickhouse.com/docs/ko/operations/replicas): 모든 Loom 프로세스는 완전한 레플리카입니다. 하나의 ClickHouse 서비스를 하나의 URL 뒤에 두고 필요한 만큼 실행할 수 있으며, 고정 세션(sticky session)은 필요하지 않습니다. - [네임스페이스를 다른 Loom으로 복사하기](https://loom.clickhouse.com/docs/ko/operations/okf-sync): 프라이빗 네트워크 안의 작업이 일정에 따라 프라이빗 Loom의 네임스페이스 하나를 퍼블릭 Loom으로 복사합니다. loom export-okf가 프라이빗 Loom에서 네임스페이스를 읽고, loom import-okf --prune이 이를 퍼블릭 Loom에 씁니다. - [데이터 웨어하우스로 사용량 내보내기](https://loom.clickhouse.com/docs/ko/operations/analytics-export): loom export-analytics는 UTC 기준 하루치 사용량과 네임스페이스 스냅샷을 Parquet 파일로 S3 버킷에 기록합니다. 엔티티당 하루에 파일 하나씩 기록하며, 데이터 웨어하우스가 이를 로드합니다. - [런타임 설정](https://loom.clickhouse.com/docs/ko/operations/runtime-settings): 모든 설정은 시작할 때 읽는 환경 변수 LOOM_이며, YAML 설정 파일에 넣을 수도 있습니다(구성 레퍼런스). - [모니터링](https://loom.clickhouse.com/docs/ko/operations/monitoring): 이 페이지는 무엇을 지켜봐야 하는지 설명합니다. Loom은 네 가지 방식으로 자신의 상태를 보고합니다. - [문제 해결](https://loom.clickhouse.com/docs/ko/operations/troubleshooting): 각 항목은 증상, 원인을 확인하는 점검 방법, 해결 방법을 차례로 설명합니다. 하나의 요청을 원장(ledger), 쿼리 로그, 트레이스에서 따라가려면 요청 디버깅을 참고하세요. - [백업 및 복구](https://loom.clickhouse.com/docs/ko/operations/backup-and-recovery): Loom 백업은 ClickHouse 백업이며, 카탈로그 행이 문서 버킷의 객체를 참조하는 동안에는 문서 버킷도 포함하고, Postgres가 메모리 상태의 기준 저장소인 구성에서는 Postgres 백업도 포함합니다. - [업그레이드](https://loom.clickhouse.com/docs/ko/operations/upgrades): 업그레이드는 이미지(그리고 상태를 보관하지 않는 문서 추출기의 이미지)를 교체하고, 새 빌드에 포함된 마이그레이션을 적용합니다. 그 외의 상태는 이동하지 않습니다. - [유지보수](https://loom.clickhouse.com/docs/ko/operations/maintenance): 여기에 나오는 모든 명령은 loom 하위 명령이며, 배포 환경의 환경 변수가 설정된 컨테이너 안에서 실행합니다(docker exec loom-server loom …, 분리 배포에서는 loom-workers). 모든 플래그는 CLI 레퍼런스에서 확인할 수 있습니다. - [지원 버전](https://loom.clickhouse.com/docs/ko/operations/supported-versions): 릴리스 N과 N−1은 수정을 받으며, X.Y 버전의 SDK는 X.Y 또는 X.(Y−1) 버전의 서버와 함께 동작합니다. Loom은 서버, 두 이미지, 웹 앱, 두 SDK, 루트 skills, Helm 차트의 appVersion에 하나의 버전을 사용합니다(릴리스 프로세스). ### Reference - [레퍼런스](https://loom.clickhouse.com/docs/ko/reference): 레퍼런스 페이지는 무엇이 존재하며 각 옵션이 무엇을 의미하는지 설명합니다. 설계의 배경과 이유는 개념과 아키텍처에서 다룹니다. 절차는 가이드와 운영 섹션에 있습니다. - [SQL 인터페이스](https://loom.clickhouse.com/docs/ko/reference/sql-surface): SQL 인터페이스는 테넌트의 메모리, 메모리 기록, 대화, 요청 원장을 읽기 전용으로 보여 주는 ClickHouse 뷰 모음입니다. - [워커 레퍼런스](https://loom.clickhouse.com/docs/ko/reference/workers): 워커는 감독되는 백그라운드 루프입니다. 워커 감독자(worker supervisor)가 일정한 간격으로 하나의 패스 함수를 실행합니다. 워커는 요청이 기다리지 않아야 하는 작업을 처리합니다. - [추출기 계약](https://loom.clickhouse.com/docs/ko/reference/extractor-contract): 추출기는 Loom 서버가 원본 파일을 보내면 추출 아티팩트를 돌려주는 HTTP 서비스입니다. 이 페이지는 서버와 추출기 사이의 계약 버전 1입니다. - [환경 변수 레퍼런스](https://loom.clickhouse.com/docs/ko/reference/environment): Loom의 거의 모든 구성은 설정 필드로 이루어집니다. 이는 server.settings.Settings의 필드에 대응하는 환경 변수 LOOM_이며, 기본값과 의미는 생성된 구성 레퍼런스에 나와 있습니다. 이 페이지에서는 나머지를 다룹니다. #### Operations - [`admin` 오퍼레이션](https://loom.clickhouse.com/docs/ko/reference/operations/admin): 각 admin.* 오퍼레이션이 받고 반환하는 정확한 필드입니다. - [`assistant` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/assistant): 각 assistant.* 연산이 받고 반환하는 정확한 필드입니다. - [`audit` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/audit): 각 audit.* 연산이 받고 반환하는 정확한 필드입니다. - [`blacklist` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/blacklist): 각 blacklist.* 연산이 받고 반환하는 정확한 필드입니다. - [`calibration` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/calibration): 각 calibration.* 연산이 받는 입력 필드와 반환하는 출력 필드를 정확히 설명합니다. - [`collection` 오퍼레이션](https://loom.clickhouse.com/docs/ko/reference/operations/collection): 각 collection.* 오퍼레이션이 받고 반환하는 필드를 정확히 정리합니다. - [`conflicts` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/conflicts): 각 conflicts.* 연산이 받고 반환하는 정확한 필드입니다. - [`consolidations` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/consolidations): 각 consolidations.* 연산이 받고 반환하는 정확한 필드입니다. - [`context` 작업](https://loom.clickhouse.com/docs/ko/reference/operations/context): 각 context.* 작업이 받고 반환하는 정확한 필드입니다. - [`cost` 작업](https://loom.clickhouse.com/docs/ko/reference/operations/cost): 각 cost.* 작업이 받는 필드와 반환하는 필드를 정확히 설명합니다. - [`decision` 오퍼레이션](https://loom.clickhouse.com/docs/ko/reference/operations/decision): 각 decision.* 오퍼레이션이 받고 반환하는 정확한 필드입니다. - [`insights` 오퍼레이션](https://loom.clickhouse.com/docs/ko/reference/operations/insights): 각 insights.* 오퍼레이션이 받고 반환하는 정확한 필드입니다. - [`mentor` 오퍼레이션](https://loom.clickhouse.com/docs/ko/reference/operations/mentor): 각 mentor.* 오퍼레이션이 받고 반환하는 정확한 필드입니다. - [`org` 오퍼레이션](https://loom.clickhouse.com/docs/ko/reference/operations/org): 각 org.* 오퍼레이션이 받고 반환하는 정확한 필드입니다. - [`procedure` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/procedure): 각 procedure.* 연산이 받고 반환하는 정확한 필드입니다. - [`profile_schema` 작업](https://loom.clickhouse.com/docs/ko/reference/operations/profile_schema): 각 profile_schema.* 작업이 받고 반환하는 정확한 필드입니다. - [`run` 작업](https://loom.clickhouse.com/docs/ko/reference/operations/run): 각 run.* 작업이 받고 반환하는 정확한 필드입니다. - [`task` 작업](https://loom.clickhouse.com/docs/ko/reference/operations/task): 각 task.* 작업이 받고 반환하는 정확한 필드입니다. - [`working_memory` 연산](https://loom.clickhouse.com/docs/ko/reference/operations/working_memory): 각 working_memory.* 연산이 받고 반환하는 정확한 필드입니다. ### Use Cases - [사용 사례](https://loom.clickhouse.com/docs/ko/use-cases): 각 페이지는 사람과 에이전트가 도구를 찾을 때 던지는 질문 하나에 답합니다. 해당 요구에 Loom이 무엇을 해 주는지, 그리고 어디서 시작해야 하는지를 설명합니다. - [AI 에이전트를 위한 장기 및 공유 메모리](https://loom.clickhouse.com/docs/ko/use-cases/agent-memory): 자체 호스팅 MCP 서버에서 코딩 에이전트와 세션 간에 결정과 교훈을 공유하고 네임스페이스별로 접근을 관리합니다. - [C++, Python, TypeScript, Go, Rust, Java 및 인프라 코드를 위한 코드 인텔리전스](https://loom.clickhouse.com/docs/ko/use-cases/code-intelligence-by-language): Loom의 코드 인덱스는 저장소에 담긴 언어 전반에서 코딩 에이전트의 구조 관련 질문에 답합니다. 심볼이 어디에 정의되어 있는지, 누가 호출하는지, 변경이 무엇에 영향을 주는지를 알려 줍니다. - [ClickHouse 기반 셀프 호스팅 에이전트 메모리](https://loom.clickhouse.com/docs/ko/use-cases/self-hosted-clickhouse): Docker 또는 Kubernetes로 Loom을 자체 호스팅하고 ClickHouse에 저장된 에이전트 메모리를 SQL로 조회합니다. - [멀티 에이전트 워크플로를 위한 공유 컨텍스트](https://loom.clickhouse.com/docs/ko/use-cases/multi-agent): 공유 메모리, 영속 작업 큐, 결정 기록으로 여러 에이전트가 맥락을 보존하면서 작업을 인계합니다. - [에이전트 실행, 트레이스, PR 이력](https://loom.clickhouse.com/docs/ko/use-cases/runs-and-pr-history): Loom은 코딩 에이전트가 수행한 작업을 실행(run)과 검색 가능한 세션 대화로 기록하고, 이를 코드 이력과 연결합니다. 실행에는 목표와 결과가 담기며, Claude Code 플러그인이 세션의 턴 사용량을 보고하는 경우(기본값은 켜짐) 모델 비용도 함께 기록됩니다. - [에이전트를 위한 문서 검색과 RAG](https://loom.clickhouse.com/docs/ko/use-cases/document-search): AI 에이전트가 MCP로 사내 문서를 검색하고 근거가 되는 구절과 문서 버전을 확인합니다. 네임스페이스별로 접근을 제한합니다. - [자율 에이전트를 위한 메모리, 리콜, 감사, 삭제](https://loom.clickhouse.com/docs/ko/use-cases/autonomous-agents): 자율 에이전트가 변경 이력이 있는 사실을 검색하고 절차를 재사용합니다. 기록의 출처를 감사하고 지정된 범위의 데이터를 삭제할 수 있습니다. - [코딩 에이전트를 위한 코드 연결 메모리](https://loom.clickhouse.com/docs/ko/use-cases/memory-linked-to-code): 에이전트의 교훈을 함수, 클래스, 파일에 연결하고 리팩터링이나 코드 변경·삭제 이후 연결 상태를 확인합니다. - [코딩 에이전트를 위한 코드 인덱스](https://loom.clickhouse.com/docs/ko/use-cases/code-intelligence): MCP로 인덱싱된 Git 저장소를 검색하고 정의, 호출 위치, 답변의 근거가 된 코드 리비전을 확인합니다. - [코딩 에이전트의 모델 비용 절감](https://loom.clickhouse.com/docs/ko/use-cases/coding-agent-cost): Loom 플러그인과 코드 인덱스를 사용하면, Claude Code가 ClickHouse 코드베이스에 관한 질문에 답할 때 측정한 세 가지 질문 세트 모두에서 사용하지 않을 때보다 모델 비용이 6%에서 21% 낮았습니다. ## Português (Brasil) ### Docs - [Documentação do ClickHouse Loom](https://loom.clickhouse.com/docs/pt-BR): Memória compartilhada, busca em documentos e índice de código para agentes de IA em um servidor MCP auto-hospedado. - [Glossário](https://loom.clickhouse.com/docs/pt-BR/glossary): Os termos do Loom, em ordem alfabética, cada um definido uma única vez. Os identificadores de código estão entre crases. - [Perguntas frequentes](https://loom.clickhouse.com/docs/pt-BR/faq): Respostas curtas para as primeiras perguntas que as pessoas fazem. Cada uma tem um link para a página que a explica. ### Architecture - [Adaptador de ferramentas do Dify](https://loom.clickhouse.com/docs/pt-BR/architecture/dify-adapter): O plugin do Dify chama o Loom por meio do SDK Python e não armazena nenhum conteúdo localmente. - [Adaptador do n8n](https://loom.clickhouse.com/docs/pt-BR/architecture/n8n-adapter): O pacote da comunidade n8n armazena o histórico de conversas e fatos duráveis em uma implantação do Loom por meio do SDK TypeScript. - [Arquitetura do índice de código](https://loom.clickhouse.com/docs/pt-BR/architecture/code-index-architecture): Esta página é a visão interna do índice de código: como os arquivos se transformam em chunks, símbolos e arestas, e como as duas camadas se mantêm atualizadas. - [Árvore de arquivos de memória da Claude API](https://loom.clickhouse.com/docs/pt-BR/architecture/claude-memory-adapter): O adaptador de memória da Claude API implementa as bases da ferramenta de memória do framework em Python e os handlers de memória em TypeScript por meio de… - [Autoridade de armazenamento: Postgres para a memória ativa, ClickHouse para a busca](https://loom.clickhouse.com/docs/pt-BR/architecture/storage-authority): O Loom funciona com uma de duas autoridades de memória, escolhida por implantação por meio de LOOM_STORAGE_AUTHORITY. - [Banco de dados de memória de usuário do Agno](https://loom.clickhouse.com/docs/pt-BR/architecture/agno-adapter): O adaptador do Agno implementa os métodos de memória de usuário da sua interface BaseDb 3.2 por meio do SDK síncrono do Loom. - [Células](https://loom.clickhouse.com/docs/pt-BR/architecture/cells): A memória de um deployment pode crescer além de um primary Postgres e de um serviço ClickHouse, e uma organização pode querer sua memória em serviços próprios. - [Document store e retriever do Haystack](https://loom.clickhouse.com/docs/pt-BR/architecture/haystack-adapter): O adaptador opcional do Haystack 3.5 implementa o protocolo de document store do framework e um componente nativo de recuperação por meio do SDK síncrono do… - [Falha e recuperação](https://loom.clickhouse.com/docs/pt-BR/architecture/failure-and-recovery): A gravação primária e toda decisão de acesso falham de forma fechada (fail closed). - [Feed do tracker do GitHub](https://loom.clickhouse.com/docs/pt-BR/architecture/github-feed): O feed do GitHub mantém o registro do tracker de uma equipe no banco de dados ClickHouse da equipe. - [Layout do servidor](https://loom.clickhouse.com/docs/pt-BR/architecture/server-layout): server/ é organizado por domínio. - [Notificações push de fontes de documentos](https://loom.clickhouse.com/docs/pt-BR/architecture/source-push): Exige LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true para solicitar sincronizações de fontes de documentos a partir de notificações do provedor. - [Orçamentos de custo](https://loom.clickhouse.com/docs/pt-BR/architecture/cost-budgets): Os limites por namespace e por usuário nomeado usam o registro de custo móvel de 24 horas em agent_events. - [Provedor de contexto do Microsoft Agent Framework](https://loom.clickhouse.com/docs/pt-BR/architecture/agent-framework-adapter): LoomContextProvider implementa a interface de provedor de contexto do framework sobre o SDK Python assíncrono. - [Rascunhos de definição](https://loom.clickhouse.com/docs/pt-BR/architecture/definition-drafts): Requer knowledge_gaps_enabled para rascunhos de lacunas ou knowledge_query_history_enabled para o histórico de consultas. - [Reconfiguração de provedores](https://loom.clickhouse.com/docs/pt-BR/architecture/provider-reconfiguration): O Loom armazena a configuração de modelos do painel como linhas criptografadas e versionadas em loom.provider_configuration. - [Serviço de memória do Google ADK](https://loom.clickhouse.com/docs/pt-BR/architecture/google-adk-adapter): O adaptador do Google ADK implementa o serviço de memória do framework por meio dos SDKs de Python e TypeScript do Loom. - [Sessões de conversa do OpenAI Agents](https://loom.clickhouse.com/docs/pt-BR/architecture/openai-agents-sessions): LoomSession implementa as interfaces nativas de sessão de Python e TypeScript sobre as memórias episódicas do Loom. - [Solicitações de tradução da documentação](https://loom.clickhouse.com/docs/pt-BR/architecture/documentation-translation): O gerador de tradução divide o texto em inglês preparado em solicitações limitadas e verifica a tradução montada antes de gravá-la. ### Benchmarks - [Adicionando um caso, conjunto de dados ou suíte de benchmark](https://loom.clickhouse.com/docs/pt-BR/benchmarks/adding-a-case): Os conjuntos versionados são pequenos (tamanhos dos conjuntos), então um novo caso é a forma mais barata de melhorar a suíte. - [Avaliação da skill](https://loom.clickhouse.com/docs/pt-BR/benchmarks/skill-eval): A avaliação da skill mede a loom-memory pelo namespace que um agente deixa para trás. - [Cobertura de benchmarks](https://loom.clickhouse.com/docs/pt-BR/benchmarks/coverage): Esta matriz mostra quais partes dos fluxos de memória, conhecimento e código do Loom têm uma medição pública reproduzível. - [Visão geral dos benchmarks](https://loom.clickhouse.com/docs/pt-BR/benchmarks/overview): Fatores de ranqueamento, limites de similaridade, limiares de cache e prompts de extração alteram o comportamento de maneiras que um teste unitário não… ### Concepts - [Identidades e namespaces](https://loom.clickhouse.com/docs/pt-BR/concepts/identities-and-namespaces): O Loom responde a duas perguntas em cada chamada: de quem é esta linha (a tupla de identidade, mais duas colunas que o servidor preenche) e se o chamador pode… - [Memória](https://loom.clickhouse.com/docs/pt-BR/concepts/memory): Veja como o Loom guarda fatos, eventos e procedimentos para agentes de IA. Use a memória de trabalho para retomar tarefas e consulte o histórico das revisões. - [Recuperação e ranqueamento](https://loom.clickhouse.com/docs/pt-BR/concepts/retrieval-and-ranking): Esta página explica como memory.search encontra linhas. ### Development - [Adicionar suporte a linguagens ao índice de código](https://loom.clickhouse.com/docs/pt-BR/development/adding-language-support): Uma linguagem é considerada suportada quando a camada rápida tem uma lane para ela. Índice de código explica as camadas e lista o que cada linguagem recebe. - [Adicionar um worker em segundo plano](https://loom.clickhouse.com/docs/pt-BR/development/adding-a-worker): Um worker é uma linha em server/workers/registry.py (_WORKERS) mais um módulo com uma função de passagem. enabled_workers() transforma as linhas habilitadas em… - [Adicionar uma operação](https://loom.clickhouse.com/docs/pt-BR/development/adding-an-operation): Uma operação é declarada uma única vez, no registro. - [Adicionar uma tabela ou coluna do ClickHouse](https://loom.clickhouse.com/docs/pt-BR/development/adding-a-table): O estado do ClickHouse no Loom são tabelas nos bancos de dados loom e loom_telemetry; sob a autoridade de memória do Postgres, a memória ativa, o estado de… - [Design do painel](https://loom.clickhouse.com/docs/pt-BR/development/dashboard-design): O painel em / é construído sobre o design system da ClickHouse, o Interface Click, no tema escuro. - [Estender o Loom](https://loom.clickhouse.com/docs/pt-BR/development/extending-loom): O Loom tem um registro para cada tipo de coisa: operações, workers, configurações, provedores, lanes de linguagem, etapas de extração e fontes de tracker. - [Geração de código](https://loom.clickhouse.com/docs/pt-BR/development/code-generation): Vários arquivos do repositório são derivados do código: as tabelas de operações e os tipos de wire dos SDKs, as páginas de referência, as cópias do plugin do… - [Guia do repositório](https://loom.clickhouse.com/docs/pt-BR/development/repository-guide): O que cada diretório de nível superior contém, onde cada responsabilidade fica dentro de server/, a ordem em que ler o código e as convenções sem as quais um… - [Migrações](https://loom.clickhouse.com/docs/pt-BR/development/migrations): Esta página reúne as regras para escrever uma migração. Como um deployment as aplica, e também os passos de atualização e rollback, estão em atualizações. - [Processo de release](https://loom.clickhouse.com/docs/pt-BR/development/release-process): O Loom segue SemVer: o servidor, os dois SDKs, o web app, as skills da raiz (loom-code, loom), o plugin do Cursor e o pacote Agent Plugins que as distribuem, e… - [Testes](https://loom.clickhouse.com/docs/pt-BR/development/testing): Em qual suíte um teste se encaixa, o que cada suíte precisa para rodar, como os testes são ignorados quando o ambiente não está disponível, quais gates o CI… ### Features - [Conversas e sessões](https://loom.clickhouse.com/docs/pt-BR/features/conversations-and-sessions): Armazenar um turno não cria uma memória; para transformar uma conversa em fatos, envie-a para memory.set_from_messages. - [Execuções](https://loom.clickhouse.com/docs/pt-BR/features/runs): Uma execução (run) é uma execução de uma tarefa, como "triage issue 1234". run.begin a abre e retorna um run_id; o agente passa esse id nas suas escritas (… - [Grafo de entidades](https://loom.clickhouse.com/docs/pt-BR/features/entity-graph): O Loom mantém um grafo de entidades ao lado das linhas de memória, no mesmo banco de dados ClickHouse. As entidades são os nós. #### Code Index - [Adicionando repositórios](https://loom.clickhouse.com/docs/pt-BR/features/code-index/repositories): Uma instalação nova não indexa nenhum repositório. - [Atualização do índice de código](https://loom.clickhouse.com/docs/pt-BR/features/code-index/freshness): O índice fica atrás do repositório: ele indexa commits mesclados em uma branch configurada, passada por passada, e cada camada avança sua própria marca d'água. - [Histórico, PRs e releases](https://loom.clickhouse.com/docs/pt-BR/features/code-index/history-and-prs): Essas ops precisam do histórico de PRs mergeados; o worker code_pr_history vem desativado por padrão (LOOM_CODE_PR_HISTORY_ENABLED). - [Operações de código](https://loom.clickhouse.com/docs/pt-BR/features/code-index/operations): Esta página relaciona perguntas às ops code.*. Todos os argumentos e saídas estão na referência de operações gerada, e na descrição MCP de cada op. #### Integrations - [Bundles OKF](https://loom.clickhouse.com/docs/pt-BR/features/integrations/okf): Um namespace pode ser renderizado como um bundle OKF (Open Knowledge Format) v0.2: um arquivo Markdown por memória com frontmatter YAML, um index.md por… - [ClickStack e HyperDX](https://loom.clickhouse.com/docs/pt-BR/features/integrations/clickstack): O Loom sempre emite OpenTelemetry; as fontes do HyperDX, os painéis e a etapa de exclusão precisam ser configurados. - [Instruções para agentes](https://loom.clickhouse.com/docs/pt-BR/features/integrations/agent-instructions): Um bloco curto no arquivo de instruções de um agente diz a ele quando carregar o contexto do Loom, salvar um fato e usar o índice de código em vez de usar grep… - [O grep shim](https://loom.clickhouse.com/docs/pt-BR/features/integrations/grep-shim): O grep shim é um wrapper de grep/rg que acrescenta à linha de cada ocorrência a função que a contém, obtida do índice de código; ele exige Node 18 ou posterior… - [Substrato para agentes](https://loom.clickhouse.com/docs/pt-BR/features/integrations/agent-substrate): Requer o Substrato para agentes v1.0.0 e o Helm chart do Loom no mesmo cluster Kubernetes: o gateway de saída do Substrate adiciona o token do Loom de cada… - [VS Code](https://loom.clickhouse.com/docs/pt-BR/features/integrations/vscode): Conecte o GitHub Copilot no VS Code ao Loom via MCP. Guarde decisões do projeto e recupere-as em sessões e editores com acesso ao mesmo namespace. #### Memory - [Histórico e proveniência](https://loom.clickhouse.com/docs/pt-BR/features/memory/history-and-provenance): Toda escrita na memória cria uma nova versão; nada é editado no local. - [Memória de trabalho e perfis](https://loom.clickhouse.com/docs/pt-BR/features/memory/working-memory-and-profiles): Use memory.set para tudo o que uma sessão posterior deva encontrar por meio de uma consulta. - [Procedimentos e aprendizados](https://loom.clickhouse.com/docs/pt-BR/features/memory/procedures-and-learnings): Esta página trata do que um agente aprende ao executar tarefas, em oposição aos fatos que lhe são informados: procedimentos ("como fazer X", um grafo de etapas… #### Observability - [Log de auditoria](https://loom.clickhouse.com/docs/pt-BR/features/observability/audit): As linhas de auditoria, o worker audit_verifier e a cadeia de checkpoints vêm ativados por padrão. #### Tracker - [Manter um registro de tracker do GitHub](https://loom.clickhouse.com/docs/pt-BR/features/tracker/github-feed): loom tracker-feed copia issues, pull requests, comentários de issues e comentários de revisão em linha de um repositório para um banco de dados ClickHouse… - [Verificação de duplicatas de issues e candidatos a regressão para agentes](https://loom.clickhouse.com/docs/pt-BR/features/tracker/overview): Com LOOM_TRACKER_ORG definido e uma fonte registrada, o Loom permite que agentes verifiquem se um bug já foi reportado e classifiquem as mudanças que podem ter… ### Getting Started - [Avaliar o Loom](https://loom.clickhouse.com/docs/pt-BR/getting-started/evaluate): Avalie a decisão que você precisa tomar, não cada harness do repositório. - [Configurar modelos e chaves de API](https://loom.clickhouse.com/docs/pt-BR/getting-started/models-and-keys): Seu agente de código, o LLM interno do Loom e o modelo de embeddings do Loom são escolhas separadas. - [Configure o Loom com seu agente de código](https://loom.clickhouse.com/docs/pt-BR/getting-started/agent-setup): Esta página é para um agente de código, Claude Code ou Codex, que recebeu a tarefa de instalar o Loom na máquina em que está rodando e de provar que a… - [Início rápido](https://loom.clickhouse.com/docs/pt-BR/getting-started/quickstart): Esta página inicia o Loom em um laptop e salva uma primeira memória via HTTP, Python e MCP. Não exige chave de API nem conta. - [O que está incluído](https://loom.clickhouse.com/docs/pt-BR/getting-started/whats-included): Esta página lista as principais capacidades do Loom, em auto-hospedagem a partir do repositório Apache-2.0: uma seção por área, com cada linha apontando para a… - [Visão geral](https://loom.clickhouse.com/docs/pt-BR/getting-started/overview): Loom é um servidor que armazena memória, documentos, conversas, um grafo de entidades e um índice de código para agentes de IA, como linhas no ClickHouse, com… ### Guides - [Ajuste o desempenho do Loom](https://loom.clickhouse.com/docs/pt-BR/guides/performance-tuning): Cada ajuste desta página é uma configuração ou um campo de requisição. - [Consultar o Loom a partir do Postgres](https://loom.clickhouse.com/docs/pt-BR/guides/query-from-postgres): Este guia lê as memórias, as conversas e o uso de um tenant a partir do Postgres da própria organização, onde podem ser combinados com as tabelas da aplicação. - [Depurar uma requisição](https://loom.clickhouse.com/docs/pt-BR/guides/debugging): O Loom marca tudo o que uma requisição faz com o mesmo id, então rastrear uma requisição é um join. - [Ensinando com o Loom](https://loom.clickhouse.com/docs/pt-BR/guides/teaching): O Loom pode servir como ambiente de laboratório para um curso sobre agentes de IA, recuperação de informação, bancos de dados ou engenharia de software. - [Importar a memória do ClickGap](https://loom.clickhouse.com/docs/pt-BR/guides/importing-clickgap-memory): loom import-clickgap carrega um formato específico de exportação SQLite, um armazenamento lessons do ClickGap, em um namespace do Loom; pule esta página, a… - [Otimizar um namespace a partir da sua auditoria](https://loom.clickhouse.com/docs/pt-BR/guides/optimize-namespace): Um escritor que usa memory.set como um object store (blobs JSON sob chaves de hash, leases como memórias, documentos como claims) deixa todas as tabelas… - [Personalizar o pipeline de extração](https://loom.clickhouse.com/docs/pt-BR/guides/extraction-pipeline): memory.set_from_messages executa sua transcrição por uma lista ordenada de etapas que compartilham um único estado. - [Use o Loom sem o painel](https://loom.clickhouse.com/docs/pt-BR/guides/without-the-dashboard): Tudo o que o painel /me faz pode ser feito a partir de um terminal, de um script ou do shell de um agente. ### Operations - [Configurações de runtime](https://loom.clickhouse.com/docs/pt-BR/operations/runtime-settings): Toda configuração é uma variável de ambiente LOOM_ lida na inicialização e também pode ir no arquivo de configurações YAML (referência de configuração). - [Executando N réplicas](https://loom.clickhouse.com/docs/pt-BR/operations/replicas): Todo processo do Loom é uma réplica completa. - [Exportando o uso para um data warehouse](https://loom.clickhouse.com/docs/pt-BR/operations/analytics-export): loom export-analytics grava um dia UTC de uso e um snapshot dos namespaces em um bucket S3 como arquivos Parquet, um arquivo por entidade por dia, para que um… - [Login único (OIDC)](https://loom.clickhouse.com/docs/pt-BR/operations/sso): O Loom pode delegar o login de usuários a um provedor de identidade OpenID Connect. - [Monitoramento](https://loom.clickhouse.com/docs/pt-BR/operations/monitoring): Esta página diz o que acompanhar. - [Versões suportadas](https://loom.clickhouse.com/docs/pt-BR/operations/supported-versions): As versões N e N−1 recebem correções, e um SDK em X.Y funciona com um servidor em X.Y ou X.(Y−1). ### Reference - [Referência](https://loom.clickhouse.com/docs/pt-BR/reference): As páginas de referência dizem o que existe e o que cada opção significa. As razões por trás de um design estão em Conceitos e Arquitetura. - [Referência de variáveis de ambiente](https://loom.clickhouse.com/docs/pt-BR/reference/environment): Quase tudo o que configura o Loom é um campo de settings: a variável de ambiente LOOM_ de um campo em server.settings.Settings, listada com seu valor… - [Superfície SQL](https://loom.clickhouse.com/docs/pt-BR/reference/sql-surface): A superfície SQL é um conjunto de views do ClickHouse somente leitura sobre as memórias de um tenant, o histórico de memórias, as conversas e o registro de… #### Operations - [Operações `admin`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/admin): Os campos exatos que cada operação admin.* recebe e retorna. - [Operações `assistant`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/assistant): Os campos exatos que cada operação assistant.* recebe e retorna. - [Operações `help`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/help): Os campos exatos que cada operação help.* recebe e retorna. - [Operações `insights`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/insights): Os campos exatos que cada operação insights.* recebe e retorna. - [Operações `mentor`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/mentor): Os campos exatos que cada operação mentor.* recebe e retorna. - [Operações `ops`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/ops): Os campos exatos que cada operação ops.* recebe e retorna. - [Operações `run`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/run): Os campos exatos que cada operação run.* recebe e retorna. - [Operações `ui`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/ui): Os campos exatos que cada operação ui.* recebe e retorna. - [Operações de `agents`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/agents): Os campos exatos que cada operação agents.* recebe e retorna. - [Operações de `audit`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/audit): Os campos exatos que cada operação audit.* recebe e retorna. - [Operações de `blacklist`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/blacklist): Os campos exatos que cada operação blacklist.* recebe e retorna. - [Operações de `conflicts`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/conflicts): Os campos exatos que cada operação conflicts.* recebe e retorna. - [Operações de `consolidations`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/consolidations): Os campos exatos que cada operação consolidations.* recebe e retorna. - [Operações de `context`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/context): Os campos exatos que cada operação context.* recebe e retorna. - [Operações de `conversation`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/conversation): Os campos exatos que cada operação conversation.* recebe e retorna. - [Operações de `cost`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/cost): Os campos exatos que cada operação cost.* recebe e retorna. - [Operações de `decision`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/decision): Os campos exatos que cada operação decision.* recebe e retorna. - [Operações de `extraction_policy`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/extraction_policy): Os campos exatos que cada operação extraction_policy.* recebe e retorna. - [Operações de `facts`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/facts): Os campos exatos que cada operação facts.* recebe e retorna. - [Operações de `grants`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/grants): Os campos exatos que cada operação grants.* recebe e retorna. - [Operações de `inbox`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/inbox): Os campos exatos que cada operação inbox.* recebe e retorna. - [Operações de `procedure`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/procedure): Os campos exatos que cada operação procedure.* recebe e retorna. - [Operações de `profile_schema`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/profile_schema): Os campos exatos que cada operação profile_schema.* recebe e retorna. - [Operações de `session`](https://loom.clickhouse.com/docs/pt-BR/reference/operations/session): Os campos exatos que cada operação session.* recebe e retorna. ### Use Cases - [Casos de uso](https://loom.clickhouse.com/docs/pt-BR/use-cases): Cada página responde a uma pergunta que pessoas e agentes fazem ao procurar uma ferramenta: o que o Loom faz para essa necessidade e por onde começar. - [Busca de documentos e RAG para agentes](https://loom.clickhouse.com/docs/pt-BR/use-cases/document-search): Pesquise documentos internos com agentes de IA via MCP. Recupere trechos com fonte e revisão e controle o acesso por namespace. - [Contexto compartilhado para fluxos de trabalho com vários agentes](https://loom.clickhouse.com/docs/pt-BR/use-cases/multi-agent): Passe tarefas de um agente para outro com memória compartilhada, filas persistentes e registros que identificam quem tomou cada decisão. - [Execuções de agentes, traces e histórico de PRs](https://loom.clickhouse.com/docs/pt-BR/use-cases/runs-and-pr-history): O Loom registra o trabalho que os agentes de código realizam, como execuções e conversas de sessão pesquisáveis, e o conecta ao histórico do seu código. - [Inteligência de código para C++, Python, TypeScript, Go, Rust, Java e código de infraestrutura](https://loom.clickhouse.com/docs/pt-BR/use-cases/code-intelligence-by-language): O índice de código do Loom responde às perguntas de estrutura de um agente de programação nas linguagens que um repositório contém: onde um símbolo é definido,… - [Memória de agente self-hosted no ClickHouse](https://loom.clickhouse.com/docs/pt-BR/use-cases/self-hosted-clickhouse): Hospede o Loom na sua infraestrutura com Docker ou Kubernetes e consulte em SQL a memória dos agentes armazenada no ClickHouse. - [Memória de longo prazo e compartilhada para agentes de IA](https://loom.clickhouse.com/docs/pt-BR/use-cases/agent-memory): Compartilhe decisões e aprendizados entre agentes de programação e sessões com um servidor MCP auto-hospedado e permissões por namespace. - [Memória vinculada ao código para agentes de programação](https://loom.clickhouse.com/docs/pt-BR/use-cases/memory-linked-to-code): Vincule decisões e aprendizados a funções, classes e arquivos. Verifique as referências quando o código mudar, for movido ou for removido. - [Memória, recall, auditoria e exclusão para agentes autônomos](https://loom.clickhouse.com/docs/pt-BR/use-cases/autonomous-agents): Agentes autônomos podem recuperar fatos versionados, reutilizar procedimentos, auditar quem registrou cada fato e excluir dados por escopo. - [Menor custo de modelo para agentes de código](https://loom.clickhouse.com/docs/pt-BR/use-cases/coding-agent-cost): Com o plugin do Loom e o índice de código, o Claude Code respondeu perguntas sobre a base de código do ClickHouse com um custo de modelo de 6% a 21% menor do… - [Um índice de código para agentes de programação](https://loom.clickhouse.com/docs/pt-BR/use-cases/code-intelligence): Pesquise repositórios Git indexados por MCP e confira definições, chamadas e a revisão do código que fundamenta a resposta. ## 简体中文 ### Docs - [ClickHouse Loom 文档](https://loom.clickhouse.com/docs/zh-CN): 面向 AI 智能体的自托管 MCP 服务器,提供共享记忆、文档检索和代码索引。 - [常见问题](https://loom.clickhouse.com/docs/zh-CN/faq): 针对大家最先提出的问题给出简短回答。每个回答都链接到对应的详细说明页面。 - [术语表](https://loom.clickhouse.com/docs/zh-CN/glossary): Loom 的术语按字母顺序排列,每个术语只定义一次。代码标识符用反引号标出。 ### Architecture - [Agno 用户记忆数据库](https://loom.clickhouse.com/docs/zh-CN/architecture/agno-adapter): Agno 适配器通过同步的 Loom SDK 实现其 3.2 版 BaseDb 接口中的用户记忆方法。这个可选的、固定次版本的依赖不会进入核心 SDK 和服务器。MemoryManager 可以独立于 agent 的会话数据库使用这个数据库。与记忆无关的功能会直接拒绝,而不是使用框架默认的存储。 - [Claude API 记忆文件树](https://loom.clickhouse.com/docs/zh-CN/architecture/claude-memory-adapter): Claude API 记忆适配器通过 Loom 知识文档实现框架的 Python 记忆工具基类和 TypeScript 记忆处理器。框架 SDK 是可选依赖。两种实现使用相同的文档 URI 和存储标签,因此任一语言都可以读取另一种语言创建的文件。 - [Dify 工具适配器](https://loom.clickhouse.com/docs/zh-CN/architecture/dify-adapter): Dify 插件通过 Python SDK 调用 Loom,本地不存储任何内容。它的三个原生工具分别对应 memory.set、memory.search 和 knowledge.search。可选的独立软件包要求 0.11 插件 SDK 次版本系列和 Loom 1.x SDK;服务器和核心 SDK 不依赖 Dify。 - [GitHub tracker feed(GitHub tracker 数据源)](https://loom.clickhouse.com/docs/zh-CN/architecture/github-feed): GitHub feed 在团队的 ClickHouse 数据库中维护团队的 tracker 记录。Loom 的服务进程通过现有的只读 tracker 来源读取该记录。该 feed 不会把 issue 正文、评论或 pull request 放入 Loom 的部署表中。 - [Google ADK 记忆服务](https://loom.clickhouse.com/docs/zh-CN/architecture/google-adk-adapter): Google ADK 适配器通过 Loom 的 Python 和 TypeScript SDK 实现该框架的记忆服务。框架包是可选依赖。每个应用都使用独立的 Loom 命名空间,因为其中的知识文档会与该命名空间的所有读取者共享。 - [Haystack 文档存储与检索器](https://loom.clickhouse.com/docs/zh-CN/architecture/haystack-adapter): 可选的 Haystack 3.5 适配器通过同步的 Loom SDK 实现其文档存储协议和原生检索组件。核心 SDK 和服务器不依赖该框架。每次 HTTP 调用的客户端生命周期由 SDK 管理;适配器不会留下服务器、本地数据库、缓存或持久的后台进程。 - [LLM 与 embedding 架构](https://loom.clickhouse.com/docs/zh-CN/architecture/llm-architecture): Loom 有两个可插拔的提供方:embedder(server/embedding/)负责把文本转换为向量,LLM 客户端(server/llm/)负责补全提示词。两者都在进程启动时根据设置选定一次。当密钥缺失时,两者都会回退到确定性的伪实现,因此没有密钥的安装也能启动并作出响应。 - [Microsoft Agent Framework 上下文提供者](https://loom.clickhouse.com/docs/zh-CN/architecture/agent-framework-adapter): LoomContextProvider 基于异步 Python SDK 实现了该框架的上下文提供者接口。可选的 extra 只允许经过测试的框架次版本系列;核心 SDK 和服务器不会导入该框架。 - [n8n 适配器](https://loom.clickhouse.com/docs/zh-CN/architecture/n8n-adapter): n8n 社区包通过 TypeScript SDK 将对话历史和持久事实存储在 Loom 部署中。这些节点不增加任何存储服务或本地缓存。 - [OpenAI Agents 对话会话](https://loom.clickhouse.com/docs/zh-CN/architecture/openai-agents-sessions): LoomSession 在 Loom 的情景记忆之上实现了原生的 Python 和 TypeScript 会话接口。现有工具可以另行保留对话之外的事实。框架包仍然是可选依赖。 - [Provider 重新配置](https://loom.clickhouse.com/docs/zh-CN/architecture/provider-reconfiguration): Loom 将控制台的模型配置以加密、带版本的行存储在 loom.provider_configuration 中。每个配置只有一个已提交的前序版本,过期的保存请求会被拒绝。控制台的覆盖设置优先于服务器启动时的环境变量。重置为环境配置时,恢复的是启动时的快照,而不是重新编辑过的 dotenv 文件。 - [存储权威:Postgres 负责实时记忆,ClickHouse 负责搜索](https://loom.clickhouse.com/docs/zh-CN/architecture/storage-authority): Loom 以两种记忆权威之一运行,由每个部署通过 LOOM_STORAGE_AUTHORITY 选择。在 clickhouse(默认值)下,ClickHouse 保存全部数据,详见记忆架构。 - [定义草稿](https://loom.clickhouse.com/docs/zh-CN/architecture/definition-drafts): 缺口草稿需要 knowledge_gaps_enabled,查询历史需要 knowledge_query_history_enabled。两条路径都会把模型撰写的定义放入管理员审核队列。模型从不发布定义。本页介绍证据、私有候选项和审核;知识缺口介绍搜索的记录和分组。 - [成本预算](https://loom.clickhouse.com/docs/zh-CN/architecture/cost-budgets): 命名空间和具名用户的上限使用 agent_events 中滚动 24 小时的成本账本。正的命名空间策略会覆盖对应的服务器默认值;零表示继承,两个层级都为零则禁用该上限。具名用户的上限独立于命名空间的上限。任一上限达到时,准入都会拒绝付费合成,模型路由则使用较大的支出比例。 - [文档提取](https://loom.clickhouse.com/docs/zh-CN/architecture/document-extraction): 上传的原始文件由提取器服务解析为一种统一的形态,即提取产物(extraction artifact)。提取器服务是一个独立的进程,拥有自己的依赖,绝不是 Loom 服务器本身。 - [文档源推送通知](https://loom.clickhouse.com/docs/zh-CN/architecture/source-push): 需要设置 LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true,才能根据提供方通知请求文档源同步。通知不会写入文档内容,也不会更改文档源的访问策略。常规的 15 分钟轮询仍然保持启用,是丢失投递后的恢复途径。禁用推送会暂停设置、投递和续期,但不会阻止密钥重新加密(reseal)或设置退役。 - [文档翻译请求](https://loom.clickhouse.com/docs/zh-CN/architecture/documentation-translation): 翻译生成器将准备好的英文文本拆分为有界请求,并在写入之前检查组装后的译文。英文始终是权威来源。 - [服务端布局](https://loom.clickhouse.com/docs/zh-CN/architecture/server-layout): server/ 按领域组织。每个产品平面(plane)对应一个包,包内包含其 wire 声明、处理器、纯逻辑、ClickHouse 访问和后台循环,并由一项测试固定导入的允许方向。本页可作为放置新模块时的参考,也可用于解读契约测试报出的导入错误。 ### Benchmarks - [基准测试方法](https://loom.clickhouse.com/docs/zh-CN/benchmarks/methodology): 本页介绍各测试工具(harness)计算什么、如何根据噪声判断差异(delta)、什么情况下两组数字可以比较,以及这些数字在哪些方面存在偏差。 - [基准测试概览](https://loom.clickhouse.com/docs/zh-CN/benchmarks/overview): 排序参数、相似度阈值、缓存阈值和提取提示词(prompt)所改变的行为,单元测试无法判断。每一项都由 bench/ 下的测试框架(harness)决定,这些框架通过 HTTP 对运行中的服务器和真实的提供方执行测试。本部分介绍方法论、套件的运行方式及其数据来源、覆盖矩阵、仓库可复现的结果、如何添加用例,以及技能评测。 - [基准测试覆盖范围](https://loom.clickhouse.com/docs/zh-CN/benchmarks/coverage): 本矩阵列出了 Loom 的记忆、知识和代码流程中,哪些部分已有可复现的公开测量结果。它区分了已测量的行为、可运行的测试框架,以及尚无公开质量证据的产品能力。 - [技能评估](https://loom.clickhouse.com/docs/zh-CN/benchmarks/skill-eval): 技能评估通过 agent 留下的命名空间来评估 loom-memory skill。该 skill 规定了各类内容的存放位置:一条结论是在可读的键下执行一次纯文本的 memory.set,文档放入知识库并附一行简短的指针记录,带有标识的事物表使用 records,租约放入工作记忆,修订则改写同一个键。 - [添加基准测试用例、数据集或套件](https://loom.clickhouse.com/docs/zh-CN/benchmarks/adding-a-case): 已提交的数据集规模较小(数据集规模),因此新增用例是改进套件成本最低的方式。请先阅读文件头部或 _comment:大多数文件都说明了其标准答案(gold)是如何构建的,以及新增的行必须满足哪些条件。 ### Concepts - [检索与排序](https://loom.clickhouse.com/docs/zh-CN/concepts/retrieval-and-ranking): 本页说明 memory.search 如何查找行。它会同时在命名空间上运行多个检索分支,把各分支的候选结果融合为一个候选池,按相关性加上有界的修正项对候选池排序,然后判断最佳命中是否足够可靠,可以据此作答。结果较弱时,会报告为 abstain("Loom 不知道"),而不是返回最接近的噪声。请求和响应字段见搜索与提问。 - [记忆](https://loom.clickhouse.com/docs/zh-CN/concepts/memory): 了解 Loom 如何为 AI 智能体保存事实、事件和流程,使用工作记忆恢复任务,并通过来源和版本记录追踪长期记忆的变化。 - [身份与命名空间](https://loom.clickhouse.com/docs/zh-CN/concepts/identities-and-namespaces): Loom 在每次调用时都要回答两个问题:这一行属于谁(身份元组,外加由服务器写入的两列),以及调用方是否可以访问它(令牌、命名空间的授权及其分类)。本页说明这一模型。铸造和撤销令牌的方法见令牌与授权;强制执行机制见安全。 ### Development - [仓库指南](https://loom.clickhouse.com/docs/zh-CN/development/repository-guide): 本文介绍每个顶层目录存放的内容、各项功能在 server/ 中的位置、阅读代码的推荐顺序,以及拉取请求必须遵守的约定。 - [代码生成](https://loom.clickhouse.com/docs/zh-CN/development/code-generation): 仓库中有若干文件是由代码派生出来的:SDK 的操作表和 wire 类型、参考页面、Codex 插件的副本、op reach manifest、schema dump。这些文件都已提交到仓库,因此读者无需运行任何命令就能看到它们。 - [扩展 Loom](https://loom.clickhouse.com/docs/zh-CN/development/extending-loom): Loom 为每一类事物各设一个注册表:操作、worker、设置、提供方、语言通道、提取步骤和 tracker 源。要扩展 Loom,只需向对应的注册表添加一行;HTTP、MCP、SDK 以及生成的参考文档都会随之更新。 - [测试](https://loom.clickhouse.com/docs/zh-CN/development/testing): 某个测试属于哪个测试套件,每个套件运行需要什么,环境缺失时测试如何跳过,CI 强制执行哪些检查,以及如何重新生成测试所固定的内容。 - [添加 ClickHouse 表或列](https://loom.clickhouse.com/docs/zh-CN/development/adding-a-table): Loom 的 ClickHouse 状态是 loom 和 loom_telemetry 数据库中的表;在 Postgres 记忆权威模式下,实时记忆、知识状态以及与之相关的记录都存放在 Postgres 中。存储权威页面列出了 Postgres 的表。 - [添加后台 worker](https://loom.clickhouse.com/docs/zh-CN/development/adding-a-worker): worker 是 server/workers/registry.py(_WORKERS)中的一行,加上一个带有单个 pass 函数的模块。 - [添加操作](https://loom.clickhouse.com/docs/zh-CN/development/adding-an-operation): 操作只在注册表中声明一次。HTTP 路由(POST /v1/)、OpenAPI schema、MCP 工具(loom_)、目录(/v1/operations、ops.capabilities)、SDK 的操作表以及操作参考都由它派生。 ### Features - [任务、决策与策略](https://loom.clickhouse.com/docs/zh-CN/features/tasks-and-decisions): 除记忆之外,还有三个平面用于 agent 之间的协调。每个 op 都可以在任意 MCP 列表中按名称调用;all 列表显示哪些 op,详见 MCP 工具集。 - [实体图](https://loom.clickhouse.com/docs/zh-CN/features/entity-graph): Loom 在同一个 ClickHouse 数据库中,将实体图与记忆行并列保存。实体是节点。同一条记忆中提到的两个实体之间存在共现边;抽取过程还会将带类型的 (subject, relation, object) 三元组作为第二组边加入图中。该图是记忆的投影:每条边都可以追溯到生成它的行。 - [对话与会话](https://loom.clickhouse.com/docs/zh-CN/features/conversations-and-sessions): 保存一个对话轮次并不会创建记忆;若要把对话转换为事实,请将其提交到 memory.set_from_messages。所有者可以关闭对话记录功能,而不会丢失已提取的记忆,并且简报在召回时不会与事实竞争。 - [运行(Runs)](https://loom.clickhouse.com/docs/zh-CN/features/runs): run 是任务的一次执行,例如“处理 issue 1234”。 #### Code Index - [代码操作](https://loom.clickhouse.com/docs/zh-CN/features/code-index/operations): 本页将常见问题对应到 code.* 操作。每个参数和输出都可以在自动生成的操作参考中找到,也可以在每个操作的 MCP 描述中找到。 - [代码索引的新鲜度](https://loom.clickhouse.com/docs/zh-CN/features/code-index/freshness): 索引会滞后于代码仓库:它只对已配置分支上已合并的提交建立索引,按轮次逐步处理,并且每个层级各自推进自己的水位线。在依赖已索引的代码之前,请先查看答案中的新鲜度元数据(如果有),以及相关层级的状态。 - [添加仓库](https://loom.clickhouse.com/docs/zh-CN/features/code-index/repositories): 全新安装不会索引任何仓库。条目来自两个来源并合并:用户自行添加的仓库,以及运维人员的配置。对于已在此处添加的命名空间,运维人员配置的条目会被跳过(见下文规则)。一个代码命名空间对应一个分支(概览)。 - [面向编码 agent 的 MCP 代码索引](https://loom.clickhouse.com/docs/zh-CN/features/code-index/overview): 对某个仓库启用代码 worker 后,Loom 会把该仓库索引到 ClickHouse 中,并通过 code.* 操作回答结构类问题:某个符号在哪里定义、谁调用了它、一次变更会影响到哪些部分、哪个已合并的 PR 修改过某一行。 #### Integrations - [agent 基座](https://loom.clickhouse.com/docs/zh-CN/features/integrations/agent-substrate): 需要在同一个 Kubernetes 集群中同时运行 agent 基座 v1.0.0 和 Loom 的 Helm chart:Substrate 的出口网关会把每个 agent 的 Loom 令牌添加到它的 MCP 调用中。 - [Agent 指令](https://loom.clickhouse.com/docs/zh-CN/features/integrations/agent-instructions): 在 agent 的指令文件中放入一小段文字,告诉它何时加载 Loom 的上下文、何时保存事实,以及何时使用代码索引,而不是用 grep 搜索或直接读取文件。本页只给出一次这段文字,以及各客户端读取它的文件;将其粘贴进去,按 code.repos(见下文)填写其中的两个命名空间,然后随代码仓库一起提交。 - [Claude Code 插件](https://loom.clickhouse.com/docs/zh-CN/features/integrations/claude-code): 源码位于 integrations/claude-code-plugin/,是不含任何依赖的 Node ESM 脚本。Codex 版本运行相同的脚本,参见 codex.md。 - [ClickStack 与 HyperDX](https://loom.clickhouse.com/docs/zh-CN/features/integrations/clickstack): Loom 始终输出 OpenTelemetry 数据;HyperDX 的数据源、控制台和擦除步骤需要另行配置。 - [Cursor](https://loom.clickhouse.com/docs/zh-CN/features/integrations/cursor): 通过 MCP 将 Cursor 连接到 Loom,在不同会话中共享项目决策与经验,并为个人或团队配置连接。 - [grep shim](https://loom.clickhouse.com/docs/zh-CN/features/integrations/grep-shim): grep shim 是一个 grep/rg 包装器,它会根据代码索引,把每个命中所在的外层函数追加到匹配行的末尾。它需要 Node 18 或更高版本、一个 viewer 令牌,以及一个已收录在代码索引中的仓库。 - [Langfuse](https://loom.clickhouse.com/docs/zh-CN/features/integrations/langfuse): 需要设置 LOOM_LANGFUSE_URL 和 LOOM_LANGFUSE_ADMIN_TOKEN;两者都设置之前不会发送任何数据。设置完成后,OpenTelemetry span 树会通过 OTLP 转发到 Langfuse。Langfuse 是可选的,不属于 Loom 本地 Compose 栈的一部分。 - [OKF 包](https://loom.clickhouse.com/docs/zh-CN/features/integrations/okf): 命名空间可以渲染为 OKF(Open Knowledge Format)v0.2 包:每条记忆对应一个带 YAML frontmatter 的 Markdown 文件,每个目录有一个 index.md,用一行描述列出其中的每个概念,另有一个记录变更的 log.md。CLI 在客户端运行,通过 HTTP API 访问。 - [VS Code](https://loom.clickhouse.com/docs/zh-CN/features/integrations/vscode): 通过 MCP 将 VS Code 中的 GitHub Copilot 连接到 Loom,在有权访问同一命名空间的会话和编辑器间共享项目决策。 #### Memory - [历史与来源](https://loom.clickhouse.com/docs/zh-CN/features/memory/history-and-provenance): 每次写入记忆都会生成一个新版本,不会原地修改任何内容。各个版本保存在只追加的镜像中,因此即使后台合并,事实的历史也不会丢失。每一行都会记录是谁写入的、以何种方式进入记忆;派生行会记录其来源;用户还可以证明某一行内容属实。版本镜像的工作方式见记忆架构。 - [工作记忆与配置档案](https://loom.clickhouse.com/docs/zh-CN/features/memory/working-memory-and-profiles): 对于后续会话需要通过提问才能找到的内容,请使用 memory.set。对于无需提问就应该告知的内容,请使用这两个层面。如果把草稿行当作事实写入,它会在每次搜索和冲突检查中与真实事实相互竞争。 #### Observability - [审计日志](https://loom.clickhouse.com/docs/zh-CN/features/observability/audit): 审计行、audit_verifier worker 和检查点链默认开启。 #### Tracker - [Tracker 记录契约](https://loom.clickhouse.com/docs/zh-CN/features/tracker/record-contract): tracker.* 操作,以及 code.* 和 loom_search 中的 tracker 部分,会使用只读凭据,从团队自己的 ClickHouse 中实时读取团队的 issue、pull request 和事件(incident)。Loom 不会复制这些记录。 - [维护 GitHub tracker 记录](https://loom.clickhouse.com/docs/zh-CN/features/tracker/github-feed): loom tracker-feed 会把仓库的 issue、拉取请求、issue 评论和行内评审评论复制到团队专用的 ClickHouse 数据库中。Loom 通过只读 tracker 数据源读取生成的视图。复制内容、备份和删除由团队自行负责。该作业不会调用任何模型或 embedding。 - [面向 agent 的 issue 重复检查与回归候选](https://loom.clickhouse.com/docs/zh-CN/features/tracker/overview): 设置 LOOM_TRACKER_ORG 并注册数据源后,Loom 可以让 agent 检查某个缺陷是否已被报告,并利用跟踪器记录和已索引的 PR 历史,对可能引入回归的变更进行排序。对于已索引 PR 历史但没有跟踪器的仓库,请使用代码历史与 bisect 候选。 ### Getting Started - [使用你的编码 agent 安装 Loom](https://loom.clickhouse.com/docs/zh-CN/getting-started/agent-setup): 本页面向编码 agent(Claude Code 或 Codex),当它被要求在自己所运行的机器上安装 Loom 并证明安装可用时,可按本页操作。本页说明要运行什么、不要做什么、每项检查必须看到什么,以及需要给出的报告。每一步都可以直接照着运行;需要由人完成的步骤会有明确标记。 - [包含的功能](https://loom.clickhouse.com/docs/zh-CN/getting-started/whats-included): 本页列出 Loom 的主要功能(基于 Apache-2.0 仓库自托管):每个领域一个小节,每一行都链接到介绍它的页面。文档索引列出了其余文档。部分功能需要手动开启,相应链接页面会说明开启方法;默认加载为 false 的布尔开关列在状态中。 - [快速入门](https://loom.clickhouse.com/docs/zh-CN/getting-started/quickstart): 本页介绍如何在笔记本电脑上启动 Loom,并通过 HTTP、Python 和 MCP 保存第一条记忆。整个过程不需要 API key,也不需要账号。 - [概览](https://loom.clickhouse.com/docs/zh-CN/getting-started/overview): Loom 是一个服务器,为 AI agent 存储记忆、文档、对话、实体图谱和代码索引,所有数据以行的形式保存在 ClickHouse 中,并可选用 Postgres 保存实时记忆和知识状态。agent 和用户可以通过 MCP、HTTP、Python 和 TypeScript SDK 以及控制台访问它。 - [评估 Loom](https://loom.clickhouse.com/docs/zh-CN/getting-started/evaluate): 评估时应围绕你需要做出的决策,而不是仓库中的每一个测试框架。本指南先从无需成本的产品冒烟测试开始,再进行针对具体工作负载的质量测试。只有在需要审计或复现已发布的结论时,才进入最后一步,即公开基准测试套件。 ### Guides - [不使用控制台也能用 Loom](https://loom.clickhouse.com/docs/zh-CN/guides/without-the-dashboard): /me 控制台能做的一切,都可以在终端、脚本或 agent 的 shell 中完成。使用 loom login 登录一次,然后使用 loom call 或 Python SDK。本页列出了每个控制台视图对应的命令和 SDK 调用;未列出的视图同样只是普通操作(loom call --list)。 - [从 Postgres 查询 Loom](https://loom.clickhouse.com/docs/zh-CN/guides/query-from-postgres): 本指南从组织自己的 Postgres 中读取租户的记忆、对话和用量,这些数据可以与应用的表进行关联查询。它使用开源的 pg_clickhouse 扩展,该扩展把 ClickHouse 的表和视图导入为 Postgres 外部表,并将查询下推到 ClickHouse 执行。 - [导入 ClickGap 记忆](https://loom.clickhouse.com/docs/zh-CN/guides/importing-clickgap-memory): loom import-clickgap 可将一种 SQLite 导出格式(ClickGap 的 lessons 存储)加载到 Loom 命名空间中;如果你没有这类导出文件,可以跳过本页。一条 lesson 是一条简短、已去重的评审记忆,带有类型化的实体、类别、kind、每行 TTL 和 recall_count。 - [无头机器人](https://loom.clickhouse.com/docs/zh-CN/guides/headless-bots): 无头机器人在运行时没有人来粘贴令牌、发现静默失败,或者说“记住这个”。本指南涵盖机器人的身份、连接检查、三种运行时、机器人写入的内容,以及如何诊断一个不再有动静的机器人。 - [根据审计结果优化命名空间](https://loom.clickhouse.com/docs/zh-CN/guides/optimize-namespace): 如果写入方把 memory.set 当作对象存储来用(以哈希键保存 JSON blob,把租约存成记忆,把文档存成 claim),每张表都会保持一致,但召回却毫无用处。本流程把这样的命名空间重新整理为 investigation agent 指南中描述的布局。 - [用 Loom 教学](https://loom.clickhouse.com/docs/zh-CN/guides/teaching): Loom 可以作为 AI agent、信息检索、数据库或软件工程课程的实验环境。每位学生运行各自的单用户堆栈,可以在装有 Docker 的笔记本电脑上运行,也可以在 GitHub codespace 中运行,无需在本机安装任何软件。每个实验都链接到完成相应工作的页面。 - [自定义提取流水线](https://loom.clickhouse.com/docs/zh-CN/guides/extraction-pipeline): memory.set_from_messages 会让对话记录依次经过一组有序的步骤,这些步骤共享同一个状态。请求可以通过 pipeline_steps 替换这组步骤:重新排序或跳过某些步骤,也可以调用由运维人员注册的进程内步骤。本页只介绍步骤列表;提取本身的行为请参阅提取。 - [调优 Loom 的性能](https://loom.clickhouse.com/docs/zh-CN/guides/performance-tuning): 本页上的每一项调优手段都是一个设置或一个请求字段。配置参考给出了每个设置的默认值和含义。对于经过实测的权衡取舍,本页会给出用于测量的命令。 - [调试请求](https://loom.clickhouse.com/docs/zh-CN/guides/debugging): Loom 会用同一个 id 标记一次请求所做的全部操作,因此追踪请求就是一次关联查询(join)。本页从响应头开始,跟踪一个请求,直到找到决定该结果的组件。如果是部署本身出现问题,请从故障排查开始;如果某个 worker 没有运行,请参阅 worker 状态。 ### Operations - [ClickHouse Cloud 与托管 Postgres](https://loom.clickhouse.com/docs/zh-CN/operations/clickhouse-cloud): 本指南在 Kubernetes 上运行 Loom,并使用两个托管服务:ClickHouse Cloud 负责投影、向量、历史和分析,ClickHouse Managed Postgres 作为记忆的权威存储。 - [将使用情况导出到数据仓库](https://loom.clickhouse.com/docs/zh-CN/operations/analytics-export): loom export-analytics 会将某一个 UTC 日的使用情况以及命名空间的快照以 Parquet 文件的形式写入 S3 存储桶,每个实体每天一个文件,供数据仓库加载。Helm chart 会将其作为 CronJob 每天运行一次(见 values.yaml 中的 analyticsExport)。 - [将命名空间复制到另一个 Loom](https://loom.clickhouse.com/docs/zh-CN/operations/okf-sync): 在私有网络内运行的作业会按计划把一个命名空间从私有 Loom 复制到公共 Loom:loom export-okf 从私有 Loom 读取数据,loom import-okf --prune 把数据写入公共 Loom。公共一侧不会获得通往私有 Loom 的路由或令牌。 - [支持的版本](https://loom.clickhouse.com/docs/zh-CN/operations/supported-versions): 版本 N 和 N−1 会获得修复,X.Y 版本的 SDK 可与 X.Y 或 X.(Y−1) 版本的服务器配合使用。Loom 的服务器、两个镜像、Web 应用、两个 SDK、根目录 skills 以及 Helm chart 的 appVersion 使用同一个版本号(发布流程)。 - [监控](https://loom.clickhouse.com/docs/zh-CN/operations/monitoring): 指标名称和标签的完整列表见遥测。 - [维护](https://loom.clickhouse.com/docs/zh-CN/operations/maintenance): 这里的每条命令都是 loom 子命令,请在带有该部署环境变量的容器内运行(docker exec loom-server loom …,拆分部署时使用 loom-workers)。CLI 参考列出了所有标志。代码索引有单独的运维手册:代码索引运维。 - [运行 N 个副本](https://loom.clickhouse.com/docs/zh-CN/operations/replicas): 每个 Loom 进程都是一个完整的副本。你可以按需运行任意数量的副本,让它们共用同一个 ClickHouse 服务和同一个 URL,无需粘性会话:每个副本都处理所有 op,验证所有令牌,并写入共享服务。 - [运行时设置](https://loom.clickhouse.com/docs/zh-CN/operations/runtime-settings): 每个设置都是在启动时读取的环境变量 LOOM_,也可以写入 YAML 设置文件(配置参考)。 - [部署](https://loom.clickhouse.com/docs/zh-CN/operations/deployment): Loom 由一个服务器镜像加 ClickHouse 组成(在 LOOM_STORAGE_AUTHORITY=postgres 下还需要 Postgres),文档提取服务则是单独的镜像(容器镜像)。服务器镜像提供 HTTP、MCP 和控制台,并运行后台 worker。 ### Reference - [参考](https://loom.clickhouse.com/docs/zh-CN/reference): 参考页面说明有哪些内容,以及每个选项的含义。设计背后的原因见概念和架构。操作步骤见指南和运维部分。 - [SQL 接口](https://loom.clickhouse.com/docs/zh-CN/reference/sql-surface): SQL 接口是一组只读的 ClickHouse 视图,覆盖租户的记忆、记忆历史、对话和请求账本。组织自己的 SQL 客户端、BI 工具或数据仓库作业,使用由 loom sql-access 创建的 ClickHouse 用户来读取这些视图。 - [Workers 参考](https://loom.clickhouse.com/docs/zh-CN/reference/workers): worker 是一个受监督的后台循环:由 worker supervisor 按固定间隔运行一个 pass 函数。worker 负责那些不应让请求等待的工作:补全缺失的向量、提取实体、验证审计链、恢复被中断的擦除操作,以及摄取代码和跟踪器数据。 #### Operations - [`admin` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/admin): 每个 admin.* 操作所接受和返回的确切字段。 - [`agents` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/agents): 每个 agents.* 操作接受和返回的确切字段。 - [`assistant` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/assistant): 每个 assistant.* 操作接受和返回的确切字段。 - [`audit` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/audit): 每个 audit.* 操作接受和返回的确切字段。 - [`blacklist` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/blacklist): 每个 blacklist.* 操作接受和返回的确切字段。 - [`collection` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/collection): 每个 collection.* 操作接受和返回的确切字段。 - [`conflicts` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/conflicts): 每个 conflicts.* 操作接受和返回的确切字段。 - [`consolidations` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/consolidations): 每个 consolidations.* 操作接受和返回的确切字段。 - [`context` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/context): 每个 context.* 操作接受和返回的确切字段。 - [`conversation` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/conversation): 每个 conversation.* 操作接受和返回的确切字段。 - [`cost` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/cost): 每个 cost.* 操作接受和返回的确切字段。 - [`decision` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/decision): 每个 decision.* 操作接受和返回的确切字段。 - [`extraction_policy` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/extraction_policy): 每个 extraction_policy.* 操作接受和返回的确切字段。 - [`facts` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/facts): 每个 facts.* 操作接受和返回的确切字段。 - [`grants` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/grants): 每个 grants.* 操作接受和返回的确切字段。 - [`help` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/help): 每个 help.* 操作接受和返回的确切字段。 - [`inbox` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/inbox): 每个 inbox.* 操作接受和返回的确切字段。 - [`mentor` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/mentor): 每个 mentor.* 操作所接受和返回的确切字段。 - [`observe` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/observe): 每个 observe.* 操作接受和返回的确切字段。 - [`ops` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/ops): 每个 ops.* 操作接受和返回的确切字段。 - [`org` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/org): 每个 org.* 操作接受和返回的确切字段。 - [`procedure` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/procedure): 每个 procedure.* 操作接受和返回的确切字段。 - [`run` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/run): 每个 run.* 操作接受和返回的确切字段。 - [`session` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/session): 每个 session.* 操作接受和返回的确切字段。 - [`ui` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/ui): 每个 ui.* 操作接受和返回的确切字段。 - [`webhook` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/webhook): 每个 webhook.* 操作接受和返回的确切字段。 - [`working_memory` 操作](https://loom.clickhouse.com/docs/zh-CN/reference/operations/working_memory): 每个 working_memory.* 操作接受和返回的确切字段。 ### Use Cases - [使用场景](https://loom.clickhouse.com/docs/zh-CN/use-cases): 每个页面回答人和 agent 在寻找工具时会问的一个问题:Loom 如何满足该需求,以及从哪里开始。 - [Agent 运行、追踪与 PR 历史](https://loom.clickhouse.com/docs/zh-CN/use-cases/runs-and-pr-history): Loom 会把编码 agent 所做的工作记录为运行(run)和可搜索的会话对话,并将其与你的代码历史关联起来。运行带有目标和结果;当 Claude Code 插件上报会话的轮次用量时(默认开启),还会带有模型成本。 - [AI agent 的长期记忆与共享记忆](https://loom.clickhouse.com/docs/zh-CN/use-cases/agent-memory): 通过自托管 MCP 服务器,在编程智能体和会话之间共享决策与经验,并按命名空间管理访问权限。 - [C++、Python、TypeScript、Go、Rust、Java 和基础设施代码的代码智能](https://loom.clickhouse.com/docs/zh-CN/use-cases/code-intelligence-by-language): Loom 的代码索引回答编码 agent 在仓库所含各种语言中提出的结构问题:符号在哪里定义、谁调用了它,以及一次改动会影响什么。需要先添加仓库,并设置 LOOM_CODE_INGEST_ENABLED=true。 - [与代码关联的记忆,面向 coding agent](https://loom.clickhouse.com/docs/zh-CN/use-cases/memory-linked-to-code): 将智能体积累的经验关联到函数、类和文件,在重构、代码变更或删除后检查关联状态。 - [基于 ClickHouse 的自托管 agent 记忆](https://loom.clickhouse.com/docs/zh-CN/use-cases/self-hosted-clickhouse): 通过 Docker 或 Kubernetes 自托管 Loom,并使用 SQL 查询 ClickHouse 中存储的智能体记忆。 - [多 agent 工作流的共享上下文](https://loom.clickhouse.com/docs/zh-CN/use-cases/multi-agent): 借助共享记忆、持久任务队列和决策记录,在多个智能体之间交接任务并保留工作背景。 - [降低编码 agent 的模型成本](https://loom.clickhouse.com/docs/zh-CN/use-cases/coding-agent-cost): 借助 Loom 插件和代码索引,Claude Code 在回答有关 ClickHouse 代码库的问题时,在全部三组测量的问题集上,模型成本比不使用时低 6% 到 21%。 - [面向 agent 的文档搜索与 RAG](https://loom.clickhouse.com/docs/zh-CN/use-cases/document-search): 让 AI 智能体通过 MCP 搜索内部文档,获取带来源和版本的文本片段,并按命名空间控制访问权限。 - [面向编码 agent 的代码索引](https://loom.clickhouse.com/docs/zh-CN/use-cases/code-intelligence): 通过 MCP 搜索已建立索引的 Git 仓库,查看定义、调用方,以及为回答提供依据的代码版本。 - [面向自主 agent 的记忆、召回、审计与擦除](https://loom.clickhouse.com/docs/zh-CN/use-cases/autonomous-agents): 自主智能体可以检索带版本的事实、复用流程、审计写入来源,并删除指定范围内的数据。 ## Agent skills - [clickhouse-loom](https://loom.clickhouse.com/docs/.well-known/agent-skills/clickhouse-loom/SKILL.md): Read the ClickHouse Loom docs instead of answering from memory. Self-hosted MCP server that gives AI agents shared long-term memory, document search with citations, and a code index stored in ClickHouse. Use when a task involves ClickHouse Loom: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://loom.clickhouse.com/docs/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://loom.clickhouse.com/docs/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://loom.clickhouse.com/docs/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://loom.clickhouse.com/docs/openapi.json. - [MCP server](https://loom.clickhouse.com/docs/mcp): Streamable HTTP Model Context Protocol server with search_docs, get_page, list_pages, and get_navigation tools, plus every page as a resource. Discovery document: https://loom.clickhouse.com/docs/.well-known/mcp.json - [Agent skills](https://loom.clickhouse.com/docs/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://loom.clickhouse.com/docs/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://loom.clickhouse.com/docs/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://loom.clickhouse.com/docs/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://loom.clickhouse.com/docs/sitemap.xml): Every indexable page URL with its last-modified date.