
PerryLink/dsh-output-styles
30最近提交 2026年8月15日
dsh-output-styles DSH 插件
dsh-output-styles 允许你通过简单的 `/style` 命令在运行时更改 AI 模型的输出风格。选择会跨重启持久化,并且每个会话独立。它在每次请求时将风格指令注入系统提示,立即影响响应。
如何安装 dsh-output-styles DSH 插件
dsh plugin --profile <name> add dsh-output-styles来源命令需要人工核对。复制不会执行命令。
dsh-output-styles DSH 插件数据来源
dsh-output-styles DSH 插件快照日期:2026年8月16日
discovered
dsh-output-styles DSH 插件能做什么
- 使用包含 frontmatter 元数据的 Markdown 文件定义和切换输出风格。
- 会话级持久化:每个会话的风格选择在重启后保留,且不干扰其他会话。
- 热重载:风格文件更改后无需重启即可生效。
- Web 选择器:在 Web 界面中使用弹出式选择器切换风格。
dsh-output-styles DSH 插件适合哪些场景
- 切换到简洁风格,用于快速、工具密集的编码会话。
- 在调试复杂逻辑时使用逐步推理风格。
- 使用 `/style off` 恢复项目默认风格。
- 创建自定义风格,如教育性解释或正式报告。
dsh-output-styles DSH 插件适合谁
- 使用 DeepSeek Harness 作为 AI 编码代理的开发者。
- 需要跨多个会话保持一致、可定制输出风格的团队。
dsh-output-styles DSH 插件的限制
- 风格仅应用于主对话;子代理会话保持自己的提示。
- 需要 Node.js ^22.19 || >=24。
- 该插件处于早期开发阶段(0.1.0-rc.6),可能包含破坏性变更。
dsh-output-styles DSH 插件的仓库 README 摘录
以下文字摘自 dsh-output-styles DSH 插件的上游仓库 PerryLink/dsh-output-styles 的 README,版权归原作者,仅作引用。
**Claude Code `outputStyles` for DeepSeek Harness** — switch the model's output style at runtime, per session, durably. [](LICENSE) [](https://github.com/PerryLink/dsh-output-styles/actions/workflows/ci.yml) [](https://www.npmjs.com/package/dsh-output-styles) [](https://www.npmjs.com/package/dsh-output-styles) [](#) [](#) [](#) 🌐 [English](README.md) · [中文](README.zh.md) · [日本語](README.ja.md) · [한국어](README.ko.md) · [Español](README.es.md) </div> --- `/style concise` — and every reply from now on is terse. `/style step-by-step` — and the model narrates numbered steps. `/style off` — back to the project default. One command per session, persisted across restarts, zer
阅读完整 README仓库许可: Apache-2.0
dsh-output-styles DSH 插件常见问题
如何安装 dsh-output-styles?
在终端中运行 `dsh plugin --profile <name> add dsh-output-styles`。该命令会安装插件作为一个 bundle 层,包含 storage、storage-json、storage-domain 和插件行。然后使用 `dsh --profile <name>` 启动,即可使用 `/style` 命令。
如何切换到不同的输出风格?
输入 `/style` 列出所有可用风格并显示当前选择。然后输入 `/style concise`(或任何风格名称)切换。使用 `/style off` 恢复项目默认。风格名称可包含空格,如 `/style Diagrams first`。
我可以创建自定义风格吗?
可以。在 `stylesDir` 配置列出的任何目录中放置一个带有 frontmatter(name、description、keep-coding-instructions 等)的 Markdown 文件。文件正文是注入系统提示的指令。插件会监视文件变化并热重载。
为什么风格不适用于子代理会话?
设计上,输出风格仅影响主对话。子代理(子)会话保持自己的提示,与 Claude Code 的行为一致。这是文档中说明的限制,而非错误。
插件是否支持 Claude Code 的 outputStyles JSON 格式?
支持。在 `compatJson: true`(默认)下,你可以加载 Claude Code 的 outputStyles JSON 集合、单个条目或 `settings.json` 风格的数组。无法解析的条目会被跳过并给出警告。`keep-coding-instructions` 和 `force-for-plugin` 等字段会被原样接受。