dHR-P/dsh-anchored-wsl0

dsh-anchored-wsl

极简锚定预设安装插件,采用两阶段方案(首轮极简锚定 We 思维链,工具调用后切换完整标准工具),自动将预设放入本地目录。

AI 分析

核心用途是优化 WSL 环境下的 Agent 启动与工具调用流程,解决 Windows 平台首轮工具调用报错问题。适合在 Windows WSL 环境下使用 DSH 的开发者。

包名
dsh-anchored-wsl
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dHR-P/dsh-anchored-wsl

使用

  1. 新开会话并选择本预设
  2. 正常发送你的第一条消息——界面会先出现一条自动的 Begin. 预热消息,模型以纯极简状态输出(We 思维链);随后你的真实消息自动进入第二轮,工具与工作区上下文全部恢复
  3. 工具调用详情用官方轨迹视图查看

Windows 注意:预热回合的官方 bash 工具在 win32 可能直接报错(terminal inspection is unsupported on platform win32——官方限制)。这是预期的:模型首次工具调用后立即晋升,第二步起全工具(pwsh / gitbash / wsl)可用,不会卡死。若想预热回合也用可用 shell,可把 shellTools: [bash] 改为 shellTools: [gitbash]

配置

编辑 ~/.dsh/.agent-presets/anchored-wsl/agent.cordis.yml

  • 切换 bootstrap shell 到 WSL(需先 wsl --install -d Ubuntu 并重启):把 tool-bootstrap 行的 shellTools: [gitbash] 改为 shellTools: [wsl]
  • 晋升时机promoteOn: either(默认)| tool-call | assistant-message