Skip to content

x2802490130-prog/dsh-tool-writing

50Last commit Aug 15, 2026

dsh-tool-writing DSH plugin

This plugin equips DSH with a dedicated API key for offloading heavy writing tasks like concurrent drafting, outline generation, and consistency review. It integrates with DeepSeek models and provides a library system for importing and referencing existing novels. Semantic retrieval via embedding (Alibaba text-embedding-v3 or DeepSeek concept index) enables accurate context lookups.

How to install the dsh-tool-writing DSH plugin

dsh plugin --profile web add dsh-tool-writing

Copying does not run this command. Review the repository and version before installing the dsh-tool-writing DSH plugin.

dsh-tool-writing DSH plugin data source

dsh-tool-writing DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-tool-writing DSH plugin can do

  • Parallel batch drafting of multiple chapters simultaneously
  • Consistency review that checks against previous chapters and lore
  • Semantic search (vector + hybrid) for retrieving content by meaning
  • Lore management (characters, world, timeline, foreshadowing)
  • Style fingerprinting to maintain consistent authorial voice
  • Usage accounting and progress tracking with novel_plan

Where the dsh-tool-writing DSH plugin fits

  • Writing long-running web novels with complex plots and large casts
  • Managing and cross-referencing a personal library of novels for inspiration
  • Generating multiple chapter drafts in parallel to speed up production
  • Reviewing written chapters for consistency with established lore and style
  • Tracking foreshadowing and plot threads across hundreds of chapters

Who the dsh-tool-writing DSH plugin is for

  • Web novel authors who want to produce multi-chapter stories efficiently
  • Writers using DeepSeek Harness who need a dedicated tool for creative writing

dsh-tool-writing DSH plugin limitations

  • Requires a separate DeepSeek API key (set via environment variable or credentials)
  • Only works within the DeepSeek Harness environment (DSH profile)
  • Novel project structure must follow the specified directory convention
  • Embedding features depend on Alibaba's text-embedding-v3 or fallback to DeepSeek concept index (may not be available in all regions)

dsh-tool-writing DSH plugin: from the repository README

Quoted from the x2802490130-prog/dsh-tool-writing README, the upstream source of the dsh-tool-writing DSH plugin. Copyright remains with the original authors.

面向 DeepSeek Harness 的「写文引擎」插件:让 harness 具备长篇网络小说的创作能力,并用一把**独立的 DeepSeek key** 承担「子线程 / 分流 / 多线并行」的生成与检索任务。 ## 设计定位 - **主 Agent(harness 自身模型)**:总调度,负责主线叙事、结构、设定、以及「新奇的、出其不意的想法」的决策。 - **本插件(独立 key)**:把重活分流出去——并发生成多章草稿、批量出点子、批量扩写细纲,以及资料检索与一致性筛查。 - **饲料区(书库)**:导入并管理多本小说,建立全文索引,供考据、风格参考与设定借鉴。 ## 工具集 ### 创作核心 | 工具 | 作用 | |---|---| | \`novel_init\` | 初始化小说项目(元信息 + 目录骨架) | | \`novel_outline\` | 生成/展开主线、分卷、章节细纲(可并行) | | \`novel_lore\` | 人物/世界观/时间线/伏笔的增删改查 | | \`novel_brainstorm\` | 并发生成 N 个新奇点子 | | \`novel_draft\` | 起草一章正文(综合设定+大纲+前文,支持分卷) | | \`novel_continue\` | 从最近章节自动续写下一章 | | \`novel_batch\` | 并发生成多章草稿(分流/多线) | | \`novel_polish\` | 润色/改写 | | \`novel_review\` | 一致性审校(检索前文+设定,筛查矛盾) | | \`novel_research\` | 资料检索/考据,归纳成笔记 | | \`novel_status\` | 查看项目进度(分卷/章节/字数) | | \`novel_export\` | 导出全书为单个 Markdown/TXT | | \`novel_summarize\` | 生成章节情节摘要,写入可检索的情节日志 | | \`novel_setting_extract\` | 从正文自动抽取人物/世界观/伏笔到 lore/ | | \`novel_foreshadow\` | 伏笔回收追踪(登记/回收/查未回收) | | \`novel_brief\` | 模糊需求一键开书(一句话 → 完整方案) | | \`novel_distill\` | 蒸馏文本为精华 + 保留校验(项目/书库,含全书语义召回) | | \`novel_handbook\` | 生成给人读的导航手册(含语义召回名场面) | | \`novel_simulate\` | 深度推演引擎(心理/因果/交汇/反常识意外) | | \`novel_semantic\` | 混合语义检索(向量召回+字面召回+LLM 重排

Read the full READMERepository license: MIT

dsh-tool-writing DSH plugin questions

How do I install dsh-tool-writing?

You can install it via npm: `dsh plugin --profile web add dsh-tool-writing`. Alternatively, clone the repository and use `dsh plugin --profile web add file:<path>`.

Do I need a separate API key for this plugin?

Yes. The plugin requires its own DeepSeek API key, which should be set via the environment variable `DSH_WRITING_API_KEY` or through the plugin configuration. This is different from the main Harness key.

Can I use this plugin to write novels in languages other than Chinese?

The plugin itself does not restrict language. It relies on the underlying DeepSeek model, which supports multiple languages including English. However, the plugin's design is oriented toward Chinese web novel workflows, and some internal prompts are in English. You can adapt it to other languages if your model handles them.

How do I import an existing novel into the library?

Use the `novel_library_import` tool. It supports `.txt`, `.md`, and `.epub` files. It will automatically detect encoding and split chapters. The library is stored in `$DSH_HOME/writing-library/` by default.

Can I use the plugin with other DSH plugins simultaneously?

Yes. You can add multiple plugins to your DSH profile. The writing plugin runs concurrently with others, but note that it uses its own API key and has its own concurrency limit (default 4). Performance may be affected if other plugins also consume resources.