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
//! Cognitive Budget Allocator (F3) — Miller's Law for LLM context.
//!
//! Limits context to 7±2 semantic chunks, prioritized by task relevance.
//! Uses tree-sitter signature boundaries for chunk detection.

pub mod chunker;

pub use chunker::{ChunkKind, SemanticChunk};
pub use chunker::{budget_select, detect_chunks, render_budget_output};