dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Configurable coding collaboration style prompts and settings UI for DeepSeek Harness.
dsh-persona is a DeepSeek Harness dual-end plugin that adds a configurable collaboration-style layer to model requests. It is built for people installing or using DSH Web, with a small settings page for choosing how the coding agent communicates.
The plugin contributes one collaboration-oriented system prompt section at order 5, after DSH's core identity and deployment persona prefix. It guides task ownership, evidence-based work, progress reporting, and tone; DSH still owns the core prompt, tool policy, safety rules, and runtime behavior.
dsh-persona plugin settings for the selected style and shared prompt.dsh-persona:style.友好协作 and 务实直接.The current UI intentionally does not include a final injected-prompt preview. Users configure the shared block and chosen style separately; the host renders the final prompt section at request time.
Requires Node.js 22 or newer. The compatibility baseline is DSH 0.2.0-rc.2, matching the development dependencies. The CI Web smoke test uses the same release to verify package installation and startup.
Install the plugin into the DSH Web profile from the repository:
dsh plugin --profile web add github:Diluka/dsh-persona
Restart the DSH Web profile so the Cordis patch mounts the plugin, then open the existing DSH Web GUI.
If the package is later published to npm, it can be installed by package name with the same profile target:
dsh plugin --profile web add dsh-persona
Use the dsh-persona component row in the DSH Plugins manager to start or stop the plugin. While the row is running, open DSH Web and go to:
Settings -> 沟通风格
Depending on the active UI language or navigation labels, the section may also appear as Communication Style.
The dedicated page currently provides:
preset: stores the selected built-in style.shared: edits the common prompt block applied before the style; this editor appears at the end.Changes are persisted through the selected profile's DSH Settings forms and apply to subsequent model requests. If an agent preset registers a complete system-prompt section, DSH intentionally omits additional sections, including this style layer; the plugin does not bypass that preset contract.
Runtime options live in the profile's dsh-persona plugin entry and are edited through DSH Settings forms. The root Config is marked volatile so edits update the prompt layer without a restart.
Composition defaults may still be supplied when mounting the plugin:
- id: dsh-persona
name: dsh-persona
config:
preset: pragmatic
shared: |-
# Work Presentation
- Keep the user clearly informed about ongoing actions without unnecessary detail.
Settings-page edits persist to the selected profile's Cordis composition. Clearing an override restores the value inherited from the composition.
dsh-persona is a style layer, not a control plane for agent behavior.
The effective authority remains with DSH's host composition, active agent configuration, tool definitions, sandbox policy, approval policy, and model routing.
The default common prompt encourages Codex-like collaboration habits using DSH's available tools and interaction features:
The style selector changes tone while retaining the same shared work guidance:
friendly / 友好协作: warm, patient explanations and approachable collaboration, without routine praise or extra confirmation steps.pragmatic / 务实直接: direct conclusions, concrete recommendations, and concise discussion of relevant tradeoffs.These prompts guide behavior; they do not reproduce Codex's runtime or guarantee the same model performance. DSH's active mode, tool availability, and approval rules continue to apply.
An explicitly configured shared value, including an empty string, is preserved when upgrading. Profiles without a shared value use the new default automatically. For a profile with a saved override, retain any custom instructions you still need, then use 恢复默认共通提示词 (Reset shared prompt) in Settings -> 沟通风格 and save. Reset restores the inherited composition value, falling back to the installed plugin's default; if the composition itself supplies an older shared block, update or remove that composition value to adopt the new default.
The DSH component-row switch is the no-style-layer case; the plugin Config contains only the selected style and shared prompt.
This repository is a DSH plugin package, not a standalone web app.
systemPrompt section.settings.section UI inside DSH Web, reads the dsh-persona entry through configForms, and writes only volatile fields.At runtime the host reads the volatile plugin Config, combines the common prompt block with the selected read-only style prompt, and appends the result as a style section for future model requests. The client edits profile configuration only; it does not own prompt injection.
Remove the plugin from the DSH Web profile:
dsh plugin --profile web remove dsh-persona
Restart the DSH Web profile after removal so the composition no longer mounts the plugin.
The style options are part of the profile's plugin configuration rather than a separate runtime settings store. Any remaining composition defaults or overrides are governed by that profile's Cordis patch.
Install dependencies and run the project checks:
pnpm install --frozen-lockfile
pnpm check
Verify package contents without publishing:
pnpm pack:dry-run
Tests cover pure prompt logic, mocked Host wiring, real Cordis/system-prompt registration, volatile Config resolution, settings-form policy cleanup, literal {{...}} text, and complete-prompt precedence.
CI packs the plugin, installs that tarball into a temporary DSH Web profile using DSH 0.2.0-rc.2, starts dsh web, and fails if the server does not become reachable or exits early. This smoke test proves package installation and server startup, not browser interaction.
Useful local validation flow:
http://127.0.0.1:3080.dsh-persona as running and Settings -> 沟通风格 is available.shared, and verify subsequent model requests reflect the style layer.dsh-persona component row in the DSH Plugins manager and confirm the settings page and style layer disappear; re-enable the row to restore them.Do not validate this package by starting a replacement Vite server; DSH Web provides the runtime boot context for the plugin.
Included now:
preset and shared configuration in dsh-persona;friendly and pragmatic style prompts;友好协作 and 务实直接;Deferred until there is a concrete need: