将 poteto 的 pstack 工程工作流移植到 DSH,涵盖规划、审查、验证与发布。
安装
# npm 包(预构建)
dsh plugin --profile web add pstack-dsh
# Release 预构建包
dsh plugin --profile web add -w "https://github.com/aa2246740/pstack-dsh/releases/download/v0.2.5/pstack-dsh-0.2.5.tgz"
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:aa2246740/pstack-dsh
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
安装 / Install
官方 DeepSeek Harness 桌面 App(推荐) / Desktop app (recommended)
打开 设置 → 插件 → 添加插件,在“包名或地址”中输入:
Open Settings → Plugins → Add plugin and enter this in “Package name or address”:
github:aa2246740/pstack-dsh#v0.2.6
桌面端插件管理器负责 Desktop profile 和内置包管理器。本发布已包含编译好的 lib/;普通使用不需要 clone 或本地构建。若应用提示刷新或重新打开,请按提示完成。
The desktop plugin manager owns the Desktop profile and bundled package manager. This release includes built lib/; normal use needs no clone or local build. Follow the app if it asks you to reload or reopen after installation.
Web CLI
dsh plugin --profile web add github:aa2246740/pstack-dsh#v0.2.6
这条官方 CLI 命令只写入 web profile,不能修改 Desktop App 的 profile。对于已运行的 Web Host,请重新打开该 Host 一次,再刷新网页。
This official CLI command writes only the web profile; it cannot modify the Desktop App profile. For an already-running Web Host, reopen that Host once and reload the page.
面向官方 DeepSeek Harness 0.2.2-rc.5(tag dsh-v0.2.2-rc.5,npm @deepseek-ai/dsh@0.2.2-rc.5)。Node ^22.19.0 或 >=24。@deepseek-ai/dsh-* peer 范围是 >=0.2.2-rc.5 <0.2.3-0,接受 0.2.2-rc.5,拒绝 0.2.1 / 0.2.0 系列与 0.2.2 alpha。
Targets official DeepSeek Harness 0.2.2-rc.5 (tag dsh-v0.2.2-rc.5, npm @deepseek-ai/dsh@0.2.2-rc.5). Node ^22.19.0 or >=24. The @deepseek-ai/dsh-* peer range is >=0.2.2-rc.5 <0.2.3-0: it accepts 0.2.2-rc.5 and rejects the 0.2.1 / 0.2.0 series and 0.2.2 alphas.
English title. pstack-dsh, a DeepSeek Harness port of official pstack.
中文. 这是 official pstack 的 DeepSeek Harness 移植。玩法和原则来自 poteto 的 official pstack;只有调用层换成 DSH。
English. This is a DeepSeek Harness port of official pstack. Playbooks and principles are poteto's. Only the harness call layer is swapped.
来源 / Credits
23 个玩法(playbooks)和 23 条原则(principles)是 poteto 写的,出自 official pstack。本仓库是 DeepSeek Harness 移植(aa2246740/pstack-dsh)。调用层用 HARNESS.md 里的 DSH 工具名。玩法和原则不是本仓库写的。
The 23 playbooks and 23 principles are poteto's, from official pstack. This repository is the DeepSeek Harness port (aa2246740/pstack-dsh). Harness calls use DSH tools named in HARNESS.md. This port did not author those playbooks or principles.
本地目录 / Local checkout
已经 clone 到本机时(开发/本地测试):
A local checkout (development/local testing):
git clone https://github.com/aa2246740/pstack-dsh.git
dsh plugin --profile web add ./pstack-dsh
然后同样重启 Host,再刷新页面。
Then restart that Host and reload the page.
dsh plugin --profile web remove pstack-dsh
Desktop App 请使用上面的应用内“添加插件”入口。官方 CLI 只管理 web profile。
Use the in-app “Add plugin” entry above for the Desktop App. The public CLI manages the web profile only.
开始用 / Get started
两步。
Two steps.
要做事、要严谨,直接用
/poteto-mode。不用先跑 setup。子 agent 默认继承当前对话的路由。只有想给某个角色换已登录的路由时,打开 设置 → pstack(导航「pstack 角色」/「pstack roles」)。页面写入
$DSH_HOME/pstack-dsh.json。/setup-pstack只是指向那一页的指针。Use
/poteto-modefor work that needs rigor. No setup required. Children inherit this conversation's route.To pin a logged-in route per role, open Settings → pstack (nav label pstack 角色 / pstack roles). The page writes
$DSH_HOME/pstack-dsh.json./setup-pstackis an optional pointer to that page.
角色模型列表会随 DSH 的登录、退出登录和模型目录变更通知更新,也可点击「刷新模型列表」。刷新只更新候选项,不覆盖尚未保存的角色和 effort;当前选择若失去登录会标为「暂不可用」。新加入 dsh-oauth-login 的 pi-* 路由以及 dsh-antigravity-oauth 的 agy-* 路由只要已登录且已注册,就会自动纳入,无需在 pstack 里再维护一份提供商名单。
Model choices follow DSH login/logout and catalog notifications. Refresh models also updates the choices without replacing unsaved role/effort edits. A selected route that becomes unavailable stays visibly marked. Newly registered, signed-in pi-* and agy-* routes are discovered without a second provider allowlist.
The locally authenticated cursor provider is also discovered when
dsh-cursor-passthrough
is installed and exposes live models. This lets a DSH parent assign a pstack
role to a Cursor subscription model without storing Cursor credentials in DSH.
安装并启用 dsh-cursor-passthrough
后,pstack 也会发现由本机 Cursor CLI 登录的 cursor 提供商。这样 DSH 父对话可以把指定角色分配给 Cursor 订阅模型,无需在 DSH 中保存 Cursor 凭据。
For mixed routing, keep the parent conversation on a native DSH provider and
assign Cursor models to selected roles in Settings → pstack. pstack_spawn
then routes those children through Cursor. If the parent itself uses Cursor
passthrough, it runs through Cursor ACP and cannot call DSH-only tools such as
pstack_spawn; use Cursor's own subagents in that case.
混合路由时,请让父对话使用 DSH 原生提供商,再在 设置 → pstack 中把部分角色分配给 Cursor 模型。若父对话本身使用 Cursor passthrough,该轮会通过 Cursor ACP 执行,无法调用 pstack_spawn 等 DSH 专用工具;此时请使用 Cursor 自带的子代理。
第一次用可以看 pstack 指南。
New here? The pstack guide walks through a first real task.
其余技能是按需的。/poteto-mode 会在步骤需要时自己去调。
The other skills are situational. The mode skill uses them when a step needs them.
上游 0.15 同步
技能内容同步至 cursor/plugins 的 pstack 0.15.0,提交 71ed0d1076fec562c1b74ee353121a8d00f75382。保留 DSH 工具和角色路由。
设置页的「Poteto 0.15 推荐」仅供参考,不会替换用户已保存的模型或 effort。how-critics 不再显示或启动代理,旧配置仍可读写并保留。不包含 Cursor 专用的 make-bot-ui。
The Poteto 0.15 recommendations are display-only. Existing model and effort assignments remain unchanged. The retired how-critics setting stays readable for compatibility but is hidden and never starts an agent. Cursor-only make-bot-ui is not included.
默认模型与 effort / Defaults
装完就能用,不必先打开设置,也不必跑 /setup-pstack。
A fresh install is usable without Settings → pstack and without /setup-pstack.
模型 / Model. 不要发送 model,除非 live catalog 里已经有这一条。没有 overlay 就继承父对话。不要编造 Cursor 面板 slug(grok-4.6-fast-xhigh、gpt-5.6-sol-max、claude-fable-5-thinking-max、claude-opus-5-thinking-xhigh)。
Do not send model unless that pair was detected live. Missing overlay inherits the parent. Do not invent Cursor panel slugs.
effort. 只提供该路由 resolveModelInfo().reasoning.efforts 列出的 id。没有 effort 字段就省略。skill 从不在 spawn 上发送 reasoning_effort 或 thinking。pstack_spawn schema 没有这些字段。角色 effort 写在 overlay 里,在 startActivation 前通过 agentOptions.reasoningEffort 传给子代理。
Effort is only the ids that route actually accepts. If the route has none, omit it. Skills never send reasoning_effort or thinking on spawn. pstack_spawn has no model-facing effort field. Role effort lives in the overlay and is passed as agentOptions.reasoningEffort before startActivation creates the child.
设置 / Settings. 配置页是官方 Settings 里的 settings.section(id pstack,order 16)。只列出已登录路由;effort 只列出该路由 live resolveModelInfo().reasoning.efforts。空列表就是继承父对话。保存写同一份 overlay,不是第二份配置。
The editor is the official Settings settings.section (id pstack, order 16). It lists logged-in routes only. Effort options are that route's live resolveModelInfo().reasoning.efforts. An empty list means inherit the parent. Save writes the same overlay, not a second file.
设置页只列出已经登录的 API key 路由,以及 dsh-oauth-login / dsh-antigravity-oauth 里已经签过名、并且适配器已注册的路由。空目录就是继承父对话。
推荐依赖 / Recommended peer
订阅与服务登录(ChatGPT / Claude / Grok / Copilot / OpenRouter / Kimi / Google Antigravity)要出现在 设置 → pstack 列表里,可按需安装 dsh-oauth-login 或 dsh-antigravity-oauth。不是硬依赖。只用 API key 的用户可以不装。本插件不读写 ~/.pi、~/.codex、~/.claude、grok CLI 登录文件。
Subscription logins show up on Settings → pstack after you install dsh-oauth-login or dsh-antigravity-oauth. They are not required. API-key-only users work without them. This plugin does not read or write official CLI auth files.
dsh plugin --profile web add github:aa2246740/dsh-oauth-login#v0.2.7
这不是 Cursor 插件 / Not the Cursor plugin
这里的角色映射在 设置 → pstack。官方 Cursor /setup-pstack 会写 ~/.cursor/rules,并用 Cursor 的模型名。不要在 DSH 上跑那份。
Role mapping in this repo is Settings → pstack. Official Cursor /setup-pstack writes ~/.cursor/rules and uses Cursor slugs. Do not run it here.
工具 / Tools
本插件注册:
This plugin registers:
| 工具 / Tool | 作用 / Role |
|---|---|
pstack_spawn |
按角色起 DSH 子 agent。不要传 model / effort。 |
pstack_catalog |
只列出已登录的 live 路由。 |
pstack_overlay_read / pstack_overlay_write |
读写 $DSH_HOME/pstack-dsh.json。 |
| Settings → pstack | 官方设置页。保存同一份 overlay。 |
技能入口:/poteto-mode,以及 bundled 的 playbook / principle skills。/setup-pstack 指向设置页。
Slash entry: /poteto-mode, plus the bundled playbook and principle skills. /setup-pstack points at the Settings page.
开发 / Develop
pnpm install
pnpm test
不要对用户正在用的 DSH Host 发 --force,也不要杀它。对照 TEST-PLAN.md。
Do not --force or kill a user's live DSH Host. See TEST-PLAN.md.
许可 / License
MIT。玩法与原则:Lauren Tan。DSH 移植打包:aa2246740。见 LICENSE。
MIT. Playbooks and principles: Lauren Tan. DSH port packaging: aa2246740. See LICENSE.
链接
同类插件
loopx-project/loopx#dsh-loopx-plugin★ 6767
LoopX——面向长周期 Agent 的提供商中立、本地优先状态内核与控制平面:在 DeepSeek Harness 执行层之上持久化 Goal、Todo、门禁、证据、配额、恢复与交接状态;插件负责引导安装 CLI 与技能、准入有界的同会话续跑,并为精确绑定的工作循环提供本地 GoalBar。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。
Q00/ouroboros#integrations/dsh-plugin★ 6388
通过 DSH MCP 客户端挂载 Ouroboros 的纯配置包,在 DSH 中提供 36 个涵盖需求访谈、Seed、执行、评估与演化流程的工具。
chuspeeism/dashi-taskboard#deepseek-harness★ 3538
把当前已安装并运行中的 Codex Taskboard 嵌入 DeepSeek Harness 侧边栏,并通过 Launcher 运行时描述文件连接,而不是使用固定端口。
NanmiCoder/dsh-agent-teams★ 3111
AgentTeams 多智能体团队。
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 2931
安装专用 AI 小说创作预设与工作台:提供带修订号的本地项目资产、紧凑侧边工作台,以及需要原生审批的逐文件变更。
shanliuling/dsh-image-gen★ 1777
为 DeepSeek Harness 提供原生对话生图能力:直接让 Agent 画图,插件自动完成生成并把结果保留在当前会话中。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。