DeepSeek Harness plugin

dsh-winget

Windows Package Manager: search, install, upgrade, uninstall, import/export and pin software through native tools.

Jump to install

Source facts

Repository
WODE25500/dsh-winget
Latest update
Aug 21, 2026
Category
Development & Runtime
GitHub stars
0

Install

Start with a prompt that asks an agent to read the source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to read the page and repository first.

Do not install anything yet. Read this DeepSeek Harness plugin and explain what it does, which files, networks, or credentials it can access, and how to install and remove it.

Plugin page: https://deepseekplugins.org/plugins/WODE25500/dsh-winget
GitHub: https://github.com/WODE25500/dsh-winget
Plugin: dsh-winget
Author: WODE25500
Install command: dsh plugin --profile web add github:WODE25500/dsh-winget

Do not run the install command until I confirm.

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-winget

Windows Package Manager (winget) 的 DeepSeek Harness (dsh) 插件 —— 让 dsh 智能体通过原生工具 搜索、安装、升级、卸载、导入导出 Windows 软件包。所有命令走非交互模式,可在无头环境工作。

> 独立社区项目,非官方。基于微软 winget-cli(MIT)。

特性

  • 9 个原生 dsh 工具:winget_search / winget_show / winget_install / winget_upgrade /

winget_list / winget_uninstall / winget_export / winget_import / winget_pin

  • 附带 SKILL.md 技能文件,指导 agent 何时用、安全规则
  • Schemastery 配置(wingetPath / alwaysAcceptAgreements / timeoutMs)
  • bundle patch 层(cordis.patch.yml),一键加入任意 profile
  • 默认非交互 + 自动接受协议(无头安装必需)
  • 安全设计:install/uninstall/upgrade-all 工具描述明确标注需先确认

前置要求

  • DeepSeek Harness(dsh)
  • Windows 10 1809+ / Windows 11,winget 可用(winget --version

安装

作为 bundle 加入 profile

- insert:
    - id: winget
      name: './src/index.js'
      config:
        wingetPath: winget
        alwaysAcceptAgreements: true

本地 patch 临时加载

pnpm dsh web --patch ./dsh-winget/cordis.patch.yml

然后问 agent:"用 winget_search 帮我找 VS Code 并查看详情"。

工具

工具行为
winget_search搜索软件(query/id/name/moniker/tag)
winget_show软件详情(版本/来源/安装器)
winget_install安装(会改变系统,先确认)
winget_upgrade升级指定或全部(all=true
winget_list已安装列表/筛选/导出
winget_uninstall卸载(必须确认)
winget_export / winget_import清单导出/导入
winget_pin版本固定 add/list/remove

配置项

默认说明
wingetPathwingetwinget.exe 路径
alwaysAcceptAgreementstrue自动接受包/源协议(无头必需)
timeoutMs600000单次调用超时(安装可能很慢)

已知限制

  • 本版本 winget 无 JSON 输出,工具返回表格文本(模型可读)
  • 需要管理员权限的安装可能失败(UAC 无法在非交互模式弹出)——如实返回错误
  • msstore 来源的包部分需登录微软账号

目录结构

dsh-winget/
  src/index.js            # 插件入口:9 个工具 + 配置
  skills/winget/SKILL.md  # agent 技能
  docs/                   # 文档
  cordis.patch.yml        # bundle patch 层

许可

MIT。