Skip to content
Projects

About

DeepSeek Harness 长篇角色扮演agent(DSH酒馆插件):SillyTavern 角色卡导入、行动选项卡、分支对话管理、长篇记忆、关键词与语义混合检索、交互式角色卡创作、世界书、多角色 Agent 集群、文风预设、小说与角色卡导出、一键安装。 / Roleplay Agent 、Tavern plugin for DSH (DeepSeek Harness): branch conversation, long-term memory, hybrid keyword and semantic retrieval, SillyTavern cards, interactive card authoring, card export, one-click installers.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+6
in 15 days
+25
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

dsh-NextTavern

简体中文 · English

NextTavern is a long-form roleplay plugin for DeepSeek Harness. Import a community card, choose an authored opening, and play through the card’s own interface in Tavern. State, Worldbooks, and analysis can carry changes into later scenes. Branch from a saved point or export the manuscript and your character card.

0.3.0-rc.2 · DeepSeek Harness 0.2.2-rc.5 or newer · Web / official Windows Desktop · GPL-3.0-only

RC2 release · Install · What’s new · Capabilities · Get started · Website · Changelog · Screenshots · Report an issue

NextTavern 0.3 home with the bundled skin enabled

What’s new in 0.3

NextTavern 0.2.9 could already import community cards, preserve the original, consult Worldbooks, render static styling, and apply built-in writing styles. Version 0.3 brings authored openings, interactive pages, state changes, and analysis into the story workflow. On a card with character creation, pick an opening, complete the card’s setup, and continue on that worldline.

What changed in 0.3 What you can do
Community card import and authored openings Preview the default and alternate openings. Play the chosen text with your player name and the values defined for that opening.
Author interfaces and interaction Use a card’s character creation form, choice buttons, and status panels in Tavern. Reopen recognized floating interfaces from Frontend Settings.
MVU game state Let items, relationships, and attributes change with the story. Branch from a saved point, inspect the resulting values, or edit them directly.
Ruby extra analysis Schedule analysis by story turn and keywords. Reuse published results in later scenes, or run a task and switch presets from Tavern Management.
Structured Worldbooks and EJS Import a standalone Worldbook and bind it to a profile, character, or chat. Use triggers and templates to choose what the model sees this turn.
Community presets and regex Import community JSON presets and arrange prompts, feature groups, macros, and regex rules at the global or conversation level.
Native authoring, worldlines, and side chat Edit and share cards in Native 1.2, discuss or revise the setting in side chat, then continue the story and export the selected worldline’s manuscript.

After the refactor, we ran targeted checks on two randomly selected batches of ten original community cards each. Five additional cards all reached a first story turn from their authored openings, with checks for applicable features such as numerical state, status panels, author terminals, and continued play. Further hands-on testing in the official Desktop app led to fixes and follow-up checks for opening confirmation, character creation screens, and reading layouts. Compatibility depends on the card’s APIs, external resources, and model provider. Real-card testing coverage

When moving from 0.2.x, keep the original environment, export the cards or manuscripts you need, and use a fresh home and workspace. Migration and rollback

One-click install

Official Windows Desktop app (recommended)

  1. Install and open DeepSeek Harness. This link is pinned to the verified 0.2.2-rc.5 host build. Download the official Windows x64 installer
  2. Open Settings → Plugins, open the dropdown next to Add plugin, and select Install third-party plugin.
  3. Enter [email protected], select Install, then enable the plugin. Quit the app and reopen it.

The desktop installer accepts npm package specs, Git URLs, and local sources. Use the pinned npm spec above for this release. See Manual installation for a local archive or the bundled CLI.

Web CLI

Web with a compatible Harness. Stop the host, then install this version and restart:

dsh plugin --profile web add [email protected]
dsh web --host 127.0.0.1

For a first Web install, use Node.js 24.9+ and install the host with npm install -g @deepseek-ai/[email protected].

If your npm registry has not picked up this version yet, download dsh-nexttavern.tgz from the RC2 release and follow the local archive steps.

Use a fresh directory when migrating from 0.2.x. For a fixed port or local archive, see manual install.

Windows

Use the x64 installer or ARM64 installer to prepare a portable Web environment and shortcuts. Windows guide

Linux

The Linux setup script includes glibc recipes for x86_64 and aarch64 and prepares a portable runtime in a separate directory. Linux guide

