Always-on writing-style section appended to the system prompt (1449 characters: six principles plus banned-phrase, banned sentence-pattern and English-mirror lists) that steers replies towards a terse engineering register, plus two tools — humanize_check scans text against 58 rules (45 Chinese, 13 English, eight groups) and reports hits with dash, bold and sentence-length statistics, and humanize_rules returns the long-form lists for direct, GPT-style, DeepSeek-style or 31 editing checkpoints.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-direct-human-style
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:pseudonymzjt/dsh-direct-human-style
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
常驻文风约束插件,给 DeepSeek Harness 用。一轮对话开始时把一份直白文风契约写进系统提示词,并配两个按需调用的工具:一个扫描稿子,一个查清单全文。
An always-on prose contract for DeepSeek Harness: one system-prompt section applied to every turn, plus humanize_check (pattern and rhythm scan) and humanize_rules (the long-form lists, pulled only when needed). Zero runtime dependencies.
为什么常驻而不是按需
写作风格约束只有在每轮都生效时才有意义。按需触发的 skill 要用户先说「帮我润色」,模型才想起规则;那时候稿子已经写完、AI 腔已经落地。这个插件在 order 100(persona 之后、工具段落之前)挂一段 1449 字符的契约,默认对所有对话生效。
代价是每轮多花约 1010 tokens。所以长清单不放进提示词,放工具后面。
装了什么
常驻提示词段。 七条原则:结论先行、直接说是什么、该下判断就下、去掉元话语、具体压抽象、句长自然交替、长度跟着信息走。加必删套话表、必拆句式表、英文镜像和例外条款(纯代码、引文、法条、错误日志不动)。
humanize_check。 58 条规则(中文 45、英文 13)分八组:平行否定、元话语、伪严谨、套话收尾、抽象大词、拔高、借权威、中文冗余。输入一段文本,返回命中位置、类别和改法,外加统计指标:破折号密度、加粗占比、列表占比、平均句长、段落长度变异系数。纯文本(Notion、网页抽取)里没有任何 Markdown 标记时,格式类指标会单独标注为不可信。判两轴取重的一轴。词级:严重度按 3/2/1 加权,除以「字数/300」(下限 8,避免长文被稀释成 clean)。结构级:序数骨架、标签冒号开头、短句先行、对称否定这四项按绝对条数给分,不随长度衰减。两轴取最大值判四档:clean / mostly clean / some templating(≥4)/ heavily templated(≥9)。命中是线索不是判决书,报告里会注明。
humanize_rules。 取清单全文,四份:
| part | 内容 |
|---|---|
direct |
全局直白风格七条原则与替换示例 |
gpt |
GPT 腔调 16 条(英文模型特征与中文对应) |
deepseek |
DeepSeek 腔调 20 条(中文模型特征) |
checkpoints |
A–F 31 个检查点,改别人稿子时用 |
all |
四份拼接 |
安装
dsh plugin --profile desktop add github:pseudonymzjt/dsh-direct-human-style
本地开发挂目录:
dsh plugin --profile desktop add "link:D:\path\to\dsh-direct-human-style"
装完重载 profile。插件列表里显示「直白文风 Direct Human Style」。
配置
cordis.patch.yml 里可传:
| 键 | 默认 | 说明 |
|---|---|---|
enabled |
true |
关掉整段注入与工具 |
order |
100 |
提示词段排序 |
registerTools |
true |
只留提示词、不注册工具 |
extraBanned |
[] |
追加到提示词末尾的禁用表达 |
目录
index.js 插件入口:注册提示词段与两个工具
prompt.js 常驻提示词文本
rules.js 四份清单全文(硬编码,不读 markdown)
analyze.js 扫描器:正则规则 + 统计指标
locale/{en,zh}.json 插件列表里的标题与描述
icon.svg 图标
cordis.patch.yml bundle patch
selftest.mjs 开发自测,不随包发布
自测
node selftest.mjs
跑脏中文、干净中文、英文三组样本,加四份清单长度检查。
规则来源
- A–F 31 个检查点来自 Humanizer-zh(MIT,Copyright (c) 2026 歸藏),本插件把它的编辑逻辑提炼成常驻契约。
- GPT 腔调清单依据 Wikipedia:Signs of AI writing。
- DeepSeek 与中文腔调清单依据 中文维基:AI生成文的特征,并参考中文写作社区对「AI 味」的归纳。
实现说明
零依赖。刻意不 import @deepseek-ai/dsh-tools:以 link 方式安装的 bundle 没有自己的 node_modules,裸导入宿主包会抛 ERR_MODULE_NOT_FOUND,而且失败是静默的——工具不注册、插件不报错。index.js 里的 makeTool 自己做了参数校验,覆盖 required / string / integer / array / enum。
rules.js 是硬编码文本,与上游 markdown 分开维护。改了清单要同步到 rules.js,selftest.mjs 打印的四份字符数用来发现漏同步。
许可
MIT。上游 Humanizer-zh 同为 MIT,版权归 歸藏;见 LICENSE。
Links
More in this category
kingcharleslzy-ai/dsh-purge★ 13247
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
aureth-labs/dsh-aurabot-qq★ 752
Puts the agent on QQ as a persona character through SnowLuma (OneBot v11): private and group chat, voice notes, stickers, Qzone diary, Bilibili browsing, song covers, image generation, long-term memory and mood. Every feature is a module you can switch off, replace or extend locally — hot-reloaded modules can also rewrite group-reply decisions, prompts, outgoing messages and per-chat model choice. Safe by default (master switch off, dry run on).
ECNU/EduWork#dsh-oidc★ 429
Configurable OIDC login and token-authorized model access, including LiteLLM and opt-in oidc-llm integration, with a standalone DSH Web backend.
techflag/workdsh#enterprise-connection★ 348
Enterprise login, colleague mentions, shared text and files, and authenticated business requests for WorkDSH Desktop 2.0.6-alpha.3+ with WorkDSH Admin; distributed as a release archive.
Yuuyuko-uu/dsh-feiyu-mood★ 278
Gives the companion a mood judged each turn and shown as a short context note, with a panel for mood, emotion dimensions and timeline.
FNOSP/fnos-dsh#dsh-codex-auth-plugin★ 128
ChatGPT account sign-in for DeepSeek Harness through a Codex browser OAuth flow with no API key and no workspace selection: subscribes the login to pi-ai's Codex provider, lets you set the global default Codex model and reasoning effort for new sessions, refreshes the model list from the signed-in account's own catalog endpoint, and shows the five-hour and weekly usage windows in the composer.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.