展示HN:你在Claude Code上花了多少小时?(命令行工具)

1作者: yurukusa30 天前原帖
我创建了一个零依赖的命令行工具,它可以读取你的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 (~&#x2F;.claude&#x2F;projects&#x2F;) 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&#x2F;50 active days, 35-day streak. The tool said: &quot;Rest days exist for a reason.&quot;<p>GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;yurukusa&#x2F;cc-session-stats" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yurukusa&#x2F;cc-session-stats</a>