diffctx 1.15.0

Selects the minimum code an LLM needs to review a git diff: walks the dependency graph outward from changed lines and stops when extra context stops paying for itself
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use once_cell::sync::Lazy;

pub struct AnalyticsConfig {
    pub hotspot_degree_weight: f64,
}

impl Default for AnalyticsConfig {
    fn default() -> Self {
        Self {
            hotspot_degree_weight: 0.5,
        }
    }
}

pub static ANALYTICS: Lazy<AnalyticsConfig> = Lazy::new(AnalyticsConfig::default);