Introduction¶
When writing serialized stories or series of short stories with models in DeepSeek Harness (DSH), the common practice involves scattered Markdown or generic file tools. Character settings are prone to repetitive pasting across episodes; if a name or relationship is changed in one episode, another may still reference the old draft. Furthermore, if the model modifies files directly, it is difficult to guarantee that the user sees the final state before it is written to disk. The serial-story-writer maintained by LeeGuanWei-a (npm package @leeguanwei/dsh-serial-story, GitHub: LeeGuanWei-a/serial-story-writer) consolidates the workspace into a fixed project format under .serial/: one worldview, multiple independent short story collections, and shared character profiles referenced across collections via stable IDs. All writes must go through Harness’s native one-time approval. The following introduces what it is, what it does, and how to install and use it.
What is this¶
Short Story Writer is a workflow plugin for DSH (current version 0.1.1, README specifies target runtime dsh 0.2.0-rc.2). It provides a “Worldview → Multiple Short Story Collections” structure: the Worldview holds shared characters and shared settings; a Collection (collections/<slug>/) is an independent work under the same worldview, each having its own blueprint, timeline, and chapters. The same character can appear in multiple collections, referenced by stable ID, without duplicating or redefining profiles. The benchmark form is “the same batch of characters appearing in multiple independent short stories”—the README uses The Idolmaster Cinderella Colors as an example to explain relationships, rather than a single-line long-form narrative.
The Host root entry only declares the workspaceRegistry dependency and does not attach model-facing tools; the model side uses ./agent (V1), and the browser side uses ./client for a read-only workbench. The V2 proposal entry ./agent-v2 has been implemented but is not yet attached to the preset.
Core Features¶
Project File Layer¶
Under the workspace root is the .serial/ directory. Main assets include:
project.json: World identification and creative guidelines (e.g.,worldId,worldName,language,tone,creativeStrategy,writingRules, etc.)characters.json: Worldview-level shared character profilesworld.json: Shared settings (requiredsetting/locations/notes, etc.)inbox/: Non-authoritative proposal inbox (one file per entry)collections/<slug>/: Individual short story collections, containingblueprint.json,timeline.json,chapters/(NNNN-blueprint.jsonandNNNN.md)
worldId cannot be changed; collection identity is the directory name collections/<slug>/. The slug is not stored in the blueprint JSON but is injected from the directory during reading.
Concurrency and Writing¶
- The revision number for every non-empty asset is the SHA-256 of its canonical UTF-8 bytes; when replacing, only the “revision number read last time” is carried, so the model does not need to repeat the authoritative old text.
- JSON is strictly validated against a schema and then serialized with 2-space indentation + LF; body text LF is normalized to avoid false conflicts caused by formatting differences.
- Any write goes through Harness native one-time approval; the browser workbench does not provide a channel for modifying drafts.
Model-Facing Tools (V1, Attached to Preset)¶
serial_read (by kind):
| kind | Function |
|---|---|
asset |
Single asset text + revision number |
world |
Shared characters + collection blueprints (optional slug to narrow down) |
appearances |
Which collections/chapters a character appears in |
threads |
Storyline sources and advancing chapters |
audit |
Cross-collection structural inspection |
chronicle |
Character chronicle (collections with time anchors sorted chronologically) |
serial_apply_change: initialize (only after NOT_INITIALIZED) and replace (single asset + baseRevision). Illegal content is returned as deny before the approval gate, without popping up an approval card.
Design emphasis: Appearances and storyline advancement only recognize blueprints, not body text; chapter blueprints should be written before body text. audit will mark chapters that have “body text but no blueprint.”
Read-Only Workbench (Client)¶
The sidebar “Short Story Workbench” and the preset “Short Story Writer” share the same .serial/ project: browse project/worldview/characters/proposals/collection chapters via the left tree; view settings, appearances, storyline trajectories, body text preview, and revision numbers on the right (the browser uses WebCrypto to replicate the Host’s SHA-256, consistent with the model side). The panel does not modify drafts.
Non-Authoritative Proposals (V2, Not in Preset)¶
serial_propose_change can write a suggestion into .serial/inbox/ with a receipt authoritative: false; to actually change the project, native approval is still required. Currently, no preset is mounted for ./agent-v2.
Not Yet Implemented (Explicitly Stated in README)¶
In-panel editing (intentionally not done), batch cross-collection write operations, cumulative character status across collections (missing carrier fields), ./agent-v2 not attached to preset.
Installation and Activation¶
The plugin runs with the current dsh process permissions; please review the GitHub repository source code and LICENSE before installation.
Official installation steps (from README):
dsh plugin --profile web add @leeguanwei/dsh-serial-story
dsh --profile web
The plugin inlines the preset preset-short-story-writer via cordis.patch.yml. Simply select “Short Story Writer” in the session preset selector. This preset only mounts persona, agent-instructions, and ./agent; it does not mount shell, generic file read/write, text replacement, or Code Mode.
Typical Usage¶
1. Initialization and Reading/Writing Assets¶
When not initialized, use the initialize branch of serial_apply_change first; afterward, use serial_read kind="asset" to get the content and revision number for any asset, then submit changes with replace (carrying baseRevision), and confirm the normalized final state in the approval card.
To write complete body text like world.json, you must first get the revision via kind="asset"; kind="world" is a projection and does not contain the world.json body text or revision number.
2. Blueprint Before Body Text¶
Create chapters/NNNN-blueprint.json for a chapter before writing chapters/NNNN.md. Otherwise, the chapter’s appearances and storyline advancement will not be recorded.
3. Cross-Collection Consistency Check¶
Call periodically:
serial_read kind="audit"
Lists structural issues in one go (e.g., undeclared characters/storylines, missing blueprints/missing body text, unused profiled characters, etc.). Inspection is a report and will not cause read failures.
When you need to sort out character stations by timeline:
serial_read kind="chronicle"
4. Human-Side Browsing¶
After starting dsh --profile web, open “Short Story Workbench” in the sidebar for read-only viewing; draft modifications are still completed within the session via serial_apply_change and native approval.
Configuration and Limitations¶
- Host Entry: No configuration items.
- Agent (V1):
assetBytes/workingSetBytes(default 512 KiB),queryMatches(default 20),maxProposalBytes/maxPendingProposals(default 2 MiB / 20). Out-of-bounds values cause errors during loading. - Agent-v2:
maxProposalBytes/maxPendingProposals.
The Client relies on Typert Remote’s workspaceFiles read-only namespace. The Host does not register a self-built HTTP channel (related to the defect in third-party HTTP channel registration on dsh 0.2.0-rc.2, see upstream discussion #5926).
Use Cases and Notes¶
Suitable for: Creators or agent workflow designers who want multiple independent short stories under the same worldview, shared character cross-collection linkage, model edits that must pass through approval, and the need for audit/chronicle to organize structure and personnel.
Notes:
- The plugin is classified as a community workflow plugin; the SkillHub directory page is an independent ecosystem site and has no official affiliation with DeepSeek / Quantilla (HiFloating).
- Stars and versions are subject to the repository (at time of data scraping, GitHub stars were 0, package version 0.1.1).
- Do not rely on V2 proposals or direct in-panel editing; currently, the authoritative write path is only V1 + native approval.
Conclusion¶
serial-story-writer consolidates “Worldview + Multiple Short Story Collections + Shared Character IDs + SHA-256 Revision Numbers + One-time Approval” into a deployable DSH plugin: the model side uses serial_read / serial_apply_change, and the human side uses the read-only workbench to compare against the same .serial/ tree.
- Directory Page: https://www.skillhub.cn/plugins/LeeGuanWei-a/serial-story-writer
- Source Code and Full Field Description: https://github.com/LeeGuanWei-a/serial-story-writer