x2802490130-prog/dsh-tool-writing 预览 preview

x2802490130-prog/dsh-tool-writing

DeepSeek Harness的写作引擎:长篇网络小说编排,支持独立的DeepSeek密钥、世界观管理、语义检索以及语料库。

Project Overview项目介绍

This is a writing engine plugin built exclusively for DeepSeek Harness (DSH), designed to add full long-form web novel creation capabilities to the DSH agent framework. It uses an independent DeepSeek API key to offload parallel subtasks, including concurrent generation of multiple chapter drafts, bulk idea brainstorming, fact checking, and long-form consistency maintenance. The plugin preserves story consistency even after hundreds of chapters, automatically tracking story facts and unfulfilled foreshadowing, and offers three installation methods: npm install, GitHub clone, and local development install. After installation, users must restart the DSH harness to activate the plugin.

The plugin is built for long-form web novel authors who use DSH for their creative work, and provides end-to-end tooling from project planning through drafting to final export. It includes 48 individual tools that cover every step of the process: book initialization, outline building, lore management, drafting, polishing, consistency auditing, platform-specific review, and pre-publication content screening. The split architecture lets the main DSH agent handle high-level narrative and creative decisions, while this plugin handles resource-intensive parallel processing tasks, and it maps one workspace per novel to avoid cross-project interference.

The plugin is released under the open-source MIT license, and requires users to configure their own DeepSeek API key after installation to function. All creative content and project data is stored locally on the user’s machine, and is excluded from Git tracking by default, so no user content is automatically uploaded to any remote repositories. There are no hard-coded credentials in the codebase, all API keys are pulled from the host environment variables, and after configuration, users can run novel_status to verify a successful installation. Users must also provide their own content for any imported reference libraries.

这是一款专为 DeepSeek Harness 开发的原生写文引擎插件,核心目标是为 DSH 赋予长篇网络小说的系统性创作能力。它使用独立的 DeepSeek API 密钥承担分流并行任务,包括多章草稿并发生成、批量创意发散、资料检索和长篇一致性校验,能在创作到数百章后依然维持设定、伏笔和大纲的一致性,自动记录故事事实与未回收伏笔。

插件面向希望在 DSH 上创作长篇网络小说的创作者,提供了从开书规划、创作过程到完稿导出的全流程工具支持。一共包含 48 个细分工具,覆盖开书引导、项目初始化、大纲搭建、设定管理、草稿起草、润色改写、一致性审校、平台适配审稿、敏感内容自查等全创作环节。它采用主副分流架构,主 Agent 负责总调度和核心叙事决策,插件承担繁重的并行处理任务,还支持导入外部书库做风格参考和考据。

本插件采用 MIT 许可证开源,支持三种安装方式:npm 安装、GitHub 克隆安装和本地开发调试安装,安装后需要在写作预设的配置文件中挂载插件,配置独立的 DeepSeek API 密钥后重启 DSH 即可使用。所有创作数据默认存储在用户本地工作区,不会自动上传到远程仓库,代码内无硬编码密钥,凭据全部来自宿主环境注入,用户需要自行准备导入书库的内容。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 11 stars - an early-stage project星标 11,属于早期项目
  • No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
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 --profile web add dsh-tool-writing

把 x2802490130-prog/dsh-tool-writing 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-tool-writing

license

面向 DeepSeek Harness 的「写文引擎」插件:让 harness 具备长篇网络小说的创作能力,并用独立的 DeepSeek key 承担「子线程 / 分流 / 多线并行」的生成与检索任务。

一句话定位:一套把"长篇一致性"做成工程的长篇网文创作系统——写到几百章,依然记得住设定、接得住伏笔、守得住大纲;每章写完,事实自动入账,欠读者的账自动记账。

设计定位

  • 主 Agent(harness 自身模型):总调度,负责主线叙事、结构、设定、以及「新奇的、出其不意的想法」的决策。
  • 本插件(独立 key):把重活分流出去——并发生成多章草稿、批量出点子、批量扩写细纲,以及资料检索与一致性筛查。
  • 饲料区(书库):导入并管理多本小说,建立全文索引,供考据、风格参考与设定借鉴。

