技能 效率工具 实时显示Token使用量与节省估算

实时显示Token使用量与节省估算

v20260803
caveman-stats
该技能提供实时、非AI估算的Token消耗量和潜在成本节约统计数据。它直接读取会话日志,透明地显示了规则开销和净节省额,帮助用户准确评估复杂AI操作的效率和成本影响。
获取技能
53 次下载
概览

This skill is delivered by hooks/caveman-stats.js (read by hooks/caveman-mode-tracker.js on /caveman-stats). The model does not need to do anything when this skill fires — the hook returns decision: "block" with the formatted stats as the reason. The user sees the numbers immediately.

Output also includes Est. rule overhead and Est. net lines wherever a savings estimate exists with a known turn count. Rule overhead is the estimated per-turn INPUT-token cost of the injected caveman rules (default 1,250 tokens/turn, override with CAVEMAN_RULE_OVERHEAD_TOKENS) times the turn count. Net is savings minus that overhead — when negative, the output says so plainly and suggests turning caveman off for that workload, rather than hiding the net-negative regime behind a gross-savings number (see docs/HONEST-NUMBERS.md).

信息
Category 效率工具
Name caveman-stats
版本 v20260803
大小 1.13KB
更新时间 2026-08-04
语言