DeepSeek Harness (dsh) provides a powerful agent runtime, but its native UI can struggle to handle the complex state management required for roleplay—such as long-term memory, worldbooks, story branching, and rollback. The dsh-liketavern plugin addresses this. It transforms the dsh web UI into a SillyTavern-style RP front end, integrating character cards, prompt presets, worldbooks, memory, and state management into the dsh agent runtime.
What Is This¶
dsh-liketavern is a DeepSeek Harness (dsh) plugin maintained by Amakurai. It allows you to import SillyTavern-style character cards and prompt presets into dsh, and manage settings, advance the story, and handle branching and rollback in the dsh native environment.
Core Features¶
- Character card management: Supports importing/exporting PNG and JSON files based on the V1, V2, and V3 specifications. Supports switching between multiple greetings, embedded worldbooks, regex inside cards, and HTML interactive card panels.
- Worldbook system: Supports a three-tier worldbook system: global, character-specific, and session-private. Includes a story Delta Layer that automatically records additions, changes, and invalidations of settings within the story.
- Intelligent long-term memory: Intelligent long-term memory based on BM25 retrieval and time-decayed weights, with automatic summary compression when the capacity limit is exceeded.
- Story branching and rollback: Supports story branching and lossless rollback (independent sub-sessions). Regenerating or editing an AI response automatically creates an independent timeline branch and unwinds subsequent derived state.
- Tech stack and sandboxing: Built-in EJS template engine (with sandboxed execution). HTML interactive card panels run in a strictly isolated iframe script sandbox. Native MVU support.
Installation and Enabling¶
Before using it, make sure your environment meets the following dependencies:
* Node.js: ≥ 24.0.0
* dsh: 0.1.7-rc.2
Run the following commands in the terminal to install:
# 1. 添加插件到 web profile
dsh plugin --profile web add github:Amakurai/dsh-liketavern#v0.4.3
# 2. 检查安装状态
dsh plugin --profile web list --depth 0
# 3. 启动 dsh web
dsh web
After installation, plugin data will be stored in the $DSH_HOME/dsh-tavern/ directory.
Typical Usage¶
- Import Character: Open “Settings → Tavern → Characters” in dsh, click “Import Character,” and select a PNG or JSON file.
- Create New Session: When creating a new session, select “Tavern Mode” and choose the imported character card from the list.
- Story Branching: Use the
‹ n/m ›arrows to switch between branches. - Lossless Rollback: Use “Regenerate” or “Edit” on the right side of a message to roll back the story state losslessly.
- Helper Features: Use “AI Answer” on the right side of a message to generate a user utterance with AI and copy it with one click.
Applicable Scenarios and Notes¶
This plugin is suitable for scenarios that require deep roleplay, long-form story creation, or strict management of story state (memory, worldbooks, variables) in DeepSeek Harness.
Notes:
* Character assets and story state are isolated. Modifying global assets does not affect existing sessions, while modifying session-specific settings affects only the current story.
* All data is stored locally. Back up the $DSH_HOME/dsh-tavern/ directory regularly.
Summary¶
dsh-liketavern introduces mature SillyTavern roleplay features into DeepSeek Harness through a plugin, enabling it to handle complex story state. Developers can visit the directory page and the GitHub repository for more information.