dsh-presets-plan-native-act-ptc: Plan with Native Tools, Execute via PTC After Approval
Introduction to dsh-presets-plan-native-act-ptc, a DSH plugin maintained by Oyyyyyy-y. This package registers the ptc-hybrid preset via a bundle patch. In plan mode, the top level mirrors the standard configuration: all native tools are accessible while run_code is rejected. After approval, the top level is restricted to run_code only; within the program, native tools remain callable, but workflow and plugin_manager are rejected. Both stages share the same tool table and system prompt. Per the README, real-world testing shows a prefix-cache hit rate of approximately 98%–99% when switching in plan mode. The documentation covers installation commands, a two-stage comparison, timeoutMs configuration, fault degradation, and known limitations. Compatible with DSH >= 0.2.2-rc.1 and < 0.3.0-0.
Read Moredsh-ptc-noargs: Fix the Binding Error for Argument-Free Tool Calls in run_code
In the `run_code` of DSH PTC, models frequently call optional first-parameter tools such as `tools.job_list()` or `tools.job_list(undefined)`. The PTC worker rejects binding because `undefined` cannot be losslessly JSON serialized, resulting in the error "binding arguments must be lossless JSON". The Cordis plugin `dsh-ptc-noargs` (TLEWA) listens to `tools/execute` and injects a prelude only before the execution copy of the TypeScript function-body, normalizing omitted or undefined first parameters to `{}` without modifying the original code in logs. It supports hot reloading on the plugin page and CLI link/tgz installation. Verified on DSH 0.2.2-rc.1, licensed under MIT.
Read Moredsh-ptc-discipline: Hard Goals and Pending Gates in PTC Mode
This article introduces the DSH agent preset `dsh-ptc-discipline` maintained by yuan-source-666. It implements hard gates using `ctx.tools.guard()` built upon the PTC mode: tool calls are rejected when there is no active goal, a non-empty todo list, and at least one item in progress; exemptions are granted to guided tools, `run_code` itself, and non-root agents; it fails open if a service is missing. The article covers installation commands, configuration options, typical usage, 10 unit test scenarios, DSH 0.2.2+ compatibility, and notes regarding the plan mode.
Read Moredsh-ptc-router: Routing between PTC and native tool forms by task
DeepSeek Harness is typically fixed into one mode by the Agent preset: either native (multi-tool JSON Schema) or ptc (run_code + SDK). The dsh-ptc-router automatically selects a mode at the start of a task using a Chinese-English heuristic. It supports /mode and switch_tool_mode for switching before the next step takes effect. Agent scope overrides the preset, with no PTC runtime fallback to native. Installation can be performed via the Plugins page or by running `dsh plugin --profile web add github:w756568942/dsh-ptc-router` and then enabling it. Configuration options include threshold, forceMode, extraPtc, and others. It is MIT licensed and compatible with DSH >=0.2.1-rc.2.
Read Moredsh-focus-mode: Persistent Shell and Native/PTC Hybrid Execution
dsh-focus-mode is an external plugin (v0.1.2) for DeepSeek Harness maintained by Stautaffly. Without modifying the host source code, it provides Agents with persistent shells (exec_command, write_stdin), run_code PTC, and background shell monitoring. Compatible with dsh 0.2.1-rc.3 and Node.js >=24.9, it is installed via CLI by downloading a tgz from GitHub Releases and can be enabled by selecting Focus mode in a new session. By default, it allocates 4 shell sessions per Agent, which can be adjusted via patches. It is suitable for DSH developers requiring terminal state retention and programmatic orchestration tools; please verify licenses and process permissions before installation.
Read Moredsh-deep-ptc-mode: Overlaying the "Deep PTC" Work Contract on the DSH Built-in PTC Tool Surface
dsh-deep-ptc-mode is an open-source agent preset for DeepSeek Harness. It preserves the run_code tool surface and sub-agent integration of the built-in PTC, only enhancing the user's experience of progress through the persona contract (ensuring not to skip verification for token conservation and using ask_user_question in the event of ambiguity). It also employs guardrails under an unlimited budget framework to prevent verbosity and context overflow. Requires DSH >= 0.2.1-rc.3, and can be installed from npm 1.1.0 or GitHub via plugin_manager. For new tasks, select "Deep PTC Mode" in the mode selector. MIT licensed, maintained by lishize20040802-rgb.
Read Moredsh-ptc-diff-card: Display Standard Diff Cards for Nested edit/write in PTC
The DSH Web plugin dsh-ptc-diff-card (GrounzerLiu) addresses edit/write operations nested within run_code under PTC mode: by default, it only displays successful text, as the official diffCardModel skips calls where parentCallId is non-empty. The plugin registers edit/write views at tool.call.toolview with priority -1, replicating the official DisclosureRow and DiffBlock components, reusing the official diff derivation while removing the root call restriction. Installation is via `dsh plugin add` (GitHub, npm, or local link); it is written into the profile bundle and takes effect after a restart. Requirements: DSH >= 0.2.1-rc.2 and Web GUI. It covers only edit/write and cannot coexist with plugins of the same priority level. MIT license.
Read MoreDeepSeek Harness PTC Enhancement Suite: Probing + Attention Center + OPS Alignment
dsh-attention-center is a workflow-based DSH plugin featuring an In-depth Inquiry preset, a cross-session attention center, and OPS/PTC alignment. It transforms vague ideas into concrete plans through timed questions, enables answering prompts via pop-ups without switching windows, and utilizes `run_code` for PTC evidence gathering.
Read MoreDeepSeek Harness Plugin: dsh-ptc-parse-frame
dsh-ptc-parse-frame is a DSH Host plugin that appends line numbers and code frames to run_code parsing failures, helping the model directly pinpoint syntax errors. It supports configuration for maximum line counts, enable switches, and line number prefixes. Designed for DSH NEXT.
Read MoreDSH-Block-PTC: Model Delineates Context Blocks and Proactively Compresses in PTC Mode
dsh-block-ptc is a DSH community bundle maintained by mengwEX, targeting the PTC mode: models mark black blocks with [block: ids] in run_code descriptions and invoke block_compact({ ids, content }) within the program to replace completed intervals with self-authored summaries, while logs remain append-only. The current version is 0.4.0, requiring DSH ≥ 0.2.1-rc.2 and Cordis ≥ 4.0.5; after installation, select the Block PTC preset and restart. This article explains the mechanism, installation commands, and typical usage, and notes that the plugin runs with DSH process privileges and that there is no simple equivalence between cache and billing.
Read More