Repository navigation
Feature-focused release
-
opencode support (CLI & desktop)
-
live stats
- ref browser
- cache analytics
- extended analytics (conversation efficiency, compression opportunities, retrieval amplification, most negative net reduction, etc.)
- export stats as JSONL
- fixed retrieve calls on Chat Completions
- repeated text folding hid retrieve handles
- MCP proxy and Claude chat tab support (experimental)
kompressor mcp serve can now sit in front of other MCP servers. This covers Claude Desktop's Chat tab, which the #25 intercept can't help with, because Chat's conversation lives on Anthropic's servers and the only bulk it sends is tool results.
- Merged tool list: kompressor's own four tools come first, then each fronted server's tools under a
<server>__<tool>prefix. - Forwarding: calls to fronted tools are passed through with arguments unchanged, and their text results are compressed on the way back.
- Retrieval:
retrievealways stays local, and a fronted server can't shadow it. - Resilience: a broken or dead server costs only its own tools, and a child-process variable stops the binary from fronting itself .
- Smaller fixes: a second text block tells the model when a retrieval was truncated, since Desktop never shows
structuredContent. A schema fix stops Claude Code'sunknown format "uint"warnings.
- Prefix observability/stabilisers + Same-turn cold recompaction
- Prefix observability
- Prefix stabilisers
- Same-turn cold recompaction
- Superseded and matured reads
- Tool block
- Reasoning-text elision on arrival
- Engine: recoverability and correctness
- Handle for every elision: in
recoverablemode an elision whose fragment exceededmax_ref_bytescould ship without a[ref:k_…]handle. Arbitration between compressors now shelves and reinstates fragments, and an oversized candidate is refused instead of adopted without its handle. - Arrow functions: only block bodies are elided. Expression-bodied arrow functions used to lose code outside the braces.
- Form feeds in code: Python files containing form feeds had the wrong lines elided. Elision now applies only when the parser's rows match the engine's lines.
- YAML block scalars:
#lines inside a- |block scalar are no longer removed as comments. - CSV with multi-line cells: a table is compressed only when every record is one line. Before, a record could be cut in half, leaving a quote open.
- Diffs: content lines starting
++or--are no longer dropped as context; hunks are read by their declared lengths. - Line numbers: after an elision, a kept line gets its own number or none. Previously an identical line (
}, a repeated log line) could take the number of an omitted one. - Fenced blocks: a compressed fenced block keeps its trailing newline, so the closing fence stays on its own line.
- Stack overflow: gutter detection recurses one level only. Input like
1:1:1:…used to recurse per prefix and abort the process. - Per-request options:
enable_line_gutterandmax_line_charsoverrides were silently ignored and now apply. - Handle parsing:
RefId::parserejects a bare body without thek_prefix.
- Reference store
- A fragment stored again after its absolute lifetime ended read back as expired, which reverted the whole request to uncompressed bytes. Re-storing a dead row now restarts its lifetime (SQLite and memory backends).
- Proxy: streaming and retrieve
- Client-owned retrieve calls: when the client executes retrieval itself, the streamed relay passes the call through untouched. Before, it dropped the opening frame and rewrote the stop reason, so the client never ran it.
- Thinking blocks: the streamed retrieve round replays the full assistant turn (signed thinking, text, then calls), matching the buffered path. It used to replay the calls alone.
- Foreign tool calls: client-side call types that are not
function_call(Codex'sapply_patch) are recognised, so a turn mixing them with a retrieve call is handed to the client. - Empty names: a continuation delta with
"name": ""no longer erases the recorded tool name. - Keepalive:
proxy.stream_keepalive = 0means off. It used to write a keepalive comment in a loop that never slept. - Memory: the conversation prefix table now evicts old entries; it leaked one per conversation.
- Intercept
- The CONNECT request line is capped at 16 KiB with a 15 s read timeout. Before, a client could send an endless line with no deadline.
- Configuration and auth
KOMPRESSOR__AUTH__MODEandKOMPRESSOR__REFS__BACKENDwith an unknown value now stop startup with an error. Before, the value was ignored and auth stayed atnone.- API key comparison checks the full length. Keys whose lengths differed by a multiple of 256 could compare equal when padded with NULs.
wrapand CLI
wrapexits with the agent's real exit status, including death by signal.- After a killed session, the next
wraprestores the user's original setting instead of losing it. - Generated config files that hold credentials are written with mode 0600.
stats --from/--to: a non-ASCII unit such as7дis a usage error instead of a panic, and negative spans are refused.
- MCP
- Each call gets a unique request id (
mcp-<unique>-<json-rpc id>). Over stateless HTTP every call was recorded asmcp-1, merging unrelated compressions and retrievals. - A
tobound neari64::MINin the stats tool no longer overflows. - Deprecated
ServerInforeplaced withServerConfig.
- Statistics
- Discarded rewrites count as zero saving in the reader, live view and retention roll-ups.
- The by-provider report no longer multiplies rows or shows another tenant's hosts.
- Cache-read share in the live view is computed per API family.
- The per-conversation credit query behind
stats conversationsis rewritten: 20.6 s to 0.07 s on the real database, same rows.
- Dashboards
- Dashboards pages on the existing schema:
/models,/activityand/cohorts, with JSON at/stats/models,/stats/activityand/stats/cohorts.
- FreeBSD support