三件套

仓库 作用
dsh-tool-writing(本仓库) 写文引擎插件本体(novel_* 工具全家桶)
dsh-writing-remote 宿主侧 Typert remote:向客户端面板暴露项目/书库/检索数据
dsh-client-ui-writing 客户端「写作」面板:项目浏览、书库、全文检索、演化 diff、线索图谱

核心设计

多书隔离:一个工作区 = 一本书

  • 引擎项目根按会话绑定的工作区解析(exec.agent.session),同一实例并发服务多会话互不串书;显式 projectRoot(专属预设)优先级最高。
  • 所有项目状态(人物/世界/伏笔/演化/风格/台账/索引)按书存储;用量记账带书标记,novel_usage 可看每本书的消耗。
  • 书库(饲料区)全局共享,所有书可检索同一批标杆。

弹性合同:承诺管死、大纲管路、偏离有程序

  • 故事承诺书(outline/premise.md):全书的题(题材承诺/命运承诺/读者承诺/叙事法律),强制注入每次生成,永不违反。
  • 正典台账(novel_ledger 五表):数字锚/信息来源/时间锚/母题密度/追读力(钩子类型·强度/爽点/微兑现/欠账——上章欠账未回应前不许开新钩子)。
  • 五段写作任务书(novel_draft brief=true):写前想透——开篇委托/这章的故事(目标·阻力·禁区)/人物/怎么写更顺/收在哪里。
  • 硬关卡(novel_draft gate=true):写完自动阻断质检(事实矛盾/承诺违背/欠账未回应/物理硬伤),有问题修复一轮再落盘。
  • 章后八项体检(novel_audit):感知汇聚/多角色体感/断层检测/情感弧线/读者视角/叙述语感/节奏信号(钩子同构·爽点密度·断档·欠账)/AI 味检查。

平台向:起点 + 番茄

  • novel_market:双平台审稿——起点(黄金三章/单章字数/每 3 章爽点/长线伏笔/均订逻辑)、番茄(第 1000 字小爽点/前 3 章打脸/完读率/憋屈时长/爽点密度),输出适配度与改造清单。
  • novel_censor:发书前敏感自查(涉政/色情擦边/暴力血腥/赌博毒品/封建迷信/现实机构影射/未成年红线)。
  • 平台规则与敏感自查框架为全局技法卡($DSH_HOME/global-techniques/),所有书生成时自动注入。

工具集(48 个)

开书与规划

工具 作用
novel_brief 引导式开书:模糊需求 → 澄清问题清单(带选项与影响)→ 完整开书方案(书名/简介/卖点/金手指/人设/大纲/读者承诺)
novel_init 初始化小说项目(元信息 + 自动铺骨架)
novel_scaffold 体检补全工程骨架(非破坏式,空目录一键初始化)
novel_outline 生成/展开主线、分卷、章节细纲(可并行)
novel_check 全环节体检 checklist(骨架/设定/台账/索引/活目录)

创作核心

工具 作用
novel_lore 人物/世界观/时间线/伏笔设定卡增删改查(带演化史)
novel_brainstorm 并发生成 N 个新奇点子(金手指/反转/钩子/冲突)
novel_draft 起草一章(可选 brief 任务书 + gate 硬关卡,支持分卷)
novel_continue 从最近章节结尾自然续写下一章
novel_batch 并发生成多章草稿(多线任务分流)
novel_polish 润色/改写(不改变情节与信息)
novel_simulate 深度推演引擎(心理/因果/交汇/反常识意外)
novel_choice / novel_decision 人机共创决断点(选项+利弊,人做美学决断)
novel_research 资料检索/考据,归纳成笔记
novel_export 导出全书为单个 Markdown/TXT

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-balance 下一个 Next capital-generation →