dd2673/dsh-rtk0

dsh-rtk

RTK (Rust Token Killer) native plugin for DSH: auto-rewrites model shell commands to RTK-filtered equivalents through the official tools/execute hook, compressing tool output before it reaches the LLM context.

AI 分析

核心用于压缩工具输出以节省Token。适合需要频繁执行Shell命令并希望减少LLM上下文消耗的用户,需本地配置RTK二进制路径。

パッケージ
dsh-rtk
バージョン
0.1.0
ライセンス
NOASSERTION
最終更新
2026/08/16

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dd2673/dsh-rtk

ドキュメント

README 全文を読む ↗

使用发布后的不可变 commit;首次安装会提示 pnpm 允许执行 prepare。

dsh plugin --profile demo add github:dd2673/dsh-rtk#

配置

类型默认说明
enabledbooleantrue插件总开关
announceToAgentbooleantrue是否向 Agent 宣告插件
rtkBinstringrtkRTK 二进制路径(可用绝对路径)
askMode'rewrite' | 'passthrough'rewritertk rewrite 退出码 3(ask)时的处理
excludeCommandsstring[][]前缀匹配、永不重写的命令
interceptedToolsstring[]['pwsh']被拦截改写的工具名
defaultTimeoutMsnumber120000模型未指定 timeoutMs 时的超时