ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 MiguelMachado-dev

turn-telemetry

直近のターンのテレメトリー(所要時間、最初の token までの時間、最近のターンのスパークライン付き tok/s、出力 token、入力 token とそのうちキャッシュされた量、リクエスト数、ストリーム内で 5s 以上空いた停止)をプロンプト上の帯に表示する Claude Code mod です。応答のストリーミング中は帯がリアルタイムで更新されます。

MiguelMachado-dev@MiguelMachado-dev

MiguelMachado-dev/miguel-mods/tree/main/turn-telemetry

翻訳済み

この mod について

Claude Code 2.1.287 以降が必要です。帯はターミナルと Claude デスクトップアプリの Code タブに表示されます。ほかの画面には描画しません。

コマンド

  • /tps で帯を切り替えます。
  • /tps reset で直近のターンとスパークライン履歴を消去します。

読み取るものと送るもの

mod は Claude Code が各ターンについて報告するタイミングと token 数を読み取り、自分の状態に保持して帯とスパークラインを描画します。ネットワーク通信、モデル呼び出し、ファイル読み取りは一切ありません。

インストール

Claude Code で次を実行します。

/plugin marketplace add MiguelMachado-dev/miguel-mods
/plugin install turn-telemetry@miguel-mods
/reload-plugins

帯が表示されなければ Claude Code を再起動してください。

mod はあなたのマシンの Claude Code 内で、Claude Code と同じアクセス権を持って実行されます。インストール前に hooks のソースを読んでください。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add MiguelMachado-dev/miguel-mods
claude plugin install turn-telemetry
原文 / README

turn-telemetry

A Claude Code mod that draws a band above the prompt with telemetry for the last turn: duration, time to first token, tok/s with a sparkline of recent turns, output tokens, input tokens and how much of them was cached, request count and stalls (gaps of 5s or more in the stream). While a response streams, the band updates live.

Needs Claude Code 2.1.287 or later. The band shows in the terminal and in the Code tab of the Claude desktop app; other surfaces don't draw it.

Commands

  • /tps toggles the band.
  • /tps reset clears the last turn and the sparkline history.

What it reads and sends

The mod reads the timings and token counts Claude Code reports for each turn and keeps them in its own state to draw the band and the sparkline. It makes no network requests, calls no model and reads no files.

Install

In Claude Code:

/plugin marketplace add MiguelMachado-dev/miguel-mods
/plugin install turn-telemetry@miguel-mods
/reload-plugins

If the band doesn't show up, restart Claude Code.

A mod runs inside Claude Code on your machine with the same access Claude Code has. Read the source in hooks before installing.

License

MIT. See LICENSE.

関連作品