@thewaifu/dsh-bot
v1.1.2
Published
DS Bot: a team of long-lived Bots for DeepSeek Harness, with Main Bots, Bot-to-Bot messages and group chats
Maintainers
Readme
@thewaifu/dsh-bot
DS Bot turns DeepSeek Harness (DSH) Web and Desktop into a persistent team of AI Bots. Each Bot has its own model, role, instructions, memory, chat history, and working session. Bots can work independently, message one another, and collaborate in group chats without mixing their private conversations.
This guide is for people installing and using the plugin. Contributor instructions are in the repository's CONTRIBUTING.md.
What you get
- A Main Bot named Chief on first launch.
- Multiple long-lived Bots with separate models, roles, instructions, and appearances.
- Group chats with an administrator, configurable reply behavior,
@Name, and@allmentions. - Bot-to-Bot messages, shared references, memory, scheduled tasks, usage reports, and secret handling.
- Model selection from every provider installed in the same DSH profile.
- Optional browser tools in DSH Desktop.
- Optional voice input and a Waifu TTS connection status, authorization, and test control.
Requirements
- Node.js
^22.19.0or>=24.0.0. - DeepSeek Harness
^0.1.5-rc.1or^0.2.0-rc.1. - A working DSH
webordesktopprofile. - At least one configured model provider before a Bot can answer with an AI model.
Run these checks if you are not sure what is installed:
node --version
dsh --versionInstall in DSH Web
Install version 1.1.2 from the public npm registry:
dsh plugin --profile web add @thewaifu/[email protected] --registry=https://registry.npmjs.org/Start or restart the Web profile with the DS Bot launcher:
dsh plugin --profile web exec dsh-bot-webThe launcher tries 127.0.0.1:3082 first. If that port is occupied, it tries 3083, 3084, and so on until it finds a free port, then starts the official dsh web command with that port. Open the address printed by DSH; DS Bot appears in the left sidebar.
Use dsh web --port <port> instead when you want one exact port with no automatic fallback.
Install in DSH Desktop
Install the plugin into the Desktop profile:
dsh plugin --profile desktop add @thewaifu/[email protected] --registry=https://registry.npmjs.org/Quit DSH Desktop completely and open it again. Installing into web does not install the plugin into desktop; profiles are separate.
Install with OH-MY-DSH
Install OH-MY-DSH first, then add DS Bot to the same web profile:
curl -fsSL https://thewaifu.ai/waifu-install.sh | sh
dsh plugin --profile web add @thewaifu/[email protected] --registry=https://registry.npmjs.org/
dsh plugin --profile web exec dsh-bot-webUpgrade from an older package name
Earlier builds may be installed as ds-bot or dsh-bot. Do not keep both the old package and @thewaifu/dsh-bot in one profile because they register the same bot plugin ID.
First list the profile dependencies:
dsh plugin --profile web list --depth=0Remove only the old name that appears in that list, then install the scoped package:
dsh plugin --profile web remove ds-bot
dsh plugin --profile web add @thewaifu/[email protected] --registry=https://registry.npmjs.org/Use dsh-bot instead of ds-bot in the remove command when that is the installed legacy name. Restart DSH afterward. The runtime plugin ID and data layout have not changed, so the existing team, chats, preferences, and secrets remain available.
First-run setup
- Open DS Bot in the left sidebar.
- Open Chief. A new Chief has no model until you choose one.
- Select a provider and model on the model card in the chat.
- Send a short test message and confirm the answer is generated by the selected model.
- Open DS Bot settings > Bots to change Chief's name, role, instructions, model, character, and color.
- Create additional Bots for distinct jobs such as coding, review, writing, or research.
- Open DS Bot settings > Group chats to create a group with at least two Bots.
Main Bots can create, change, and remove other Bots. A group administrator can change its own group and invite members to answer. Ordinary members can work in the group but cannot manage the whole team.
Providers and models
DS Bot does not create model credentials or duplicate DSH's provider configuration. It reads the live model catalog from the current DSH profile.
To choose or change a model:
- Open the Bot's chat and use the model selector in its header, or open DS Bot settings > Bots and select the Bot.
- Choose a provider.
- Choose one of that provider's available models.
- Send a new message to verify the route.
Each Bot may use a different model. Existing messages keep the output that was originally generated; changing a model does not rewrite chat history.
Token Factory models
When @thewaifu/dsh-token-factory is installed and connected in the same profile, its available routes appear in DS Bot's model selector. Available routes may include:
tw-helixtoken/deepseek-v4-flashtw-helixtoken/helix-cheaptw-helixtoken/helix-auto
If these routes are missing:
- Open the Token Factory page and confirm the account status and quota.
- Confirm Token Factory is installed in the same
webprofile as DS Bot. - Restart
dsh webafter installing or updating provider plugins. - Reopen the Bot and refresh its model selector.
The model name must be selected on the Bot itself. Merely installing Token Factory does not automatically replace a Bot's current model.
Create and use Bots
Open DS Bot settings > Bots and choose Create Bot. Set a clear role and concise instructions. A useful team gives each Bot a distinct responsibility instead of giving every Bot the same prompt.
In a direct Bot chat:
- Send a normal message to that Bot.
- Type
@to reference another Bot when collaboration is needed. - Use the reference control beside the composer to attach a relevant Bot chat.
- Open the Bot details to inspect its role, model, memory, and available browser panel.
Bot-to-Bot work is shown in the exchange transcript. It does not replace the visible conversation you opened.
Group chats
Create a group from DS Bot settings > Group chats. Choose an administrator first, add at least one more member, then optionally set a name and a shared notice.
There are two reply modes:
| Mode | Behavior |
|---|---|
| Admin leads | A plain message goes to the administrator. The administrator can call other members with @Name. |
| Everyone | Every member answers in order, with the administrator first. |
Mentions override the default mode:
@Writerasks Writer to answer.@all,@everyone,所有人, or全体asks every member to answer.- Type
@in the composer to choose a valid member instead of relying on spelling.
Each group member speaks through a hidden DSH Session dedicated to that group. This separation is intentional: group context must not leak into the Bot's private chat. While members answer, the visible selection should stay on the group. If the UI jumps into a member's private chat, update to this release, restart DSH, and hard-refresh the browser so an old client bundle is not cached.
Voice input and Waifu TTS
DS Bot exposes two different voice paths:
- DS Bot voice chat records your microphone, transcribes your speech, sends it as a normal message, and reads the answer with the browser's speech synthesis. It is available in direct Bot chats, not group chats. When DSH's Voice Input bundle is installed, DS Bot uses its local recognizer; otherwise it uses browser speech recognition when available.
- Waifu TTS belongs to
@thewaifu/dsh-waifu. DS Bot shows its connection state and can ask Waifu to play a real test line through the selected character voice. It does not replace the browser voice used by DS Bot voice chat.
To connect Waifu TTS:
- Confirm
@thewaifu/dsh-waifuis installed in the same DSH profile and the Waifu companion is running. - Open DS Bot settings > Connectors > Waifu TTS.
- Select Connect. Complete the authorization page that opens in the browser.
- Return to DS Bot and wait for the status to become connected.
- Select Test voice. The companion should say, "DS Bot voice test is ready."
If an authorization page says that the link is invalid, expired, or already used, return to Waifu TTS and select New link or Reconnect. Always use the newest page. If no page opens, allow pop-ups or external links for the local DSH page, then try again.
The connector deliberately does not return authorization URLs, device codes, credentials, or tokens to the DS Bot browser UI.
Memory, schedules, usage, and secrets
Memory
Each Bot has private long-term memory and the team has shared memory. Open a Bot's details and select Memory to review, search, update, or remove entries. Memory rejects values that look like credentials or identity numbers.
Scheduled tasks
Open DS Bot settings > Scheduled tasks to create recurring work for a Bot or group. Review the selected target and model before enabling a schedule.
Usage
Open DS Bot settings > Usage to inspect token counts by time, Bot, group, and model. Usage is a token report, not a currency or invoice report.
Secrets
When a Bot needs a credential, it can show a secret request card in its direct chat. The value is stored outside the conversation and is masked before tool results or prompts are saved. Secret cards are not shown in group chats.
Treat backups of <DSH_HOME>/bot/secrets.json like passwords. Do not put real credentials in a group message, Bot instructions, the repository, or a troubleshooting screenshot.
Optional configuration
DS Bot works without a custom configuration. To override an option, add or update the bot entry in the profile's cordis.patch.yml:
- id: bot
name: '@thewaifu/dsh-bot'
config:
workspace: /path/to/bot-workspace
home: /path/to/bot-data
checkRatio: 0.8
browser: true
memory: true
memoryReview: true
updateCheck: true
github: falseworkspace controls where Bots work. home controls where DS Bot stores its team data. Set paths that the DSH process can read and write. Restart DSH after changing the profile patch.
The package also installs @thewaifu/dsh-bot/web-search and selects its auto search provider. A profile-level searchProvider override still takes precedence.
Data and backups
By default, DS Bot stores team data under $DSH_HOME/bot. If DSH_HOME is not set, the usual locations are:
| System | Default folder |
|---|---|
| Linux and macOS | ~/.dsh/bot/ |
| Windows | C:\Users\<user>\.dsh\bot\ |
Bot and group conversations are DSH Sessions, so they are stored with the rest of the DSH session data rather than only in the bot folder.
To make a complete backup:
- Stop DSH Web or quit DSH Desktop.
- Back up the whole DSH home directory, including
bot,sessions,storages, andprofiles. - Keep the backup private because it can contain secrets and provider configuration.
Do not run the same Bot data directory from two writable DSH processes at once. DS Bot uses a lock and makes the second process read-only to protect the team state.
Update
Update to the latest published version in the profile:
dsh plugin --profile web update @thewaifu/dsh-bot --registry=https://registry.npmjs.org/For Desktop, replace web with desktop. Restart DSH after the update. You can also use DS Bot settings > About DS Bot > Check for updates when the installed DSH plugin manager supports it.
Version 1.1.2 fixes the tool scheduler failure that could appear as Cannot read properties of undefined (reading 'prepare') after creating a Bot or making another tool call. It also includes the Web client registration fix from 1.1.1. After updating, restart DSH and hard-refresh the browser so it does not reuse an old client bundle.
Uninstall
Remove the package from a Web profile:
dsh plugin --profile web remove @thewaifu/dsh-botFor Desktop, replace web with desktop. Restart DSH after removal.
Uninstalling the npm package does not automatically erase $DSH_HOME/bot or the related DSH Sessions. This protects your data from accidental removal. Delete saved data only after making a backup and confirming that no other profile uses it.
Troubleshooting
DS Bot does not appear
Run:
dsh plugin --profile web list --depth=0The list must contain @thewaifu/dsh-bot. If it does not, install it again from the npm registry. If it does, restart DSH and hard-refresh the browser.
The model selector is empty
The current profile has not exposed an available model. Open the DSH provider or Models settings, connect a provider, verify its account and quota, then restart DSH. If you use Token Factory, verify that it is connected in the same web profile.
Replies look like Received: ...
That wording is produced by the development mock model, not by DS Bot itself. Old mock answers remain visible in history. Select a real provider route on the Bot and send a new message. If a new message still echoes the input, the profile is still configured to use a mock provider or mock endpoint; correct the DSH model route before testing again.
A group message opens another conversation
Confirm that @thewaifu/[email protected] is the only package registering the bot plugin, restart DSH, and hard-refresh the page. Do not install ds-bot, dsh-bot, and @thewaifu/dsh-bot together. A member's hidden group Session is an implementation detail and should not replace the visible group selection.
A turn fails while reading prepare
Update to @thewaifu/[email protected] or newer, then restart DSH and hard-refresh the browser. Earlier packages could install a private copy of the DSH tool runtime next to the copy owned by the current Harness profile. Tool calls use identity-sensitive runtime symbols, so mixing those copies could let the model produce text and then fail when its first tool call started. Version 1.1.2 uses the runtime supplied by the active DSH profile.
Only the administrator replies in a group
Open the group's settings and inspect Who answers. Admin leads sends plain messages only to the administrator. Select Everyone, mention specific Bots with @Name, or use @all when every member should answer.
Waifu TTS does not show or no authorization page opens
Confirm Waifu is installed in the same profile, restart DSH, then open DS Bot settings > Connectors. If the card says browser authorization is disabled, update or reconfigure the Waifu plugin. If an old link fails, select New link or Reconnect and use the newly opened page.
Waifu is connected but there is no sound
Open the Waifu companion, confirm a character and voice are selected, check the operating system output device and volume, then select Test voice again. A successful authorization does not override muted audio or the wrong system output device.
