Fork of @michengai/dsh-pua that removes the upstream global kill-switch so the composer entry is always visible while the feature stays off by default and can be toggled per session; the entry is a dropdown (Turn on / Turn off / Options) with a more compact options panel.
Install
# from npm (prebuilt)
dsh plugin --profile web add @panando/dsh-pua
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:panando/dsh-pua
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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
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 behavior | How PUA intervenes |
|---|---|
| Tweaks the same parameters again and again while drifting further | Past 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 command | Empty completion is detected; it only counts once runtime evidence is attached |
| Reads an error once, then jumps to a conclusion | Required to read context, search for similar cases, enumerate hypotheses, and verify |
| Fixes one bug and stops | Iceberg 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; defaultbalanced,leansaves more context, andfullrestores the complete original prompt.pua_referencesupportspath=indexand asectionargument. - 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
- Open Plugins in the sidebar, open
@panando/dsh-pua, and use the package page or thepanando-puarow. - Enable PUA, choose a flavor and persona, and save.
- 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:
| Section | What you can adjust | Notes |
|---|---|---|
| Basics | PUA switch, UI language, subagents | UI 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 & role | Flavor, persona mode | Choose Auto to route by task characteristics, or lock one flavor; personas include P7 / P9 / P10 / Pro |
| Reminders & verification | Correction reminders, integrity guard, feedback reminders, Loop defaults | Collapsed 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.
| Goal | Command |
|---|---|
| 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:
| Original | Now |
|---|---|
[🟡 字节味] |
🟡『字节』 |
[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.
Links
More in this category
FuRongJun-1999/dsh-memory★ 761
White-box AGI architecture exploration: metacognition (self-cognition loop), continual learning (knowledge flywheel), world model (condition space, spatiotemporal memory graph), self-improvement (bootstrap discipline), zero-LLM white-box pipeline, and auditable trust guardrails.
Clearailhc/clearai-dsh★ 701
An agent preset for evidence-checked research: every step advances only through system-verified observations, L3+ claims go to an independent evaluator, and the session folds into a replayable ledger that grows into a browsable domain ontology. Requires DSH >=0.1.7-alpha.1.
oriliz/agent-crop★ 335
Times AI coding sessions, nudges long-running turns, and keeps a local work ledger with a collector-health dashboard, so you can see where the time actually went. It also records retrospectives and routes each lesson back into agent instructions, skills, or tooling.
icyaaaww/dsh-soul★ 128
Records recurring task corrections and tool failures locally, then compiles them into changes to eight harness components through explicitly started evolution, paired baseline/candidate checks, trial activation and rollback. Includes a budget and audit ledger; requires Node.js 24+ and a compatible DSH 0.2.1-rc.2 or later 0.2.x host.
kenz1117/dsh-engram★ 81
Cross-session long-term memory as a local SQLite store: dual scopes (user + per-git-origin project), hybrid FTS5 + local-vector retrieval fused with RRF, an evidence gate that forces an explicit sufficiency judgement, provenance audit chains, SM-2 spaced-repetition review, consolidation distillation and decay forgetting, and a nine-view "Memory Palace" sidebar panel. 22 narrow-parameter tools, no external service, no API key, no Docker.
MichengAI/dsh-pua★ 81
Adds /pua to steer the agent to try another approach and verify results before claiming completion, with 15 company styles, persona modes, global and per-conversation settings, and an optional loop that continues until a verification command passes, the iteration limit is reached, or the user cancels.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.