Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cc0c866
The quickstart and connect guide describe what a fresh install does
zlareb1 Nov 10, 2026
6f3dcf2
Quickstart step 6 connects a single-user install without a token
zlareb1 Nov 10, 2026
a35d80a
Say what to answer at the plugin's setup prompt on a single-user install
zlareb1 Nov 10, 2026
d78ee8d
Reword the connect guide's Recording sentence
zlareb1 Nov 10, 2026
de6f05c
With auth on, the plugin reads the saved token; only another machine …
zlareb1 Nov 10, 2026
24b70b9
Step 6 links the plugin's token order instead of naming one file
zlareb1 Nov 10, 2026
50dbc33
Split step 6's auth-on sentence into three
zlareb1 Nov 10, 2026
a671158
Say to clear the single-user identity the plugin saved before turning…
zlareb1 Nov 10, 2026
70c79a8
Step 6 with auth on: save the token in config.json, as the dashboard …
zlareb1 Nov 10, 2026
b88d441
Step 6 with auth on follows the dashboard's Claude Code setup
zlareb1 Nov 10, 2026
12fb89a
Step 6 states the plugin's token order; Connect lists its clients
zlareb1 Nov 10, 2026
6cf08d0
The connect guide says exactly what reaches Loom with recording off
zlareb1 Nov 10, 2026
7e2ffd5
The connect guide links the plugin's data-handling list instead of su…
zlareb1 Nov 10, 2026
9d5473e
Name the config.json block and the Recording switch as the dashboard …
zlareb1 Nov 10, 2026
434924a
Name the switch Record conversations, as the dashboard labels it
zlareb1 Nov 10, 2026
22ba095
One name for the Record conversations switch; shorter connect sentences
zlareb1 Nov 10, 2026
cf1e0cd
Step 6's auth-on switch is three numbered steps
zlareb1 Nov 10, 2026
4e202f7
The Cursor pages name the Record conversations switch too
zlareb1 Nov 10, 2026
3b7c258
The integrations index and the titler setting name the Record convers…
zlareb1 Nov 10, 2026
2484748
Every page, message and comment outside the plugins names the Record …
zlareb1 Nov 10, 2026
4f5024e
The store docstring names the switch and page; wrapped lines
zlareb1 Nov 10, 2026
110b95d
One more server comment names the Record conversations switch
zlareb1 Nov 10, 2026
952cdbd
Rewrap the lines the switch rename lengthened
zlareb1 Nov 10, 2026
2eca318
Step 6's first item gives its reason first; the op is named beside th…
zlareb1 Nov 10, 2026
9afc5f7
The plugin's settings prompt is answered where step 6 meets it
zlareb1 Nov 10, 2026
d8a2e50
Step 6 names the namespace in config.json; the doctor docstring says …
zlareb1 Nov 10, 2026
c8861d6
Step 6 says why config.json names the namespace
zlareb1 Nov 10, 2026
d8fd87c
Step 6 names the non-wildcard namespace rule; the doctor docstring sa…
zlareb1 Nov 10, 2026
d65a31a
The store docstring and doctor warning match the switch and the hooks…
zlareb1 Nov 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/features/conversations-and-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extracted memory, and a brief never competes with facts in recall.
on. The switch (`conversation_logging_enabled` on `loom.namespaces`) is off by default
and fails closed: a namespace with no row is not
recorded. The owner turns it on with `conversation.set_logging(enabled=true)` (admin) or
the Recording toggle on the dashboard's Conversations page.
the **Record conversations** switch on the dashboard's Conversations page.

