Introduction¶
When running long tasks in DeepSeek Harness (DSH), you often can’t keep watching the interface: turns ending, tools requiring approval, the model waiting for your answer—these states can easily be missed without a reminder. Email or self-built webhooks can be connected, but the configuration and operational costs are not low. If you’re already using Telegram, dsh-telegram-notify pushes DSH’s key conversation events to a specified chat, and is send-only, so it won’t compete with a two-way Telegram bridge for getUpdates.
The following sections explain usage by installation, configuration, and event toggles; facts are subject to the GitHub repository README.
What Is This¶
dsh-telegram-notify is a community-maintained DSH plugin (maintainer RGarrido03, npm package name dsh-telegram-notify, current README version 0.2.3, MIT license). Its positioning is a one-way Telegram notification channel: when you leave the DSH UI, the Bot tells you about turn completion, failure, waiting for answer, plan pending approval, or tool pending approval; the plugin does not read Telegram updates, and the Bot remains send-only (only calls sendMessage, never calls getUpdates).
The plugin comes with a Settings → Telegram page: paste the Bot Token, fill in the Chat ID, check the events you want to push, and complete common configuration without manually editing YAML.
Core Features¶
Supported Notification Events¶
The events listed in the README and their corresponding configuration toggles are as follows (messages are plain text, no parse mode, and the body is truncated to Telegram’s 4096-character limit):
| Scenario | Message example | Config item | Default |
|---|---|---|---|
| Turn complete | Turn complete | notifyTurnComplete |
On |
| Turn failed, blocked, or token limit reached | Error/warning type | notifyTurnError |
On |
| Turn cancelled | Turn cancelled | notifyTurnAborted |
Off |
ask_user_question waiting for answer |
Waiting for your input | notifyQuestions |
On |
Plan pending approval (exit_plan_mode / plan-review) |
Plan ready for approval | notifyPlanReviews |
On |
| Tool approval waiting for a human | Approval needed | notifyApprovals |
On |
Sub-agent conversations are ignored. Approval and question-type notifications wait about 400 ms; if a corresponding decision or tool result already exists before that, the send is cancelled, avoiding spam from “instantly rejected approvals” or “instantly failed tool calls”.
Messages are fire-and-forget: if Telegram is unavailable, only a warning is logged; it will not cause the Agent turn to fail, block, or slow down.
Settings Page and Credentials¶
After the Token is saved through the settings page, it is written to the DSH credential store (default reference name TELEGRAM_BOT_TOKEN), not to the plugin’s plaintext configuration. The settings page fields are schemastery volatile configuration and take effect for the running plugin after saving, so a restart is generally unnecessary.
The Host side subscribes to session/event, formats content based on turn/end, tool/call, approval/*, assistant/message, etc., and sends it to the Telegram API via fetch; the browser side registers settings.section and reads/writes the telegram-notify namespace through ctx.configForms.
Installation and Enablement¶
For the Web configuration profile, the installation command is:
dsh plugin --profile web add dsh-telegram-notify
If you are using the desktop configuration profile, replace --profile web with --profile desktop.
For a local checkout not yet published to npm, the README gives:
dsh plugin --profile web add link:$PWD
After installation, you need to add "dsh-telegram-notify" to dsh.profile.bundles in ~/.dsh/profiles/web/package.json (it can also be enabled in the DSH Plugin Manager); the bundle patch mounts the telegram-notify line.
Restart DSH, then open Settings → Telegram and proceed in order:
- Paste the Bot Token and click Save token (the page displays the credential reference name, default
TELEGRAM_BOT_TOKEN). - Fill in the Chat ID and click Save settings.
- Check the desired events and save again.
Getting the Bot Token and Chat ID¶
Create a Bot via @BotFather and copy the Token. First send a message to the Bot, then use an auxiliary bot such as @userinfobot to query your numeric user ID. In group scenarios, add the Bot to the group and use the group’s negative ID (e.g., -1001234567890); public channels can also use @channelusername.
Configuration Reference (Optional YAML)¶
The settings page writes to the patch of the telegram-notify line in the profile; you can also directly edit ~/.dsh/profiles/web/cordis.patch.yml:
- id: telegram-notify
config:
chatId: "123456789"
tokenRef: TELEGRAM_BOT_TOKEN
notifyTurnComplete: true
notifyTurnError: true
notifyTurnAborted: false
notifyQuestions: true
notifyPlanReviews: true
notifyApprovals: true
silent: false
| Field | Default | Meaning |
|---|---|---|
chatId |
"" (disabled) |
Target chat ID or @channelusername |
tokenRef |
TELEGRAM_BOT_TOKEN |
Credential reference where the Bot Token is stored |
token |
Not set | Plaintext Token for headless/one-off runs; the settings page never writes this field, tokenRef takes precedence |
apiBase |
https://api.telegram.org |
Bot API base URL; change only when using a local Bot API service |
silent |
false |
Silent send (no notification sound) |
The settings page is bound to loader line id telegram-notify; if mounted with a different id, the page reports the namespace as unavailable.
Use Cases and Caveats¶
Suitable for: users who already receive messages on Telegram, want lightweight reminders for DSH turns and interaction points, and do not need to drive DSH in reverse from Telegram via the same Bot.
Caveats:
- The plugin runs under the permissions of the current DSH process; before installing, review the source code and the MIT license yourself to confirm it meets your security policy.
- If you also run a two-way Telegram bridge (such as
dsh-immentioned in the README), conversations handled by that bridge may still receive the bridge’s own replies, and this plugin will additionally send turn-type notifications; if it feels noisy, disable the bridge or turn off the corresponding turn toggles. - The DSH community plugin directory (such as the SkillHub entry) is an independent ecosystem site with no official affiliation with DeepSeek/High-Flyer (幻方); installation commands follow the README, do not build
github:owner/repo-style references based on repository names.
Conclusion¶
dsh-telegram-notify pushes DSH turn completion, errors, questions, plan approvals, and tool approvals to your phone via one-way Telegram, with configuration centralized in Settings → Telegram and the Token stored in the credential store rather than plaintext configuration. For details and updates, see the directory page SkillHub and GitHub: RGarrido03/dsh-telegram-notify.