claude-token-saver 3.2.0 → 3.2.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.
- package/README.en.md +3 -0
- package/README.md +3 -0
- package/bin/cli.js +19 -0
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -251,6 +251,9 @@ Also update `statusLine.command` in `~/.claude/settings.json` to `claude-token-s
|
|
|
251
251
|
|
|
252
252
|
## Release notes
|
|
253
253
|
|
|
254
|
+
### v3.2.1 (2026-07-13)
|
|
255
|
+
- **Instant pattern analysis on first setup** — `install` (including npm postinstall) analyzes your existing session logs inline when no cache exists, so tier-delegation candidates appear from the very first Claude Code session (previously the second).
|
|
256
|
+
|
|
254
257
|
### v3.2.0 (2026-07-13)
|
|
255
258
|
- **Tier classification (T0/T1/T2)** — route-scan grows from a binary easy/other split into three tiers. New signals: mutating tool calls and tool errors; output thresholds auto-calibrate to the user's own distribution (clamped); a dedicated category for pasted screen/log Q&A; conversational episodes (<100 output tokens) excluded. Design and research evidence in `docs/TIER_CRITERIA.md`.
|
|
256
259
|
- **Model-fitting ratchet separated** — promoted delegation rules live in their own file (`.claude/ratchet-model.md` / `~/.claude/ratchet-model.md`), file-level-separated from hand-written rules, managed via `route-scan rules [rm <N>]`; the harness CLAUDE.md block references both files.
|
package/README.md
CHANGED
|
@@ -208,6 +208,9 @@ npm uninstall -g claude-cache-monitor && npm i -g claude-token-saver
|
|
|
208
208
|
|
|
209
209
|
## 릴리스 노트
|
|
210
210
|
|
|
211
|
+
### v3.2.1 (2026-07-13)
|
|
212
|
+
- **최초 설치 시 즉시 패턴 분석** — `install`(npm postinstall 포함)이 캐시가 없으면 기존 세션 로그를 그 자리에서 분석해, 첫 Claude Code 세션부터 티어 위임 후보가 표시됩니다 (기존에는 두 번째 세션부터).
|
|
213
|
+
|
|
211
214
|
### v3.2.0 (2026-07-13)
|
|
212
215
|
- **티어 분류 (T0/T1/T2)** — route-scan이 이분법(easy/그외)에서 3티어로 진화. 신호에 변경성 도구 수·도구 에러 수 추가, 출력 임계값은 사용자 분포 기반 자동 보정(클램프 포함), 붙여넣은 화면·로그 질문 전용 카테고리 신설, 대화성 응답(출력 <100토큰) 제외. 기준 설계·리서치 근거는 `docs/TIER_CRITERIA.md`.
|
|
213
216
|
- **모델 피팅 랫쳇 분리** — 승격된 위임 룰은 별도 파일(`.claude/ratchet-model.md` / `~/.claude/ratchet-model.md`)에 저장돼 사용자 룰과 파일 단위로 분리. `route-scan rules [rm <N>]`로 관리하며, 하네스 CLAUDE.md 블록이 두 파일을 함께 참조.
|
package/bin/cli.js
CHANGED
|
@@ -412,6 +412,25 @@ async function main() {
|
|
|
412
412
|
print('legacy /token-monitor', r.legacy);
|
|
413
413
|
console.log(' (consolidated into the skill — same workflow, triggered by intent)');
|
|
414
414
|
}
|
|
415
|
+
// First-time setup: analyze existing session logs right away so the
|
|
416
|
+
// very first session already sees delegation candidates — without this,
|
|
417
|
+
// the initial scan would only start from the first session's hook and
|
|
418
|
+
// its results would surface one session late. Runs inline (a few
|
|
419
|
+
// seconds on a typical 14-day history): a detached child can be reaped
|
|
420
|
+
// by sandboxed installers before it finishes, and postinstall carries
|
|
421
|
+
// `|| true` so a failure here never breaks the install.
|
|
422
|
+
{
|
|
423
|
+
const rs = await import('../src/route-scan.js');
|
|
424
|
+
if (!rs.readRouteScan()) {
|
|
425
|
+
try {
|
|
426
|
+
console.log('');
|
|
427
|
+
console.log(' route-scan: 기존 세션 로그의 사용 패턴을 분석하는 중...');
|
|
428
|
+
const cache = await rs.runRouteScan({ days: 14 });
|
|
429
|
+
console.log(` route-scan: 에피소드 ${cache.totalEpisodes}건 분석 완료 — 위임 후보 ${cache.candidates.length}건.`);
|
|
430
|
+
console.log(' (다음 Claude Code 세션에서 티어 위임 후보가 표시됩니다)');
|
|
431
|
+
} catch { /* hook-triggered scan covers it on first session instead */ }
|
|
432
|
+
}
|
|
433
|
+
}
|
|
415
434
|
console.log('');
|
|
416
435
|
console.log('Open Claude Code in any directory and just mention:');
|
|
417
436
|
console.log(' "cache hit rate" / "1M context" / "5H cap" — the skill auto-activates.');
|
package/package.json
CHANGED