Android

The RC2 Android preview is for ARM64 phones running Android 11 or newer (arm64-v8a). Download APK · SHA-256 checksum · Source for this APK.

On official RC1, install RC2 over the existing app without uninstalling. A differently signed test build cannot update in place; export or back up your data first. Allow about 2 GB of free space. Android background limits may interrupt the app.

The screenshot shows RC1 on a Redmi K90 Pro Max (Android 16), where installation and a live model call with official DeepSeek sign-in both succeeded. See the RC2 release for test coverage.

Android is maintained on the independent android/mobile-terminal branch.

NextTavern story running on a Redmi K90 Pro Max with Android 16

Installation and model costs

Installation and verification use no model calls. Story generation and enabled background tasks use the models you select. Remote access guide

Getting started

Once one-click install (or manual install) is done and your model is configured:

  1. Create a dedicated workspace. Give this roleplay its own folder so character cards, story resources and exports live together.
  2. Pick "roleplay mode" in the preset menu. Switch to it when creating a session and you are in your story workspace.
  3. Upload a character card, or talk one into existence. SillyTavern / TauriTavern PNG and JSON cards are supported, and you can also describe a genre, characters, relationships and mood and build the card in conversation.
  4. Start playing. Follow the opening, type your actions, switch worldlines, or open "tavern management" to adjust settings at any time.

With no card at hand, a sentence is enough:

Create a steampunk mystery character card. I want to play an investigator who just arrived at the port. Slow burn, several factions, and relationships that develop. You decide the rest.

Tell the agent who you want to meet and what story you want to live through. You can polish every detail, or say "you decide" and let it carry on with a world, a cast, an opening and a style. See document extensions for DOCX and other documents. Have a whole novel lying around? You can have it read into a card, see long text to character card.

Importing SillyTavern / TauriTavern cards

Upload the original card file and tell the agent: "Read this character card and prepare to start roleplay." No manual decoding, no import-tool parameters.

Format Supported
PNG character cards Base64 character data from the chara / ccv3 tEXt chunks; ccv3 wins when both are present.
JSON character cards v1, v2 (chara_card_v2) and v3 (chara_card_v3).
Embedded worldbooks character_book is read, reviewed through the normal import flow and mapped into settings and worldbook.

Use the original PNG that still carries its metadata: a plain avatar, a screenshot or an image with stripped metadata has no character data to import. PNG/JSON parsing is built in and does not need anydoc; the upload entry point ships with a full installation.

After import you can keep working on the character, the worldbook and the writing rules, and the original card plus its extended data are preserved. All three card style fields survive intact; how they interact with presets is your choice, see style presets.

After import, select an authored opening and open the Tavern tab for the card’s Reader, status panels and interactive interface.

Selecting a community card opening

Capabilities

Community card import and authored openings

Import an original SillyTavern or TauriTavern PNG or JSON. NextTavern saves the uploaded file and brings the characters, embedded lore, opening choices, and supported author extensions into the session. Once selected, the author’s text becomes the first Story with the matching initial values and identity macros. The import report shows which extensions were recognized. Community card guide

Uploading an original community PNG card and reviewing its import in Chat

Author interfaces and interaction

Use author-built forms, status panels, or terminals beside the story in Tavern. Reader executes author HTML, CSS, and JavaScript in an isolated browser environment. Supported Helper APIs connect buttons to story input, variables, characters, or Worldbooks. Pictures and audio depend on the author’s resource links. Frontend Settings can reopen recognized floating interfaces. Author pages and script support

An author-built interactive interface running in Tavern

MVU game state

A card can set different starting stamina for each opening, then use supported MVU updates and schemas to change it as the story progresses. Committed attributes, items, and relationships carry forward to the next turn. A branch takes its values from the selected point, and reopening restores its committed state. You can inspect or edit the current values in the status panel. Settled update blocks are omitted from Reader prose and manuscript exports. State initialization, updates, and recovery

An authored MVU status panel shown with story prose

Ruby extra analysis

Cards can declare startup tasks, turn positions, keywords, prompts, and output targets through supported RubyAnalyzer settings. A task reads the relevant story text, then can publish a successful result to the chat Worldbook for later scenes. Use Ruby Extra Analysis in Tavern Management to run an enabled task, switch presets, or view the result. Analysis runs as a separate model task. Ruby scheduling and commands

