ztc1522021381/dsh-context-mode ↗★ 0

dsh-context-mode

将易产生大量输出的工具调用路由至 context-mode MCP 沙箱,并提供输出截断策略。 适合需要减少大段工具输出对上下文占用,并配置工具拦截、截断与路由规则的用户。

套件
dsh-context-mode
相容性
待驗證
Cordis 依賴範圍
~4.0.5-alpha.1
版本
0.1.0
授權
MIT
最近更新
2026年10月26日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ztc1522021381/dsh-context-mode

配置

- id: context-mode
  name: dsh-context-mode
  config:
    enabled: true
    denyTools: [web_fetch]
    truncateTools: [pwsh, read, grep, glob]
    maxResultBytes: 20000      # Tier 2 阈值
    minCommandBytes: 0         # 短命令跳过 Tier 1 判定
    readThresholdBytes: 50000  # read 的 Tier 1 提醒线(Tier 2 仍截留)
    interceptSubagent: false
    sectionOrder: 3090         # MCP_SERVERS 是 3100
    serverName: ''             # 留空 = 自动探测

enabled: false 一行回到原生行为,MCP server 仍挂着。