yukitakasama/dsh-wsl-preset1

@yukitakasama/dsh-wsl-preset

DeepSeek Harness plugin: installs the 'wsl' agent preset — the Windows WSL variant of the standard preset that routes the bash tool through Windows Subsystem for Linux (WSL), with automatic shell discovery and sandbox-aware gating.

AI 分析

适合在 Windows 环境下需要通过 WSL 执行命令的 DSH 用户。

パッケージ
@yukitakasama/dsh-wsl-preset
バージョン
0.3.0
ライセンス
MIT
最終更新
2026/09/12

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yukitakasama/dsh-wsl-preset

ドキュメント

README 全文を読む ↗

使用

  1. Web 界面新建会话,选择 WSL 模式
  2. 二选一启用命令执行:
    • 把会话沙箱切到完全访问,之后所有命令直接走 WSL;
    • 或保持 workspace-write,让模型在第一次调用失败后按提示用 sandbox_permissions: "danger-full-access" + justification 单次升级(走正常审批流程)。

配置

预设配置agent-presets/wsl/agent.cordis.ymlwsl-executor):

字段默认说明
timeoutMs120000单次命令默认超时(上限 maxTimeoutMs
maxTimeoutMs600000超时上限
maxOutputBytes64000单流保留字节数(溢出写入 spill 文件)
maxSpillBytes67108864spill 文件上限
graceMs3000终止进程的 SIGTERM→SIGKILL 宽限

插件配置cordis.patch.yml 插入行):

字段默认说明
forcefalse预设已存在时是否用包内文件覆盖(保留用户额外文件)