@sliday/tamp 0.8.19 → 0.8.20

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/config.js +3 -1
  2. package/metadata.js +13 -0
  3. package/package.json +1 -1
package/config.js CHANGED
@@ -278,7 +278,9 @@ export const CONFIG_TEMPLATE = `# Tamp configuration
278
278
  # Compression level 1..9 (or: conservative, balanced, aggressive, max)
279
279
  # level=5
280
280
 
281
- # Compression preset (conservative | balanced | aggressive)
281
+ # Compression preset (conservative | balanced | aggressive | recommended)
282
+ # "recommended" is the measured best trade-off: aggressive minus llmlingua.
283
+ # Pair it with TAMP_MIN_SIZE=1024 (see whitepaper, Recommended Defaults).
282
284
  # TAMP_COMPRESSION_PRESET=balanced
283
285
 
284
286
  # Explicit stages (overrides preset if set)
package/metadata.js CHANGED
@@ -139,6 +139,19 @@ export const COMPRESSION_PRESETS = Object.freeze({
139
139
  risk: 'Medium (may lose comments, verbose text)',
140
140
  level: 8,
141
141
  },
142
+ // Autoresearch study (v0.8.19, deepseek-v4-flash judge): aggressive minus
143
+ // llmlingua scored 79.95% input savings at 20/20 fact retention, vs 68.51%
144
+ // for full aggressive — llmlingua shadowed textpress on large blocks and
145
+ // corrupted numerals on small ones. Pair with TAMP_MIN_SIZE=1024.
146
+ // See bench/recommend-eval.js and the whitepaper's Recommended Defaults section.
147
+ recommended: {
148
+ name: 'Recommended',
149
+ description: 'Best measured savings/quality trade-off (aggressive minus llmlingua; use TAMP_MIN_SIZE=1024)',
150
+ stages: ['cmd-strip', 'minify', 'toon', 'strip-lines', 'whitespace', 'dedup', 'diff', 'read-diff', 'prune', 'strip-comments', 'textpress', 'br-cache', 'disclosure', 'bm25-trim'],
151
+ expectedSavings: '63-80%',
152
+ risk: 'Medium (may lose comments, paraphrase verbose text)',
153
+ level: null,
154
+ },
142
155
  })
143
156
 
144
157
  // Flat 1..9 compression ladder, parallel to the named presets. Each level
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "sidecar/server.py",
15
15
  "sidecar/requirements.txt"
16
16
  ],
17
- "version": "0.8.19",
17
+ "version": "0.8.20",
18
18
  "description": "Token compression proxy for coding agents. Works with Claude Code, Aider, Cursor, Cline, Windsurf. 60-70% combined input+output savings with Caveman-integrated presets and per-command rewriters.",
19
19
  "type": "module",
20
20
  "main": "index.js",