DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-pua

p

dsh-pua

Manifest valid

DSH PUA Revised Version (based on @michengai/dsh-pua v0.3.22): Removes the upstream global master switch, enabling "always-visible entry" and "functions disabled by default" to coexist—one-click PUA toggle through the input bar menu, with a more compact interface.

UI (client)hasBundlePatch

DSH PUA

DSH PUA

Help your agent try another approach and verify its work before calling it done.

简体中文 · The problem it solves · Features · Installation · Usage · Configuration · Commands · Fork changes · Changelog

npm version npm downloads License: Apache-2.0 Node.js 22.19+

Brings PUA to DeepSeek Harness. Community-maintained; not an official DeepSeek AI or PUA product.


The problem it solves

Poor delivery is usually not a skill gap. It is the absence of any requirement to prove the work:

Common behaviorHow PUA intervenes
Tweaks the same parameters again and again while drifting furtherPast the failure threshold, switching to a materially different approach is mandatory; spinning in place raises pressure immediately
Gets stuck and suggests "please do this manually"Classified as giving up or deflecting; triggers an ownership check and escalation
Claims "done" without ever running the verification commandEmpty completion is detected; it only counts once runtime evidence is attached
Reads an error once, then jumps to a conclusionRequired to read context, search for similar cases, enumerate hypotheses, and verify
Fixes one bug and stopsIceberg rule: same-module siblings and upstream/downstream impact are handled together

The core mechanism is pressure that escalates with failure count and drops after genuine acceptance passes. Pressure is not the goal; evidence is.

Features

  • Change approach after failure: a failure counter drives L1→L4 escalation, each level mandating a different action (switch approach / search and read source / seven-item checklist / all-out mode).
  • Evidence before completion: "done" only counts with command output attached; an independent verification command can be configured so a model's own report is not enough.
  • Verification Loops: start a Loop to keep the agent correcting until verification passes, the iteration cap is hit, or you cancel.
  • Narration and flavors: 15 company-inspired flavors (Alibaba, ByteDance, Huawei, Tencent, Baidu, Meituan, Jobs, Musk, …) across 10 persona modes (standard P8, P7, P9, P10, Pro, Yes, Mama, Shot, Chinese/English protocols). Narration opens with the active flavor, and wording and keywords follow it.
  • Integrity guard (off by default): denies reads of hidden benchmark answers, including web searches for them, and warns before edits touch test, scoring, or CI assets, keeping action rights separate from self-grading rights.
  • Progressive prompt loading: added fidelity: lean | balanced | full; default balanced, lean saves more context, and full restores the complete original prompt. pua_reference supports path=index and a section argument.
  • Grouped settings panel: configuration is grouped into Basics / Prompt loading / Flavor & role / Reminders & verification, with the last group collapsed by default.
  • Global defaults with per-session overrides: plugin settings store global defaults; the chat panel adjusts the current session only, restoring inheritance per item or all at once.

Results depend on the model and task. The plugin does not guarantee a solution every time.

Installation

Requires Node.js 22.19 or later and DSH 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2, 0.1.5-rc.3, 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, or 0.2.0-rc.2. Uses your existing DSH model configuration; no additional API key is needed.

Examples use the web profile. Replace it with the profile you use.

Ask an agent to install it

Send this to an agent that can run commands on your computer:

Install @panando/dsh-pua into my local DSH web profile by running dsh plugin --profile web add @panando/dsh-pua@latest --registry=https://registry.npmjs.org/. Check that the plugin loads, then explain how to open PUA settings.

Install manually

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
dsh plugin --profile web add @panando/dsh-pua@latest --registry=https://registry.npmjs.org/

After the current task finishes, reload DSH or restart its Web service. Refreshing the browser alone is not enough. Enter /pua help to check that the plugin is available.

Usage

  1. Open Plugins in the sidebar, open @panando/dsh-pua, and use the package page or the panando-pua row.
  2. Enable PUA, choose a flavor and persona, and save.
  3. Return to chat and submit tasks as usual.

A PUA entry is always visible in the composer. Clicking it opens a dropdown:

  • Turn on / Turn off: toggles PUA for the current session directly, without opening the panel
  • Options: opens the configuration panel for flavor, persona, reminders, and Loop

When PUA is off for the session, the label is dimmed with a line through it. The entry is always rendered — the key difference from upstream, see Fork changes.

Configuration

Change global defaults only in plugin settings. Chat controls and commands affect only the current conversation.

Unchanged options follow global defaults; editing one option overrides just that one. "Restore all" at the top of the panel returns to inheritance.

The panel is grouped into three sections:

SectionWhat you can adjustNotes
BasicsPUA switch, UI language, subagentsUI language Auto follows the host, or pin Chinese / English; subagents off by default, and when enabled they inherit the parent session's effective config
Flavor & roleFlavor, persona modeChoose Auto to route by task characteristics, or lock one flavor; personas include P7 / P9 / P10 / Pro
Reminders & verificationCorrection reminders, integrity guard, feedback reminders, Loop defaultsCollapsed by default. Covers terminal review, failure escalation, and quality prompts; integrity guard off by default; Loop takes a verification command, timeout, and iteration cap (0 = unlimited)

