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

pub struct RenderConfig {
    pub section_symbol_max_chars: usize,
}

impl Default for RenderConfig {
    fn default() -> Self {
        Self {
            section_symbol_max_chars: 50,
        }
    }
}

pub static RENDER: Lazy<RenderConfig> = Lazy::new(RenderConfig::default);