DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-story

W

dsh-story

Discovered

Long-form novel assistant for DeepSeek Harness: story ledger + chapter anchors + foreshadow debt audit + 14 narrative invariants as hard rules (zero mis-kills). AI reviews can miss; the ledger can't.

dsh-story

Long-form novel assistant for DeepSeek Harness: a story ledger (characters/assets/relations/emotions) with append-only event sourcing, chapter anchors with pre-commit/reconciliation, foreshadow debt audit, and 14 narrative invariants checked by hard rules — zero mis-kills. AI reviews can miss; the ledger can't.

中文版见 README.zh-CN.md。

license ci

Why this exists

1000 chapters × 100 characters × 10 attributes = 1 million state items — beyond human memory, so protagonists "had money earlier, broke later", foreshadowing gets planted and never paid off, dead characters come back to life. The mainstream answer (LLM review) costs tokens and still misses. This plugin pushes consistency down into a machine-checkable hard ledger:

  • Every change of money/emotion/relation/realm = one append-only event (chapter number + traceable source)
  • Pre-writing state card: before drafting you automatically get the "current setting" (how much money the protagonist has, what realm, which enemies, which foreshadowing is due)
  • Chapter anchors: pre-commit before writing → settle after writing → OK is recorded / DIVERGED is rejected on the spot
  • 14 narrative invariants audit: asset non-negative / realm monotonic / dead characters get no new events / time monotonic / ghost locations / foreshadow debt / unique items / debt balance / name collisions / sect loyalty… injection experiments 100% recall + zero mis-kills

Measured

ExperimentVerdict
Foreshadow debt audit (120 chapters × 12 foreshadows × debt injection)100% recall, zero false reports · 0.10ms vs 10 hours of human reading
8 invariant classes (300 chapters × 15 characters × injection)8/8 recall · zero mis-kills
New 6 rule classes (including legal defection control group)6/6 recall · zero mis-kills
Large-scale performance (1000 chapters × 100 characters × 200k events)Full-ledger audit p50 83.7ms · 3/3 recall
Real text of 《飞升之后》 (ch001/ch002 live run)Full pipeline passes · drift injection rejected on the spot

All experiment verdicts are recorded in EXPERIMENTS.md (numbers reproducible).

Tools

ToolSemantics
story_newStart a book (setting template: realm ladder/currency/map/unique items/rhythm red lines)
story_draftPre-writing state card (ledger → "current setting" snapshot + due-foreshadow warnings)
story_settleChapter settlement: word-count window (default 2000-3000, configurable) + anchor reconciliation + immediate conservation (no money, no entry)
story_auditFull-book 14-class narrative invariant audit (full event-stream replay, millisecond level)
story_worldQuery the setting: character ledger / foreshadow ledger / event provenance

Honest boundaries

  • Hard rules only report certain violations (zero-mis-kill principle); personality drift/style shifts belong to the soft review layer (LLM verdicts archived), outside the hard-rule scope.
  • Revised drafts must be re-anchored (changing your mind = re-committing).
  • The word-count window is a specification hint, not a kill: word counts can be fixed later; a wrong ledger entry is just wrong.
  • This plugin keeps the story "from breaking"; whether it "reads well" (pacing, payoff) is the template's rhythm parameters plus the soft review layer.

Development

npm test   # plugin integration acceptance (node --experimental-strip-types)
node real-book.mjs   # real-book live run (needs the 《飞升之后》 text)

License

Apache-2.0

Comments

Loading…

Similar plugins

dsh-narrative-ledger

by dongsheng123132

Verifiable narrative state, continuity and character-knowledge ledger for DeepSeek Harness

Tools & CapabilitiesModels & ProvidersManifest valid

★ 2

MIT

JavaScript

Oct 5, 2026

dsh plugin --profile web add dsh-narrative-ledger

by peterwangze

DSH (DeepSeek Harness) 自动化小说写作发布流水线插件:claude-writing-workflow 迁移版 agent 预设 + 小说工作台(可视化/实时渲染/章节编辑)+ 多平台发布配置与数据驱动优化闭环

Manifest valid

★ 7

JavaScript

Sep 16, 2026

dsh plugin --profile web add dsh-novel-writing

by shiyan688

禁AI腔清单能让模型不像 AI,这个工作台让它像你:标好/坏段落 → 压成写作规律(只有规律进写稿上下文)→ 开新章(方向/候选/选段/合并定稿)→ 批注式微调(只改你标过的段,逐字核对)→ 张力曲线与账目体检。dsh 插件,775 条断言。

Development & InfrastructureWorkflow & AutomationManifest valid

★ 7

↓ 583/wk

MIT

JavaScript

Sep 30, 2026

dsh plugin --profile web add dsh-novel-craft

by x2802490130-prog

Writing engine for DeepSeek Harness: long-form web-novel orchestration with a separate DeepSeek key, lore management, semantic retrieval, and a corpus library.

Tools & CapabilitiesManifest valid

★ 11

↓ 361/wk

MIT

JavaScript

Aug 25, 2026

dsh plugin --profile agent add dsh-tool-writing

Local TXT reader in a right-sidebar tab plus a spoiler-safe AI reading companion: the model only sees what you have already read — the current chapter, the tail of the previous chapter, and a per-book

Just for FunManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-reading-companion

by slhssb

Independent-model advisory review for DeepSeek Harness: after each tool step, a reviewer model audits the agent's operations and injects concerns/guidance into the next step.

Manifest valid

★ 0

MIT

TypeScript

Aug 14, 2026

dsh plugin --profile web add @slhssb/dsh-advisor