Subagent enablement also depends on the parent conversation's PUA switch. fidelity can be lean (minimal), balanced (default, loads rule slices on demand), or full (full original prompt, higher context usage). Commands no longer change global settings.

Continue until verification passes

In the chat PUA panel, under "Start or cancel a Loop", enter a task, verification command, and iteration limit, then start it. For example, ask the agent to fix failing tests, verify with npm test, and stop after at most 10 iterations.

You can also enter:

/pua loop "Fix the failing tests and add regression coverage" --verify "npm test" --max-iterations 10

Enter /pua-cancel-loop or /pua cancel-loop to stop. Disabling PUA for the current session also cancels its Loop, but does not undo operations already performed.

Set a verification command and iteration limit when using a Loop. Without a verification command, completion relies on the model's report.

Common commands

Everyday switches, flavors, and personas are available in the UI; memorizing commands is optional.

GoalCommand
Enable or disable PUA for this conversation/pua on, /pua off
Choose a flavor/pua flavor huawei
Ask for another approach/pua again
Check whether the task is complete/pua done-check
Check delivery evidence/pua evidence
Review current changes without editing/pua review
Restore global defaults for this conversation/pua reset
Cancel a verification Loop/pua-cancel-loop, /pua cancel-loop
View status or full usage/pua status, /pua help

Fork changes

This repository is derived from @michengai/dsh-pua v0.3.22 and published as the separate package @panando/dsh-pua on npm. It is a fork, not an official release. Original LICENSE and NOTICE are retained.

Removing the upstream global kill-switch

Upstream treats the global alwaysOn setting as a master gate: when off, the composer entry does not render, a session cannot be enabled, and /pua on is rejected. An always-visible entry and a default-off feature therefore cannot coexist.

This fork lifts that restriction: the entry always renders while the feature still defaults to off, and you enable it per session from the composer menu ("Turn on"). The entry is a dropdown (Turn on / Turn off / Options), where the first two take effect immediately and only "Options" opens the panel.

Unifying narration markers (v0.1.3)

The original markers mixed square brackets and icons, which hurt readability. They are now emoji『text』, keeping each marker's original emoji and dropping the trailing flavor word:

OriginalNow
[🟡 字节味]🟡『字节』
[PUA生效 🔥]🔥『PUA生效』
[PUA 突破 ✨]✨『PUA 突破』
[方法论切换 🔄]🔄『方法论切换』
[自动选择:⚫ 百度味 | 因为:… | 改用:🟡 字节味]🔄『自动选择:百度』因为:… | 改用:🟡『字节』

This covers 18 upstream asset files across the core protocol, persona modes, and methodology references. The English protocol (pua-en), markdown links, and machine-readable IDs are unchanged.

Shortening UI labels (v0.1.3)

Language "Auto (follow host)" and flavor "Auto-flavor" both become "Auto", so the dropdowns stay compact.

Grouping the settings panel (v0.1.3)

The flat field list becomes three sections — Basics / Flavor & role / Reminders & verification — with the last one collapsed by default. The field set and configuration contract are unchanged; only the presentation order differs.

See CUSTOM-CHANGES.md for the full change list and implementation pitfalls.

Uninstall

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
dsh plugin --profile web remove @panando/dsh-pua

Reload DSH for the change to take effect. Project files and conversation history are preserved.

License and attribution

Adapted from tanweai/pua 3.5.1.

Original project code uses Apache License 2.0. Bundled PUA assets retain their upstream-declared MIT license and attribution; see NOTICE.

Comments

Loading…

Similar plugins

dsh-power-switch

by SanYe-SanJiu

Windows-only process control for the harness: a sidebar button that shuts DSH down through the host's own graceful exit path, an app-window / normal-tab switch on the Plugins card that rewrites the de

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-power-switch

by HRuiCcc

DSH 本机维护插件:预检 → 快照 → 原子写入 → 冲突检测回滚;含提示词管理与设置面板。基于 ZiPengWei/dsh-purge(MIT)。

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 29

MIT

JavaScript

Nov 1, 2026

dsh plugin --profile web add ruic-dsh-purge

by mostkia

Power controls (shutdown / restart) for the DSH sidebar plus a Windows tray launcher with start-at-logon.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 0

MIT

PowerShell

Oct 5, 2026

dsh plugin --profile web add @mostkia/dsh-launcher

by wangbofan

DSH desktop (Windows) titlebar menu: a Restart button that closes and relaunches the whole app - shell + Host. Plugin-only, no app.asar patching.

Manifest valid

★ 0

MIT

JavaScript

Oct 14, 2026

dsh plugin --profile web add dsh-restart-button

by buhuikongpan

DSH 分层插件管理器:原生插件按 系统层/WebUI 层/工具层 只读展示,用户扩展支持停用/启用、补登记、卸载与可编辑描述。

UI & ExperienceManifest valid

★ 8

JavaScript

Aug 20, 2026

dsh plugin --profile web add dsh-pluginmanager

DSH 桌面端(Windows)重启插件:从侧边栏按钮或默认关闭的模型工具重启宿主,重启后按会话原有预设自动唤醒;宿主繁忙时拒绝重启。

Development & InfrastructureTerminal & ClientsManifest valid

★ 0

dsh plugin --profile web add dsh-desktop-auto-restart