siweina/dsh-novel-writer

DSH / DeepSeek Harness 小说写作助手插件:章节库管理、句式模式分析(九类句式/情感曲线/风格指纹)、风格自检、伏笔登记、批量导入、续写辅助。dsh-plugin 小说写作 人工智能写作

Project Overview项目介绍

siweina/dsh-novel-writer is a native plugin built exclusively for DeepSeek Harness (DSH) for Chinese novel writing. It also exposes all 18 of its tools as a stdio MCP server that works with any MCP client, including popular options like Claude Desktop and Cursor. The plugin covers the entire workflow of Chinese web fiction writing, from pre-writing material gathering to post-writing quantitative self-check, prioritized revision, and cross-chapter structure inspection. All semantic and stylistic analysis runs locally on your machine, with a 24MB Chinese model included, so there are zero API costs and your text never leaves your device.

This tool is built for Chinese web novel authors, and addresses common pain points like inconsistent writing style, forgotten pre-writing materials, lack of clear revision priority, and cross-chapter structural inconsistencies. The typical workflow starts with a single call to fetch all 16 required pre-writing materials, then authors write their new chapter, run a 6-dimensional style check after finishing, get a revision to-do list sorted by severity, recheck problem status after editing, and can run a full structural check across all chapters to catch issues with plot threads, characters and unused foreshadowing.

dsh-novel-writer requires Node.js version 22.3 or higher, and DSH version 0.1.1-rc.2 or newer to run, and it is released under the permissive open source MIT license. You can install it directly via npm or from the GitHub source within DSH, and non-DSH users can configure it via the MCP protocol in their preferred MCP client. Dependencies are installed automatically, the quantized BGE small Chinese model is included with the package, all inference runs locally on your CPU, and the only external network call is a GitHub API check for new versions with no user content sent.

这是专门为DeepSeek Harness(DSH)打造的中文网文写作原生插件,同时也可作为MCP服务器供Claude Desktop、Cursor等MCP客户端使用。它提供18个工具,覆盖从动笔前材料准备,到写完量化自检、按优先级改稿复测,再到跨章结构检查的完整网文写作流程。全部语义、风格分析都在本地完成,随包分发24MB中文模型,零API调用花费,正文不会离开用户本机。

面向中文网文作者,解决文风漂移、动笔前漏准备材料、改稿无优先级排序、跨章结构矛盾等常见创作痛点。典型工作流为:动笔前调用工具一次性获取16项创作相关材料,写完章节后做风格六维自检,生成按严重度排序的改稿待办,改完可复测问题状态,还可做跨章结构体检排查伏笔、人物、剧情线问题。

要求Node.js ≥22.3,DSH ≥0.1.1-rc.2,采用MIT许可证开源。可通过npm或GitHub源在DSH中安装,非DSH用户可通过MCP协议配置使用。依赖自动安装,随包分发量化后的BGE中文小模型,全部推理在本地CPU完成,仅检查更新时会调用GitHub API,无其他外部网络请求。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 18 stars - an early-stage project星标 18,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin add dsh-novel-writer

把 siweina/dsh-novel-writer 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

📚 dsh-novel-writer — 给网文作者的本地写作工作台

English | 中文

npm version npm downloads License: MIT Node DSH GitHub stars siweina/dsh-novel-writer MCP server

18 个工具,覆盖「动笔前取材料 → 写完量化自检 → 改稿按优先级复测 → 跨章结构体检」整条流程。 动笔前一次调用取齐 16 项材料(漏读一样就漂移);改稿不再只丢给你一堆数字,而是按严重度排好的待办(带原句行号、当前值与目标值、原著锚段,只给方向不代写);跨章层面能查「线断了、人丢了、伏笔忘了」。 句式 / 情感 / 语义全部在本地算:24MB 中文模型随包分发,零 API 花费、正文不出本机。 为 DeepSeek Harness(DSH)打造;同一套能力也可作为 MCP 服务器给 Claude Desktop / Cursor 使用。

官网 · 技术文档(18 个工具的参数与示例) · 安装 · 写作流程 · 60 秒上手 · 看看输出 · 18 个工具 · MCP 服务器


写作流程(一条能走完的闭环)

步骤 你说什么 用哪个工具 拿到什么
① 取材料 「给下一章取材料」 novel_chapter_brief 一次调用取齐 16 项输入:上一章结尾原文(承接口)/ 上一章钩子 / 本章大纲方向 / 相关人物卡 / 待回收伏笔(含埋了多久)/ 世界观用语规范与禁词 / 六维基线 / 原著锚段与句式骨架 / 上一章自检结论 / 禁用清单 / 开写清单——缺哪项、为什么、怎么补写在 degraded 里
② 动笔 「写第 N 章」 novel_new_chapter · write 新章文件(自动附基线 μ 摘要与原著锚包);锚段只用来校准语感(不照骨架造句),数字只做事后校验
③ 自检 「自检这一章」 novel_style_check · novel_sentence_analysis 相似度 + 偏差清单 + 六维对照(带内 ✓ / 出带 ⚠)。只有偏离明显(≥2 倍容差)或读起来确实别扭时才改——单一维度轻微出带属正常波动,不要为对齐数字改文
④ 改稿 「把这章排成改稿清单」 novel_fix_plan 按「严重度 → 难度 → 行号」排序的待办(默认上限 12 条),每条带原句行号、当前值/目标值、锚段与改写方向;分批改(同段同类合并),改完最多 verify 一次
⑤ 跨章体检 「看看全书结构」 novel_plot { action: "graph" } 伏笔埋设跨度 / 人物连续缺席区间 / 剧情线最大空档 / 时间线顺序 / 大纲方向与正文的偏离

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-llm-verifier 下一个 Next dsh-local-ai →