Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
e2a60d4
test(plugin): a pytest run after other commands in its shell call, an…
zlareb1 Dec 5, 2026
7a7d4b9
The plugin notes the cost of a pytest run that follows other commands…
zlareb1 Dec 5, 2026
b6584a0
Merge remote-tracking branch 'origin/main' into fix/test-cost-compoun…
zlareb1 Dec 5, 2026
c0e90bd
The plugins are 1.2.188, and the Codex plugin has the copy of the cha…
zlareb1 Dec 5, 2026
0507b2a
test(plugin): a run in a group, in a shell a failed command ends, or …
zlareb1 Dec 5, 2026
1c55078
A pytest run in a group, after `set -e` or `exit`, or in a quoted arg…
zlareb1 Dec 5, 2026
dcf4795
test(plugin): a `set` whose `-e` is not its first flag word is no fil…
zlareb1 Dec 5, 2026
5189266
A `set` with `-e` in any of its flag words before a pytest run is no …
zlareb1 Dec 5, 2026
9a61287
test(plugin): an earlier call's run is no later command's, and an `||…
zlareb1 Dec 5, 2026
6dd3146
A report is a command's own when its run began after any earlier shel…
zlareb1 Dec 5, 2026
3995569
Merge remote-tracking branch 'origin/main' into fix/test-cost-compoun…
zlareb1 Dec 5, 2026
5eb1df5
test(plugin): the time of a session's last shell call is in a file of…
zlareb1 Dec 5, 2026
e76bf75
The time of a session's last shell call has a file of its own, which …
zlareb1 Dec 5, 2026
54339e6
test(plugin): a stale report is told by when it was written, and an o…
zlareb1 Dec 5, 2026
d8843b0
A run after other commands counts with a report written within 10 s o…
zlareb1 Dec 5, 2026
a7c0de6
test(plugin): a run in a comment or after an escaped semicolon is no …
zlareb1 Dec 5, 2026
a9febd2
A run in a comment or after an escaped semicolon is no file run
zlareb1 Dec 5, 2026
123a45e
The README says a set-up command after another command joins the run …
zlareb1 Dec 5, 2026
c4800d6
test(plugin): a build tool's test target after a target of a verb's n…
zlareb1 Dec 5, 2026
5c7994c
A build tool's test target after a verb-named target is a runner befo…
zlareb1 Dec 5, 2026
3e8c2e5
test(plugin): a cd that does not start the command is a move the read…
zlareb1 Dec 5, 2026
fea208d
After a command that is no set-up, a cd is followed only where it sta…
zlareb1 Dec 5, 2026
b680fe7
test(plugin): a cd with no folder is a move, and the text after a fol…
zlareb1 Dec 5, 2026
1e454e8
A cd with no folder is a move, and the text after a followed cd is no…
zlareb1 Dec 5, 2026
71fc7d9
test(plugin): a remote or container tool's name before a run, and tes…
zlareb1 Dec 5, 2026
34aa010
The pages name every refusal of a run after other commands, and say w…
zlareb1 Dec 5, 2026
1d8c77b
test(plugin): the gate reads no folder for a cd on a line of its own,…
zlareb1 Dec 5, 2026
9c817ec
test(plugin): the case of a run in a group on one line reaches the pa…
zlareb1 Dec 5, 2026
a6d9020
test(plugin): the word cd at the end of an argument is no move
zlareb1 Dec 6, 2026
c581a07
A cd with no folder is a move only where it starts a command
zlareb1 Dec 6, 2026
5839874
fileRun names the field for what it says: only set-up stands before t…
zlareb1 Dec 6, 2026
a3228ef
The pages say when pytest writes the result file: at the session's en…
zlareb1 Dec 6, 2026
030b2a3
test(plugin): the gate holds each separator after a cd with no folder
zlareb1 Dec 6, 2026
c1c6876
test(plugin): the comment says what a comment between a command and t…
zlareb1 Dec 6, 2026
d4285ce
test(plugin): the word cd at the end of an argument is no move before…
zlareb1 Dec 6, 2026
9b75691
The word cd at the end of an argument is no move before a line's end
zlareb1 Dec 6, 2026
99e760c
test(plugin): a cd with no folder after a keyword or a prefix word is…
zlareb1 Dec 6, 2026
8ed02ee
A cd with no folder is a move wherever it is a word of its own
zlareb1 Dec 6, 2026
6ccc82a
The limits name a run an earlier call left going, and the pages say p…
zlareb1 Dec 6, 2026
795af1a
test(plugin): a run put in the background after other commands is no …
zlareb1 Dec 6, 2026
dafdac2
A run put in the background after other commands is no file run
zlareb1 Dec 6, 2026
949acc1
test(plugin): a case collected from a data file with the test file's …
zlareb1 Dec 6, 2026
7f15810
A case collected from a data file with the test file's stem is not th…
zlareb1 Dec 6, 2026
ea36e77
test(plugin): a move by another spelling is no file run, and a data f…
zlareb1 Dec 6, 2026
e05dc2b
A move by another spelling is no file run, and a data file with the t…
zlareb1 Dec 6, 2026
07f0e92
The cost tests hold the clock in a way Node 18 runs
zlareb1 Dec 6, 2026
864c685
test(plugin): a class under a package of the test file's name is not …
zlareb1 Dec 6, 2026
1dc1d0c
A class under a package of the test file's name is not the file's
zlareb1 Dec 6, 2026
089119a
test(plugin): the gate holds a carriage return between a separator an…
zlareb1 Dec 6, 2026
6b3ddca
A data-driven case is refused by its class being its data file's path…
zlareb1 Dec 6, 2026
a6ec97d
A run under a line that starts with # and ends in a joining operator …
zlareb1 Dec 6, 2026
5ffc0a1
The pages say which word before a run refuses it, and what a run afte…
zlareb1 Dec 6, 2026
bd9f29a
The pages state the quote refusal as the count the code takes
zlareb1 Dec 6, 2026
c0a6e71
The pages say a data-driven case counts where its data file is no Pyt…
zlareb1 Dec 6, 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
126 changes: 120 additions & 6 deletions docs/features/integrations/claude-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -1767,18 +1767,87 @@ session's private state, by the file:
parenthesis inside one counts as if unquoted: a run piped into
`grep -E "passed|failed"` and one with `-k "parse and (empty or nested)"` count as
neither;
- a run that anything stands before in its command but `cd`, `export`, `source` and `.`
counts as neither (`make build && pytest tests/test_big.py`): a command before it may
start pytest too, and where the run then does not start, as in
`make test || pytest tests/test_big.py`, the result file and the summary line are that
command's.
- a run counts as neither where a command before it may start pytest too, where the
run may not start after it, or where that command runs beside it
(`make test || pytest tests/test_big.py`, `make build && pytest tests/test_big.py`,
`sleep 600 & pytest tests/test_big.py`): the result file and the summary line may
then be that command's. What may stand before the run is `cd`, `export`, `source` and
`.`, or the commands of a session that edits and then checks in one shell call, such
as `sed -i 's/a/b/' src/parser.py; git diff --stat; pytest tests/test_big.py`. After
such commands the run counts as neither where:
- the text before the run names a test runner, holds `pytest` or `py.test`
(`.pytest_cache` and `pytest.ini` hold it), or holds something that ends the shell
where a command fails: `exit`, `errexit`, or a `set` with `-e` among its flags, as
`set -e` and `set -u -e`. A build tool with `test` after no letter further on in
its command counts as a test runner there, inside a word too and whatever stands
before it: `make install test` runs the tests, and a package, a target or a path
of such a name counts too (`npm install test-utils`, `make run-testsuite`,
`go build ./internal/testutil/...`);
- `&&`, `||`, `&`, a pipe or a parenthesis stands before the run's own command, not
`;` or a line's end. After `&&` or `||` the run waits on what the command before
it returned. After `&` or a pipe the run always starts, and that command runs
beside it: what it prints and writes may come after the run's. One of `&&`, `||`,
`&` or a pipe at the end of the line above the run counts as one before the run on
its line, with or without a comment between them (`git diff --stat &&` on the line
above the run). So does one at the end of a line that holds `<<`: under
`git apply <<'P' &&`, the run after the patch waits on `git apply`. Where a
heredoc ends is not read, so a line of an inline script's text that holds `<<` and
ends in one of them counts too. So does one at the end of a line that starts with
`#`, which may be the end of a quoted argument. A list that ended before the run
decides nothing:
`git stash pop || true; pytest tests/test_big.py` counts;
- the shell does not read the `;` before the run: a backslash stands before it, or a
`#` that starts a word stands before the run on its line, ahead of the line's
first quote (`git diff --stat # then; pytest tests/test_big.py` holds a comment
and no run). A `#` after a quote may be an argument's, as in
`sed -i '5a\ # note' src/parser.py`, and decides nothing;
- the run and what follows it close a parenthesis they did not open, or hold an odd
number of `"` or of `'`: the run is in a group that waits on an earlier command
(`python edit.py && (git diff --stat; pytest tests/test_big.py)`), or it may be the
text of a quoted argument (`git commit -m "fix; pytest tests/test_big.py"`). One
apostrophe after the run is such a number too
(`git diff --stat; pytest tests/test_big.py -q; echo "it's done"`);
- a `&` puts the run in the background, alone or with what reads its output
(`tail -5 out.txt; pytest tests/test_big.py > out2.txt 2>&1 &`): the call does not
wait for the run, and a summary line its output shows may be an earlier run's. The
`&` of `&&`, `&>` and `|&` puts nothing in the background;
- the word `cd`, `pushd` or `popd` stands before the run anywhere but as the one
`cd` that starts the command, outside a group
(`cd pkg && sed -i 's/a/b/' src/parser.py; pytest tests/test_big.py` counts,
`(cd pkg && git stash -q); pytest tests/test_big.py` and
`ls /media/cd; pytest tests/test_big.py` do not): further on the word may be the
text of a heredoc or a move by another spelling;
- the text before the run holds the word `ssh`, `docker`, `podman` or `kubectl` with
a blank after it, in a set-up command's value too: what follows one may run
elsewhere, so `docker compose up -d db; pytest tests/test_big.py` counts as neither;
- a run after a `cd` with no folder counts as neither: `cd; pytest tests/test_big.py`
runs in the home folder.

