Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2e900ba
A bug report's pointers carry what a whole run of a slow test file co…
zlareb1 Dec 4, 2026
d016925
Merge remote-tracking branch 'origin/main' into feat/test-cost-note
zlareb1 Dec 4, 2026
5ec3afc
The test cost row follows its file, and only a -k run counts as filtered
zlareb1 Dec 4, 2026
6a96217
A pending test run counts only the report of a run that began before …
zlareb1 Dec 4, 2026
5327b78
A whole run that skipped its cases is no test cost, and the cost line…
zlareb1 Dec 4, 2026
6cf172c
A test run's end is read from pytest's last line, and its summary say…
zlareb1 Dec 4, 2026
1c180b2
Merge remote-tracking branch 'origin/main' into feat/test-cost-note
zlareb1 Dec 4, 2026
8d3e462
A run that left cases out with no -k in its words is no whole run, an…
zlareb1 Dec 4, 2026
62a5e0b
Merge remote-tracking branch 'origin/main' into feat/test-cost-note
zlareb1 Dec 4, 2026
a26b691
A test report is a command's only when pytest's last line counts its …
zlareb1 Dec 4, 2026
02eb1fc
A run pytest ended early is no measure of a test file's cost
zlareb1 Dec 4, 2026
61c3699
A run with a runner started after it is no file run, and a session's …
zlareb1 Dec 4, 2026
b8fcc98
A test run that ended in its call with its summary cut is not kept as…
zlareb1 Dec 4, 2026
4bb10dc
A coloured pytest summary is read as the plain one
zlareb1 Dec 4, 2026
cb88cf3
The test-cost rule says that quotes are not read and what the state h…
zlareb1 Dec 4, 2026
a48f260
A run with a command before it is no file run, and a session's end wr…
zlareb1 Dec 4, 2026
b378ee6
A report's seconds are compared with the summary's as written, and a …
zlareb1 Dec 4, 2026
c59df7b
A second pytest run written with no space before it, and a cd to a fo…
zlareb1 Dec 4, 2026
fd16907
A run of a file git does not list in the checkout is not stored
zlareb1 Dec 4, 2026
ccb61e9
namespace.audit leaves reads of a repository's test cost row out of i…
zlareb1 Dec 4, 2026
46b8fc7
The audit test reads a test cost row of a structured type
zlareb1 Dec 4, 2026
b4d39df
The mentor leaves reads of a repository's test cost row out of an age…
zlareb1 Dec 4, 2026
31fc92d
The wire comments name the test cost reads the counts leave out
zlareb1 Dec 5, 2026
3fca767
A report of a run that lost its place as the pending run is counted f…
zlareb1 Dec 5, 2026
4c385cd
A whole run of one case is not kept as a test file's cost
zlareb1 Dec 5, 2026
72f7d65
Merge remote-tracking branch 'origin/main' into feat/test-cost-note
zlareb1 Dec 5, 2026
bbc53d5
The hooks reference says which hooks read the test result file
zlareb1 Dec 5, 2026
c2ce53e
Merge remote-tracking branch 'origin/main' into feat/test-cost-note
zlareb1 Dec 5, 2026
b55c8b2
The test cost row's tag is not one the mentor reads as a write about …
zlareb1 Dec 5, 2026
0b6f24b
Merge remote-tracking branch 'origin/main' into feat/test-cost-note
zlareb1 Dec 5, 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
291 changes: 249 additions & 42 deletions docs/features/integrations/claude-code.md

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions docs/features/namespaces-and-sharing.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,12 @@ erasure deletes every revision of its guide.
## The mentor

`mentor.brief` returns advice for one agent with the evidence behind it: its calls over a window (default 7 days),
the planes the namespace offers, and each hint with the counts that fired it. `context.pack` renders up to three hints
at session start, and a successful response carries at most one (`hint` on MCP, `X-Loom-Hint` on HTTP), capped by
`LOOM_MENTOR_MAX_HINTS_PER_SESSION`. `loom mentor --org … --namespace … --agent …` prints the whole brief. See the
the planes the namespace offers, and each hint with the counts that fired it. The calls and the exact-key read counts
leave out a coding-agent plugin's read of a repository's test cost row (key `repo:<id>/test-cost/pytest`), which its
prompt hook sends under the session's agent; the ladder below counts it, as a row the ledger records under the agent.
`context.pack` renders up to three hints at session start, and a successful response carries at most one (`hint` on
MCP, `X-Loom-Hint` on HTTP), capped by `LOOM_MENTOR_MAX_HINTS_PER_SESSION`.
`loom mentor --org … --namespace … --agent …` prints the whole brief. See the
[mentor ops](../reference/operations/mentor.md).

