diffctx 1.12.1

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
16
17
use once_cell::sync::Lazy;

pub struct AnalyticsConfig {
    pub hotspot_degree_weight: f64,
    pub hotspot_churn_weight: f64,
}

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

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