When logging is off the append is accepted and nothing is kept: the response says
`stored: false, reason: "logging_disabled"`. A client cannot override the owner's choice.
Expand Down
2 changes: 1 addition & 1 deletion docs/features/integrations/claude-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ instead.
| MCP server "needs authentication" | no Node for the header helper, or no token found | the `loom-status` skill names which |
| no primer, nothing captured | server unreachable, or no token found | `loom-status`; check `~/.loom/config.json` |
| tools answer, captures do not | the token is viewer-only on the write namespace | mint a writer token |
| Sessions view empty | conversation logging is off for the namespace | turn it on in the dashboard or with `conversation.set_logging` |
| Conversations page empty | conversation logging is off for the namespace | the **Record conversations** switch on the Conversations page, or `conversation.set_logging` |
| a hook added in a new release never fires | the installed plugin is older than the server | `claude plugin update loom@loom` |
| every tool listed twice | a user-scope `loom` MCP entry beside the plugin | `claude mcp remove loom` |
| reads denied in a repo you work on locally | the checkout is indexed and the file is unmodified | `--config local_first=true` or `LOOM_CODE_LOCAL_FIRST=on` |
Expand Down
4 changes: 2 additions & 2 deletions docs/features/integrations/codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ smaller tool listing ([MCP reference](../../reference/mcp.md)). The

- `codex mcp list` shows `loom`; the first tool call turns the token's row green on the
dashboard's **Settings → Tokens** tab.
- After one session: the dashboard's Sessions view shows the conversation (when logging
- After one session: the dashboard's Conversations page shows the conversation (when logging
is on for the namespace), `run.get` on `cx-<session_id>` shows the run's observations,
and the next primer starts from the working-memory note.
- Nothing arrives: run the `loom-status` skill. It checks the Node runtime and runs
Expand All @@ -176,7 +176,7 @@ smaller tool listing ([MCP reference](../../reference/mcp.md)). The
| `node: not found` from a hook | the installed plugin predates its Node launcher | `codex plugin marketplace upgrade loom` |
| a hook prints a `loom:` line about Node.js 18+ | the launcher found no Node 18+, or only an old one | `LOOM_NODE=/path/to/node` where Codex starts (macOS, Linux), or `$loom-status` |
| hooks write nothing | viewer token, or the hooks read a different `url` | writer token; check `~/.loom/config.json` and `LOOM_BASE_URL` |
| Sessions view empty | conversation logging is off for the namespace | turn it on in the dashboard or with `conversation.set_logging` |
| Conversations page empty | conversation logging is off for the namespace | the **Record conversations** switch, or `conversation.set_logging` |

## Related