The result file is the command's when the command's output shows pytest's summary line,
whatever it counts, with the cases, the failures and the seconds the file holds (the
seconds within a second, or a twentieth of them), and the file's first case is in the
test file the command names. The seconds alone do not tell two short runs apart: a run
that wrote no file, such as one that sets its own `PYTEST_ADDOPTS`, is read with the
file an earlier run left.
file an earlier run left. Nor does the summary line where a command before the run
printed it: `tail -5 out.txt; pytest tests/test_big.py` shows the summary of the run
that wrote `out.txt`, and where its own run outlives the call, the result file read with
it is that earlier run's. That file was written before the command's own run began,
and a run that ended in its call wrote the file when it ended (`pytest_sessionfinish`),
before pytest printed the summary. So where other commands than `cd`, `export`,
`source` and `.` stand before the run (a comment line counts as one), the result file is
the command's only when it was written no more than 10 s before the hook read it. A
command that is the run alone prints no summary line but its own, and its result file
has no such bound. Neither has the result file of a run with only `cd`, `export`,
`source` and `.` before it, which is taken as the command's own.

A case that a data-driven suite reads from a data file names that file in the result
file, not the test file that collected it. Where the data file is no Python file, such
a case is in the command's test file when its class is under that file's module
(`tests.test_big.Suite` for `tests/test_big.py`). A case that names another Python
file is that file's. A case pytest collected from a data file itself has that file's
path as its class, with `/` turned into `.` (`tests.test_big.cases.yaml` for
`tests/test_big/cases.yaml`): it is not in the test file. Nor is any such case where a
folder of the test file's name, less `.py`, stands beside it.

