pub const AI_DIR_CONTEXT_MIN_DOMINANT_FRACTION: f64 = 0.50;Expand description
Minimum fraction (0.0–1.0) of files sharing the dominant extension before
format_directory_context() emits a directory context string.
Below this threshold the directory is too heterogeneous — context would be
misleading noise rather than useful signal for the LLM.
Example: 10 files, 3 .gg + 2 .zip + 2 .png + 3 others → dominant = 30% → suppressed.
100 files, 85 .smc + 10 .txt + 5 .xml → dominant = 85% → emitted.