squeez 1.21.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1534 -1
- package/README.md +29 -28
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,6 +158,7 @@ squeez optimizes what it can reach — the surfaces exposed by each host's hook
|
|
|
158
158
|
### Secondary wins (not compression, but token-saving)
|
|
159
159
|
|
|
160
160
|
- **Cross-call redundancy dedup** — exact-hash and fuzzy-trigram collapsing across 16 recent calls (see [Context engine](#what-it-does))
|
|
161
|
+
- **Skill re-injection dedup** — when the same skill body is injected by the Skill tool more than once in a session, the repeat collapses to `[squeez: identical to Skill #N]`. Keyed by body hash in a session-long store (not the 16-call window), so it fires even when injections recur far apart
|
|
161
162
|
- **File-access cache** — subsequent Bash commands trimmed when re-reading a file squeez has already fingerprinted
|
|
162
163
|
- **Burn-rate warnings** — `[budget: ~N calls left]` nudges so the user changes behavior before context pressure spikes
|
|
163
164
|
|
|
@@ -179,34 +180,34 @@ Measured on macOS (Apple Silicon). Token count = `chars / 4` (matches Claude's ~
|
|
|
179
180
|
|
|
180
181
|
| Scenario | Before | After | Reduction | Latency |
|
|
181
182
|
|----------|--------|-------|-----------|---------|
|
|
182
|
-
| `summarize_huge` | 82,257 tk | 420 tk | **-99%** |
|
|
183
|
-
| `repetitive_output` | 4,692 tk | 37 tk | **-99%** |
|
|
184
|
-
| `xcode_build` | 1,881 tk | 17 tk | **-99%** |
|
|
185
|
-
| `high_context_adaptive` | 4,418 tk | 52 tk | **-99%** |
|
|
186
|
-
| `agent_directory_output` | 3,348 tk | 167 tk | **-95%** |
|
|
187
|
-
| `ps_aux` | 40,373 tk | 2,338 tk | **-94%** | 2.
|
|
188
|
-
| `git_log_200` | 2,692 tk | 275 tk | **-90%** |
|
|
189
|
-
| `tsc_errors` | 731 tk | 101 tk | **-86%** |
|
|
190
|
-
| `cargo_build_noisy` | 2,106 tk | 439 tk | **-79%** |
|
|
191
|
-
| `docker_logs` | 665 tk | 186 tk | **-72%** |
|
|
192
|
-
| `curl_html_response` | 2,181 tk | 626 tk | **-71%** |
|
|
193
|
-
| `find_deep` | 424 tk | 134 tk | **-68%** |
|
|
194
|
-
| `git_status` | 50 tk | 16 tk | **-68%** |
|
|
195
|
-
| `pytest_failures` | 3,402 tk | 1,175 tk | **-65%** |
|
|
196
|
-
| `verbose_app_log` | 4,957 tk | 1,978 tk | **-60%** |
|
|
197
|
-
| `npm_install` | 524 tk | 218 tk | **-58%** |
|
|
198
|
-
| `crosscall_redundancy_3x` | 486 tk | 237 tk | **-51%** | 51.
|
|
199
|
-
| `ls_la` | 1,782 tk | 872 tk | **-51%** |
|
|
200
|
-
| `env_dump` | 441 tk | 287 tk | **-35%** |
|
|
201
|
-
| `git_copilot` | 640 tk | 421 tk | **-34%** |
|
|
202
|
-
| `agent_heavy` | 2,306 tk | 1,551 tk | **-33%** |
|
|
203
|
-
| `md_prose` | 187 tk | 138 tk | **-26%** |
|
|
204
|
-
| `md_claude_md` | 316 tk | 247 tk | **-22%** |
|
|
205
|
-
| `claude_md_overhead` | 717 tk | 635 tk | **-11%** |
|
|
206
|
-
| `git_diff` | 502 tk | 497 tk | **-1%** |
|
|
207
|
-
| `jest_failures` | 451 tk | 448 tk | **-1%** |
|
|
183
|
+
| `summarize_huge` | 82,257 tk | 420 tk | **-99%** | 56.8 ms |
|
|
184
|
+
| `repetitive_output` | 4,692 tk | 37 tk | **-99%** | 205 µs |
|
|
185
|
+
| `xcode_build` | 1,881 tk | 17 tk | **-99%** | 59 µs |
|
|
186
|
+
| `high_context_adaptive` | 4,418 tk | 52 tk | **-99%** | 848 µs |
|
|
187
|
+
| `agent_directory_output` | 3,348 tk | 167 tk | **-95%** | 348 µs |
|
|
188
|
+
| `ps_aux` | 40,373 tk | 2,338 tk | **-94%** | 2.7 ms |
|
|
189
|
+
| `git_log_200` | 2,692 tk | 275 tk | **-90%** | 211 µs |
|
|
190
|
+
| `tsc_errors` | 731 tk | 101 tk | **-86%** | 22 µs |
|
|
191
|
+
| `cargo_build_noisy` | 2,106 tk | 439 tk | **-79%** | 255 µs |
|
|
192
|
+
| `docker_logs` | 665 tk | 186 tk | **-72%** | 48 µs |
|
|
193
|
+
| `curl_html_response` | 2,181 tk | 626 tk | **-71%** | 45 µs |
|
|
194
|
+
| `find_deep` | 424 tk | 134 tk | **-68%** | 79 µs |
|
|
195
|
+
| `git_status` | 50 tk | 16 tk | **-68%** | 14 µs |
|
|
196
|
+
| `pytest_failures` | 3,402 tk | 1,175 tk | **-65%** | 326 µs |
|
|
197
|
+
| `verbose_app_log` | 4,957 tk | 1,978 tk | **-60%** | 286 µs |
|
|
198
|
+
| `npm_install` | 524 tk | 218 tk | **-58%** | 46 µs |
|
|
199
|
+
| `crosscall_redundancy_3x` | 486 tk | 237 tk | **-51%** | 51.7 ms |
|
|
200
|
+
| `ls_la` | 1,782 tk | 872 tk | **-51%** | 199 µs |
|
|
201
|
+
| `env_dump` | 441 tk | 287 tk | **-35%** | 25 µs |
|
|
202
|
+
| `git_copilot` | 640 tk | 421 tk | **-34%** | 103 µs |
|
|
203
|
+
| `agent_heavy` | 2,306 tk | 1,551 tk | **-33%** | 356 µs |
|
|
204
|
+
| `md_prose` | 187 tk | 138 tk | **-26%** | 918 µs |
|
|
205
|
+
| `md_claude_md` | 316 tk | 247 tk | **-22%** | 1.1 ms |
|
|
206
|
+
| `claude_md_overhead` | 717 tk | 635 tk | **-11%** | 25 µs |
|
|
207
|
+
| `git_diff` | 502 tk | 497 tk | **-1%** | 42 µs |
|
|
208
|
+
| `jest_failures` | 451 tk | 448 tk | **-1%** | 56 µs |
|
|
208
209
|
| `state_first_simulation` | 182 tk | 181 tk | **-1%** | 5 µs |
|
|
209
|
-
| `kubectl_pods` | 1,513 tk | 1,513 tk | **-0%** |
|
|
210
|
+
| `kubectl_pods` | 1,513 tk | 1,513 tk | **-0%** | 31 µs |
|
|
210
211
|
|
|
211
212
|
### Aggregate
|
|
212
213
|
|
|
@@ -217,7 +218,7 @@ Measured on macOS (Apple Silicon). Token count = `chars / 4` (matches Claude's ~
|
|
|
217
218
|
| Markdown / context files | **-23.5%** |
|
|
218
219
|
| Wrap / cross-call engine | **-99.2%** |
|
|
219
220
|
| Quality (signal terms preserved) | **28 / 28 pass** |
|
|
220
|
-
| Latency p50 (filter mode) | **4.
|
|
221
|
+
| Latency p50 (filter mode) | **4.2 ms** |
|
|
221
222
|
| Latency p95 (incl. wrap/summarize) | **52 ms** |
|
|
222
223
|
|
|
223
224
|
### Estimated cost savings — Claude Sonnet 4.6 · $3.00 / MTok input
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squeez",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Hook-based token compressor for Claude Code, Copilot CLI, and OpenCode. Compresses bash output up to 95%, collapses redundant calls, injects caveman persona.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|