hj01857655/dsh-tool-stats ↗★ 0

dsh-tool-stats

统计工具调用次数并识别未使用的工具 适合需要清理冗余工具、优化智能体配置的开发者。

套件
dsh-tool-stats
相容性
待驗證
Cordis 依賴範圍
^4.0.1
版本
0.5.1
授權
MIT
最近更新
2026年9月19日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hj01857655/dsh-tool-stats

dsh-tool-stats

npm version npm downloads CI license node GitHub stars dsh plugin

Every tool call is counted, and the ones that never fire are named so you can remove them.

Install

dsh plugin --profile web add dsh-tool-stats

What it does

  • Hook tool calls. Records tool name, success/failure, latency, session.
  • Dead-tool detection. Tools configured but never invoked across N sessions are flagged.
  • Failure analysis. Tools with high failure rates are identified with their last error.
  • Recommendations. "Removing 12 unused tools would save ~1.8k tokens per context window."
  • Panel. Usage table, dead/failing sections, recommendations.

CLI

dsh-tool-stats summary    # show tool usage, dead tools, failures, recommendations

License

MIT