The Ruby Extra Analysis panel in Tavern Management

Structured Worldbooks and EJS

Import a standalone SillyTavern Worldbook or edit structured entries from an imported card. Bind books to a profile, character, or chat. Authors can make entries constant, trigger them by keyword, chain related entries, and set ordering, insertion position, or budget. Supported EJS templates can read variables and Worldbooks when preparing dynamic text for the current turn. Worldbooks and triggers · Native card and EJS guide

Editing a structured community Worldbook entry in Tavern Management

Community presets and regex

Import a community JSON preset and arrange prompt text, order, feature groups, macros, history, and regex rules. Apply it globally or to a particular conversation. Sampling settings have a separate switch. Native writing styles retain system, blended, and card modes. Request regex changes material sent to the model. Display regex changes what the reader sees while keeping the source history available. Community preset and regex guide

The community preset panel with import and conversation scope controls

Native authoring, worldlines, and side chat

Native 1.2 keeps characters, openings, Worldbooks, rules, and author settings in one document. Create a card in conversation or adapt source material, then export the edited card for a fresh session. The original upload remains separately available. Interactive authoring · Complete reference cards

Side chat can consult current characters, Worldbooks, story, and state. Discuss the next scene or explicitly save a change to the setting, then resume the main story. Branches retain their own story state and memory. Export a manuscript from the selected worldline. Worldlines · Manuscript and card export

Side chat open alongside the main story

Long-form tools

Capability Where to look
Memory and retrieval Fixed settings, recent full prose, and source-linked director notes form the story context. Recall older scenes by keyword, semantic, or hybrid search. Memory · Embeddings
Character perspectives Give key characters their own model or memory perspective. Review character records and optionally enable off-screen reasoning. Character cluster
Models, reading, and usage Pick models per task, see requests, cache activity, and known cost, and use the Tavern skin, status bar, and decision card. Usage · Status and decisions · Amber skin
Installation, adaptation, and resources Use the official plugin command or a portable Windows or Linux installer. Adapt long text into a card with intensive or coarse reading, and retrieve source files and exports from the resource library. Install · Long-text adaptation

Memory system

The longer a story runs, the more accumulates: what characters lived through, foreshadowing you planted, promises not yet kept. NextTavern borrows the context-management ideas of long-running agent tasks and splits long-form memory into four things with clear boundaries: a frozen settings prefix that is never compacted and is always injected, a hard-cut context window that keeps the tail, background director notes with traceable provenance, and on-demand history recall in keyword and semantic mode.

Pillar What it does Why it matters for long stories
Frozen settings, never compacted The frozen settings and system prefix are present every turn and never enter the compaction path. Identity, author rules and narrative constraints are long-term contracts; a summary must not replace them.
Hard-cut window with tail retention The program advances the context window on complete prose boundaries and preserves the trailing continuous prose as it moves. Recent prose keeps its full detail; the passage you are reading is never dropped mid-scene or replaced by a summary.
Background director notes with provenance Written by a separate background task, each note carries a source hash and a same-worldline anchor. Every note traces back to the prose that produced it; notes that cannot be traced stay where they are instead of being guessed at. Raw history is append-only and never deleted.
Keyword and semantic hybrid recall The main agent queries history on demand in three modes: keyword (default), semantic or hybrid. Old detail is looked up when it is needed, instead of forcing a recall step before every turn.
flowchart TD
    Player[Player input and character card] --> Program[Program assembly: frozen settings + hard-cut window + valid notes]
    Program --> Writer[Main agent and native agent loop]
    Writer <--> Recall[On-demand history: keyword / semantic / hybrid]
    Writer <--> Lore[On-demand worldbook reading]
    Writer --> Story[Streaming prose and append-only story record]
    Story --> Background[Background task: director notes]
    Background --> Anchor[Source hash and worldline anchor check]
    Anchor --> Program

Three query modes over one corpus

The corpus is player input and valid story prose, including archived or evicted prose. Status text, tool output, CSS, decision cards and reasoning never enter it.

Mode Computed by When to use it
Keyword (default) Deterministic matching in the program; no model call. Fastest when you remember the exact words, names or places.
Semantic An embedding model encodes the query into a vector. Better when you remember the gist but not the wording.
Hybrid Keyword and vector results ranked together. Both exact hits and near meanings.

