展示HN:你在Claude Code上花了多少小时?(命令行工具)
我创建了一个零依赖的命令行工具,它可以读取你的Claude Code会话日志(~/.claude/projects/),并准确显示你在上面花费的时间。
<p>即时运行:
npx cc-session-stats
<p>显示内容:总小时数、会话次数、最长会话、星期几热力图、连续使用天数以及健康警告。
<p>我的结果:3485次会话,116小时,47/50个活跃天数,35天连续使用。
该工具提示:“休息日存在是有原因的。”
<p>GitHub: <a href="https://github.com/yurukusa/cc-session-stats" rel="nofollow">https://github.com/yurukusa/cc-session-stats</a>
查看原文
I built a zero-dependency CLI that reads your Claude Code session logs (~/.claude/projects/) and shows exactly how much time you spend with it.<p>Instant run:
npx cc-session-stats<p>Shows: total hours, sessions, longest session, day-of-week heatmap, consecutive streak, and health warnings.<p>My results: 3,485 sessions, 116h, 47/50 active days, 35-day streak.
The tool said: "Rest days exist for a reason."<p>GitHub: <a href="https://github.com/yurukusa/cc-session-stats" rel="nofollow">https://github.com/yurukusa/cc-session-stats</a>