A brief's `usage_evidence` lists what the agent's use of Loom shows, one rung each, with
Expand Down
5 changes: 4 additions & 1 deletion docs/guides/optimize-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ namespace is not healthy. From anywhere else, call `namespace.audit` over HTTP o
Read `summary` first:

- a `get_search_ratio` in the hundreds means the namespace is used as a key-value store
(reads of procedures, which are read back by key on purpose, are left out of it);
(reads of procedures, which are read back by key on purpose, are left out of it, and
`gets` leaves out the reads of a repository's test cost row, key
`repo:<id>/test-cost/pytest`, which a coding-agent plugin's prompt hook sends in a
session whatever its agent does);
- `unembedded_rows` above zero means rows search can never find.

Then read the findings. Stop when `healthy` is true and nothing is `warning` or
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/operations/mentor.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ One agent's usage profile and the store's hints.
| `window_seconds` | `int` | The window the profile was computed over, in seconds; a profile served from the cache keeps the window it was computed with. |
| `computed_at` | `datetime` | When the profile was computed (UTC); older than the call when served from the cache. |
| `sessions` | `int` | Distinct client-named sessions of this agent in the window (`-` and `*` not counted). |
| `usage` | `dict[str, int]` | Calls per operation by this agent in the window. |
| `planes` | `list[MentorPlane]` | Every plane the mentor knows, with this agent's calls to it and whether it is available. |
| `usage` | `dict[str, int]` | Calls per operation by this agent in the window, leaving out a `memory.get` of a repository's test cost row (key `repo:<id>/test-cost/pytest`), which a coding-agent plugin's prompt hook sends under the agent. |
| `planes` | `list[MentorPlane]` | Every plane the mentor knows, with this agent's calls to it (the sum of its ops' `usage` counts) and whether it is available. |
| `hints` | `list[MentorHint]` | The rules that fired for this agent, each with the counts that fired it; empty when none. |
| `adoption` | `list[MentorAdoption]` | Per hint code, sessions it was shown in and followed in, most shown first; empty when no hint reached the agent or the read failed. |
| `usage_evidence` | `list[UsageRung]` | The agent's use of Loom in the window, one rung each, weakest claim first: from a call made to a graded run. |
Expand Down
6 changes: 3 additions & 3 deletions integrations/claude-code-plugin/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "loom",
"displayName": "ClickHouse Loom",
"version": "1.2.185",
"version": "1.2.186",
"description": "Shared long-term memory and code intelligence for Claude Code, self-hosted on ClickHouse. MCP tools to save and recall decisions, preferences and corrections across sessions and teammates; lifecycle hooks that capture each session with no model call; a code index that answers where-is, who-calls and blast-radius questions with line-accurate units instead of whole-file reads.",
"author": {
"name": "ClickHouse"
Expand Down Expand Up @@ -70,8 +70,8 @@
},
"test_report": {
"type": "boolean",
"title": "Failure reasons after a cut pytest run",
"description": "On by default. In a checkout that configures pytest, the plugin adds its result-file option to PYTEST_ADDOPTS for the session's shell commands (--junitxml, to a private file in the temp directory, with -o junit_family=xunit1), and after a test command whose visible output names no failure's reason it adds a digest of that file to the tool result, at most 700 characters. pytest names the file in one line of its summary on a run that is not quiet (-q). No request is sent and nothing is stored. Off: no option and no digest, from the session's next start (LOOM_TEST_REPORT=off does the same).",
"title": "pytest failure reasons and test cost",
"description": "On by default. In a checkout that configures pytest, the plugin adds its result-file option to PYTEST_ADDOPTS for the session's shell commands (--junitxml, to a private file in the temp directory, with -o junit_family=xunit1), and after a test command whose visible output names no failure's reason it adds a digest of that file to the tool result, at most 700 characters. pytest names the file in one line of its summary on a run that is not quiet (-q). No request is sent for the digest and nothing of it is stored. With the memory plane on, what a whole pytest run of one test file cost (its path, the number of cases and the seconds) is kept as one memory row a repository when it took a minute or more, and a later bug report in that repository carries it as one line under its code pointers. Off: no option, no digest and no test cost, from the session's next start (LOOM_TEST_REPORT=off does the same).",
"default": true
},
"code_repo": {
Expand Down
Loading
Loading