ClaudeMods
☰
ZH-TW
● 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.

其他同名作品

更多類似作品