Introduction¶
DeepSeek Harness (DSH) consolidates capabilities like sessions, models, workspaces, and goals into an extensible Host process. During daily development, you most likely sit in front of a computer using the Web UI or a local client; once you step away from the keyboard, it becomes difficult to continue issuing commands to the agent, watching tool call progress, or switching sessions and workspaces.
Paean Harness (@paean-ai/harness) is a popular community DSH distribution that ships with a managed launcher and profiles such as web, but does not include Telegram bridge. The upstream dsh-telegram fails to work on the Paean-bundled @deepseek-ai/* 0.2.1-alpha.1 due to peer dependency and Session API differences. The maintainer SMMURDA’s fork at smmurda/dsh-paean-telegram (the npm package name remains dsh-telegram, current version 0.4.0) provides runtime compatibility for this gap, and states best-effort support for other DSH profiles. Below is an introduction to what it is, what it can do, and how to install it into a profile and connect a Bot.
What Is This¶
dsh-paean-telegram is a native Telegram bridge plugin running inside the DSH Harness Host process. It accesses the Telegram Bot API directly via long polling, requiring no separate relay service deployment.
| Item | Description |
|---|---|
| Package name | dsh-telegram (profile installation references this name) |
| Version | 0.4.0 |
| Runtime dependency | grammy |
| Environment requirements | Node.js >= 22; an existing DSH profile required (README validated on Harness 0.1.0-rc.21 and @deepseek-ai/* 0.2.1-alpha.1) |
| License | MIT (forked from xqicxx/dsh-telegram, retaining the original license and copyright notices) |
Documentation, bot button text, cards, and logs are all in English; the main text here explains the process in Chinese, with configuration fields and commands consistent with the repository README.
Core Features¶
The capabilities listed in the README can be summarized into the following categories (all based on the original source material):
- Conversing with the agent: Text sent to a Telegram chat is input as one turn for the session bound to that chat; streaming reasoning and tool calls are edited and updated in place within the same message.
- Operating the Harness from your phone: Sessions (list / resume / fork / rename / archive), models and reasoning effort, workspace and current project directory, goals, todos, agent inbox queue, skills, subagents, agent presets, installed plugins, credentials (description only), host settings, background tasks, host file browsing, session history, etc., accessible through a persistent button bar.
- Turn receipts and status: After each turn ends, there is a receipt line (turn count, steps, tool calls, tokens, cache hit rate, etc.); during task execution, the status card refreshes.
- Agent-side tools: The agent can send messages and files to you through the same bridge.
- Media and attachments, approvals and questions, auto-compaction and long-task notifications: The README has dedicated sections explaining these; after installation, they can be explored in the Bot via the button bar and commands.
The security model relies on a chat roster: only chat ids allowed in the configuration can interact with the Bot (see configuration below).
Installation and Activation¶
The plugin is loaded through a DSH profile. The repository’s dist/ is committed, so local building is generally unnecessary; if you modify the source code, run npm ci && npm run build in the plugin directory.
Method 1: plugin_manager (Recommended in README)¶
- Place the plugin directory at a fixed local path (e.g., obtain the source tree from the GitHub release page or archive, and note the absolute path).
- Install the bundle in a DSH session:
plugin_manager(action: "install_bundle", target: "/abs/path/to/dsh-paean-telegram")
The cordis.patch.yml in the repository mounts the plugin id telegram with the name dsh-telegram.
- If the profile loads plugins at startup, restart the Harness process.
Method 2: Manually writing profile dependencies¶
Edit ~/.dsh/profiles/<profile>/package.json, using link: to point to the plugin directory (changes take effect after restarting Harness):
{
"dependencies": {
"dsh-telegram": "link:/abs/path/to/dsh-paean-telegram"
}
}
When the peer range is inconsistent with the currently running dsh version, DSH may record an exact-version exemption in ~/.dsh/profiles/<profile>/compatibility.json; this fork’s peer range is >=0.1.1-rc.2 <0.3.0, covering both 0.1.x and 0.2.x generations of seams. The primary validated combination for this fork on Paean is Paean Harness 0.1.0-rc.21 with @deepseek-ai/* 0.2.1-alpha.1.
Default Paean scenario: Install the plugin into the profile that actually runs Paean Harness (commonly web by default), then configure the workspace and token as described in the next section.
Bot Token and Workspace Configuration¶
- Bot Token: Set the environment variable
TELEGRAM_BOT_TOKENfor the process, or place achmod 600.telegram-tokenfile next to the plugin package (README “Bot token” section). - Allowed chat users: Create
<workspace>/.pi/telegram.jsonin the workspace and write your Telegram chat id, for example:
{ "security": { "allowedChatIds": [123456789] }, "watch": { "autoStart": true } }
- Restart Harness. The Paean managed launcher will automatically start the process; the Web UI and Bot will be briefly unavailable.
- Send
/startto your Bot on Telegram.
For more complete configuration options, command lists, and button bar descriptions, see the repository README’s Configuration, Commands, Button bar, and other sections.
Typical Usage¶
After installation and configuration are complete, usage can be summarized as follows:
- Send text directly in an allowed chat to start a conversation turn for the currently bound session.
- Use the persistent button bar below messages to open Sessions, models, workspace, Goals, and other cards, completing operations on your phone that would otherwise require clicking in the Web UI.
- If needed, handle Host-side confirmations through the Commands and approval/question flows described in the README.
Each message corresponds to a chat-bound session; switching sessions, forking, archiving, etc. are done through the button bar or commands, without needing to open a desktop client.
Suitable Scenarios and Notes¶
Who it’s for
- Users of Paean Harness who want to converse with DSH agents and manage sessions/workspaces/goals on their phones (the plugin’s primary target environment).
- Users running
0.1.1-rc.2to0.2.xon other DSH profiles who are willing to verify compatibility themselves (the README states it is not exclusively for Paean; DSH0.3.xand later are untested).
Important notes
- The plugin runs under the permissions and network environment of the current DSH Harness process, and can execute operations on behalf of that Host triggered through the Bot; before installation, you should read the source code and MIT license, and only provide Bot tokens and
allowedChatIdsto trusted environments. - The community plugin directory SkillHub entry and GitHub repository are published by the maintainer, with no official affiliation with DeepSeek / High-Flyer; stars and categorization are based on the directory page (client-type plugin).
- For troubleshooting, see the repository’s Troubleshooting section; for Paean and upstream plugin failure reasons, and this build’s seam changes, see the README’s “Paean Harness”, “Runtime compatibility”, and “Local changes in this build” sections.
Conclusion¶
dsh-paean-telegram (package name dsh-telegram 0.4.0) bridges Telegram long polling into the Harness Host, enabling distributions like Paean, which lack Telegram by default, to still chat from a phone and operate sessions, models, workspaces, and goals. For installation instructions and updates, please refer to the repository:
- Directory page: https://www.skillhub.cn/plugins/SMMURDA/dsh-paean-telegram
- GitHub: https://github.com/SMMURDA/dsh-paean-telegram