Vectors are derived shared data and queries are filtered to the current worldline, so switching worldlines never forces a rebuild. Every vector index carries a recipe fingerprint (model, revision, dimensions, task role, pooling, quantization, runtime): when the fingerprint does not match, the index is marked stale and stops serving until you rebuild it — it would rather make you rebuild than answer from stale vectors. Chunk size is configurable, default 480 characters (192 / 480 / 960, range 128–2048, 80 overlap), and local models use a 512-token budget. Clear, rebuild and fill are scoped to the current visible conversation and all of its worldlines; clearing removes only the index, while prose, provenance and the ledger stay.

Recall modes and window settings

Old notes and old status are no longer sent with every request

Old director notes and state snapshots used to travel with every request (about 52k characters). They are now replaced only after a valid new anchor has been prepared: references that were not replaced keep their exact backing, a rollback serves the full text again, and raw events stay append-only. A long story stops dragging an ever-heavier pile of old notes through every request.

The same confirm-then-replace rule applies to long tool results: once a research note is confirmed, the matching long tool result is recycled into its checkpoint, but only when owner, source hash, generation and packetIds all match. Partial saves, wrong sources, failed writes and re-reads after confirmation are never recycled.

All of it is adjustable per session

Window size, tail retention and the background note cadence support a global default and per-session overrides; leaving them empty keeps the global setting. Window assembly, provenance checks, note eviction and recycling are program work and produce no model request. Only when the main agent actually decides to look something up does a query cost anything (semantic and hybrid also need an embedding model, see embeddings).

Switch to another worldline and you continue with that line's history; polish the same scene repeatedly and memory follows the version you selected.

Hard-cut window and director note settings

Style presets

Style is no longer something you can only change by editing a card. A dedicated presets page (before the resource library) lets you create, edit, save a copy, select and delete presets; the built-ins are read-only and you get 200 custom slots.

Dimension Values Meaning
Scope current conversation / designated conversation / global All worldlines of one conversation share the override; empty follows the global setting.
Style mode foreground system aesthetic (default) / blend with card style / card style only The first two inject both preset and card style, with the preset winning conflicts; the third uses only the card style.

The preset library is shared by all conversations, so editing a preset that is in use affects that conversation's later generations — the interface says so explicitly. If two windows edit the same preset, the later submission gets a conflict notice and your draft is kept.

16 built-in styles. Besides the default and blank presets, 14 ready-to-use styles ship: 日式轻小说, 乙女风格, 三体文风, 日式游戏, 电影感文风, 春秋文风, 极简文风, 细腻文风, 奇幻网文风, 恐怖文风, 鲁迅文风, 抒情文风, 日常搞笑风 and 古文文风. Each has a complete seven-section guide with original examples, not a one-line description.

Style presets

Long text to character card

Have a novel and want it as a playable world? The management interface has a long-text-to-card tab (after the character cluster). It does more than summarise: what was read, where a note came from and whether a claim has textual support all have to line up.

Two reading modes, chosen before research starts.

  • Intensive (default): complete segmented reading, with a source-cited research note for every segment.
  • Coarse: multi-round relation-frontier retrieval around characters, organisations and events, then longitudinal tracking of the protagonist. It requires a usable novel model and a complete current index; when those are missing the interface guides you through configuration and ends the round instead of silently degrading.

The source is frozen first. Workspace TXT up to 64 MB, decoded as UTF-8 → GB18030 → BOM-aware UTF-16, recording the raw-byte hash, decoded-text hash and size without ever mutating your upload. Segmentation is deterministic and batches stay below the native clipper.

Notes need evidence. A research note only counts when the batch was actually read and the quoted text actually appears in it. Notes are split into facts, adaptation opportunities and open questions.

The novel has its own index, separate from story memory, and the novel model can be configured separately from the story memory model. The same source hash reuses the research baseline and the same recipe reuses vectors, so one book can serve several cards and conversations.

For scale: a ~1.19M-character web novel (first 354 chapters) produced 3027 online vectors, and the program suspended for ~292 seconds waiting for the index; delivering the card and opening the import are separate turns, with ~52k tokens of opening input. Adaptation reuses the same questionnaire and twelve-item card check as interactive creation.

After research, the development workflow uses the same Native draft and finalisation entry as original authoring, retaining the source and research evidence. Explicit character and rule fields are imported by the program without an extra format-classification task. Reading, retrieval and creative work still incur their actual model usage.

