dsh-tool-cost-hint:按輪統計工具注入上下文多少 token
dsh-tool-cost-hint 是 qiyuexue-xiyu 維護的 DSH 被動觀察插件,監聽 session/event,在每輪結束時彙總各工具調用次數與注入 token(不報金額)。支持 host 記賬與 Web 對話底部可摺疊提示。非桌面版可用 Release tarball 執行 dsh plugin --profile web add;桌面版需手改 desktop profile 的 package.json 與 bundles。適用於排查長上下文與工具輸出體積,計費請用 dsh-bill 等插件。
閱讀全文