lean-ctx 3.6.15

Context Runtime for AI Agents with CCP. 62 MCP tools, 10 read modes, 60+ 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
mod aggregated;
mod core;
mod diagnostics;
mod overlay;

pub(super) fn handle(
    path: &str,
    _query_str: &str,
    method: &str,
    body: &str,
) -> Option<(&'static str, &'static str, String)> {
    if method.eq_ignore_ascii_case("POST") {
        if let result @ Some(_) = overlay::post_route(path, body) {
            return result;
        }
    }

    aggregated::get_route(path)
        .or_else(|| core::get_route(path))
        .or_else(|| overlay::get_route(path))
        .or_else(|| diagnostics::get_route(path))
}