Long novels can still get individual details wrong; read the finished card through once.

Long text to character card

Embeddings

Semantic and hybrid recall need vectors, so there is a dedicated embedding page (between models and usage).

Online. DashScope, OpenAI-compatible endpoints and OpenAI official: refreshable model lists, manual model IDs, keys stored server-side only, and a connection test.

Local. Five models install directly: BGE small zh, Qwen3-Embedding 0.6B, Jina Nano, Jina Small INT8, Nomic q8, running on ONNX Runtime 1.29.0 in a separate encoding process. Downloads show real byte progress, speed and ETA, support pause/cancel/resume, and run a queued → downloading → verifying → preparing-runtime → self-testing → installed state machine. Local inference needs no API key and no network.

Indexing, querying, testing and retries all enter the existing usage statistics. Unknown prices stay N/A, and failures never invent token counts.

Which one? BGE is fast but weaker across languages; Qwen builds indexes more slowly on long prose; at 50k chunks retrieval time is already close to the limit.

Embedding management

Character cluster

With the character agent cluster enabled, major characters reason in separate contexts. Each can have its own model and thinking effort, and they run independently even on the same model. They receive their own persona, the current story, director notes and recently read worldbook material; the main agent then reconciles their suggestions into the story.

The development line distinguishes explicit author character fields from mixed community material that needs classification. The former can be read directly; the latter uses a player-selected conversion task to bind characters to source text. Player and disabled rows are excluded from the NPC list. Advanced material reuses worldbook entries actually admitted this turn and already-rendered text; some mixed dynamic rules still have limits. A ready conversion does not establish complete gameplay support for character collaboration.

Model configuration has two levels: a global default plus per-character overrides. An override belongs to the current visible conversation and is shared across its worldlines, while each actual worldline keeps its inputs and results isolated — preferences are shared, history is written separately.

Background subagents no longer appear in the conversation list, and draft saving, resource and export replies and task actions no longer submit twice or expire.

Character agent cluster

Beyond per-character reasoning, models can also divide the work. Prose, background memory, card reading, status and export tasks can each use a fitting model, or all follow the main model; model settings support a global default and per-session overrides.

First-response wait for slow local chat models

If a local chat model takes longer to produce its first response, you can set the optional firstResponseTimeoutMs value in the existing roleplay preset's roleplay-core configuration. Its default is 90,000 ms (90 seconds); 600000 allows up to ten minutes. This extends the wait on the existing request. workerMaxTokens limits output tokens; it is not a time setting.

Put the value at addons[id=preset-roleplay].config.plugins[id=nexttavern-roleplay-composition].config.patches[id=roleplay-core].config, not at the product's root config. The example below reflects this version's actual roleplay-core.config values and adds a ten-minute override. It shows only the composition child row, not a replacement profile; when editing your own preset, preserve its existing values and add only the field you need:

# Edit the existing composition child row under addons[id=preset-roleplay].config.plugins
- id: nexttavern-roleplay-composition
  name: dsh-nexttavern-presets/composition
  config:
    patches:
      - id: roleplay-core
        name: './lib/core/roleplay-core.js'
        config:
          sceneWorkerTimeoutMs: 60000
          memoryWorkerTimeoutMs: 60000
          phaseATimeoutMs: 90000
          phaseBTimeoutMs: 120000
          maxWorldTokens: 6000
          windowTokens: 24000
          concurrencyCap: 2
          workerTemperature: 0.4
          workerMaxTokens: 2048
          firstResponseTimeoutMs: 600000

The new setting is consumed by a new preset revision; existing sessions keep their mounted revision, so test it in a new session. One contributor's 27B local-model run used a 96k context and reasoning enabled; that is a single experiment, not a universal minimum. Set windowTokens to the context length the selected model actually supports; reasoning options vary by model.

Status bar and decision card

Action suggestions appear only in the standalone decision card, never duplicated into the status bar or the prose tail. Legacy action areas inside old cards are hidden, and the original card is left untouched.

The decision card has its own controls: collapse/restore (⌃ / —), a separate × later action, drag to move, double-click or Home to reset, and a capped visible height so it never eats the screen.

