squeez 1.31.1 → 1.31.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +295 -1
  2. package/README.md +32 -32
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,299 @@ conventional commit messages on `main`.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [1.31.1] - 2026-06-22
13
+
14
+ ### Added
15
+ - feat(tokens): code- and CJK-aware token estimate for compression decisions (#162)
16
+ - feat(toon): encode objects with nested values instead of rejecting them (#160)
17
+ - feat(truncation): relevance-aware truncation keeps the lines that matter (#158)
18
+ - feat(log-template): collapse near-identical log lines into templated counts (#156)
19
+ - feat(retrieve): reversible compression — stash originals + squeez_retrieve (#154)
20
+ - feat(config): add `squeez config` CLI + `/squeez` slash command (#152)
21
+ - feat(sig-mode): capture indented method signatures inside impl/class blocks (#147)
22
+ - feat(safety): workflow abuse prevention — all 8 gap items from transcript audit
23
+ - feat(context): real-context tracking, image/skill dedup, quota nudges, transcript integration
24
+ - feat(economy): enterprise-aware mode — Bedrock/Vertex/OTEL detection + USD savings (#135)
25
+ - feat(benchmark): add information-preservation guard against output-token inflation (#133)
26
+ - feat(cloud): TOON re-encoder for JSON-array outputs (gh, kubectl, aws, gcloud, az) (#134)
27
+ - feat(sig-mode): preserve attribute / decorator above kept signatures (#137)
28
+ - feat(economy): auto-curation nudges + cross-session handler stats (#118)
29
+ - feat(hosts): add Pi adapter (#116)
30
+ - feat(compress): plug Agent/Task output, HTML bash, and PreCompact telemetry gaps
31
+ - feat(bench): add pytest, jest, xcode_build scenarios — 23 → 26 scenarios
32
+ - feat(hooks): PreCompact + PostCompact lifecycle hooks (#102)
33
+ - feat(hooks): SubagentStop hook feeds sub-agent output into SessionContext (#101)
34
+ - feat(monitor): add Monitor tool to PostToolUse compress-output dispatch (#100)
35
+ - PostToolUse updatedToolOutput for Read/Grep/Glob (Claude Code v2.1.119+)
36
+ - session-analysis improvements — az JSON, vite noise, prisma generate, hook health check (#90)
37
+ - feat(fs): auto-compress cat'd markdown via compress_md pipeline (#88)
38
+ - feat(economy): compress Agent/Task prompt at PreToolUse time (#87)
39
+ - feat(handlers): xcodebuild noise filter + log-file tail detection (#84)
40
+ - feat(bench): efficiency-proof benchmark suite — quantitative savings for US-001/003/004 (#74)
41
+ - token-compression power-up — sig-mode, memory-file warn, structured summaries, hypothesis benchmark (#70)
42
+ - feat(setup): adapter-driven setup/uninstall across all hosts (#58)
43
+ - feat(hosts): Codex CLI adapter (hooks + AGENTS.md soft-budget) (#55)
44
+ - feat(hosts): Gemini CLI adapter (BeforeTool/AfterTool hooks) (#52)
45
+ - feat(hosts): full-parity OpenCode adapter + plugin rewrite (#48)
46
+ - wrangler, playwright, next build handlers + bun/drizzle routing (#34)
47
+ - feat(opus47): adapt squeez for Opus 4.7 tokenizer and xhigh effort
48
+ - feat(setup): auto-detect lang from CLAUDE.md/locale + stderr update notification (#29)
49
+ - v0.3.0 — token economy, pt-BR caveman, aggressive defaults, full hook install
50
+ - structured session memory, cross-session search, error snippets, configurable tunables
51
+ - feat(setup): create config.ini on first install
52
+ - feat(i18n): locale-aware compress-md with pt-BR support (#25)
53
+ - fuzzy dedup, adaptive intensity, benign summarize, MCP server, temporal memory, protocol payload
54
+ - Windows setup via cargo/npm + squeez update fix
55
+ - feat(benchmark): add squeez benchmark command with 19-scenario test suite
56
+ - feat(ci): re-add promote-develop workflow with correct registration
57
+ - feat(init): inject persona into ~/.claude/CLAUDE.md on every session start
58
+ - feat(npm+crates): add npm package and publish jobs to release workflow
59
+ - feat(statusline): add statusline.sh to repo; install via install.sh; show all-time stats
60
+ - compress-md, caveman persona, squeez update, track-result hook
61
+ - feat(context): adaptive intensity always picks Ultra
62
+ - feat(context): aggressive token-engine — adaptive intensity, redundancy cache, summarize fallback
63
+ - add Windows support to install.sh and release.yml
64
+ - add home_dir() helper with USERPROFILE fallback for Windows
65
+ - cross-platform wrap — shell_command() helper, cfg(unix) signal gates, libc unix-only
66
+ - add GitHub Copilot CLI support
67
+ - add OpenCode plugin for automatic Bash compression
68
+ - add universal installer support for macOS and Linux
69
+ - expand benchmarks, edge-case tests, and README polish
70
+ - add SessionStart + PostToolUse hooks, update install.sh and README
71
+ - wrap.rs — artifact capture (files/errors/git/tests) + compact warning header
72
+ - squeez init — session start, prior memory banner, session finalization (TDD)
73
+ - squeez track — token accumulation + session event log (TDD)
74
+ - memory.rs — Summary, read_last_n, write_summary, prune_old (TDD)
75
+ - session.rs — CurrentSession, append_event, date math (TDD)
76
+ - json_util helpers + compact_threshold_tokens, memory_retention_days config
77
+ - benchmark system — all fixtures passing
78
+ - build.sh compiles + installs squeez, registers hook
79
+ - PreToolUse hook script
80
+ - fs and runtime handlers — all handler tests passing
81
+ - cloud, database, network handlers (TDD)
82
+ - typescript and build handlers (TDD)
83
+ - package_mgr and test_runner handlers (TDD)
84
+ - git and docker handlers (TDD)
85
+ - wrap subcommand — sh -c, 120s timeout, signal forwarding, bypass check
86
+ - Handler trait with cmd+config, generic handler, command router, filter_stdin
87
+ - truncation strategy (TDD) — all strategy tests passing
88
+ - grouping strategy (TDD)
89
+ - dedup strategy (TDD)
90
+ - smart_filter strategy with node_modules frame removal (TDD)
91
+ - implement config.ini parser (TDD)
92
+
93
+ ### Changed
94
+ - chore(release): bump version to 1.31.1 [squeez-release-bot]
95
+ - docs: update changelog and benchmarks for v1.31.0
96
+ - chore(release): bump version to 1.31.0 [squeez-release-bot]
97
+ - docs: update changelog and benchmarks for v1.30.0
98
+ - chore(release): bump version to 1.30.0 [squeez-release-bot]
99
+ - docs: update changelog and benchmarks for v1.29.0
100
+ - chore(release): bump version to 1.29.0 [squeez-release-bot]
101
+ - docs: update changelog and benchmarks for v1.28.0
102
+ - chore(release): bump version to 1.28.0 [squeez-release-bot]
103
+ - docs: update changelog and benchmarks for v1.27.0
104
+ - chore(release): bump version to 1.27.0 [squeez-release-bot]
105
+ - docs: update changelog and benchmarks for v1.26.0
106
+ - chore(release): bump version to 1.26.0 [squeez-release-bot]
107
+ - docs: update changelog and benchmarks for v1.25.0
108
+ - chore(release): bump version to 1.25.0 [squeez-release-bot]
109
+ - docs: update changelog and benchmarks for v1.24.0
110
+ - docs: update changelog and benchmarks for v1.23.1
111
+ - chore(release): bump version to 1.24.0 [squeez-release-bot]
112
+ - chore(release): bump version to 1.23.1 [squeez-release-bot]
113
+ - docs: update changelog and benchmarks for v1.23.0
114
+ - chore(release): bump version to 1.23.0 [squeez-release-bot]
115
+ - docs: update changelog and benchmarks for v1.22.1
116
+ - docs: update changelog and benchmarks for v1.22.1
117
+ - docs: update changelog and benchmarks for v1.22.1
118
+ - chore(release): bump version to 1.22.1 [squeez-release-bot]
119
+ - docs: update changelog and benchmarks for v1.22.0
120
+ - chore(release): bump version to 1.22.0 [squeez-release-bot]
121
+ - docs: update changelog and benchmarks for v1.21.1
122
+ - chore(release): bump version to 1.21.1 [squeez-release-bot]
123
+ - refactor(skills): session-long re-injection dedup; drop lexical skill compression (#142)
124
+ - docs: update changelog and benchmarks for v1.21.0
125
+ - chore(release): bump version to 1.21.0 [squeez-release-bot]
126
+ - docs: update changelog and benchmarks for v1.20.0
127
+ - chore(release): bump version to 1.20.0 [squeez-release-bot]
128
+ - docs(readme): add "How squeez compares" table vs rtk / KRLabs squeez / sqz / LLMLingua-2 / TOON (#138)
129
+ - test(cache): lock in byte-stability of MCP and protocol payloads (#136)
130
+ - docs: update changelog and benchmarks for v1.19.4
131
+ - chore(release): bump version to 1.19.4 [squeez-release-bot]
132
+ - docs: update changelog and benchmarks for v1.19.3
133
+ - chore(release): bump version to 1.19.3 [squeez-release-bot]
134
+ - docs: update changelog and benchmarks for v1.19.2
135
+ - chore(release): bump version to 1.19.2 [squeez-release-bot]
136
+ - docs: update changelog and benchmarks for v1.19.1
137
+ - chore(release): bump version to 1.19.1 [squeez-release-bot]
138
+ - docs: update changelog and benchmarks for v1.19.0
139
+ - chore(release): bump version to 1.19.0 [squeez-release-bot]
140
+ - docs: update changelog and benchmarks for v1.18.1
141
+ - chore(release): bump version to 1.18.1 [squeez-release-bot]
142
+ - docs: update changelog and benchmarks for v1.18.0
143
+ - chore(release): bump version to 1.18.0 [squeez-release-bot]
144
+ - docs: document DCO Signed-off-by requirement in CLAUDE.md (#111)
145
+ - docs: update changelog and benchmarks for v1.17.0
146
+ - chore(release): bump version to 1.17.0 [squeez-release-bot]
147
+ - docs: update changelog and benchmarks for v1.16.0
148
+ - chore(release): bump version to 1.16.0 [squeez-release-bot]
149
+ - docs: update changelog and benchmarks for v1.15.1
150
+ - chore(release): bump version to 1.15.1 [squeez-release-bot]
151
+ - docs: update README and CLAUDE.md for new hooks and PostToolUse rewrite (#108)
152
+ - refactor(bench): unify benches/ into bench/ — single benchmark directory (#106)
153
+ - test: add missing coverage for compress-output, filter dispatch, SubagentStop, hook registration (#103)
154
+ - docs: update changelog and benchmarks for v1.15.0
155
+ - chore(release): bump version to 1.15.0 [squeez-release-bot]
156
+ - docs: update changelog and benchmarks for v1.13.0
157
+ - chore(release): bump version to 1.14.0 [squeez-release-bot]
158
+ - chore(release): bump version to 1.13.0 [squeez-release-bot]
159
+ - docs: update changelog and benchmarks for v1.12.0
160
+ - chore(release): bump version to 1.12.0 [squeez-release-bot]
161
+ - docs(codex): update adapter comments and README for 0.123.0 hook surface
162
+ - docs: update changelog and benchmarks for v1.11.2
163
+ - chore(release): bump version to 1.11.2 [squeez-release-bot]
164
+ - docs: update changelog and benchmarks for v1.11.1
165
+ - chore(release): bump version to 1.11.1 [squeez-release-bot]
166
+ - docs: update changelog and benchmarks for v1.11.0
167
+ - chore(release): bump version to 1.11.0 [squeez-release-bot]
168
+ - docs: update changelog and benchmarks for v1.10.0
169
+ - docs: update changelog and benchmarks for v1.9.0
170
+ - chore(release): bump version to 1.10.0 [squeez-release-bot]
171
+ - docs(readme): document squeez's compression scope and architectural limits (#85)
172
+ - chore(release): bump version to 1.9.0 [squeez-release-bot]
173
+ - chore(release): bump version to 1.8.0 [squeez-release-bot]
174
+ - docs: update changelog and benchmarks for v1.7.7
175
+ - chore(release): bump version to 1.7.7 [squeez-release-bot]
176
+ - docs: update changelog and benchmarks for v1.7.6
177
+ - chore(release): bump version to 1.7.6 [squeez-release-bot]
178
+ - docs: update changelog and benchmarks for v1.7.5
179
+ - chore(release): bump version to 1.7.5 [squeez-release-bot]
180
+ - docs: update changelog and benchmarks for v1.7.4
181
+ - chore(release): bump version to 1.7.4 [squeez-release-bot]
182
+ - perf: O(log n) refactor — tail read, offset index, single-pass parser
183
+ - docs: update changelog and benchmarks for v1.7.3
184
+ - chore(release): bump version to 1.7.3 [squeez-release-bot]
185
+ - chore(release): bump version to 1.7.2 [squeez-release-bot]
186
+ - restore: revert accidental deletion of auto-release.yml workflow
187
+ - docs: update changelog and benchmarks for v1.7.1
188
+ - chore(release): bump version to 1.7.1 [squeez-release-bot]
189
+ - chore: relicense to Apache 2.0 + add DCO policy + banner (#76)
190
+ - docs: update changelog and benchmarks for v1.7.0
191
+ - chore(release): bump version to 1.7.0 [squeez-release-bot]
192
+ - docs: update changelog and benchmarks for v1.6.1
193
+ - chore(release): bump version to 1.6.1 [squeez-release-bot]
194
+ - docs: update changelog and benchmarks for v1.6.0
195
+ - chore(release): bump version to 1.6.0 [squeez-release-bot]
196
+ - docs: update changelog and benchmarks for v1.5.2
197
+ - chore(release): bump version to 1.5.2 [squeez-release-bot]
198
+ - chore(release): bump version to 1.5.1 [squeez-release-bot]
199
+ - docs: five-host matrix + squeez setup/uninstall flow (#63)
200
+ - refactor(install): delegate host registration to 'squeez setup' (#60)
201
+ - chore(release): bump version to 1.5.0 [squeez-release-bot]
202
+ - chore(release): bump version to 1.4.0 [squeez-release-bot]
203
+ - chore(release): bump version to 1.3.0 [squeez-release-bot]
204
+ - chore(release): bump version to 1.2.0 [squeez-release-bot]
205
+ - chore(release): bump version to 1.1.0 [squeez-release-bot]
206
+ - chore(release): bump version to 1.0.0 [skip release]
207
+ - refactor(hosts): extract HostAdapter trait + migrate Claude Code and Copilot (#42)
208
+ - ci: conventional-commit-driven auto-release (#40)
209
+ - chore(gov): issue-form templates + refined PR template (#39)
210
+ - docs: update changelog and benchmarks for v0.4.1 [skip release] (#33)
211
+ - chore(release): bump version to 0.4.1
212
+ - chore(release): bump version to 0.4.0
213
+ - docs: update changelog and benchmarks for v0.3.2 [skip release] (#30)
214
+ - chore: bump version to 0.3.2
215
+ - docs: add shields.io badge for changelog link
216
+ - chore: bump version to 0.3.1
217
+ - chore: bump version to 0.2.3
218
+ - docs: update README with 11 MCP tools, structured memory, and advanced tunables
219
+ - chore: bump version to 0.2.2
220
+ - docs: rewrite README with full install instructions (curl/npm/cargo) and all commands
221
+ - chore: refresh bench/report.md from latest run [skip release]
222
+ - chore(ci): remove promote-develop workflow (re-adding to fix broken registration)
223
+ - chore: bump version to 0.2.1 + auto-release on merge to main [skip release]
224
+ - chore: bump version to 0.2.0; add Cargo.toml metadata
225
+ - ci: PR template, linked-issue enforcement, no-claude-trailer check
226
+ - docs: update README with PR1+PR2 features, fresh benchmarks, changelog
227
+ - ci: auto-delete branches after PR merge
228
+ - docs: update Windows installation instructions and prerequisites in README
229
+ - docs: add Windows support and Rust install instructions to README
230
+ - refactor: use session::home_dir() in config and init (Windows compat)
231
+ - ci: trigger promote workflow (test)
232
+ - ci(workflow): avoid failing promote job when PR creation is not permitted; add PR_CREATION_TOKEN guidance
233
+ - docs(readme): add changelog, contribution workflow, and benchmark notes
234
+ - ci(workflow): create/update PR from develop to main on push
235
+ - chore: add .worktrees/ to gitignore
236
+ - chore: add docs/ to gitignore (local design specs)
237
+ - docs: update README for GitHub Copilot CLI support
238
+ - security: fix remaining LOW findings in wrap.rs
239
+ - security: fix 2 follow-up findings from second audit
240
+ - security: fix all 8 findings from security audit
241
+ - ci: build and install binary before running benchmarks
242
+ - chore: add GitHub sponsor button
243
+ - chore: ignore .omc/ directory, remove from tracking
244
+ - chore: update benchmark report (7/7 passing)
245
+ - docs: update README — real benchmarks, Phase 2 config, how it works
246
+ - style: cargo fmt on session.rs and test_session.rs
247
+ - chore: open source files — README, LICENSE, CI/release workflows, install.sh
248
+ - chore: scaffold squeez Rust project
249
+
250
+ ### Fixed
251
+ - fix(log-template): recognize number+unit tokens so latency logs collapse (#164)
252
+ - fix(fs): stop collapsing ls/find listings to "N modified" count (#151)
253
+ - fix(hooks): strip --no-squeez marker in codex and gemini pretooluse hooks (#146)
254
+ - fix(release): make publish-npm non-blocking; add npm whoami diagnostic
255
+ - fix(codex): emit current PreToolUse/SessionStart hook shapes; silence PostToolUse (#143)
256
+ - fix(claude-code): stop writing statusline.sh + remove orphans on install (#126)
257
+ - fix(claude-code): stop registering squeez statusLine + delegate install to adapter (#124)
258
+ - fix(compress-output): close PostToolUse compression gaps for Read/Edit/Write (#121)
259
+ - fix(claude-code): write hooks under settings.hooks.<event>, not at top level (#119)
260
+ - fix(opencode): shell-quote bash command before prepending `squeez wrap` (#115)
261
+ - fix(statusline): show compression % and fix Python heredoc expansion bug
262
+ - plan-mode passthrough + release description body (#95)
263
+ - fix(session-start): health check missed top-level event keys (#92)
264
+ - fix(hosts): expand PreToolUse matcher to cover Read, Grep, Glob, Agent, Task (#86)
265
+ - fix(json_util,statusline): whitespace-tolerant JSON parser + UTF-8 statusline on Windows (#81)
266
+ - fix(hosts): preserve user settings.json when existing JSON fails to parse (#83)
267
+ - prevent OOM from unbounded file reads + data integrity fixes
268
+ - fix(ci): use native ubuntu-24.04-arm runner for aarch64 build
269
+ - eliminate memory leaks causing 16 GB RAM on MCP server startup (#79)
270
+ - fix(hooks): add hookEventName to PreToolUse hookSpecificOutput (#78)
271
+ - fix(opencode): align plugin with PluginModule SDK shape (default export + server map) (#72)
272
+ - fix(ci): push release docs directly to main (loop-safe) (#68)
273
+ - back Copilot BUDGET_HARD with Read/Grep hook + update upstream refs (#65)
274
+ - fix(ci): startsWith guard for auto-release recursion (#46)
275
+ - fix(ci): tighten auto-release bump detection + fix tag push (#44)
276
+ - fix(ci): add --allow-dirty to cargo publish for Cargo.lock changes
277
+ - fix(ci): skip publish gracefully when version already exists on crates.io/npm
278
+ - fix(ci): run update-docs even if publish jobs fail (already published)
279
+ - fix(ci): continue-on-error for publish jobs so update-docs always runs
280
+ - fix(ci): add pull-requests write permission to update-docs job
281
+ - fix(update): cargo-managed self-update + Windows deferred install + session update check (#27)
282
+ - fix(ci): update-docs creates PR instead of pushing directly to protected main
283
+ - fix(npm): copy README.md into npm package before publish; add readme field
284
+ - fix(ci): add toolchain: stable to all dtolnay/rust-toolchain steps
285
+ - fix(ci): handle no previous tags in generate-changelog.sh (pipefail + grep -v)
286
+ - fix(ci): dispatch release.yml from auto-release to bypass GITHUB_TOKEN chain limit [skip release]
287
+ - fix(ci): fix flaky test tmp dir collision + simplify auto-release
288
+ - fix(bench): exclude synthetic fixtures from filter-mode bench/run.sh
289
+ - fix(ci): remove secrets in step if-conditions — check token inside script instead
290
+ - fix(ci): rename promote-develop → promote-to-main to fix broken workflow registration
291
+ - fix(ci): bump github-script to v7 in promote-develop to force workflow re-registration
292
+ - fix(compress_md): use byte slice comparison to avoid UTF-8 char boundary panic
293
+ - fix(statusline): remove Ctx% — show only squeez compression metrics
294
+ - fix(statusline): green ✓, proper capitalization, real-time context %, all metrics
295
+ - resolve gap analysis — new handlers, wider redundancy window, token budget
296
+ - install.sh — clarify PostToolUse no-matcher intent, guard version echo
297
+ - wrap.rs — safe git hex check, O(n) dedup, full cmd in event log
298
+ - use ends_with for files_committed check in init finalize
299
+ - json_util — guard extract_u64 empty digit, add json_util test coverage
300
+ - add pre-flight binary check to bench/run.sh
301
+ - atomic settings.json write + uninstall safety guards
302
+ - harden pretooluse hook (shlex.quote, error handling, single path source)
303
+ - wrap — process_group(0) for correct signal forwarding, tighten is_streaming
304
+
12
305
  ## [1.31.0] - 2026-06-22
13
306
 
14
307
  ### Added
@@ -7616,7 +7909,7 @@ conventional commit messages on `main`.
7616
7909
  ## [1.5.1] and earlier
7617
7910
  See the [git tag history](https://github.com/claudioemmanuel/squeez/tags) for pre-1.5.2 details. release-please takes over changelog generation from 1.7.1 onwards.
7618
7911
 
7619
- [Unreleased]: https://github.com/claudioemmanuel/squeez/compare/v1.31.0...HEAD
7912
+ [Unreleased]: https://github.com/claudioemmanuel/squeez/compare/v1.31.1...HEAD
7620
7913
  [1.7.0]: https://github.com/claudioemmanuel/squeez/compare/v1.6.1...v1.7.0
7621
7914
  [1.6.1]: https://github.com/claudioemmanuel/squeez/compare/v1.6.0...v1.6.1
7622
7915
  [1.6.0]: https://github.com/claudioemmanuel/squeez/compare/v1.5.2...v1.6.0
@@ -7659,3 +7952,4 @@ See the [git tag history](https://github.com/claudioemmanuel/squeez/tags) for pr
7659
7952
  [1.29.0]: https://github.com/claudioemmanuel/squeez/releases/tag/v1.29.0
7660
7953
  [1.30.0]: https://github.com/claudioemmanuel/squeez/releases/tag/v1.30.0
7661
7954
  [1.31.0]: https://github.com/claudioemmanuel/squeez/releases/tag/v1.31.0
7955
+ [1.31.1]: https://github.com/claudioemmanuel/squeez/releases/tag/v1.31.1
package/README.md CHANGED
@@ -180,45 +180,45 @@ Measured on macOS (Apple Silicon). Token count = `chars / 4` (matches Claude's ~
180
180
 
181
181
  | Scenario | Before | After | Reduction | Latency |
182
182
  |----------|--------|-------|-----------|---------|
183
- | `summarize_huge` | 82,257 tk | 445 tk | **-99%** | 58.2 ms |
184
- | `repetitive_output` | 4,692 tk | 37 tk | **-99%** | 227 µs |
185
- | `xcode_build` | 1,881 tk | 17 tk | **-99%** | 57 µs |
186
- | `high_context_adaptive` | 4,418 tk | 61 tk | **-99%** | 975 µs |
187
- | `agent_directory_output` | 3,348 tk | 167 tk | **-95%** | 604 µs |
188
- | `ps_aux` | 40,373 tk | 2,338 tk | **-94%** | 897 µs |
189
- | `git_log_200` | 2,692 tk | 275 tk | **-90%** | 206 µs |
190
- | `tsc_errors` | 731 tk | 101 tk | **-86%** | 24 µs |
191
- | `cargo_build_noisy` | 2,106 tk | 439 tk | **-79%** | 252 µs |
192
- | `docker_logs` | 665 tk | 186 tk | **-72%** | 62 µs |
193
- | `curl_html_response` | 2,181 tk | 626 tk | **-71%** | 45 µs |
194
- | `git_status` | 50 tk | 16 tk | **-68%** | 14 µs |
195
- | `pytest_failures` | 3,402 tk | 1,175 tk | **-65%** | 306 µs |
196
- | `verbose_app_log` | 4,957 tk | 1,978 tk | **-60%** | 592 µs |
197
- | `npm_install` | 524 tk | 218 tk | **-58%** | 47 µs |
198
- | `crosscall_redundancy_3x` | 486 tk | 237 tk | **-51%** | 51.9 ms |
199
- | `ls_la` | 1,782 tk | 872 tk | **-51%** | 42 µs |
200
- | `env_dump` | 441 tk | 287 tk | **-35%** | 24 µs |
201
- | `git_copilot` | 640 tk | 421 tk | **-34%** | 101 µs |
202
- | `find_deep` | 424 tk | 279 tk | **-34%** | 24 µs |
203
- | `agent_heavy` | 2,306 tk | 1,565 tk | **-32%** | 617 µs |
204
- | `md_prose` | 187 tk | 138 tk | **-26%** | 814 µs |
205
- | `md_claude_md` | 316 tk | 247 tk | **-22%** | 991 µs |
206
- | `claude_md_overhead` | 717 tk | 635 tk | **-11%** | 25 µs |
207
- | `git_diff` | 502 tk | 497 tk | **-1%** | 43 µs |
208
- | `jest_failures` | 451 tk | 448 tk | **-1%** | 54 µs |
209
- | `state_first_simulation` | 182 tk | 181 tk | **-1%** | 5 µs |
210
- | `kubectl_pods` | 1,513 tk | 1,513 tk | **-0%** | 32 µs |
183
+ | `summarize_huge` | 82,257 tk | 445 tk | **-99%** | 56.7 ms |
184
+ | `repetitive_output` | 4,692 tk | 37 tk | **-99%** | 176 µs |
185
+ | `xcode_build` | 1,881 tk | 17 tk | **-99%** | 47 µs |
186
+ | `high_context_adaptive` | 4,418 tk | 61 tk | **-99%** | 766 µs |
187
+ | `agent_directory_output` | 3,348 tk | 167 tk | **-95%** | 470 µs |
188
+ | `ps_aux` | 40,373 tk | 2,338 tk | **-94%** | 753 µs |
189
+ | `git_log_200` | 2,692 tk | 275 tk | **-90%** | 168 µs |
190
+ | `tsc_errors` | 731 tk | 101 tk | **-86%** | 16 µs |
191
+ | `cargo_build_noisy` | 2,106 tk | 439 tk | **-79%** | 208 µs |
192
+ | `docker_logs` | 665 tk | 181 tk | **-73%** | 50 µs |
193
+ | `curl_html_response` | 2,181 tk | 626 tk | **-71%** | 37 µs |
194
+ | `git_status` | 50 tk | 16 tk | **-68%** | 12 µs |
195
+ | `pytest_failures` | 3,402 tk | 1,175 tk | **-65%** | 244 µs |
196
+ | `verbose_app_log` | 4,957 tk | 1,978 tk | **-60%** | 478 µs |
197
+ | `npm_install` | 524 tk | 218 tk | **-58%** | 41 µs |
198
+ | `crosscall_redundancy_3x` | 486 tk | 237 tk | **-51%** | 51.6 ms |
199
+ | `ls_la` | 1,782 tk | 872 tk | **-51%** | 33 µs |
200
+ | `env_dump` | 441 tk | 287 tk | **-35%** | 19 µs |
201
+ | `git_copilot` | 640 tk | 421 tk | **-34%** | 85 µs |
202
+ | `find_deep` | 424 tk | 279 tk | **-34%** | 17 µs |
203
+ | `agent_heavy` | 2,306 tk | 1,565 tk | **-32%** | 506 µs |
204
+ | `md_prose` | 187 tk | 138 tk | **-26%** | 654 µs |
205
+ | `md_claude_md` | 316 tk | 247 tk | **-22%** | 808 µs |
206
+ | `claude_md_overhead` | 717 tk | 635 tk | **-11%** | 19 µs |
207
+ | `git_diff` | 502 tk | 497 tk | **-1%** | 33 µs |
208
+ | `jest_failures` | 451 tk | 448 tk | **-1%** | 43 µs |
209
+ | `state_first_simulation` | 182 tk | 181 tk | **-1%** | 4 µs |
210
+ | `kubectl_pods` | 1,513 tk | 1,513 tk | **-0%** | 25 µs |
211
211
 
212
212
  ### Aggregate
213
213
 
214
214
  | Metric | Value |
215
215
  |--------|-------|
216
- | **Total token reduction** | **90.6%** — 164,224 tk → 15,399 tk |
216
+ | **Total token reduction** | **90.6%** — 164,224 tk → 15,394 tk |
217
217
  | Bash output | **-83.8%** |
218
218
  | Markdown / context files | **-23.5%** |
219
219
  | Wrap / cross-call engine | **-99.2%** |
220
220
  | Quality (signal terms preserved) | **28 / 28 pass** |
221
- | Latency p50 (filter mode) | **4.2 ms** |
221
+ | Latency p50 (filter mode) | **4.1 ms** |
222
222
  | Latency p95 (incl. wrap/summarize) | **52 ms** |
223
223
 
224
224
  ### Estimated cost savings — Claude Sonnet 4.6 · $3.00 / MTok input
@@ -226,8 +226,8 @@ Measured on macOS (Apple Silicon). Token count = `chars / 4` (matches Claude's ~
226
226
  | Usage | Baseline / month | Saved / month |
227
227
  |-------|-----------------|---------------|
228
228
  | 100 calls / day | $18.00 | **$16.31 (91%)** |
229
- | 1,000 calls / day | $180.00 | **$163.12 (91%)** |
230
- | 10,000 calls / day | $1800.00 | **$1631.16 (91%)** |
229
+ | 1,000 calls / day | $180.00 | **$163.13 (91%)** |
230
+ | 10,000 calls / day | $1800.00 | **$1631.34 (91%)** |
231
231
  <!-- BENCHMARK:END -->
232
232
 
233
233
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squeez",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
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",