Introduction¶
Doing roleplay or multi-persona conversations in DeepSeek Harness (DSH) usually involves hand-writing system prompts and managing context manually. Switching roles often means starting a new session or changing configurations. When conversations get long, trying to “undo the last few turns” or “return to a specific node to explore a different branch” often relies on external notes or manually deleting messages, leading to fragmented data and UI.
This article introduces the community plugin dsh-xingye (Xingye). It transforms a single DSH session into a fully-tooled chat agent—capable of creating multiple characters, writing personas, opening multiple archive lines for the same character, and maintaining local, revocable, and traceable conversation logs and an event book. Except for the model calls you configure, no data leaves your local machine.
What is this?¶
Xingye (星野) is released by maintainer Iambatman1928 and categorized as “Fun Dress-up” in the SkillHub directory. The current package version is 1.0.1, licensed under MIT, requiring Node.js ≥ 20 and dsh ≥ 0.1.0-rc.1, and is designed for web profile DSH clients.
In short: After installing the plugin, select the “星野” (Xingye) agent preset in a new session to start chatting with Xingye. Within the same session, you can create other characters, switch personas, manage multiple archive lines, and create, archive, or rewrite stories using natural language or the UI.
Core Features¶
Characters & Personas¶
- Create characters through conversation (name, personality, greeting, tags, etc.); once saved, the character speaks according to their persona.
- Supports importing personas from local
.md/.txtfiles; simply specify the “path to the persona file.” - Supports renaming, replacing personas, and deleting characters.
Multiple Archives¶
- The same character can have multiple independent archive lines, each with its own conversation history; switching archives continues that specific line rather than re-introducing the character.
- Starting a new DSH session opens a new archive for the current character (inheriting the character and your persona; archives are named “Archive 2”, “Archive 3”, etc., and named after the first message is sent); reopening the same session binds back to the original archive based on the session ID.
Conversation, Undo, and Rewriting¶
- Every step injects the current character persona, your persona, and the current archive, making the model behave “exactly as the character.”
- Undo recent messages: e.g., “undo the last 5”; this rolls back local records for the archive. Deleted content goes to the trash and can be retrieved with “restore what was just deleted”; there is a hard cap of 30 messages, and the plugin will clearly notify you if this is exceeded.
- Rewrite / Rewind: Commands like “say that again,” “take back that sentence,” “go back to before X,” or “start over.” Cut content is stored as a branch and can be restored later.
Event Book¶
- Five entry types: plot / scene / detail / preference / note, with rewind anchors.
- Re-injected as a recap section at every step; nodes just written or invalidated by undo are reflected in the next model call.
Your Multiple Personas¶
- Create, import, switch, or clear “My” personas, managed separately from character personas.
Memory & Images (Optional)¶
- Default transcript keeps the original text of the last 400 messages; older ones are summarized and deleted. Content older than 30 days is handled similarly, but the last 30 messages always retain their original text (for undo / rewind purposes).
- Tools
xingye_memory_imageandxingye_character_imageare used for memory visuals and character avatars / portraits / backgrounds; DSH itself does not generate images and requires an OpenAI-compatible endpoint configuration. If no key is configured, it will not error out but simply downgrade to saving the drawing prompt. Images pasted into the conversation are automatically archived in the gallery.
UI¶
Five pages: Characters (character pill at the session header), Create (new character), My personas, Conversation (main chat bubbles), Archives (multiple lines for a character). Supports responsive layouts, safe areas, “reduce motion” preferences, and follows DSH’s light/dark themes. Design tokens include warm white #fffbf7 and brand purple #8b5cf6.
Installation & Activation¶
The plugin is installed via the web profile. The official README provides the following commands (choose one).
Install from GitHub:
dsh plugin --profile web add 'github:Iambatman1928/dsh-xingye'
Or use the pre-built package attached to the release (which allows skipping pnpm’s build-approval step):
dsh plugin --profile web add 'https://github.com/Iambatman1928/dsh-xingye/releases/latest/download/dsh-xingye.tgz'
After installation, restart DSH and complete these three steps in order:
- Open Settings → Plugins and confirm
dsh-xingyeis in the list; - Create a new session and select the “星野” (Xingye) agent preset—this step cannot be omitted, as the preset determines the session’s identity and toolset;
- Start chatting directly; Xingye will greet you according to the built-in persona.
Why select a preset? DSH agent presets are discovered from the filesystem only; there is no plugin registration API. On first load, this package copies its bundled preset to <DSH_HOME>/.agent-presets/xingye/ ($DSH_HOME defaults to ~/.dsh). It copies only if the target does not exist, without overwriting presets you have edited, and logs the action. If you do not want automatic installation, set installPreset: false in the plugin configuration and manually copy node_modules/dsh-xingye/preset/ to ~/.dsh/.agent-presets/xingye/.
Typical Usage¶
The following examples are from the official README; use natural language without needing to memorize commands.
Create & Import Characters
- “Create a character called Lin Yan; her persona is in
D:\personas\linyan.md“ - “Make a character called Xiaoman, sixteen, talkative, starts sentences with ‘hey’”
Maintain Characters
- “Replace Lin Yan’s persona with this: …” / “Rename her to Lin Yanzhi” / “Delete Xiaoman”
Archives
- “Start another archive called ‘Another Night’” / “List Lin Yan’s archives” / “Switch to ‘First Meeting’”
Your Personas
- “Make me a persona called ‘Traveller’” / “Import
D:\personas\me.txt“ - “Switch to ‘Colleague Lin’” / “Drop my persona”
Conversation & Logs
- Chat normally; ask “What did we talk about before?” or “Scroll back” to read the local transcript.
Undo & Rewrite
- “Undo the last 5” / “Those last few don’t count”
- “Say that again” / “Take back that line” / “Go back to before X” / “Start over”
The “+” button next to the input box is the Story Menu (retry / rewind / restart / recap / undo). Full-screen pages can be closed by clicking the current tab again, pressing Esc, clicking the overlay, or the header image “⌄”.
Data Storage & Backup¶
The default root directory is <DSH_HOME>/xingye-data/ (i.e., ~/.dsh/xingye-data/). The structure includes a global index.json, config.json (retention policy, manually editable), sessions.json, persona.md under each character, and messages.jsonl, eventbook.jsonl, trash.jsonl, branches/ for each archive. Backup by copying the entire xingye-data directory; to start fresh, point dataRoot to an empty directory (refer to cordis.patch.yml and preset configs in the repo for specific fields; you can read the truncated full README on GitHub before installing).
Use Cases & Notes¶
Who is it for
- Developers or players who want to do roleplay, multi-persona switching, and multi-line storytelling for the same character within DSH, emphasizing local-first.
- Those who need undo, branch-based rewinding, and event book assistance for long-term plots, rather than piecing together prompts with external files every time.
Please note before use
- The plugin runs with the permissions of the current dsh process and will read/write presets and
xingye-dataunder~/.dsh(or your configuredDSH_HOME); please review the source code and MIT License before installing. - Image generation depends on the compatible endpoint you configure; without a key, it only saves prompts and will not interrupt the conversation.
- Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / Hiaishop (幻方); the DSH ecosystem philosophy is “everything is a plugin,” and this article introduces the community-maintained dsh-xingye, not an official app store entry.
Conclusion¶
dsh-xingye (星野) turns a single DSH session into a character chat agent with a UI: multiple characters, multiple archives, undoable local transcripts, and an event book. It is suitable for completing dress-up style character conversations locally without building your own backend.
- Directory Page: https://www.skillhub.cn/plugins/Iambatman1928/dsh-xingye
- Repository: https://github.com/Iambatman1928/dsh-xingye