Reading presentation improved in the same pass: the author's status HTML/CSS is validated and preserved across import, generation and legacy restore; fenced status styles and opaque panels came back; the status panel fills the available height while keeping internal scrolling; the collapsed rail's reopen button stays visible. Status template dynamic slots accept real values while keeping the author's HTML/CSS/JS structure, and failed task validation now reports structured diagnostics, failure time and retry guidance.

HTML/CSS reading presentation and status bar

The bundled skin

0.3 bundles the Amber skin with warm paper, the NT emblem, and day and night themes. Enable it in Settings.

The project provides its first own skin, dsh-nexttavern-amber: the whole interface redrawn from one design-token set, with day and night themes that change the mood in one switch; a chibi tavern keeper sits in the sidebar with a different illustration per theme; the tavern reading mode in the night theme lies on aged parchment while the author's own ink colours are untouched.

The skin is installed with the package but off by default, so your interface stays as it was. To switch it on: Settings → Plugin market → Installed, find dsh-nexttavern-amber and toggle it. It writes to the profile's cordis.patch.yml and hot-loads in about a second, without a restart; toggle it back whenever you like, and the choice survives restarts. The toggle comes from a third-party plugin market; an existing market is reused and an upstream market is installed only when missing — see patch and dependency sources for its origin, outbound requests and how to turn it off.

The own skin, day theme

The own skin, night theme

Worldlines and branching

Not happy with a development? Regenerate. Want to change a choice? Edit the player message and send it. The versions form worldlines inside the current conversation and you can switch between them. A separate conversation is only created when you explicitly choose "branch into a new conversation".

Each worldline has its own story, status and memory; notes belong to the actual worldline, while a character's model preferences and the vector index are shared per conversation or per queried worldline. Novel export follows the worldline you selected, so the version you liked is the one you keep.

Worldlines and branch management inside one conversation

Reading and writing your way

In "tavern management" you adjust characters, world background, story direction, style and custom rules separately. Put viewpoint, pacing and character boundaries into the rules, put HTML/CSS, status templates and regex decoration into the card, and give each story its own reading presentation.

Prose is readable while it is generated; post-turn status and note maintenance have their own progress. Player actions typed meanwhile enter the native queue.

Authors can format prose with display regex and styles. A card’s own status template can show affinity, trust, or the scene time beside the story. Presets and regex · State and analysis

Story prose rendered in the author's style

Author-rendered status panel showing scene details and relationship progress

From character card to a novel you can take away

The dialogue you polished, the turn you did not expect, the ending you finally reached — all of it deserves to become a real piece of work. Pick the worldline you like and collect it into a novel manuscript; export the polished character card as well, so the world keeps being read, shared and written.

In the development line, a current-card export includes saved author settings and configuration, including a saved Ruby preset choice. Downloading the uploaded original keeps its original bytes and filename. Neither a card nor a novel is a complete session backup; story history and runtime progress have separate owners.

One-click novel export

Interactive authoring

You do not need a finished card to begin — imagination is enough. A harbour city where it always rains, a relationship full of friction, or simply "I want a slow-burn adventure" can be the start.

The agent talks with you about characters, relationships, atmosphere and direction, and grows your answers into a world background, a multi-character cast, an opening, a style and a reading layout, then runs a twelve-item completeness check. Polish every detail yourself, or leave the blanks to it: "you decide." From the first idea to a playable card, the creation itself is part of the journey.

Development authoring and novel adaptation after research use the same Native draft and finalisation entry. Draft checking does not activate the card. With your explicit request to apply it, the final draft is saved and imported; otherwise the file is delivered first. Clearly separated author fields need no additional classification model, and finalisation does not add a second opening. See the author guide for format, script and display checks.

Interactive character card authoring

Usage statistics

Explore freely, and see what the models did and what they cost. Request logs, provider statistics and model statistics share one panel; switch by session, time and model to see input/output tokens, cache hit rate, generation speed and cost. Embedding indexing, queries, tests and retries count into the same statistics.

Compare what different models cost you, watch cache behaviour as a long story advances, and review what a regeneration or a cluster call consumed. Model price multipliers, manual unit prices and currency conversion are supported.

Model usage and cache statistics

Architecture

NextTavern connects these capabilities into the native agent loop: the main agent advances the narrative, memory agents keep the long threads, character agents reason independently, and the program assembles the context the current story needs. From card reading and the opening to branching and export, one architecture runs through the whole creative process.