Expand Down
5 changes: 3 additions & 2 deletions docs/features/integrations/cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ Turns are stored only when the namespace has conversation logging on.
exec "$HOME/.cursor/hooks/cursor-session-hook.sh" "$@"
```

5. Turn on conversation logging for the namespace (the dashboard's Recording toggle or
`conversation.set_logging`). Until then the server accepts the turns and stores none.
5. Turn on conversation logging for the namespace (the dashboard's **Record
conversations** switch or `conversation.set_logging`). Until then the server accepts
the turns and stores none.

| Variable | Default | Meaning |
| ---------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------- |
Expand Down
29 changes: 20 additions & 9 deletions docs/getting-started/connect-a-coding-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

This page connects Claude Code, Codex, Cursor or another MCP client to a running Loom
server. Install the plugin (or wire the MCP entry), point it at the server, and work as
usual. Loom captures each session, and the next session starts with what the last one
saved. To run a server yourself, start with the [quickstart](quickstart.md); to have your agent
install a pinned release and prove it works, give it the latest release's
`https://github.com/ClickHouse/loom/releases/latest/download/agent-setup.txt`
([Set up Loom with your coding agent](agent-setup.md)).
usual. The next session starts with what the agent saved. What the Claude Code and Codex
plugins send to Loom is in [data
handling](../features/integrations/claude-code.md#data-handling). Conversation recording
is off by default; the namespace owner turns it on with the **Record conversations**
switch on the Conversations page, or with `conversation.set_logging`. To run a server
yourself, start with the [quickstart](quickstart.md); to have your agent install a pinned
release and prove it works, give it the latest release's
`https://github.com/ClickHouse/loom/releases/latest/download/agent-setup.txt` ([Set up
Loom with your coding agent](agent-setup.md)).

## What you need

Expand All @@ -33,7 +37,8 @@ claude plugin install loom@loom \
Both `--config` values are optional; without them Claude Code asks once. Start a new
session. Loom's session primer arrives at the top, and from then on:

- the hooks capture the conversation and tool observations into Loom;
- the hooks send Loom what [data handling](../features/integrations/claude-code.md#data-handling)
lists;
- the `loom-memory`, `loom-code`, `loom-session` and other skills tell Claude when to save
a fact, when to search, and how to use the code index;
- `loom_search`, `loom_memory_set` and the code tools are available as MCP tools.
Expand Down Expand Up @@ -61,7 +66,13 @@ the plugin installed: an entry with the same name replaces the plugin's.

## Cursor and other MCP clients

With the `loom` CLI installed (`pip install -e .` from a clone of the repository):
In the dashboard, open **Settings → Tokens**, fill in the **New token** form (press **New
token** first if a token exists) and press **Create token**, then choose your client
(Cursor, VS Code, Cline, Windsurf, Zed or Claude Desktop) under **Connect**: the dialog
shows the entry for its config file, with the token in it. For any other MCP client, copy
the entry from [MCP clients](../features/integrations/mcp-clients.md). With the `loom` CLI
installed (`pip install -e .` from a clone of the repository), one command writes the
entry instead:

```bash
loom install --client cursor --server-url https://loom.example.com --token "$LOOM_API_KEY"
Expand All @@ -81,8 +92,8 @@ command writes.
reached the server.
2. Tell the agent something durable, for example "our deploy window is Tuesday and
Thursday only". In a new session, ask "when can we deploy?". The answer comes from Loom.
3. Open the dashboard (`<server>/`). The session's conversation and the saved fact are there, and you can
correct or delete either.
3. Open the dashboard (`<server>/`). The saved fact is there, and the session's
conversation too while conversation recording is on; you can correct or delete either.

`loom doctor --client` adds the local wiring checks when you have the CLI.

Expand Down
51 changes: 34 additions & 17 deletions docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ docker compose --project-directory "$HOME/.loom" up -d --force-recreate loom
docker compose --env-file .env -f compose.yaml -f dev/docker-compose.dev.yml --profile bundled up -d --force-recreate loom
```

The dashboard then opens on **Sign up**, and every SDK and MCP call needs a token. The identity
modes are in [Identities and namespaces](../concepts/identities-and-namespaces.md#identity-modes).
Naming `trust-network` is also what lets a non-loopback `LOOM_BIND_HOST` start with
sign-up open, so anyone who reaches the port can then sign up. Before making the server
reachable by a team, follow the
[deployment guide](../operations/deployment.md#identity-modes) for operator access and
[TLS](../operations/deployment.md#proxy-and-tls).
The dashboard then opens on its sign-in page, which has a **Sign up** tab, and every SDK
and MCP call needs a token. The identity modes are in [Identities and
namespaces](../concepts/identities-and-namespaces.md#identity-modes). Naming
`trust-network` is also what lets a non-loopback `LOOM_BIND_HOST` start with sign-up open,
so anyone who reaches the port can then sign up. Before making the server reachable by a
team, follow the [deployment guide](../operations/deployment.md#identity-modes) for
operator access and [TLS](../operations/deployment.md#proxy-and-tls).

## 3. Get a token

Expand Down Expand Up @@ -319,18 +319,17 @@ Every operation is a `POST /v1/<op>` with a JSON body that names the identity
`(org, namespace, agent)`:

```bash
curl -sX POST http://localhost:7777/v1/memory.set \
-H "Authorization: Bearer $LOOM_API_KEY" -H 'Content-Type: application/json' \
curl -sX POST http://localhost:7777/v1/memory.set -H 'Content-Type: application/json' \
-d '{"org":"dev","namespace":"local","agent":"quickstart",
"memory_key":"deploy_window","value":"Tue and Thu only; never Friday."}'

curl -sX POST http://localhost:7777/v1/memory.search \
-H "Authorization: Bearer $LOOM_API_KEY" -H 'Content-Type: application/json' \
curl -sX POST http://localhost:7777/v1/memory.search -H 'Content-Type: application/json' \
-d '{"org":"dev","namespace":"local","query":"when can we deploy?"}' \
| jq '.results[0].content_excerpt'
```

In single-user mode, leave out the `Authorization` header. The `memory.set` response
With auth on, add `-H "Authorization: Bearer $LOOM_API_KEY"` and use your account's org
and namespace; a header with an empty token is refused. The `memory.set` response
carries `memory_id`, `content_sha256` and `status`. The search response carries
`results` and `abstain`, which says whether the best hit is strong enough to answer from.
Search reads every agent's memories in the namespace, including those added in the
Expand Down Expand Up @@ -383,18 +382,36 @@ capture at the end) and skills on top of the MCP tools:

```bash
claude plugin marketplace add ClickHouse/loom
claude plugin install loom@loom \
--config server_url=http://localhost:7777 \
--config token="$LOOM_API_KEY"
claude plugin install loom@loom
```

On a single-user server on this machine, keep the default server URL and leave the token
empty when Claude Code asks for the plugin's settings.

Without the plugin, add the MCP entry directly:

```bash
claude mcp add --transport http loom "http://localhost:7777/mcp?toolset=coding" \
-H "Authorization: Bearer $LOOM_API_KEY" -s user
claude mcp add --transport http loom "http://localhost:7777/mcp?toolset=coding" -s user
```

Both reach a single-user server on this machine without a token of yours.

With auth on, create a token in **Settings → Tokens** and choose **Claude Code** under
**Connect**: the dialog shows the setup for the plugin and for a `claude mcp add` entry,
with the token in it. Then:

1. Overwrite `~/.loom/config.json` with the dialog's `config.json` block plus the
namespace the token saves to (`"namespace": "<namespace>"`): an `org` or `namespace` a
single-user session left in the file outranks the token, and without one the plugin
writes to the token's first namespace other than `*`, or `coding`. Add back any
`code_repo` or `agent` you had set.
2. Leave `LOOM_API_KEY` (step 3 may have exported one: `unset LOOM_API_KEY`) and the
plugin's `token` option empty, or set them to the new token: the plugin reads both
before that file
([configuration](../features/integrations/claude-code.md#configuration)).
3. Remove a `claude mcp add` entry made without a token (`claude mcp remove loom -s user`)
before running the dialog's command, which refuses a name that exists.

`loom install --client <name>` writes the MCP entry for Claude Desktop, Claude Code,
Codex, Cursor, VS Code, Cline, Windsurf and Zed; with no flag it wires every client it
finds. [Connect a coding agent](connect-a-coding-agent.md) covers Codex and Cursor.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ Knowledge documents and conversations: chunking, search floor, thread titles.
| --- | --- | --- | --- | --- |
| `LOOM_CONVERSATION_SEARCH_MIN_SIMILARITY` | `float` | `0.3` | live | conversation.search cosine floor; without it the top_k nearest threads return however far. Stricter than memory recall: chat excerpts are noisy. |
| `LOOM_CONVERSATION_SEARCH_EXCERPT_CHARS` | `int` | `240` | live | Characters of a turn a conversation search hit or a saved-message listing shows; it changes no stored row. At most 2048, the most an embedding row stores (EMBEDDED_EXCERPT_CHARS), so the vector path can always fill it. A saved-message listing reads this many characters and a fixed margin past them, and checks them all for a high shape before it cuts the excerpt. |
| `LOOM_CONVERSATION_TITLER_ENABLED` | `bool` | `True` | | LLM-title untitled threads in namespaces with conversation_logging_enabled (the Sessions "Recording" toggle is the off-switch). Skipped with the fake LLM. |
| `LOOM_CONVERSATION_TITLER_ENABLED` | `bool` | `True` | | LLM-title untitled threads in namespaces with conversation_logging_enabled (the Conversations page's Record conversations switch is the off-switch). Skipped with the fake LLM. |
| `LOOM_CONVERSATION_TITLER_INTERVAL_SECONDS` | `int` | `1800` | | Seconds between titler passes. |
| `LOOM_CONVERSATION_TITLER_WINDOW_HOURS` | `int` | `168` | | Only threads with a turn in the last this-many hours are titled. |
| `LOOM_CONVERSATION_TITLER_MAX_THREADS_PER_PASS` | `int` | `10` | | Threads one pass titles at most. |
Expand Down
5 changes: 3 additions & 2 deletions integrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ ground, and an SDK or HTTP agent fetches the guide with the experimental `mentor
The plugins and the transcript scripts write chat turns to the conversation
plane (`conversation.append`), one thread per session, deduplicated by
`msg_id`. A namespace stores them only when its conversation logging is on
(`conversation.set_logging`, or the dashboard's Recording toggle). Stored turns are not mined
for memories; the plugins write memories through their own hooks.
(`conversation.set_logging`, or the **Record conversations** switch on the
dashboard's Conversations page). Stored turns are not mined for memories;
the plugins write memories through their own hooks.
`LOOM_CAPTURE_CONVERSATIONS=false` turns capture off in the plugins and the
Cursor hook.
6 changes: 3 additions & 3 deletions integrations/cursor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ the two are independent.
exec "$HOME/.cursor/hooks/cursor-session-hook.sh" "$@"
```

5. Turn on conversation logging for the namespace (the dashboard's Recording toggle or
`conversation.set_logging`). Until then the server accepts the turns and
stores none.
5. Turn on conversation logging for the namespace (the dashboard's **Record
conversations** switch or `conversation.set_logging`). Until then the server accepts
the turns and stores none.

| Variable | Default | Meaning |
| ---------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------- |
Expand Down
3 changes: 2 additions & 1 deletion loom.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,8 @@ settings:
# conversation_search_excerpt_chars: 240

# LLM-title untitled threads in namespaces with conversation_logging_enabled (the
# Sessions "Recording" toggle is the off-switch). Skipped with the fake LLM. [restart]
# Conversations page's Record conversations switch is the off-switch). Skipped with
# the fake LLM. [restart]
# conversation_titler_enabled: true

# Seconds between titler passes. [restart]
Expand Down
2 changes: 1 addition & 1 deletion schemas/loom-settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,7 @@
"conversation_titler_enabled": {
"default": true,
"type": "boolean",
"description": "LLM-title untitled threads in namespaces with conversation_logging_enabled (the Sessions \"Recording\" toggle is the off-switch). Skipped with the fake LLM."
"description": "LLM-title untitled threads in namespaces with conversation_logging_enabled (the Conversations page's Record conversations switch is the off-switch). Skipped with the fake LLM."
},
"conversation_titler_interval_seconds": {
"default": 1800,
Expand Down
16 changes: 8 additions & 8 deletions server/cli/doctor_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ def recording_check(
post_json: PostJson,
auth_ok: bool,
) -> Check:
"""Whether the namespace the hooks write to keeps the
conversation turns they send. The owner's Recording switch in the dashboard
(`conversation_logging_enabled`) decides; with it off every append is
accepted and nothing is kept, which the hooks alone would never notice."""
"""Whether the namespace the hooks write to keeps the conversation turns
they send. The owner's Record conversations switch in the dashboard
(`conversation_logging_enabled`) decides; with it off the hooks soon stop
sending turns, and every append is accepted and dropped."""
name = "client:recording"
if not token or not auth_ok:
return (name, WARN, "skipped: check auth first")
Expand All @@ -385,15 +385,15 @@ def recording_check(
return (
name,
WARN,
f"could not read the Recording switch for {namespace!r} (HTTP {status})",
f"could not read the Record conversations switch for {namespace!r} (HTTP {status})",
)
if body.get("conversation_logging_enabled") is False:
return (
name,
WARN,
f"conversation recording is off for {namespace!r} (the owner's Recording switch "
"in the dashboard): the hooks send no turns and none are kept. Turn it on there if "
"you want transcripts.",
f"conversation recording is off for {namespace!r} (the owner's Record conversations "
"switch in the dashboard): the hooks stop sending turns and none are kept. Turn it on "
"there if you want transcripts.",
)
return (name, PASS, f"conversation recording is on for {namespace!r}")

Expand Down
5 changes: 3 additions & 2 deletions server/identity/app/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,9 @@ async def handle_namespace_get(input: NamespaceGetInput) -> NamespaceGetOutput:
),
conversation_logging_enabled=(
# Absent column reads as off, matching the gate in
# conversation_repo.namespace_logging_enabled — the settings view
# must not show "Recording on" for a namespace that isn't recording.
# conversation_repo.namespace_logging_enabled — the Conversations
# page must not show the Record conversations switch on for a
# namespace that isn't recording.
False
if row.get("conversation_logging_enabled") is None
else bool(row["conversation_logging_enabled"])
Expand Down
Loading
Loading