Expand description
Route a raw tool output through the right compression stage based on the tool name and its input JSON.
Every invocation emits a single tracing::info! event on the
cersei_compression target with before/after bytes, lines, savings
percent, strategy, and the matched rule / language. Subscribers can filter
with RUST_LOG=cersei_compression=info.
Functionsยง
- compress_
tool_ output - Infallible entry point. On any internal panic-free error we fall back to the raw content unchanged so the agent loop never breaks.