eshin087/claude-code-mods/tree/main/turn-timer
turn-timer
各ターンの実時間、ツール呼び出し数、出力トークン数、モデルをチャット行として記録し、最近のプロンプトを確認する /timings コマンドを提供する Claude Code mod。
この mod について
Turn Timer
**機能:**各プロンプトにかかった時間を記録し、後から振り返れるようにします。
表示場所:
- 各返信の後、チャットに薄い行として
⏱ 6m 41s · 23 tool calls · 12k tokens written · Opus 5.5が表示されます。transcript に保存されるため、セッションを開き直しても残ります。Claude はこれを読みません(トークンコストなし)。 /timings:このプロジェクトの直近 15 個のプロンプトと、平均・中央値・合計・最長。/timings all:全プロジェクトとプロジェクト別の概要。/timings 40:直近 40 個。
**仕組み:**アプリは各ターンの終了時に正確な実時間を報告します。mod がツール呼び出し数、出力トークン数、モデルを加えて行を追記します。
**費用:**なし。モデル呼び出しはありません。
保存データ:~/.claude/mods-data/turn-timer/<session>.json。セッションごとに 1 ファイルなので、並列セッションが上書きしません。各レコードには時刻、プロジェクト、プロンプト先頭 140 文字、所要時間、ツール呼び出し数、出力トークン数、モデルが含まれます。フォルダーを削除すると履歴を消去できます。
注記:「interrupted」 は途中で停止したターンを示します。デスクトップアプリにはターミナルの 「Worked for…」 行が表示されないため、この mod があります。
インストール
まず作者の 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.
同名の他の作品
- turn-timeranthonyhungnguyen · ★ 0