Перейти к основному содержимому
Q

dsh-dev-modes

qing8-max/dsh-dev-modes

Three agent presets in one bundle: software development, game development, and read-only discussion, plus per-session isolation and quiet-run switches. Ships delivery and engine workflow skills for Godot, Unity, Unreal and Cocos. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Установка

dsh plugin --profile web add github:qing8-max/dsh-dev-modes

README

开发模式合集

一个 bundle,三个 Agent 预设,外加配套技能。装一次,三个模式同时出现在「设置 → Agent 预设」。

预设id用途
软件开发swe读仓库与规范 → 规划 → 小步实现 → 用项目自身的构建/测试验证 → 如实汇报
游戏开发game原型先行、真实运行验证手感与性能;内置 Godot / Unity / Unreal / Cocos 工作流
只读讨论discuss能读代码与文档、看图、搜索、提问;不能写文件、跑命令、启动程序

自带技能

skills/ 下六个技能由本插件的 index.js 在启动时注册进技能目录(source: bundled),无需再手动复制到 ~/.dsh/skills:

  • software-delivery:软件交付流程清单
  • game-dev-delivery:游戏交付流程(引擎无关)
  • game-godot、game-unity、game-unreal、game-cocos:各引擎工作流

如果 ~/.dsh/skills/ 里还留着同名副本,运行时会优先使用本包注册的版本;可以删掉副本以免困惑。

自带开关(1.1.0 起)

本包另外挂载两个宿主级插件,所以对所有 Agent 预设生效(包括内置的 Standard / PTC / Minimal / Creator),不只是本包的三个模式。输入框旁边并排两个按钮:

按钮作用默认
🔒 禁止读其它会话每个会话独立:锁定时禁止读取 ~/.dsh/sessions/ 等其它会话文件锁定
🔇 静默运行每个会话独立:启动游戏窗口/编辑器时必须挪到屏幕外或改用无窗口方式,不挡前台、不抢焦点静默

点一下切换,对当前会话生效,下一次模型请求立刻起作用。

状态存储(升级后原有设置保留):

$DSH_HOME/storages/dsh-session-lock/policies.json
$DSH_HOME/storages/dsh-quiet-run/state.json

这两个是提示词级约束,不是强制拦截:模型被告知规则并遵守,但宿主不会物理阻止。

静默运行怎么真正生效

光有规则还不够——窗口得有人去搬。本包内置 helpers/window-quiet.ps1:

# 列出当前可见窗口(句柄|PID|坐标|标题)
powershell.exe -NoProfile -ExecutionPolicy Bypass -File helpers\window-quiet.ps1 -Action list

# 按进程号或标题把窗口移到 (20000,20000)
powershell.exe -NoProfile -ExecutionPolicy Bypass -File helpers\window-quiet.ps1 -Action hide -ProcessId 12345
powershell.exe -NoProfile -ExecutionPolicy Bypass -File helpers\window-quiet.ps1 -Action hide -Title "记事本"

# 全部还原到原坐标
powershell.exe -NoProfile -ExecutionPolicy Bypass -File helpers\window-quiet.ps1 -Action show

静默规则里写的是这个脚本的绝对路径,所以模型拿到的是可直接执行的命令,而不是一句"请把窗口移走"的空话。Godot 项目另有更快的做法:godot_command eval "DisplayServer.window_set_position(Vector2i(20000, 20000))"。

局限:全屏独占的窗口搬不动(Windows 限制),脚本会返回失败——这时模型应当如实告诉你,而不是假装藏好了。

安装

plugin_manager → install_bundle → target = 本目录绝对路径

或:插件页 → Add plugin → 选择本目录。

安装后验证:Config.listConfigs(@deepseek-ai/dsh-agent-preset)应出现 include:preset-swe、include:preset-game、include:preset-discuss;list_plugins 三行均为 active。

已有会话保留原模式,需要新建会话才会使用新模式。

从文件安装 / 分发

本包不依赖仓库里的任何东西:index.js 用 import.meta.url 定位自带技能,其余都是静态文件。因此可直接:

  • 打包:pnpm pack(生成 dsh-dev-modes-1.0.0.tgz)
  • 分发:把 tarball 或整个目录给另一台机器,用 Add plugin / install_bundle 安装
  • 发布到插件市场:把包发布到 npm(或推到公开 Git 仓库),再托管一份市场索引 JSON;索引格式见 dist/market-index.example.json 与 PUBLISH.md

修改

  • 预设内容在 cordis.patch.yml(三个 - insert: 块),改完 remove_bundle + install_bundle 重装。
  • 技能内容在 skills/,改完重装或重启生效。
  • 图标/文案:icon.svg、locale/*.json、本 README。

Похожие плагины