ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 Fazzani

tools-usage

一個 Claude Code 外掛,會開啟側邊面板,依類型(builtin、mcp、skill、agent、plugin、hook)列出工作階段使用過的每個工具,並顯示呼叫次數與估算的 token 用量。

Fazzani@Fazzani

Fazzani/claude-mods/tree/main/plugins/tools-usage

已翻譯

關於這個 mod

一個側邊面板,依類型列出工作階段使用過的每個工具,同時顯示呼叫次數與 token 用量。

◆ Tools                       42 calls · ≈118k tok
████████████████▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▆▆▆▆▆▆▅▅▅▅
■ builtin 61k  ■ mcp 38k  ■ skill 12k  ■ hook 7k
Sort tokens calls name
────────────────────────────────────────────────
● Read                           builtin  14×   31k
  ▰▰▰▰▰▰▰▰▰▰                       ↑1.2k ↓30k ⌂2.1k
● search_code github                 mcp   6×   22k
  ▰▰▰▰▰▰▰▱▱▱                        ↑0.4k ↓21k ⌂0.6k

| 類型 | 統計內容 | | --- | --- | | builtin | Claude Code 內建工具(Bash、Read、Edit、…) | | mcp | mcp__<server>__<tool>,並標示伺服器 | | skill | 透過 Skill 工具呼叫的每個 skill | | agent | 透過 Agent 工具啟動的每種子代理類型 | | plugin | 外掛註冊的工具 | | hook | 設定 hook 依每次 hook 事件注入對話的脈絡 |

  • ↑ 模型寫入的參數(輸出 token)
  • ↓ 模型讀回的結果(輸入 token)
  • ⌂ 每次請求都會送出的工具說明

Token 數量是估算值(約每 4 個字元一個 token)。子代理的工具呼叫也會計入。

指令:/tools-usage 開啟面板,/tools-usage reset 清除統計。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add Fazzani/claude-mods
claude plugin install tools-usage
原文 / README

tools-usage

A side pane listing every tool the session used, grouped by kind, with calls and token consumption.

◆ Tools                       42 calls · ≈118k tok
████████████████▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▆▆▆▆▆▆▅▅▅▅
■ builtin 61k  ■ mcp 38k  ■ skill 12k  ■ hook 7k
Sort tokens calls name
────────────────────────────────────────────────
● Read                           builtin  14×   31k
  ▰▰▰▰▰▰▰▰▰▰                       ↑1.2k ↓30k ⌂2.1k
● search_code github                 mcp   6×   22k
  ▰▰▰▰▰▰▰▱▱▱                        ↑0.4k ↓21k ⌂0.6k

| Kind | What it counts | | --- | --- | | builtin | Claude Code's own tools (Bash, Read, Edit, …) | | mcp | mcp__<server>__<tool>, labelled with the server | | skill | Each skill invoked through the Skill tool | | agent | Each subagent type launched through the Agent tool | | plugin | Tools a plugin registered | | hook | Context that settings hooks injected into the conversation, per hook event |

  • ↑ the arguments the model wrote (output tokens)
  • ↓ the result the model read back (input tokens)
  • ⌂ the tool's description, which is sent with every request

Token counts are estimates (about 4 characters per token). Subagents' tool calls are included.

Commands: /tools-usage opens the pane, /tools-usage reset clears the counts.

更多類似作品