Back to directory

dsh-output-styles

In a curated listMaintenance: Active

perrylink/dsh-output-styles

Claude Code outputStyles for DeepSeek Harness - session-scoped, durable, runtime-switchable model output styles (/style command, output_style storage domain, systemPrompt injection)

View on GitHubHomepage
$ dsh plugin --profile web add github:PerryLink/dsh-output-styles

15

stars

2

forks

TypeScript

Language

Apache-2.0

License

2026-08-13

Created

2026-11-22

Last push

Apache-2.0 DSH plugin that reimplements Claude Code `outputStyles`: `/style` persists the pick per session and injects the style body into every DeepSeek Harness prompt.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-11-23

License

Apache-2.0

01What can it help you accomplish?

  • Switch the model's answer style at runtime from inside a DSH session

    `/style concise` makes every following reply terse; `/style off` returns to the project default; the pick is kept per session across restarts

    DSH users who want shorter or more explanatory answers without editing prompts or reloading the harness

  • Keep an answer style as a reviewable Markdown file instead of a hidden prompt

    One Markdown file per style (`styles/*.md`, frontmatter for metadata, body as the model instruction), six built-ins, layered `stylesDir` directories and Claude Code `outputStyles` JSON support

    Teams and plugin authors who want versioned, per-project answer formats

  • Export a DSH session as Markdown or sanitised HTML

    `{ original, rendered }` pairs, `md` / `html` output from `/transcript`, and `--save` writing a sanitised document into the workspace after approval

    Users who need session records for reports, handoff or audit

02How to install into DeepSeek Harness

Prerequisites

  • A DeepSeek Harness install to add the plugin to — the README was last verified against `dsh-v0.2.3-alpha.1` (2026-11-22)
  • Node.js `^22.19.0 || >=24.9.0`, per the compatibility table

Installation steps

  1. 01

    Add the plugin to a profile: `dsh plugin --profile web add github:PerryLink/dsh-output-styles` for the latest `main`, or `dsh plugin --profile web add dsh-output-styles` for a published npm version (a `pnpm pack` tarball also works).

    $ dsh plugin --profile web add github:PerryLink/dsh-output-styles

  2. 02

    Optional: insert an `output-styles` row in the profile patch and set `defaultStyle` to `concise`; without it the plugin runs on its defaults.

Verify the integration

  • `dsh --profile web --dump-config | grep -A3 'id: output-styles'` should show the inserted plugin row.
  • Inside a session, `/style` lists the current choice and every style; `/style concise` answers `switched to concise`.

Rollback

  • Run `dsh plugin --profile web remove dsh-output-styles`, or delete that row from the profile patch.

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH plugin: added to a profile with `dsh plugin --profile <name> add dsh-output-styles`, it registers a `/style` command, an `output_style` storage domain and a `systemPrompt.section()` contribution that runs on every prompt assembly.

  • `/style` command (list, switch, reset)

    `/style`, `/style <name>` and `/style off` in a DSH session→The current choice plus one line per style; a switch is persisted for that session

    every switch writes the session-scoped `output_style` storage domain and leaves a trace in the session log
  • System-prompt injection with a character budget

    The style body selected for the current session→A `systemPrompt.section()` at order 90 carrying that body, truncated with a marker past `maxStyleChars`

    the style body is merged into the system prompt on every assembly
  • Renderer registry and per-tool rules

    `rules` entries and pure presenters registered through `ctx.outputRenderers`→Rendered text from the built-in `concise` / `step-by-step` presenters, carried as `{ original, rendered, rendererId, changed }`

    rendering changes presentation only — the original text stays reconstructible from the session log
  • `/transcript` export

    `/transcript`, `/transcript md`, `/transcript html` and `--save <path>`→The current session as Markdown or sanitised HTML

    `--save` writes a sanitised document into the workspace, and only after approval — no approval or no fs service means no write

04Who is it for? When not to use it?

Good for

  • DSH users who want shorter or more explanatory answers without editing prompts or reloading the harness
  • Teams and plugin authors who want versioned, per-project answer formats
  • Users who need session records for reports, handoff or audit

Not for

  • The workshop manifest declares `fs:read`, `fs:write`, `fs:watch`, `storage:read`, `storage:write` and `settings:read`, so the plugin can read style directories and write exports into the workspace.
  • Styles apply to the main session only; subagent sessions keep their own prompts, the same as Claude Code.
  • If a first-party `outputStyles` service is present, the plugin skips its own prompt injection and keeps only hot switching, rules and `/transcript`.

05Compatibility, maintenance and safety notes

  • The workshop manifest declares `fs:read`, `fs:write`, `fs:watch`, `storage:read`, `storage:write` and `settings:read`, so the plugin can read style directories and write exports into the workspace.
  • Styles apply to the main session only; subagent sessions keep their own prompts, the same as Claude Code.
  • If a first-party `outputStyles` service is present, the plugin skips its own prompt injection and keeps only hot switching, rules and `/transcript`.
  • Style bodies longer than `maxStyleChars` (4000 by default) are truncated with a marker, and broken style files are skipped with a warning instead of breaking the profile.
2026-08-132026-11-18v0.8.5

Apache-2.0 · active, last push 2026-11-18, latest release v0.8.5

06Frequently asked questions

How do I install dsh-output-styles in DeepSeek Harness?

Run `dsh plugin --profile web add dsh-output-styles`, replacing `web` with your own profile name. The git channel `dsh plugin --profile web add github:PerryLink/dsh-output-styles` takes the latest `main`, and a tarball from `pnpm pack` works too. Check the result with `dsh --profile web --dump-config | grep -A3 'id: output-styles'`.

What does the `/style` command actually do?

Without arguments it lists the current choice and one line per style, `/style <name>` switches and answers `switched to concise`, and `/style off` returns to the project default. Multi-word style names take the whole remainder of the line, so a file named `Diagrams first` is selected with `/style Diagrams first`.

Does the choice survive a restart, and does it phone home?

Yes for that session: the pick sits in the `output_style` storage domain, isolated per sessionId, and is still there after a restart. Nothing else is persisted and the plugin makes no network requests — style bodies are re-read from `styles/` and `stylesDir` at every assembly.

Which DSH version is supported, and what if the harness ships its own outputStyles?

The README was last verified against `dsh-v0.2.3-alpha.1` (2026-11-22). If a first-party `outputStyles` service shows up, the plugin stops injecting its own prompt and degrades to hot switching, rules and `/transcript`; every `/style` reply then says so instead of implying the style took effect.

How do I remove it, and what permissions does it declare?

Remove it with `dsh plugin --profile web remove dsh-output-styles`, or delete the row from the profile patch. Its workshop manifest declares `fs:read`, `fs:write`, `fs:watch`, `storage:read`, `storage:write` and `settings:read`.

08Data and sources

  • Author-claimedgithub.com51b6759ce9cb…

    dsh plugin --profile <name> add dsh-output-styles

  • Author-claimedgithub.com51b6759ce9cb…

    `dsh-output-styles` 是 DeepSeek Harness 的 Claude Code `outputStyles` 等价实现:一个 `/style` 命令,在运行时切换模型输出风格,按会话持久化,并在每次提示组装时注入。

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-23. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.