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 FragmentationConfig {
    pub binary_detection_buffer_size: usize,
    pub generated_marker_header_lines: usize,
}

impl Default for FragmentationConfig {
    fn default() -> Self {
        Self {
            binary_detection_buffer_size: 8192,
            generated_marker_header_lines: 10,
        }
    }
}

pub static FRAGMENTATION: Lazy<FragmentationConfig> = Lazy::new(FragmentationConfig::default);