DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

jusspound-netizen /

jusspound-netizen/dsh-token-optimizer

仅 Topic 仓库

Audit DSH agent logs to find redundant calls, retry loops, and duplicate reasoning. Quantifies wasted tokens and dollars so you can optimize your agent's cost.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub项目主页
README来源: main@42fbb509

DSH Token Optimizer

Agensi

A lightweight Python CLI that audits DeepSeek Harness (DSH) agent logs to find wasted tokens.

Instead of just tracking your bill, this tool tells you why you are burning tokens, finding the redundant tool calls and retry loops that agents fall into.

What it does

  • Redundant Calls: Flags the same tool being called with identical arguments.
  • Retry Loops: Detects tools being called repeatedly after an error.
  • Cost Estimate: Quantifies the waste in both tokens and estimated dollars.

Usage

Requires Python 3.9+. No external packages needed.

python scripts/run.py path/to/your_agent_log.txt

Example Output:

=== DSH TOKEN OPTIMIZER REPORT ===

Log analyzed: test_log.txt
Estimated tokens in log: 71

Waste Patterns Detected:
  - Redundant Calls: 4
  - Retry Loops: 4

--- Savings Estimate ---
Potential Tokens Saved: 6,000
Estimated Cost Saved: $0.0180

Recommendation: Implement memoization or a retry backoff policy.

License

MIT


Ready-to-use Agent Skills

Want your AI agent to use these tools automatically? Browse my full catalog of AI agent skills for Jira, Sentry, DevOps, and agent observability on Agensi.

View my Agensi storefront

—/ 5

暂无评分

需要先验证清单

Commit 42fbb5090987

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于