dsh-prompt-profiles: Assemble and Archive System Prompts by Name for DSH Sessions

Introduction

In DeepSeek Harness (DSH), Agent presets typically determine “what tools are available and what behaviors to exhibit”; however, the actual system prompt delivered to the model often requires manually editing long strings or repeatedly pasting the same specifications across multiple sessions. To switch between the same toolchain for a “terse reviewer” versus a “documentation expert writing in team style,” there lacks a reusable, sortable, and session-bound configuration layer.

@knopki/dsh-prompt-profiles (repository: knopki/dsh-prompt-profiles) adds another axis to DSH’s profile dimension: prompt profile—organizing reusable system prompt fragments into named configurations, selecting and sealing them into the session’s prompt upon startup, with no further modifications thereafter. Maintained by knopki; categorized as a model reasoning-related plugin in the community directory.

What is this

The plugin’s full npm package name is @knopki/dsh-prompt-profiles, with the version in current materials being 0.2.5 and license MIT. It does not alter the Agent preset itself but determines “how this Agent is instructed to work”: a profile is an ordered list of section references, where each reference carries its own order and scope; a profile (or explicitly None) is selected at session start, resolved and fixed during session prompt assembly, and restored upon session recovery to reproduce the prompt combination from startup.

When no profile is selected, prompt assembly remains unchanged (zero default intrusion).

Core Features

The capabilities listed below are sourced from the project README and can be combined as needed.

Reusable Sections & Named Profiles

  • Section: A fragment with an id, title, and body, written once and referenced in multiple profiles.
  • Profile: An ordered list of section references; the same section can have different orders and scopes in different profiles.
  • Sealing: The profile is resolved and fixed during session prompt assembly; running sessions retain the sealed content, and new selections only apply to new sessions.

Scope by Reference

Each section reference has an optional scope, explicitly including in the materials:

  • inherit
  • main-only
  • subagents-only

Sub-agents can receive guidance invisible to the main session; the same section can be narrowed in one profile while maintaining a broader scope in another.

Ordering & Fault Tolerance

  • Sections are output according to the profile order and occupy stable positions within the platform’s built-in prompt materials.
  • Unknown, out-of-scope, disabled, empty, or unparseable sections are skipped rather than causing session failure.
  • Explicitly selecting None is recorded as “actively not modifying the system prompt” and is also sealed.

Web Editing & Composer Chip

  • Editing entry point in the Web GUI: Settings → Prompt profiles (with three tabs: Profiles / Sections / Preview), supporting drag-and-drop and keyboard sorting, search, used-in and source info, preview by profile, and debounced auto-save; concurrent editing is detected with a reload to avoid silent overwrites.
  • In the Composer of a blank session, a profile chip appears next to permission and plan; it only displays if at least one profile exists. Selection is remembered by workspace.
  • In complete mode (e.g., the minimal preset with config.complete: true), the engine discards all prompt sections, the chip warns about the trigger condition, and profiles are invalid in this mode.

Prompt Variables

Section bodies can use {{name}} placeholders (e.g., {{cwd}}). At runtime, replacement is strict and occurs only upon sealing; unknown or malformed references cause the section to be dropped. The editor preview is more lenient and lists skipped sections and reasons in the Preview.

Configuration & Storage Locations

Data Location
Section, profile definitions, and line-level overrides Patch lines in cordis.patch.yml written by this bundle
default and lastByWorkspace Volatile settings in the main prompt-profiles line
Per-session sealed snapshot $DSH_HOME/storages/prompt_profiles/sessions/<sessionId>.json

The Web client accesses the host via the platform’s Remote channel, requiring no additional independent transport layer. Interface languages supported: English, Russian, Chinese.

Installation & Activation

Before installing, confirm the DSH version is within the plugin’s declared peer window: >=0.1.7-rc.2 <0.2.2-0; materials note verification on 0.2.1-alpha.2. Node engine requirements see package.json: ^22.19.0 || >=24.0.0.

Official npm installation command:

dsh plugin --profile web add @knopki/dsh-prompt-profiles

Install from a local path or git URL (the original material example is a local path):

dsh plugin --profile web add /path/to/dsh-prompt-profiles

lib/ contains pre-built artifacts; installation does not trigger a build. First-time installation takes effect via HMR; replacing an installed copy requires restarting DSH.

Uninstallation:

dsh plugin --profile web remove @knopki/dsh-prompt-profiles

Typical Usage

According to the README Quick start, you can walk through a minimal chain with the following steps:

  1. Open Settings → Prompt profiles → Sections, create a new section: fill in the id, title, and body text you want in the prompt.
  2. Switch to Profiles, create a profile and add sections to it; adjust order using drag handles or arrow keys, and select a scope for each row.
  3. Open a blank session. Use the chip next to permission and plan in the Composer to select the profile for this session; the next new session in the same workspace will inherit this selection.

Running sessions are not affected by subsequent profile or section edits unless they are targeted “from now on for new sessions.”

In the Preview tab, you can view the relative position of the selected profile and built-in sections, as well as skipped items and reasons, facilitating comparison with runtime sealing behavior.

Use Cases & Notes

Who it is for

  • Those who need to switch between multiple “working styles / writing tones / review standards” under the same Agent preset and want configurations to be diff-able and reviewable (stored in cordis.patch.yml).
  • Teams wanting to split system prompts into reusable blocks and distribute different guidelines to main sessions and sub-agents respectively.
  • Those relying on the DSH Web interface to manage prompts rather than manually editing a single monolithic system string.

Usage Notes

  • The plugin runs with current DSH process privileges; before installation, please review the GitHub source code and the MIT license yourself to ensure compliance with your security and compliance requirements.
  • Modifying a section’s id will not automatically rewrite references in profiles; if renaming an id, the response will list profiles still referencing the old id, requiring manual correction.
  • Sections from other bundles have locked ids and can only be disabled, not arbitrarily renamed.
  • The DSH community plugin directory (e.g., SkillHub) is an independent site with no official affiliation with DeepSeek / High-Flyer; versions and stars are subject to the information available on respective sites and repositories at the time (GitHub stars show as 0 in directory clues).

Conclusion

dsh-prompt-profiles separates “how to tell the Agent to work” from the Agent preset: section reuse, profile ordering and scope, session-level sealing, and visualized editing and selection in the Web. If you are already using profiles to manage tools and behaviors in DSH, you can treat this as a parallel configuration axis for the system prompt.

  • Directory Page: https://www.skillhub.cn/plugins/knopki/dsh-prompt-profiles
  • Repository: https://github.com/knopki/dsh-prompt-profiles
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye