@sliday/tamp 0.5.0 → 0.5.1

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 (2) hide show
  1. package/README.md +18 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -48,7 +48,7 @@ Auto-detects API format, compresses tool output, forwards upstream. Error result
48
48
  | `diff` | Replace similar re-reads with diffs |
49
49
  | `prune` | Remove low-value metadata |
50
50
 
51
- Opt-in lossy stages: `strip-comments`, `textpress` (LLM semantic compression)
51
+ Opt-in stages: `strip-comments`, `textpress` (LLM semantic compression), `graph` (session-scoped dedup across requests — shines on long Codex/Claude plan sessions that re-read the same files across turns, up to -99% per repeat block)
52
52
 
53
53
  ## Quick Start
54
54
 
@@ -59,11 +59,27 @@ curl -fsSL https://tamp.dev/setup.sh | bash
59
59
  # Option B: Manual
60
60
  npx @sliday/tamp
61
61
  export ANTHROPIC_BASE_URL=http://localhost:7778 # Claude Code
62
- export OPENAI_API_BASE=http://localhost:7778/v1 # Codex CLI, Aider, Cursor
62
+ export OPENAI_API_BASE=http://localhost:7778/v1 # Aider, Cursor, Cline
63
63
  ```
64
64
 
65
65
  Use your agent as normal — Tamp compresses silently.
66
66
 
67
+ ### Codex CLI
68
+
69
+ Codex CLI reads its upstream from `~/.codex/config.toml`, not `OPENAI_API_BASE`. Add a custom provider:
70
+
71
+ ```toml
72
+ model_provider = "tamp"
73
+
74
+ [model_providers.tamp]
75
+ name = "Tamp Proxy"
76
+ base_url = "http://localhost:7778/v1"
77
+ env_key = "OPENAI_API_KEY"
78
+ wire_api = "responses"
79
+ ```
80
+
81
+ Then `export OPENAI_API_KEY=sk-...` and run `codex` or `codex exec "..."` as usual. Tamp routes `/v1/responses` through the `openai-responses` adapter and compresses every `function_call_output` block.
82
+
67
83
  ## Configuration
68
84
 
69
85
  Run `tamp init` to create `~/.config/tamp/config`. All variables work via env or config file.
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "stats.js",
12
12
  "lib/"
13
13
  ],
14
- "version": "0.5.0",
14
+ "version": "0.5.1",
15
15
  "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.",
16
16
  "type": "module",
17
17
  "main": "index.js",