Introduction¶
The plugin ecosystem of DeepSeek Harness (DSH) enables flexible extension of local large-model capabilities. For Chinese web-novel writing, dsh-novel-writer is a local workbench plugin. The core problem it solves is how, when running locally, to maintain stylistic consistency, manage foreshadowing and settings systematically, and complete the full workflow from “pre-writing material gathering” to “whole-book structural check” without relying on online APIs.
The plugin is maintained by siweina and is open-sourced under the MIT license. It does not depend on any cloud API; all text analysis, style comparison, and semantic retrieval are performed locally.
Core Features¶
The plugin provides 19 tools, covering the complete loop of web-novel creation.
- Writing workbench trio:
novel_chapter_brief: Call before writing to gather 16 input materials in one request (previous chapter ending, hooks, outline direction, character cards, pending foreshadowing, worldbuilding terminology, style baseline μ±σ, source-text anchor passages, etc.). Missing items are recorded in thedegradedfield.novel_fix_plan: Revision console that converts style diagnostics into a prioritized to-do list (with line numbers, current and target values, anchor passages, and rewrite direction), and supportsplan,verify, andmarkstates for rechecking.novel_plot: Structural view for cross-chapter checks, inspecting foreshadowing spans, character absence intervals, plotline gaps, and more.
- Style quantification: Provides six-dimensional μ±σ baseline analysis (syntax complexity, modifier density, abstraction level, action density, uncertainty, negative space index) and a 12-axis atmosphere spectrum.
- Local semantic engine: Built-in 24MB Chinese model (bge-small-zh), supporting local vector retrieval for natural-language queries of semantically related passages.
- MCP support: Can serve as an MCP server for Claude Desktop or Cursor.
- Settings management: Includes foreshadowing registration, five settings tables (characters / locations / items / timeline / worldbuilding), continuity auditing, and more.
Installation and Activation¶
Installation requires the environment dependencies to be met. Run the following command in the terminal:
dsh plugin add dsh-novel-writer
Environment requirements:
* Node.js version: >= 22.3
* DeepSeek Harness version: >= 0.1.1-rc.2
After installation, restart DSH. A “Writing Assistant” entry appears in the DSH left-side navigation area.
Typical Usage¶
The following is the standard workflow for completing one web-novel chapter:
- Prepare the directory
mkdir -p novels/我的小说
-
Gather pre-writing materials
Enter the following in the conversation:
> Gather materials for the next chapter
The system callsnovel_chapter_briefand returns a complete material package, including the previous chapter continuation, relevant characters, pending foreshadowing, style baseline μ, source-text anchor passages, and more. -
Write the main text
Follow the returned anchor passages and skeleton to create the content. -
Self-check
Enter the following in the conversation:
> Self-check this chapter
The system callsnovel_style_checkand outputs similarity, a deviation list, and a six-dimension comparison table (in-band ✓ / out-of-band ⚠). -
Create a revision checklist
Enter the following in the conversation:
> Turn this chapter into a revision checklist
The system callsnovel_fix_planand outputs to-do items sorted by severity → difficulty → line number. Each item includes the original line number, current and target values, anchor passages, and rewrite direction. -
Whole-book structural check
Enter the following in the conversation:
> Check the whole-book structure
The system callsnovel_plot { action: "graph" }and analyzes cross-chapter structural issues such as foreshadowing spans and continuous character absence intervals.
Notes¶
- Data privacy: All inference is local; the manuscript is not uploaded, and no API token consumption is involved.
- Language design: The plugin is designed only for Chinese novels. The core model and corpus are optimized for Chinese.
- UI note: The interface style uses official DSH design tokens.
- Installation source: Install using
dsh plugin add dsh-novel-writeror from the official directory to ensure version compatibility.