lean-ctx 3.9.19

Context Runtime for AI Agents with CCP. 79 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%.
1
2
3
4
5
6
7
8
9
10
11
//! Task-aware Information Bottleneck compression (F1).
//!
//! Extends the existing `information_bottleneck` module with intent classification:
//! instead of requiring explicit query terms, infers them from the agent's session state.

pub mod intent;
pub mod relevance;

pub use intent::TaskIntent;
pub use intent::classify_intent;
pub use relevance::{RelevanceScore, compute_relevance, intent_query_terms};