Skip to content

About

pstack for DeepSeek Harness: rigorous agent workflows ported from cursor/plugins.

Topics

Resources

Contributing

Stars

50 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

890 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

dsh-pstack logo

dsh-pstack

Bring pstack's rigorous agent workflows to DeepSeek Harness

English Β· δΈ­ζ–‡

npm version dsh >=0.2.3-alpha.3 pstack 0.15.49 license Open Plugin Market Awesome DSH Plugin

59
pstack skills
22
playbooks
4
plugin tools
3
subagent presets

πŸš€ Quick start Β· ⌨️ Commands Β· πŸŽ›οΈ Configuration Β· 🧩 Capabilities Β· ⚠️ Limitations Β· πŸ“¦ Compatibility


dsh-pstack brings pstack's planning, implementation, review, and verification workflows to DeepSeek Harness (DSH), with the upstream skills, playbooks, and reference documents included.

  • Start from a task. Use /poteto-mode for the full workflow, or choose a skill for a specific job.
  • Choose models by role. Set each role's provider, model, and reasoning effort, or use the parent Session's model.
  • Coordinate subagents. Delegate implementation, read-only research, and review; optionally use Agent Teams to track shared work.

See Port verification for results from real DSH Web sessions and the runtime mapping for how Cursor capabilities map to DSH.

πŸš€ Quick start

Important

Requires DSH >=0.2.3-alpha.3 and Node.js >=24.22.3. See Compatibility for each release's supported DSH range.

  1. Install the plugin.

    dsh plugin --profile web add dsh-pstack

    You can also install it from the Plugins page in Web or Desktop.

  2. Open a new Session. Restart DSH first if the installation reports that a restart is required.

  3. Start a task. Invoke /poteto-mode and describe what you want to build or fix. Use /poteto-help to explore the workflows.

You can start with the parent Session's model. To choose models by role or keep the workflow active on every turn, see Configuration.

⌨️ Common commands

Task Commands
Help /poteto-help
Configure role models /setup-pstack
Shape the request /reframe, /sharpen
Plan and build /poteto-mode, /architect, /arena, /swarm
Understand and investigate /how, /why, /teach
Verify /create-verification-skill, /statechart
Review and maintain /show-me-your-work, /retro, /docs-drift

πŸŽ›οΈ Configuration

Open Plugins β†’ Installed plugins β†’ pstack β†’ Configure.

View the configuration entry

Configure entry

Workflow switches

Switch Effect
Poteto workflow Keeps the poteto-mode rules in the system prompt on every turn. Available under any preset except the built-in Minimal preset.
Use Agent Teams Makes pstack_subagent start teammates that can track shared work on the Team board.

The switches are independent and can be enabled together. Change them for the current Session in the model and reasoning menu. Set defaults for new Sessions on the configuration dialog's General tab.

View workflow switches and keyboard shortcut setup

Current Session

Session workflow switches

Defaults for new Sessions

Use Default for new sessions and Default Agent Teams for new sessions on the General tab.

General settings

Keyboard shortcut

Assign Toggle Poteto workflow in Settings β†’ General β†’ Shortcuts to toggle the current Session's Poteto switch from the keyboard.

Toggle Poteto workflow shortcut

Role models

In Role models, choose a provider, model, and reasoning effort for each role, then save the changed row or use Save all. Adjust budget lets you preview and apply reasoning levels across roles.

You can also run /setup-pstack in a Session to discover available models and configure roles. Both paths save to $DSH_HOME/pstack/models.json; an unconfigured role uses the parent Session's model and reasoning effort.

View role model settings

Role models

🧩 Capabilities

πŸ› οΈ Plugin tools

The agent uses these tools during workflows; you can start with the commands above.

Tool Function
pstack_subagent Starts a subagent with the selected preset, model, and reasoning effort.
pstack_interrupt Stops a pstack subagent's current turn.
pstack_models Lists the providers, models, and reasoning efforts this deployment serves.
pstack_roles Reports each role's configured routes, with the available reasoning efforts and defaults for each route.

🎭 Agent presets

The package ships three child presets for delegation. You do not need to switch the parent Session's preset to invoke pstack skills.

Preset Use
poteto-agent Handles implementation delegation with the pstack persona and poteto-mode instructions.
comment-sicko Handles read-only comment review and reports deletion targets and MUST KILL symbols.
readonly Provides a sandbox-enforced read-only researcher for inspection and evidence gathering.

πŸ“š Additional skills

These skills extend pstack with authoring, project-maintenance, and evidence-gathering workflows.

Skill Use it to
writing-for-agents Write or review skills and agent instructions such as AGENTS.md and CLAUDE.md.
retro Review a coding session's environment for improvements to navigation, checks, conventions, tools, and information access.
deslop Clean unnecessary comments, defensive code, casts, and nesting from a diff without changing behavior.
control-ui Drive a local Web, IDE, or Electron interface and capture visual or accessibility evidence.
control-cli Drive an interactive CLI or TUI and capture terminal transcripts or performance evidence.
decision-write Record a design choice, its rationale, and its implementation evidence through a traceable lifecycle.
decision-audit Check decision-record status, scope, implementation anchors, and supersession as design history grows.
setup-project-docs Establish architecture, glossary, decision conventions, and pointers for a project's documentation.
docs-drift Audit maintained documentation and repair approved drift, redundancy, and unsupported claims.

