HuanLinOTO/dsh-plugin-preface-context0

@huanlin/dsh-plugin-preface-context

在每次会话开头固定注入一段用户配置的文本上下文(设置页输入框可编辑),作为模型可见的 instructions 注入第一轮请求。 | Injects a user-configured text block as model-visible instructions context at the start of every DSH session (editable from the settings page).

AI Analysis

实现全局个性化系统提示词注入。适合需要为所有新会话统一设定角色背景、回复偏好或工作流约束的用户。

Package
@huanlin/dsh-plugin-preface-context
Version
0.1.0
Last updated
Sep 3, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HuanLinOTO/dsh-plugin-preface-context

配置

设置页卡片中:

  • 启用:开关关闭时不注入任何文本。
  • 上下文文本:输入要注入的文本(支持多行)。文本为空时不注入。

也可通过 cordis.patch.yml 的 plugin-row config 块提供 composition base(默认 enabled: true, contextText: '')。