Preface¶
When debugging character cards in DSH Tavern, similar issues tend to recur: status fields with the same name, the same regex pattern, or the same script hook. Switching to a different card or returning a week later often means stepping through the same pitfalls, because conclusions are scattered across chat logs and not archived by “which card had the problem.”
The host has built-in card editing memory since v2.3, which excels at cross-card, reusable experiences; however, it is not the same data structure as “what specific failures this specific card has historically encountered.” The plugin dsh-tavern-wrongbook by maintainer XGUIMAX (Community Directory: SkillHub, GitHub: XGUIMAX/dsh-tavern-wrongbook) records pitfalls under the specific card where the problem occurred, establishing a fixed debugging order: Current Card Wrongbook → Other Wrongs → Cross-card Search. It falls under the “Memory” category in the DSH plugin ecosystem; the repository currently has about 3 stars, version 1.33.0, license MIT, and no additional npm dependencies.
Below is an introduction to what it does, how to access the panel, and how it divides labor with the host memory.
What is this¶
One-sentence positioning: A per-card error log for DSH Tavern—bucketing pitfalls encountered during debugging by character card, sharing the same search order and sorting rules between the panel and the Agent.
The plugin runs as a DSH plugin (dsh.compatibility requires dsh >= 0.1.0-rc.8, Node >= 18). Most functions on the Card Workbench side are available without installing Tavern; installing Tavern adds the right-side panel and entries like “Record to Wrongbook” under assistant messages.
Core Features¶
Categorization and Search Order¶
The panel automatically creates an entry for every card in the card directory, complete with card name and avatar. Original cards and their MVU versions recognize each other, allowing one-click copying of a conclusion to the corresponding category.
The search order is fixed as:
- Current Card Wrongbook
- Other Wrongs (issues not attached to a specific character card)
- Cross-card Search
Hits within the current card are always ranked first to avoid re-searching for known answers.
“Other Wrongs” includes preset categories such as “In-card Failures,” “Card Updater,” and “General / Unclassified,” which can also be customized; recording an entry with a non-existent category name will automatically create a new category. Three tools are registered, allowing the Card Agent to query using the same order and scoring rules as the panel during debugging.
Panel Entry and Tabs¶
Four entries point to the same page (the first two are in the Card Workbench, the latter two depend on the Tavern plugin API):
- Settings → Wrongbook
- Bottom of the bottom-left sidebar (same level as “Plugin Market / Card Updater”)
- “Plugins” group in the Tavern right sidebar (Requires Tavern; uses
registerPanelfrom API v2) - “Record to Wrongbook” under each assistant message (Requires Tavern): Categorizes by the card file location provided by Tavern; automatically places the text of the previous two turns into the “Evidence” field.
The page contains six tabs: Character Card Wrongs, Other Wrongs, Card Scripts, Host Patches, Backup & Restore, and Common Scripts. Top-level filters (e.g., “Unresolved”) synchronize to filter the left category list, retaining only cards that still have matching entries; when no filter is selected, no filtering occurs.
The top of the wrongbook page has a “Sync back to Skill” button: writes conclusions into the references/ of a self-created skill for the Agent to read in subsequent sessions (see below).
Source Invalidation Marking (Tavern)¶
Drafts captured from “Record to Wrongbook” store a structured { gameId, turn, textVersion } in addition to readable refs. After rolling back, regenerating, or editing the source turn, the text may no longer match the originally captured content; under onTimelineChanged, the plugin marks affected drafts as “Source Invalid”, with details explaining the turn and change type, without altering the draft text itself. If you confirm the issue still exists, click “Confirm Still Valid” to clear the mark. Early or manual entries without a source field will not participate in invalidation marking.
Integration with Card Updater¶
The “● Card Updater · Connected” indicator in the top right of the settings page probes the counterpart plugin via GET /dsh-card-updater/state every 15 seconds (dsh-tavern-card-updater). Green / Gray / Red indicates Connected, Detecting, or Disconnected; clicking opens the updater repository page. The two plugins do not read or write each other’s data files.
If the updater status contains preset in config.cards[].primary.gates for a card, the character card list will display an “Exclusive Preset” tag for that card (Display only, not written to the wrongbook).
Sync back to Skill and Auto-sync¶
Clicking “Sync back to Skill” writes selected entries into the references/ of a self-created skill (Built-in skills are in the program directory and would be overwritten by Tavern updates, so the popup only lists writable skills). Each entry is expanded by Symptom / Root Cause / Fix / Evidence; repeated syncing to the same target will not result in duplicate writes. Paragraphs are marked with <!-- wrongbook:… -->: if the fingerprint matches, it updates synchronously with the wrongbook status; if you have manually edited it, it is skipped.
The popup allows checking “Automatically sync new entries here in the future”; when enabled, a green dot appears before the panel button, and the last sync time and number of entries written are displayed. If it fails, the prompt line will provide the reason.
When creating a new skill, the description should clearly state what it is, when to use it, and symptom keywords; you can click “Example” to generate a usable description based on the current scope.
Division of Labor with Host “Card Editing Memory”¶
Host Card Editing Memory (data/card-memory/, memon engine) emphasizes scope: shared and validation status with evidence, suitable for cross-card, reusable experiences. The Wrongbook emphasizes specific failures attributed to a card, panel overview, MVU/Original recognition, and cross-session retrieval via skill syncing. Both should be checked during debugging: checking only one place may miss the other type of existing data. The host v2.3 instructions state that it no longer generates Skills for error experiences by default, while the Wrongbook retains automatic syncing—this is a deliberate division of labor.
Card Scripts and Common Scripts¶
The Card Scripts tab (Lazy loaded) lists scripts in data.extensions.tavern_helper.scripts for each card (potential outer raw layers of the card file are stripped before scanning), marking enabled status, import, controllers, and entries containing update / json_patch, and separately lists scripts in data/tools/ ready to be installed.
The Common Scripts library is located at data/tools/wrongbook/common-scripts/ and is shared across cards. The panel lists “Cards suitable for script installation” (… MVU version, card type marker dsh_card_marker.kind = hand-tuned-mvu, or cards that already have scripts from the library installed). It supports filtering by category, filtering cards by script name, and batch install/uninstall; each script provides entries for “Detect suitable cards,” “Generate suggestions,” and “Background analysis” (Technical layer matching, not replacing manual judgment of card themes).
Backup, Self-check, and Others¶
Automatic backup before every disk write; Backup directory is optional. The independent tab supports cleaning by count, deleting single backups, restoring, and import/export. The panel top right displays the version number and allows Checking for Updates (comparing plugin file fingerprints and versions).
Installation and Activation¶
Neither the captured materials nor the GitHub README provide a unified dsh plugin add … command line for installation. Please refer to the SkillHub Directory Page and the repository README for current installation instructions.
Before enabling, it is recommended to review the source code and MIT license yourself: the plugin runs with the current DSH process permissions and will read/write wrongbook data, skill sync targets, backup directories, and common script library paths.
Environment requirements (from package.json):
dsh >= 0.1.0-rc.8
Node >= 18
Typical Usage¶
1. Record a current card failure from the panel¶
Open Settings → Wrongbook or the sidebar bottom entry, select the corresponding card in Character Card Wrongs, add an entry, fill in the symptom, root cause, fix, and evidence, and set the status (Unresolved / Observation / Fixed).
2. Quick capture during gameplay (Requires Tavern)¶
Click Record to Wrongbook under the assistant message; categorization is based on the card file location; the text of the previous two turns automatically goes into evidence. If you roll back or regenerate the source turn later, pay attention to the Source Invalid badge and click Confirm Still Valid if needed.
3. Query order during debugging¶
Search the current card within Character Card Wrongs first; if no hit, check Other Wrongs and the cross-card search on the same page. If using the Card Agent, it will call the tools registered by the plugin, following the same order as the panel.
4. Sync mature conclusions back to a skill¶
Select entries → Sync back to Skill → Choose a self-created skill and target file (default references/错题库回流.md) → Optionally enable auto-sync. Use this chain for a long-term retrievable “Diagnosis Manual”; card attributes like exclusive presets do not need to be written into the wrongbook.
5. Check Card Scripts and Common Scripts before troubleshooting¶
Switch to Card Scripts to confirm which scripts and controllers are installed on the card; in Common Scripts, batch install/uninstall shared scripts for MVU cards, or use “Detect suitable cards” for quick matching.
Use Cases and Notes¶
Who it is for: Developers who maintain multiple character cards in DSH Tavern long-term and repeatedly debug MVU/regex/script hooks; scenarios requiring a shared error index with the Card Agent; people who want to deposit verified conclusions into self-created skills.
Notes:
- The plugin relies on community maintenance. SkillHub is an independent community directory and has no official affiliation with DeepSeek / High-Flyer.
- Checking only the Wrongbook or only the Host Card Editing Memory may result in missing information; cross-referencing both during retrieval is safer.
- “Record to Wrongbook” and source invalidation marking depend on Tavern Plugin API v2; older versions of Tavern may lack sidebar and message entries, but this does not affect other tabs.
- Syncing and auto-sync only modify paragraphs with the wrongbook tag that have not been manually edited; once a paragraph in a skill is changed, it will no longer be overwritten by syncing.
- Please review the GitHub Repository source code and permission impact before installation. Do not blindly enable it in production environments without verification.
Conclusion¶
dsh-tavern-wrongbook leaves “which card, what happened, how to fix it” in a wrongbook under the card’s name, and uses a fixed search order and Skill syncing to carry conclusions into the next debugging session. Directory and Documentation: