ztc1522021381/dsh-context-mode ↗★ 0

dsh-context-mode

context-mode adapter for DeepSeek Harness: routes flood-prone tool calls into the context-mode MCP sandbox. Implements the PreToolUse deny + SessionStart routing equivalents that Claude Code gets from hooks. 适合需要减少大段工具输出对上下文占用,并配置工具拦截、截断与路由规则的用户。

패키지
dsh-context-mode
호환성
미검증
Cordis peer 범위
~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 仍挂着。