A run that outlives its shell call writes the file after the hook ran: it is read after
the next shell command that names a test runner, or when the session ends. That file is
Expand Down Expand Up @@ -1875,6 +1944,44 @@ What it does not do:
noted;
- a run that outlives its shell call is noted when it began before that call returned: a
run put in the background at once, before pytest began, is not;
- a run that other commands stand before is not counted where its result file was
written more than 10 s before the hook read it, as by a pytest that takes that long
to print its summary and end after it wrote the file;
- a run that outlives its shell call is not counted where a command before it printed
the summary line of an earlier run
(`tail -5 out.txt; pytest tests/test_big.py | tail -5`): its output shows a summary
line, so it is not kept as a run that outlives its call, and the result file it
writes later is not read as its own;
- a data-driven suite is not counted where its test file has a folder of its name,
less `.py`, beside it: its cases are not told apart from those of a test file in that
folder;
- a command before the run that starts pytest under no runner's name, such as a script
of the repository, is not told apart from an edit. Its result file and summary line
are counted as the run's where the script ended within 10 s of the call's return and
the run after it shows no summary line of its own: it outlives the call, or ends
before pytest prints one. The same holds of the result file an earlier run left
unread, where a command prints that run's saved summary and its call returns within
10 s of the time the file was written;
- the 10 s bound does not hold where that script's pytest ends after the call returned,
as when the call times out while the script runs
(`./check.sh; pytest tests/test_big.py`). The run after it shows no summary line and is
kept as one that outlives its call, the script's pytest began before the call returned
too, and its result file is counted as the run's when a hook reads it before the run's
own, where its first case is in the run's test file;
- a command put in the background earlier in the call is not read
(`./check.sh & sleep 1; pytest tests/test_big.py`), nor is a script that leaves its
pytest in the background. That pytest runs beside the run: where it ends after the
run, its summary line and its result file are the last ones, and are counted as the
run's where its first case is in the run's test file;
- a run that never starts because the shell ends in a way the command's text does not
name, such as an `exec` before it, is kept as one that outlives its call. So is a run
in a comment that starts after a quote on its line
(`echo 'done' # then; pytest tests/test_big.py`), and a run in a quoted argument
where a quote of the same kind stands inside a later one
(`git commit -m 'fix; pytest tests/test_big.py' && echo "it's in"`). Where only
`cd`, `export`, `source` and `.` stand before the run, a run in a comment, after
`\;` or in a quoted argument is kept too
(`export NOTE="built; pytest tests/test_big.py"`);
- the session keeps one run that outlives its call. A later one of another test file
takes its place, and the earlier run is not counted. A later one of the same file and
the other kind, whole after `-k` or `-k` after whole, drops both, since the earlier
Expand Down Expand Up @@ -1909,6 +2016,13 @@ What it does not do:
- the result file of a run of the same file that something else started while a run that
outlived its shell call was in that call, such as a script in the background, is
counted as that run's when a command that is not the other run reads it;
- so is the result file of a run that an earlier shell call left going, in the
background or past its timeout, and that counts as neither itself (two paths, a node
id, a mark), where its first case is in the test file of the run that outlived its
call. After `pytest -q tests/test_big.py tests/test_small.py > out.txt 2>&1 &`, a
`pytest -q tests/test_big.py` that outlives its call while that run goes on is counted
with the cases and seconds of the run of two paths, where a hook reads that run's
result file before its own;
- a row whose file was removed stays, unprinted, until a session measures a slow whole
run of another file;
- the row is an ordinary memory row, so recall can serve its sentence, and two
Expand Down
2 changes: 1 addition & 1 deletion 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.189",
"version": "1.2.190",
"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
Loading
Loading