Skip to main content

Crate cersei_compression

Crate cersei_compression 

Source
Expand description

cersei-compression — Structural and command-aware compression for tool outputs in the Cersei SDK.

Credits: this crate is a port / adaptation of rtk (Rust Token Killer) by Patrick Szymkowiak, https://github.com/rtk-ai/rtk, MIT licensed. See LICENSE for full attribution and the per-module mapping table.

Re-exports§

pub use dispatch::compress_tool_output;
pub use level::CompressionLevel;

Modules§

ansi
ANSI escape handling.
code
Language-aware code filtering.
dispatch
Route a raw tool output through the right compression stage based on the tool name and its input JSON.
level
Compression level knob — consumed by the agent runner on every tool call.
toml_rules
Declarative command-output filter engine.
truncate
Line-structure-aware truncation — preserves function signatures and imports, omits the body.