flowchart TD
    Player[Player input and character card] --> Queue[Native input queue]
    Queue --> Context[Program assembles the current worldline: settings, prose and director notes]
    Context --> Writer[Main agent and native agent loop]
    Writer <--> Lore[On-demand worldbook and raw history]
    Writer <--> Cast[Optional character agent cluster]
    Writer --> Story[Streaming prose and append-only story record]
    Story --> Reader[Immersive reading, worldline switching and novel export]
    Story --> Tasks[Post-turn status and decision tasks]
    Story --> Memory[Background director notes and checkpoints]
    Memory --> Context

Read the full architecture notes: context composition, the four memory pillars, preset scopes, the long-text pipeline and request cost

Downloads

Installers: NextTavern-Setup.exe (Windows x64) · NextTavern-Setup-arm64.exe (Windows on ARM) · NextTavern-Setup.sh (Linux x86_64 / aarch64).

Source: complete public source archive · release notes · exact npm version.

Verification: SHA256SUMS and provenance.json. The npm package is dsh-nexttavern; install it with dsh plugin --profile web add dsh-nexttavern.

Manual install

Bundled Desktop CLI

Quit the desktop app, run the following command from its installation directory, and reopen it. For a local archive, download the main package from the release, check it against SHA256SUMS, and replace the package spec with file: followed by the archive path.

.\resources\runtime\cli\bin\dsh.cmd plugin --profile desktop add [email protected]

Standalone Web setup

For a separate home/workspace and fixed port, use Node.js 24.9+ and npm. These are PowerShell examples; continue only after each command succeeds.

Before migrating from 0.2.x, export cards or manuscripts and keep a backup. Use new paths for the home and workspace. Keep the original host for reading full old sessions.

npm install -g @deepseek-ai/[email protected]
$env:DSH_HOME = Join-Path $PWD 'nexttavern-03-home'
$Workspace = Join-Path $PWD 'nexttavern-03-workspace'
New-Item -ItemType Directory -Path $env:DSH_HOME,$Workspace -ErrorAction Stop | Out-Null
dsh plugin --profile web add [email protected]
dsh web --host 127.0.0.1 --port 3510

Select the new workspace in the browser, configure your provider and pick the roleplay preset for a new session. For later starts, set the same DSH_HOME and run the last command.

Alternatively download the main archive from v0.3.0-rc.2, verify it against SHA256SUMS, then replace the npm package name with its local archive:

dsh plugin --profile web add "file:./dsh-nexttavern.tgz"

The old alpha.3 manual preset setup and host byte patches are no longer required. The product uses owned compatibility providers and restores native providers on disable or failed activation. Uploads, attachments and the sidebar use official host capabilities.

If preparation fails

Restore network access and retry with the same home. Preparation checks bytes, uses a lock and records transaction checkpoints so interrupted work can recover. Do not edit receipts/pins or delete user directories.

If an unsuccessful official install left the package installed but its bundle unregistered, stop the target host and run these with the same home, then restart:

dsh plugin --profile web remove dsh-nexttavern
dsh plugin --profile web add [email protected]

The current npm and Release packages include the complete runtime dependency closure for @google/genai and protobufjs. Relinking private SDKs at their fixed directories also avoids those install scripts, and the persistence component carries a prebuilt koffi bundle. If these packages still trigger build-script permission errors, first verify the actual version and source are the official 0.3 npm package or Release archive. Preserve the error and versions for a report, removing keys and private content first.

Document extensions

PNG/JSON card parsing is built in. Uploads and attachments use the native host. The unified plugin prepares the attributed dsh-nexttavern-anydoc component for TXT, CSV, DOCX and other document parsing, bounded reading and full Markdown conversion. The old file-upload / read_document and Office plugins are no longer required.

Upload an original document and explain how it should be used. DOCX reading is covered; PDF and scanned-document readability depends on the file and conversion components. This release does not promise OCR or every format. Long-text adaptation reads workspace TXT. Install optional tools according to their own host compatibility requirements rather than copying alpha.3 extensions into the new profile.

Patch and dependency sources

This release supports Harness 0.2.2-rc.5 and newer and bundles pi-ai 0.85.1. Owned UI, Session Controller, persistence, projection, metering and pi-ai compatibility providers are verified and prepared as independently versioned components. Players do not need to modify installed host files. Package metadata, provenance.json and NOTICE identify their versions, sources and licenses.

