dsh-long-novel-workbench: Long Chinese Novel Workbench in DSH

Introduction

When building writing-oriented agents in DeepSeek Harness (DSH), a common pitfall is that chapters are scattered across chat logs, while outlines, character lists, and foreshadowing notes are kept in separate documents. The model only sees the current conversation window. After writing dozens of chapters, it becomes easy for minor character names, factual settings, and the planting or resolution of foreshadowing to become inconsistent, making systematic review difficult.

Below is an introduction to the community plugin dsh-long-novel-workbench (maintainer micellince). It consolidates chapters, timelines, fact ledgers, foreshadowing, conflicts, characters, highlights, reviews, proposals, and plan alignment into a single interface. Data is stored in local plain Markdown/JSON directories. The AI reads the ledger via tools and submits “Proposals,” which are only written to the main text after being accepted. The plugin is categorized as a Workflow, and the current npm version is v0.4.1 (MIT License).

What is this

dsh-long-novel-workbench is a long-form Chinese novel workbench installed in the DSH sidebar. The README positions it as supporting不限 genres such as Wuxia, Mystery, Sci-Fi, Romance, and Literature. It includes eight built-in style presets for Jin Yong, Gu Long, Liang Yusheng, Arthur Conan Doyle, Agatha Christie, Higashino Keigo, Liu Cixin, and Haruki Murakami. Users can also adjust planned chapter count, words per chapter, structure, style rules, taboos, and review focus points on the preset page.

Compared to “just continuing to write in the chat,” the workbench emphasizes Structured Ledgers + Deterministic Checks (no token consumption) + Proposal Gates: outputs such as generating the next chapter, continuing text, reviewing, or supplementing timelines first enter the “Proposals” page. The main text is only modified after the author accepts, provides revision feedback, or rejects them.

Core Features

Fourteen Tabs and Writing Loop

The workbench features 14 tabs: Overview, Chapters, Timeline, Fact Ledger, Foreshadowing, Conflicts, Characters, Highlights, Review, Proposals, Alignment, Roles, Presets, and Settings.

For writing and editing, the chapter editor supports title, status, in-story time, location, characters present, summary, and body text; it auto-saves after input stops for about 5 seconds. Before overwriting a chapter with new content, the old draft is backed up to .backups/ (keeping up to the latest 100 copies per chapter), allowing line-by-line diff viewing against the current draft and restoration. The Proposals and Review pages support filtering by type or severity, select-all, and batch accept/reject or batch marking.

Views: Timeline Swimlanes and Character Relationship Graphs

The Timeline can be toggled between list and swimlane views: swimlanes are divided by volume (or every 20 chapters if volume info is missing), with the horizontal axis representing chapter numbers; foreshadowing connections (“Planting Chapter → Resolution Chapter”) are drawn as curves. The Characters page can be toggled between list and relationship graph views. The graph supports various relationship notations, un-carded characters appear as ghost nodes, and nodes are draggable.

The Overview and Alignment pages display chapter/word count progress, per-chapter deviations, and the coverage of events, facts, reviews, and proposals. Alignment is calculated based on the “Current Preset,” and presets can carry chapter ranges to support multi-volume works.

Fact Ledger and Deterministic Checks

Facts can include “Valid From/Valid To” chapters (validFrom / validTo), so legal changes to the same attribute across different stages will not be indiscriminately flagged as conflicts. The plugin also performs local deterministic checks, such as: conflicting values for the same attribute within overlapping chapter segments, unresolved foreshadowing past the planned resolution chapter, chapters referencing characters without cards, blocking/critical issues in reviews, and deviations between planned chapter/word counts and actual progress.

Import and Export

Supports importing Markdown from a local directory or a single .md file: scan and preview before importing. By default, one file equals one chapter, # acts as the title, and chapters are sorted by number. Export supports Markdown collections, EPUB 3, and DOCX (implemented with zero dependencies).

AI Entry and 9-Agent Roles

