Saltar al contenido principal
M

dsh-pua

michengai/dsh-pua

Añade /pua para guiar al agente a probar otro enfoque y verificar los resultados antes de declarar la finalización, con 15 estilos de empresa, modos de persona, ajustes globales y por conversación, y un bucle opcional que continúa hasta que un comando de verificación pasa, se alcanza el límite de iteraciones o el usuario cancela.

Instalar

dsh plugin --profile web add github:michengai/dsh-pua

README

DSH PUA

DSH PUA

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

简体中文 · Features · Screenshots · Installation · Usage · Configuration · Commands · Changelog

npm version npm downloads CI License: Apache-2.0 DSH Web Plugin Node.js 22.19+

DSH PUA brings PUA to DeepSeek Harness. When an agent repeatedly fails, gives up too early, or claims completion without checking, it encourages a different approach, investigation, and evidence. Community-maintained; not an official DeepSeek AI or PUA product.

Features

  • Try another approach: prompt the agent to reconsider its reasoning instead of repeating ineffective attempts.
  • Check before claiming completion: encourage verification and evidence for the result.
  • Choose a style: 15 company-inspired styles, plus P7, P9, P10, encouragement, motherly, and other persona modes.
  • Configure through the UI: save global defaults in plugin settings and adjust individual conversations from chat.
  • Continue based on verification: start a Loop to keep working until verification passes, the iteration limit is reached, or you cancel.

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

Screenshots

Global settings

Open Plugins in the sidebar, then @michengai/dsh-pua, to set default enablement, style, persona, and subagent behavior. Earlier DSH hosts still use Settings → Plugins → PUA Configuration. Screenshots show the Chinese interface.

PUA global settings with enablement, style, persona, and subagent options

Current conversation

Click PUA to the right of Experts to adjust the current conversation. Restore individual defaults or start and cancel a Loop from the same panel.

PUA chat entry and current-conversation configuration panel

DSH product ecosystem

For a desktop workbench, download DSH Codex Desktop. Existing DeepSeek Harness installations can add plugins as needed by following each project's README. Below are 11 first-party plugins; consult the corresponding desktop release notes and bundled catalog for what that version includes.

PluginWhat you can do
Codex UIOrganize projects and conversations, search tasks, and navigate chat turns
Agency AgentsChoose and summon specialists for your task
Skills ManagerFind, enable, create, and import local skills
Archive ManagerSearch, restore, or clean up archived conversations
IM ConnectSend tasks and receive replies through messaging platforms
AutomationSchedule tasks and review each run
BTWAsk side questions without interrupting the main task
SimplifyUse /simplify to improve code within your Git changes
PUAGuide the Agent to try new approaches after failures, investigate causes, and verify results before completion
Code ReviewUse /review to request an independent Agent code review and receive the report in the current conversation
Codex PetView conversation notifications and respond to tool approvals and questions through a desktop pet

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.6-alpha.1, or 0.1.6-alpha.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 @michengai/dsh-pua into my local DSH web profile by running dsh plugin --profile web add @michengai/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 @michengai/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 @michengai/dsh-pua, and use the package page or the michengai-pua row. On earlier DSH hosts, expand PUA Configuration under Settings → Plugins.
  2. Enable PUA, choose a style and persona, and save.
  3. Return to chat and submit tasks as usual.

PUA appears to the right of Experts in the composer. Click it to view or adjust the current conversation. The label has a diagonal strike when PUA is disabled for that conversation; disabling it globally hides the entry.

Configuration

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

Unchanged options follow global defaults. Editing an option overrides just that option. Choose Restore default to follow the global value again, or restore all options at once.

OptionWhat it does
Enable PUAEnabled by default; can be disabled for an individual conversation
Style and personaSelect a style automatically or choose a specific style and persona
Enable for subagentsOff by default; enable when specialists and other subagents should also use PUA
Correction remindersAdjust terminal checks, failure escalation, and quality reminders
Feedback remindersChange reminder frequency or turn reminders off; feedback is not uploaded
Loop defaultsSet a verification command, timeout, and iteration limit

Since 0.3.0, commands no longer change global settings. Subagent enablement also depends on the parent conversation's PUA switch.

Continue until verification passes

In the chat PUA panel, enter a Loop 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 conversation 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. An iteration limit of 0 means unlimited iterations.

Common commands

Everyday switches, styles, 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 style/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

Uninstall

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
dsh plugin --profile web remove @michengai/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. Persona and collaboration capabilities depend on what DSH supports.

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

Plugins relacionados