@@ -66,8 +66,40 @@ bypass = docker exec, psql, ssh
6666# Session memory
6767compact_threshold_tokens = 160000 # warn at 80% of context budget
6868memory_retention_days = 30 # how long to keep session summaries
69+
70+ # Context engine (PR1)
71+ adaptive_intensity = true # auto-tighten compression as budget fills
72+ context_cache_enabled = true # persist cross-call state in sessions/context.json
73+ redundancy_cache_enabled = true # collapse identical recent outputs to a reference line
74+ summarize_threshold_lines = 500 # raw lines above this trigger summary fallback
6975```
7076
77+ ### Context engine
78+
79+ When ` adaptive_intensity = true ` (default), squeez compresses every bash call
80+ at maximum aggression — limits ×0.3 across the board (Ultra mode):
81+
82+ - ` max_lines ` × 0.3 (floor 20)
83+ - ` dedup_min ` × 0.5 (floor 2)
84+ - ` git_diff_max_lines ` , ` docker_logs_max_lines ` , ` find_max_results ` × 0.3
85+ - ` summarize_threshold_lines ` × 0.3 (floor 50)
86+
87+ Set ` adaptive_intensity = false ` to fall back to ** Lite** (no scaling, raw
88+ defaults). The active level is shown in the bash header:
89+ ` # squeez [git] 841→323 tokens (-62%) 55ms [adaptive: Ultra] ` .
90+
91+ The ` Lite ` and ` Full ` enum variants remain for forward compatibility but are
92+ not selected automatically — they exist so future versions can introduce
93+ softer modes without breaking the public API.
94+
95+ When the same compressed output appears within the last 8 calls (length-equality
96+ guarded), squeez replaces it with a single reference line:
97+ ` [squeez: identical to <hash> at bash#<n> — re-run with --no-squeez] ` .
98+
99+ When raw output exceeds ` summarize_threshold_lines ` , squeez emits a dense
100+ ≤40-line summary (top errors, top files, test summary, last 20 lines verbatim)
101+ instead of running the per-handler truncation pipeline.
102+
71103## How it works
72104
73105### Claude Code & Copilot CLI
0 commit comments