claude-token-saver 2.0.1 → 2.0.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.
- package/README.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
**Save tokens on Claude Code.** Catch the session that suddenly burned 10× your usual input, figure out *why*, and get a one-line remediation you can paste.
|
|
11
11
|
|
|
12
|
-
v1.5 adds three things on top of the original cache
|
|
12
|
+
v1.5 adds three things on top of the original `claude-cache-monitor`:
|
|
13
13
|
- **Spike diagnosis** — detect recent sessions whose input tokens exploded vs. your own baseline, and name the cause (1M context, 5m TTL churn, cache rebuild, chatty output).
|
|
14
14
|
- **1M-context detection** — Opus 4.7+ auto-enables 1M context on Max plans, silently. This tool surfaces it on the statusline as `Ctx 1M` (red) vs. `Ctx 200k` (green), with the OS-specific command to turn it off.
|
|
15
15
|
- **Actionable advice** — OS-aware remediation (`~/.zshrc` vs. `setx`) and the warning for the known `/model` toggle bug ([anthropics/claude-code#31640](https://github.com/anthropics/claude-code/issues/31640)).
|
|
@@ -158,7 +158,7 @@ The Claude Code statusline is event-driven — it only re-renders on assistant m
|
|
|
158
158
|
}
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
Or combine with an existing statusline script — see [`examples/statusline-command.sh`](examples/statusline-command.sh) for a drop-in that prints `user@host:cwd | <
|
|
161
|
+
Or combine with an existing statusline script — see [`examples/statusline-command.sh`](examples/statusline-command.sh) for a drop-in that prints `user@host:cwd | <token-saver segment>`.
|
|
162
162
|
|
|
163
163
|
#### Windows (native PowerShell, not WSL)
|
|
164
164
|
|
|
@@ -230,9 +230,13 @@ When the hook is installed:
|
|
|
230
230
|
## Output Example
|
|
231
231
|
|
|
232
232
|
```
|
|
233
|
-
Claude
|
|
233
|
+
Claude 토큰 아껴쓰기 — Last 30 days
|
|
234
|
+
(claude-token-saver v2.0.1)
|
|
234
235
|
══════════════════════════════════════════════════
|
|
235
236
|
|
|
237
|
+
Context window: 200k ✓ 200k 컨텍스트 (표준)
|
|
238
|
+
(최근 단일 요청 최대 83k 토큰)
|
|
239
|
+
|
|
236
240
|
Summary
|
|
237
241
|
Sessions: 380 | API calls: 10,813 | Model: claude-opus-new
|
|
238
242
|
Cache hit rate: 98.2% | Total input: 1957.94M tokens
|
package/package.json
CHANGED