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.

包名
dsh-rtk
版本
0.1.0
许可证
NOASSERTION
最近更新
2026年8月16日

安装

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

使用发布后的不可变 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 时的超时