ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 eshin087

turn-timer

一个 Claude Code mod,把每轮的实际耗时、工具调用次数、输出 token 数和模型记录为聊天行,并提供 /timings 命令查看最近的提示。

eshin087@eshin087

eshin087/claude-code-mods/tree/main/turn-timer

已翻译

关于这个 mod

Turn Timer

**功能:**记录每个提示耗时多久,方便之后回看。

查看位置:

  • 每次回复后,聊天中会出现一行暗色记录:⏱ 6m 41s · 23 tool calls · 12k tokens written · Opus 5.5。它会保存到 transcript 中,因此重新打开会话时仍然存在。Claude 不会读取它(不消耗 token)。
  • /timings:当前项目最近 15 个提示,包含平均值、中位数、总计和最长耗时。
  • /timings all:所有项目,以及按项目汇总。
  • /timings 40:最近 40 个提示。

**工作方式:**应用会在每轮结束时报告该轮的准确实际耗时。mod 添加工具调用次数、输出 token 数和模型,然后附加这一行。

**费用:**无。不调用模型。

保存的数据:~/.claude/mods-data/turn-timer/<session>.json,每个会话一个文件(因此并行会话不会互相覆盖)。每条记录包含时间、项目、提示的前 140 个字符、耗时、工具调用次数、输出 token 数和模型。删除该文件夹即可清除历史记录。

备注:「interrupted」 表示你停止了该轮。桌面应用不会显示终端的 「Worked for…」 行,这就是它存在的原因。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add eshin087/claude-code-mods
claude plugin install turn-timer
原文 / README

Turn Timer

What it does: records how long every prompt took, so you can look back later.

Where you see it:

  • After every reply, a dim row in the chat: ⏱ 6m 41s · 23 tool calls · 12k tokens written · Opus 5.5. It is saved in the transcript, so it's still there when you reopen the session. Claude never reads it (no token cost).
  • /timings: the last 15 prompts in this project, with average, median, total and longest.
  • /timings all: every project, plus a per-project summary.
  • /timings 40: the last 40.

How it works: the app reports each turn's exact wall-clock length when it ends. The mod adds tool-call count, output tokens and model, then appends the row.

Cost: none. No model calls.

Data saved: ~/.claude/mods-data/turn-timer/<session>.json, one file per session (so parallel sessions never overwrite each other). Each record holds the time, project, first 140 characters of the prompt, duration, tool calls, output tokens and model. Delete the folder to wipe history.

Notes: "interrupted" marks turns you stopped. The desktop app does not show the terminal's "Worked for…" line, which is why this exists.

其他同名作品

更多类似作品