πŸ”Œ Optional DSH plugins

Enable these capabilities as needed in Configure β†’ Recommended plugins. Enable all applies only to the Recommended group: worktrees/PRs and Session history.

View recommended plugin settings

Recommended plugins

Use case Plugin Capability
Worktrees and GitHub PRs @deepseek-ai/dsh-experimental-forge-bundle Worktree tools and a panel for pull requests, checks, and diffs. GitHub status requires a logged-in gh.
Session history @deepseek-ai/dsh-experimental-session-search Search and read past sessions, including subagents, whose working directory exactly matches the current Session.
Desktop verification @deepseek-ai/dsh-cua-bundle Desktop control in macOS and native Windows PTC sessions; available actions depend on the platform.
Persistent terminals @deepseek-ai/dsh-experimental-terminal-bundle Persistent shell and REPL sessions for CLI and TUI verification.
Autonomous loops @deepseek-ai/dsh-experimental-ralph-bundle Runs a foreground loop, starting a fresh subagent each round.

These optional bundles ship with DSH. You can also enable them through Plugins β†’ Add plugin; follow any restart prompt. See each plugin's help for runtime requirements and the DSH adaptation guide for unavailable capabilities.

πŸ§ͺ Port verification

The validation results compare native DSH with the adapted plugin using real Web sessions. Each scenario records its latest test date, conclusion, and screenshots; a new release does not imply every scenario was rerun. See the run guide to reproduce a scenario.

⚠️ Adaptation boundaries

The main differences from running pstack in Cursor are listed below.

Area Behavior in DSH
Cursor cloud services Cursor Automations, webhooks, SendToUser, cloud agents, and persistent Projects are unavailable. Worktrees and local scheduling cover local tasks; steps requiring Cursor's cloud services are skipped.
Bugbot Cannot start, configure, or wait for Bugbot. You can still handle existing Bugbot comments as PR reviews.
PR workflows The agent uses gh and Git commands. The optional forge plugin provides worktree tools and a PR panel.
Diagrams and media Standard DSH displays images and SVG inline; Mermaid remains text, and audio/video appears as file cards. Use project tools or external renderers to produce files. See the video playback results.

❓ FAQ

Preset names show in English

Set the language to Chinese in Settings β†’ General β†’ Language, then restart DSH. The row may already show Chinese because it follows the browser. Select Chinese again. That saves the preference that preset names use when the host starts.

The model sometimes picks the wrong tool or path

Retry the step. If the behavior repeats, file a model behavior report with the command or prompt, retry results, and frequency. The adapter can reduce these mistakes but cannot guarantee that the model always follows it.

An older Session fails to load after upgrading

If the error mentions a poteto/mode event, open Configure β†’ Repair β†’ Scan and repair. Scan Sessions, select the affected ones, and confirm the repair queue. Restart DSH to apply the repair.

Repair tab

πŸ“¦ Compatibility

Releases are grouped by their supported DSH range. Each table lists the dsh-pstack releases and the pstack version each bundles.

DSH >=0.2.3-alpha.3

dsh-pstack release pstack version
0.6.0-rc.2 0.15.49

DSH >=0.2.3-alpha.2

dsh-pstack release pstack version
0.6.0-rc.1 0.15.48

DSH >=0.2.2-rc.2

dsh-pstack release pstack version
0.5.2 0.15.43

Older DSH baselines move to compatibility history.

πŸ”— Friendly links

🀝 Contributing

Setup, the pull request check, commit and localization rules, and the merge requirement are in CONTRIBUTING.md. Bug reports are most useful with the DSH version, the dsh-pstack version, and the command or session that failed.

πŸ’› Credits

  • pstack, designed and open-sourced by Lauren Tan and the Cursor team. It is the foundation of this port.
  • DeepSeek Harness, developed by the DeepSeek team. It is the host platform for this plugin.
  • cursor-team-kit, the source of the vendored deslop, control-ui, and control-cli skills.
  • mattpocock/skills, the source of the vendored writing-for-agents and retro skills.

Source revisions for bundled third-party skills are recorded in skills/skills-lock.json. This project is a community port, not an official Cursor or DeepSeek release.

β˜• Sponsorship

If this project saves you time, you can buy me a coffee.

Payment codes
WeChat Alipay
WeChat reward code Alipay payment code

πŸ“„ License

Original dsh-pstack code and documentation use the MIT license Β© leiwang. Bundled upstream projects and vendored skills use their upstream licenses. See Credits.

About

pstack for DeepSeek Harness: rigorous agent workflows ported from cursor/plugins.

Topics

Resources

Contributing

Stars

50 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages