Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
358 changes: 330 additions & 28 deletions docs/features/integrations/claude-code.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/features/integrations/codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ such an override with `bearer_token_env_var` and `?toolset=coding`, and writes `
| edits go through `apply_patch` | file context and blast radius read the target paths out of the patch text (`*** Update File:` / `*** Add File:`) |
| `transcript_path` may be missing or in Codex's own shape | the hooks keep a turn journal: `loom-run` records each prompt, `loom-conversation` each reply (`last_assistant_message`) at Stop; the working-memory note, the run close, the conversation plane and session memory read it |
| no per-turn token counters in the payload | `loom-usage` is not wired |
| `loom-record`, which reads a shell command's text, is not wired | no [command conventions](claude-code.md#command-conventions): no run is noted, no row is read and no line is printed |
| no file for the session's shell environment | no [test report](claude-code.md#the-test-report): no option is added to `PYTEST_ADDOPTS`, and `loom-test-report` is not wired |
| `SessionEnd` hooks get about one second | only fire-and-forget scripts run there (capture, run close, session memory, session brief); conversation turns are sent at Stop |
| no `PostToolUseFailure` event | a `PostToolUse` result flagged as an error (`is_error`, `isError` or `error`) is observed as type `error` |
Expand Down
5 changes: 3 additions & 2 deletions docs/features/namespaces-and-sharing.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,9 @@ erasure deletes every revision of its guide.

`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. 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.
leave out a coding-agent plugin's reads of a repository's test cost row (key `repo:<id>/test-cost/pytest`) and
command conventions row (key `repo:<id>/command-flags/shell`), which its prompt hook sends under the session's agent;
the ladder below counts them, as rows 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
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/optimize-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ 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, 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
`repo:<id>/test-cost/pytest`, and command conventions row, key
`repo:<id>/command-flags/shell`, 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.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/operations/mentor.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ 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, 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. |
| `usage` | `dict[str, int]` | Calls per operation by this agent in the window, leaving out a coding-agent plugin's reads of a repository's test cost and command conventions rows (`repo:<id>/test-cost/pytest`, `repo:<id>/command-flags/shell`). |
| `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. |
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.190",
"version": "1.2.191",
"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": "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).",
"title": "pytest failure reasons, test cost and command conventions",
"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. Also with the memory plane on, on a POSIX host, the flags that sessions add to a command they had already run are counted from the session's shell commands, with or without pytest (a program's name, a flag's word or a hash of the program's name and the word, and three counts of sessions, one memory row a repository), and a later bug report carries a line for a flag three or more sessions added. Off: no option, no digest, no test cost and no command conventions, from the session's next start (LOOM_TEST_REPORT=off does the same).",
"default": true
},
"code_repo": {
Expand Down
Loading
Loading