Skip to main content

oxicode_agent/agent_loop/compaction/
mod.rs

1//! Mechanical (LLM-free) context compaction strategies.
2//!
3//! These strategies elide token-heavy regions of the message log without
4//! invoking the model. They complement the LLM-driven compactor wired
5//! through `oxicode_ai::CompactionManager`.
6
7/// Shake compaction — elide large tool results and code blocks from
8/// older context while preserving a recent protect window.
9///
10/// Ported from omp `packages/agent/src/compaction/shake.ts`.
11pub mod shake;