lean-ctx 3.9.7

Context Runtime for AI Agents with CCP. 71 MCP tools, 10 read modes, 95+ compression patterns, cross-session memory (CCP), persistent AI knowledge with temporal facts + contradiction detection, multi-agent context sharing, LITM-aware positioning, AAAK compact format, adaptive compression with Thompson Sampling bandits. Supports 24+ AI tools. Reduces LLM token consumption by up to 99%.
Documentation
pub(crate) mod agent_wrapper;
pub mod compress;
mod exec;
mod interactive;
pub mod output_policy;
pub(crate) mod platform;
mod redact;
pub(crate) mod reentry;
pub(crate) mod tee_policy;

pub use compress::compress_if_beneficial_pub;
pub(crate) use exec::shell_timeout_with_override;
pub(crate) use exec::{STDERR_LABEL, combine_streams};
pub use exec::{exec, exec_argv};
pub use interactive::interactive;
pub use output_policy::{OutputPolicy, classify as classify_output};
pub use platform::{
    decode_output, is_container, is_non_interactive, join_command, join_command_for,
    shell_and_flag, shell_name,
};
pub(crate) use redact::cleanup_old_tee_logs;
pub use redact::save_tee;