dsh-ptc-plus
Run the following command in DeepSeek Harness:
dsh plugin install muyuanjin/dsh-ptc-plus
Paste the following prompt into your AI chat to install this plugin:
Open a terminal in DeepSeek Harness and run dsh plugin install muyuanjin/dsh-ptc-plus to install this plugin (source: https://github.com/muyuanjin/dsh-ptc-plus), then restart the corresponding DSH profile to apply.
About this plugin
DSH's PTC mode starts every run_code call from a blank environment. Variables, imports, and results computed in one call are gone the next; fixing a single typo means resending the entire code block; and static import or export declarations are invalid inside the async function body. Pasting the same setup block over and over, resending a whole block to change one line—these are the biggest daily frictions of working in PTC mode. PTC Plus wires run_code into a session-bound, persistent TypeScript REPL so each call continues from the state of the last.
Three capabilities make the difference most visible. State persists across calls: variables, named and default imports, and special values such as BigInt, Map, and Set remain available, so setup code ships once. edit_run_code lets you fix a result without resending: you submit only the changed line or lines; exact-text and regex replacements are guarded against bad patterns, and when a rejected cell is uniquely diagnosed as missing a single closing character the diagnostic emits a ready-to-run correction call carrying an expected_target_call_seq precondition. Module syntax is adapted transparently: a pre-execution AST pass rewrites static import and export into equivalent constructs valid inside an async function body, so the model writes idiomatic ESM without sensing the underlying constraint. Supporting features include output truncation with precise error-line references, session-level relative-path memory, agent tool context recovery, an enhanced tool card, and cold recovery.
It is built for developers who already run DSH's PTC preset and call run_code frequently for prototyping or data exploration. One caveat: PTC Plus is designed for danger-full-access. The worker can reach Node.js and the operating system directly with no additional sandbox, so enable it only in environments where that level of trust is acceptable. If you spend every day re-pasting setup blocks and resending entire code blocks to fix a one-line change, PTC Plus is the lowest-friction upgrade.
Screenshots
Use Cases
- Reuse variables and imports across run_code calls so setup code ships once
- Fix a result by submitting only the changed lines instead of resending the whole block
- Write static import and export naturally in PTC mode with transparent AST rewriting
Best For
- Developers already on DSH's PTC preset who call run_code frequently
- Prototypers and data explorers tired of re-pasting the same setup block every call
- Developers comfortable with danger-full-access who need direct Node.js and OS access
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.


