Skip to content
Merged
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
9 changes: 6 additions & 3 deletions docs/architecture/code-index-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,12 @@ word for how sure it is:
of them. Saturation spreads the units after the last pick.
- **`pick_confidence`** in the reply is the model's word: `high` when it is confident
its first pick is a definition the fix changes, `medium` when one of its picks
probably is, `low` when probably none is. The coding-agent plugins' prompt hook
sends the picks on `high` or `medium`, nothing on `low`, and a reply with no word as
any other answer. The word is of the
probably is, `low` when probably none is. On `high` or `medium` the coding-agent
plugins' prompt hook sends at most the first three results, which open with the
picks, or the first pick alone where only the word admits the answer; it sends
nothing on `low`, and a reply with no word as any other answer
([the hook's rule](../features/integrations/claude-code.md#model-picked-pointers-for-a-bug-report)).
The word is of the
ranking the pick handed on, its first pick first: a reply whose first result is
another unit (a history anchor, or a request's `exclude_unit_ids`, `min_fan_in` or
`sort_by: "fan_in"`) carries none, with or without a pick, and neither does a later
Expand Down
114 changes: 69 additions & 45 deletions docs/features/integrations/claude-code.md

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion docs/guides/issue-code-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ What the plugins do and the SDKs do not:
- **Ask for the pick.** For a prompt that reads as a bug report a plugin's search
asks for the listwise pick and sends the answer by the model's word
([the pick](../features/integrations/claude-code.md#model-picked-pointers-for-a-bug-report)).
The SDK method never asks for it.
With `LOOM_PROMPT_PACK_MIN_CONF` unset, at a `medium` or `high` `retrieval_risk` it
still sends the first pick of an answer the model words `high` or `medium`. The
SDK method never asks for it, so every answer of its search is held to
[the low-risk label](#send-nothing-when-the-index-does-not-stand-behind-its-answer).
- **Print the cause sentence.** After a pick the model is confident of, the server's
answer can carry one sentence that states the cause (`pick_cause`), and a plugin
prints it as the last line of the block, under a label that calls it unchecked:
Expand Down
6 changes: 4 additions & 2 deletions docs/operations/code-index-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,10 @@ Then:
without its own calibration (`calibration.get` reads `source: cluster`) reads code
on the embedder's boot calibration, which is derived from prose. On an embedding
model that scores a right code hit lower than a right prose answer, answerable
searches then read `medium` or `high`, and the coding-agent plugins send no search
pointers for them.
searches then read `medium` or `high`, and with `LOOM_PROMPT_PACK_MIN_CONF` unset the
coding-agent plugins send one search pointer there, the first pick, only for a bug
report whose answer the pick model words `high` or `medium`
([the pick](../features/integrations/claude-code.md#model-picked-pointers-for-a-bug-report)).
- `loom code describe --top-pct 20` (optional, LLM cost) writes one-line descriptions for
the most central chunks. `--limit N` starts at most N description calls. `--max-usd D`
stops before a call that would take the run's spend past D dollars: it counts each
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ The code index's network git (clone, fetch, ls-remote, submodule update) through
| `LOOM_CODE_SEARCH_ABSTAIN_CARD_BELOW` | `float` | `0.0` | | A prose question whose nearest file card's cosine is below this abstains `off_domain`; independent of the card leg. 0 = off. |
| `LOOM_CODE_SEARCH_ABSTAIN_CONFIDENCE_BELOW` | `float` | `0.35` | | The abstain score below which a code.search result is flagged `low_calibrated_confidence` (still returned). The score is not `retrieval_confidence`: it blends the top cosine, its margin over the second hit, route agreement and the pool size. The deployment sets 0.30. |
| `LOOM_CODE_SEARCH_MEDIUM_RISK_FROM` | `float` | `0.35` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "medium"; below it the result reads "high". In the measurement behind the default about half of the prompts sent to another repository's index scored under it. |
| `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. The coding-agent plugins send their prompt pointers from it. |
| `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. With `LOOM_PROMPT_PACK_MIN_CONF` unset the coding-agent plugins send their prompt pointers from it and, for a bug report, below it the first pick of an answer the pick model words `high` or `medium`. |
| `LOOM_CODE_SEARCH_HYDE_KINDS` | `str` | `'responsibility'` | | The question kinds the hypothetical answer votes on. |
| `LOOM_CODE_SEARCH_HYDE_CAP` | `float` | `1.0` | | Cap on the hypothetical-answer (HyDE) leg's candidate list, as a multiple of the two-leg top (the history rule). |
| `LOOM_CODE_SEARCH_HYDE_MAX_TOKENS` | `int` | `220` | | Tokens the hypothetical-answer (HyDE) passage may run to. |
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.178",
"version": "1.2.181",
"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