b1inkie/dsh-rtk-bridge ↗★ 0

dsh-rtk-bridge

DeepSeek Harness 的 rtk 命令改写桥:把 pwsh/bash 命令经 rtk rewrite 改写后执行,让压缩输出直接进入上下文。 适合需要将pwsh/bash命令改写执行并直接将压缩输出并入上下文的用户。

패키지
dsh-rtk-bridge
호환성
미검증
버전
0.2.0
라이선스
MIT
최근 업데이트
2026. 10. 23.

설치

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

配置

在 profile 的 cordis.patch.yml 中覆盖:

- id: rtk-bridge
  config:
    enabled: true
    mode: rewrite            # rewrite | suggest
    intercept: auto          # auto | patch | dispatch
    tools: [pwsh, bash]
    rtkPath: ''
    installVersion: latest   # 或固定 X.Y.Z
    downloadBase: https://github.com/rtk-ai/rtk/releases
    timeoutMs: 2000
    excludedSubcommands: []
    rewriteWhenConfined: false
    debug: false
字段默认说明
enabledtrue总开关
moderewriterewrite 执行改写命令;suggest 改为 deny 并提示改写命令
interceptautoauto 包装 execute,失败时切 dispatch;patch 只包装;dispatch 只走 tools/execute 短路
tools[pwsh, bash]要拦截的 shell 工具
rtkPath''显式指定 rtk 可执行文件
installVersionlatest/rtk install 下载的版本,可填 X.Y.Z
downloadBase官方 releases下载源,GitHub 不可达时可换镜像
timeoutMs2000rtk rewrite 超时
excludedSubcommands[]不改写的 rtk 子命令
rewriteWhenConfinedfalseWindows 受限沙箱里是否强制尝试
debugfalse输出改写日志