Skip to content

2.6.0

Latest

Choose a tag to compare

@nexusriot nexusriot released this 25 Nov 13:26
· 4 commits to main since this release
da2bc8e

Feature-focused release

  1. opencode support (CLI & desktop)

  2. 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
  1. 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: retrieve always 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's unknown format "uint" warnings.
  1. 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
  1. Engine: recoverability and correctness
  • Handle for every elision: in recoverable mode an elision whose fragment exceeded max_ref_bytes could 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_gutter and max_line_chars overrides were silently ignored and now apply.
  • Handle parsing: RefId::parse rejects a bare body without the k_ prefix.
  1. 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).
  1. 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's apply_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 = 0 means 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.
  1. 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.
  1. Configuration and auth
  • KOMPRESSOR__AUTH__MODE and KOMPRESSOR__REFS__BACKEND with an unknown value now stop startup with an error. Before, the value was ignored and auth stayed at none.
  • API key comparison checks the full length. Keys whose lengths differed by a multiple of 256 could compare equal when padded with NULs.
  1. wrap and CLI
  • wrap exits with the agent's real exit status, including death by signal.
  • After a killed session, the next wrap restores 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 as 7д is a usage error instead of a panic, and negative spans are refused.
  1. MCP
  • Each call gets a unique request id (mcp-<unique>-<json-rpc id>). Over stateless HTTP every call was recorded as mcp-1, merging unrelated compressions and retrievals.
  • A to bound near i64::MIN in the stats tool no longer overflows.
  • Deprecated ServerInfo replaced with ServerConfig.
  1. 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 conversations is rewritten: 20.6 s to 0.07 s on the real database, same rows.
  1. Dashboards
  • Dashboards pages on the existing schema: /models, /activity and /cohorts, with JSON at /stats/models, /stats/activity and /stats/cohorts.
2026-11-19_11-46_2 2026-11-19_11-46_1 2026-11-19_11-46
  1. FreeBSD support