The release includes Google SDK / protobuf runtime dependencies and the prebuilt koffi bundle, with matching private-component dependency declarations. npm metadata adds nine related keywords, the documentation homepage, issue tracker and standard repository URL. English and Simplified Chinese titles and descriptions use the host's official locale/* exports. These fields help identify the official package; the third-party market catalog still needs a separate update.

  • anydoc derives from beancookie/dsh-plugin-anydoc, preserving upstream history and MIT attribution, with owned TypeScript sources.
  • pi derives from earendil-works/pi, preserving MIT attribution; the compatibility layer handles stream completion and cleanup across four protocols.
  • Official uploads, attachments and sidebar replace the retired upload tools and better-sidebar.

The independent third-party dsh-market (dshmarket, MIT) browses community plugins and toggles the skin. An existing market is reused unchanged. Only when missing does the product resolve and install an upstream version, recording its version and verification information in the profile. It no longer pins 1.39.0 or requires a market fork. Its directory and comments can access awesome-dsh-plugin.com, giscus and GitHub. Disable the market in settings to turn off those market features; NextTavern's own controls do not depend on it.

For public access, explicitly configure the bundled auth plugin, your Cloudflare Access, domain and identity according to the public access guide. Local installs do not expose the network. Review old public-access settings separately for the new host; they are not a session-migration mechanism.

Update, uninstall and rollback

Keep your old installation when moving from 0.2.x to 0.3. Export the cards or manuscripts you need, back up the old home and workspace, and choose a fresh directory for the new installation.

For updates within a compatible version line: stop the host, back up its home/workspace, check the new release notes, use official plugin add with the target package version or archive, and restart to load new modules. Preparation refuses corrupt packages and unknown components, retains versioned components, and reports failures. Rollback requires a matching prior package and backup; never mix another instance's receipts or pins.

Disable/re-enable: toggle dsh-nexttavern in official Settings → Plugins → Plugin configuration. Disable restores native UI/providers. The skin has a separate toggle and is off by default.

Uninstall the plugin: stop the target host, ensure DSH_HOME points to the intended installation, then run:

dsh plugin --profile web remove dsh-nexttavern

Controlled removal unregisters the product and its managed configuration while retaining stories, cards, resources, notes, user preset copies and model settings. It does not remove a preexisting market or the whole home/workspace. Reinstalling can reuse data compatible with that version line. Deleting an installer's root deletes its home/workspace too; back them up before complete removal. See the Windows and Linux guides (Chinese).

Sources and verification scope

TypeScript is the only maintained source. Hand-written .ts / .mts files, with .js / .mjs generated from a shared build manifest by TypeScript 5.9.3. Maintained sources live in src/, generated artifacts in lib/, including runtime, UI, memory, auth, card reading, telemetry, worldlines and release tooling. Root and ./client exports remain; internal deep paths have moved. See the contributor guide for direct-reference migration.

provenance.json records the maintenance source commit, per-file origins, tool versions and SHA-256; component metadata records pinned versions and upstream sources. The main repository carries no full official patch snapshot. To rebuild the UI:

npm ci --prefix ./build-tools --ignore-scripts --no-audit --no-fund
npm run build

Public sources rebuild the registered browser bundles, including the product and its compatibility providers; the bundled build map lists the current entry points. If you change the sources, update your own version and provenance rather than passing it off as the original release. Web and official Windows Desktop installation and startup were verified with Harness 0.2.2-rc.5. The platform guides describe installer build, contract test and hardware coverage.

Community

Thanks to @ljs1997sh for dsh-nexttavern-qq-mobile, which arrived soon after the release with a QQ-style interface, a compact layout and phone, LAN and remote access paths. The 0.2.5 own skin is an independent implementation inside this repository; it does not merge or forward that project's interface or code.

This is a community project maintained by its author; follow its own repository instructions for installation and scope. The optional CF Access auth plugin and the public access guide require step-by-step configuration and confirmation.

Feedback and license

Bring your world, and bring your experience back too: share feedback and suggestions. When reporting a problem, include the version and reproduction steps, and redact keys and private content.

Project-owned code is GPL-3.0. Bundled upstream patches and community changes keep their own licenses (including DeepSeek, pi and anydoc MIT terms), listed item by item in NOTICE.

Explore related projects

Loading…