Introduction¶
When running play sessions in DSH Tavern, two common needs arise: dissatisfaction with generated results, requiring modification of the previous user prompt to trigger a model re-run; and extending short chats into long-form writing with tables of contents, settings, and review workflows. The former is difficult to align with variables and state in “Rollback Turn” relying only on copy-pasting. The latter lacks project-level directories and dedicated agent presets if using the default play sidebar.
dsh-tavern-extras, maintained by Lindemellis and categorized as a client plugin, does not modify dsh-tavern source code. Instead, it utilizes Cordis patches and frontend extensions to provide “Edit Previous Message” within play sessions, alongside an independent “Writing” mode and project structure. The following section covers its positioning, capabilities, and installation methods on the Windows desktop version of DSH Tavern.
What is this¶
In short: dsh-tavern-extras is an add-on bundle for DSH Tavern that provides “Edit Previous Message and Regenerate,” as well as a long-form writing mode based on project directories (presets, Skills, sub-agent review, editable prompts).
- Repository: https://github.com/Lindemellis/dsh-tavern-extras
- Community Directory: https://www.skillhub.cn/plugins/Lindemellis/dsh-tavern-extras
- Current Package Version:
0.1.0(MIT)
The plugin runs under DSH process privileges; please review the source code and license before installation to ensure compliance with your environment and security requirements.
Edit Previous Message¶
An “Edit Previous Message” button appears above the input box in play sessions. The behavior upon clicking can be summarized as: first execute the author’s original “Rollback Turn” (rolling back the body, variables, and state simultaneously, with an “Undo Rollback” option available if necessary), then fill the original text of the previous user message back into the input box. Sending the modified text triggers regeneration.
Please note the following usage details:
- This entry point only appears in play sessions; it will not appear in card conversations or silly conversations.
- If the last turn’s generation failed, the first click will only clear the failed response and return the input; a second click is required to enter “Edit Previous Turn.”
- Images or attachments from the original message will not be brought back into the input box.
Writing Mode¶
The left sidebar adds a “Writing” option next to “Play / Card.” In Writing mode, the list area transforms into a “Project → Conversation” structure.
Project Directory¶
Projects are located under the tavern resource directory, with a path structured as follows:
DSH-Tavern/data/harness/profile-data/tavern/data/resources/novel/<Book Title>/
Each project has a set of conventional subdirectories (Outline, Settings, Foreshadowing Ledger, Ideas, Main Text, Summaries, etc.), with project-level configuration in .novel/project.json. The “+” next to a project is used to create a new conversation, and the “⚙” opens the “Project Settings” in the right sidebar. Opening a conversation within a writing project automatically switches to Writing mode.
Conversations use the “Long-form Writing” agent preset (presets/novel/): it includes nine writing Skills, sub-agent division of labor for retrieval and review, plan mode, and context compression. Additionally, you can use your own Skills from the Tavern “Skill Library” as well as Skills located in .dsh/skills/ within the project. The AGENTS.md in the project root directory is automatically included in the context.
Project Settings (Right Sidebar)¶
- Extra Material Paths: Specify folders or files containing existing novels, settings collections, or reference materials; AI access is read-only by default within this project. On desktop, “+ Select Folder” triggers the native system folder dialog; on mobile remote access, it falls back to in-page browsing.
- Writing Preset: Select a preset from the Tavern “Preset Library.” It reads enabled entries in the same way as “Apply to This Session” and writes them into the project as stylistic requirements. If toggles in the Preset Library change, you can click “Reload.”
These two items are appended to the end of the system prompt on every request and take effect on the next message after modification.
Writing Agent (Right Sidebar “Other”)¶
Configuration applies to all writing projects:
- Main Prompt (default
presets/novel/persona.md) and Nine Skills (defaultpresets/novel/skills/): Editable, view default, restore default. Custom versions are saved inresources/novel/.agent/(persona.md,skills/<name>/SKILL.md); they take precedence over defaults when names match. Plugin updates only replace default files. - Process Settings (
resources/novel/.agent/settings.json): Examples include automatic review after finishing a chapter, review direction, target word count per chapter, sub-agent models, etc. These are assembled into a “Writing Process Settings” section placed after the main prompt. Sub-agent models can only be selected from routes allowed in DSH settings under “Sub-agent Model Selection.”
The main prompt and process settings are placed at the very beginning of the system prompt during each assembly; Skills are re-read by DSH on every load, so changes take effect on the next message. Plan mode rules remain in agent.cordis.yml and require a restart to take effect.
Coexistence with dsh-tavern¶
Sidebar: dsh-tavern registers its sidebar at sidebar.workspaces (priority -1). This plugin registers a shell at priority -2, rendering the Tavern sidebar as-is, then mounting the “Writing” button and writing panel into the corresponding DOM (relying on class names like .dsh-tavern-sidebar, .dsh-tavern-mode-switch).
System Assembly: dsh-tavern’s hook replaces prompt segments for non-Tavern sessions and strips tools like files / Skills / sub-agents. This plugin restores these capabilities for Writing Project Sessions (where .novel/project.json exists in the working directory), while retaining content added by other plugins. The innermost hook registers approximately 3 seconds after startup; requests sent immediately after startup in a writing session may not yet have these capabilities restored.
The system folder dialog reuses DSH’s built-in @deepseek-ai/dsh-host-directory-picker-native; the desktop host runs in the Electron utility process and temporarily sets ELECTRON_RUN_AS_NODE=1 during invocation, otherwise the dialog subprocess might launch as a second desktop application.
Installation and Activation¶
The README states verification on DSH Tavern 2.5.0 (DSH 0.1.5-rc.2, Windows Desktop). The <DSH Tavern> below refers to the installation directory (containing DSH Tavern.exe and the data folder). The community directory does not provide commands like dsh plugin add; installation follows the repository README.
- Place this repository outside the DSH Tavern installation directory, e.g.,
D:\dsh-plugins\dsh-tavern-extras(to avoid being cleared during upgrades). - Close DSH Tavern and edit
<DSH Tavern>\data\harness\profiles\tavern\package.json:
- Add todependencies:"dsh-tavern-extras": "link:D:/dsh-plugins/dsh-tavern-extras"(adjust path to your local location, using forward slashes);
- Add"dsh-tavern-extras"to the end of thedsh.profile.bundlesarray. - Create a directory junction (PowerShell):
New-Item -ItemType Junction -Path "<DSH Tavern>\data\harness\profiles\tavern\node_modules\dsh-tavern-extras" -Target "D:\dsh-plugins\dsh-tavern-extras"
- Start DSH Tavern.
DSH Tavern preserves bundles and dependencies you have added manually during upgrades. To uninstall, delete the two entries mentioned above from package.json and remove the junction directory, then restart.
Changes to plugin code or cordis.patch.yml require a DSH Tavern restart; changes only to the frontend lib/client.js can be refreshed with Ctrl+R.
Typical Usage¶
Change and Re-run (Play): In a play session, if generation is unsatisfactory → click “Edit Previous Message” → modify the text in the input box → send, completing regeneration after rollback.
Start Long-form Project (Writing): Switch to “Writing” → create a <Book Title> project in the project list → configure extra material paths and writing presets via “⚙” → create a new conversation via “+” → write according to the preset flow in the conversation; adjust the main prompt, nine Skills, or process settings (e.g., next chapter auto-review, target word count, sub-agent model) in the right sidebar if needed.
Use Cases and Notes¶
Suitable for users already using DSH Tavern who need to quickly “edit the previous message and regenerate” during play, or wish to manage long novels with a unified directory and agent presets.
Please be aware:
- The plugin does not modify dsh-tavern source code but relies on its internal APIs and DOM structure (e.g.,
/api/dsh-tavern/rollbackTurn,listPresets,getPreset, the eventdsh-tavern-data-changed, and thesystem-prompt/assemblehook). Major version upgrades in dsh-tavern may break the plugin if the structure changes; the design attempts to pass through without affecting the Tavern core, but please report issues on GitHub with the DSH Tavern version noted. - Installation and execution are equivalent to loading a third-party bundle into the DSH process; read the repository source code and MIT license before installing.
The DeepSeek Harness Community Plugin Directory (such as SkillHub) is maintained by the community and has no official affiliation with DeepSeek / HFTC; the installation steps in this article merely restate the plugin README and do not represent an official app store one-click installation process.
Conclusion¶
dsh-tavern-extras connects “Edit Previous Message” to dsh-tavern’s existing rollback mechanism and provides a project-based long-form writing sidebar and agent configuration on top of that, making it suitable for extending play and writing workflows without touching the Tavern core code. For details and updates, see the GitHub Repository and SkillHub Directory Page.