Aeternus123/dsh-rtk-filter2

dsh-rtk-filter

DSH plugin: pipes oversized command output through the external rtk CLI and hands the model RTK's condensed output instead of the raw text (a tools/post-execute result transformer).

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

安装

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

配置项

配置类型默认说明
enabledbooleantrue总开关;false 时插件完全空转(不注册任何监听器)
commandstring'rtk'rtk 可执行文件;裸名先走 PATH,再自动探测候选目录(Homebrew/Rustup 等),或直接写绝对路径
argsstring[][]透传给 rtk 的附加参数;通用推荐 ['pipe'](见下节)
toolsstring[]['bash', 'job_output']需要过滤的工具名;可加 run_codepwsh
minBytesnumber2048低于此字节数的输出直接放行(避免每条命令都付 RTK 延迟)
timeoutMsnumber15000rtk 超时;超时则 SIGKILL 整个进程组并保留原始输出
noticebooleantrue替换文本中追加 [rtk: output condensed N → M bytes] 提示行

使用应用自带 node 运行(stub rtk 位于 tests/bin/rtk)

/Applications/DeepSeek\ Harness.app/Contents/Resources/dsh/node/bin/node --test tests/rtk-filter.test.mjs