You can click “Let AI Operate” within the workbench for tasks like: generating the next chapter plan, continuing text, AI review, and completing timelines/extracting facts and characters. In the DSH chat, you can also issue commands like “Supplement the timeline for Chapter 3 in [Book Name].” The Agent will first call novel_desk_plan to get a work order, then call novel_desk_propose to submit a proposal.

The “Roles” page defines the responsibilities, inputs, and outputs for 9 Agents: Editor-in-Chief, Outliner, Worldbuilder, Character Master, Timeline Master, Foreshadowing Master, Continuity Reviewer, Prose Reviewer, and Editor. These are read by the AI during writing and review, and their content is editable.

Installation and Activation

DSH Community Plugin Directory Page: https://www.skillhub.cn/plugins/micellince/dsh-long-novel-workbench. Source code and documentation: https://github.com/micellince/dsh-long-novel-workbench.

GUI Installation Steps:

  1. Open DeepSeek Harness;
  2. Go to Settings → Plugins;
  3. Enter the package name in the installation box and install, then refresh the page;
  4. Click to open the “Long-form Chinese Novel Workbench” when it appears in the sidebar.

The package name to enter in the installation box is:

dsh-long-novel-workbench

Command line equivalent (replace <your_profile> with the actual profile name):

dsh plugin --profile <your_profile> add dsh-long-novel-workbench

If there is no npm network access, you can download the tarball from the GitHub Release to install, following the README. For local source access, Node ^22.19.0 || >=24.0.0 is required. Load it by pointing the profile’s install_bundle to the absolute path of the repository, etc.; after modifying the host’s index.js or lib/*.js, the plugin needs to be reloaded; after modifying client.js, simply refresh the page.

Typical Usage

First Open

  • Click “New Work,” fill in the book title, genre, and target chapter/word count;
  • For existing Markdown drafts: Click “Import Markdown,” enter a local directory or single file, scan and preview, then import. Scanning is read-only and does not modify original files;
  • The default data directory is ~/StoryDesk, which can be overridden via the environment variable STORY_DESK_ROOT.

Directory structure schematic (excerpt from README):

~/StoryDesk/
  library.json
  projects/<id>/
    project.json
    chapters/NNNN.md
    facts.json
    events.json
    foreshadow.json
    conflicts.json
    characters.json
    highlights.json
    reviews.json
    proposals.json
    agents.json
    presets.json
    .backups/

Data is preserved after the plugin is disabled; there are no databases or proprietary formats, allowing for backup, Git integration, or opening with other editors.

Driving the Workbench in Chat

Specify the book name and task in the conversation, such as reviewing a specific chapter or supplementing the timeline. The model interacts with the ledger via novel_desk_plan and novel_desk_propose; before body text proposals are accepted, the old draft is backed up and a line-by-line diff is shown.

Proposal Flow

All AI results first stop at “Proposals”: you can accept, provide feedback, ask the AI to rewrite based on feedback, or reject them. Batch processing is also available. The README explicitly states: The main text will not be modified directly without confirmation.

Use Cases and Notes

Who it is for: Authors or plugin developers focusing on Chinese long-form serials or completed works who need consistency management for chapters/timelines/foreshadowing/facts, and want to use Agents for generation and review within DSH while maintaining a human gate.

Permissions and Security: The plugin reads and writes local paths with the current DSH process permissions (default ~/StoryDesk; importing Markdown requires read access to the target directory). Before installing, review the source code and MIT license on GitHub to ensure compliance with your environment and requirements.

Ecosystem Note: DSH adheres to “Everything is a Plugin”; SkillHub etc. are community directories and have no official affiliation with DeepSeek / Hifuture. This article introduces a community-maintained third-party plugin.

Conclusion

Following the steps above, you can use a set of local ledgers to support long-form writing in DSH and lock AI output at the proposal layer. For details, screenshots, and version changes, refer to the repository README, CHANGELOG, and dsh-long-novel-workbench@0.4.1 on npm.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye