DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-telegram-bot

c

dsh-telegram-bot

Discovered

Deepseek Harness Telegram Bot

dsh-plugin-telegram

Self-hosted Telegram front for DeepSeek Harness: pick a project, join a dsh session as a "chat", and run headless agents from Telegram. No external services — the bot talks directly to api.telegram.org with your own token; everything stays on your machine.

Demo (19s): a full loop — browse sessions, open a chat, run a task, watch live progress, then act on a PR.

https://github.com/citedy/dsh-telegram-bot/releases/download/v0.1.2/tg_dsh_harness_demo.MP4

Different by design from dsh-imessage-style bridges: no hosted middleman, no accounts on third-party services. You create your own bot in 2 minutes and own the whole pipeline.

Features

  • /projects — list connected projects (workspaces with .env)
  • /project <name> — open a project; session rows are clickable buttons that open the chat directly
  • /chat N — join a dsh session (session.jsonl.zstd) — a "chat" with the agent
  • /recent [N] — last N sessions across all projects (default 5), each row opens the chat
  • /new — start a new session in the selected project
  • Any message inside a chat → task for the headless agent, with context of the last session messages
  • Live progress — the running message is updated every ~8 s with the agent's latest output (editMessageText)
  • /prs — open PRs of the project (reply to that message with #5 → action buttons)
  • /pr N status|review|merge|close — act on PR #N from the last /prs list (status = gh summary, review = agent code review, merge = squash merge, close)
  • /rm N — delete a session with an inline confirmation button
  • /exit — leave the chat
  • Chat-id allowlist — commands are accepted only from whitelisted chats

How it works

Telegram user ──long polling──▶ bot.mjs ──▶ agent.mjs ──▶ npx @deepseek-ai/dsh headless (in project dir)
                                   │
                                   ├──▶ sessions.mjs ──▶ session.jsonl.zstd (chat history context)
                                   ├──▶ gh CLI ──▶ /prs, /pr N status|review|merge|close
                                   └──▶ lib.mjs ──▶ api.telegram.org (send/edit messages, fake streaming)

See docs/ARCHITECTURE.md for the full interface diagram and flows.

Install

Quick way (npx wizard):

npx dsh-plugin-telegram

The wizard asks for a bot token (create one via @BotFather), detects your chat id, validates both against the Telegram API, writes the env file, and prints exact systemd commands for your machine.

As a dsh plugin:

dsh plugin --profile <name> add dsh-plugin-telegram
npx dsh-plugin-telegram   # run the setup wizard once

Manual (from source):

  1. Create a bot via @BotFather, get a token.
  2. Clone the repo somewhere (example: /opt/dsh-telegram-bot).
  3. Copy .env.example to /etc/dsh/dsh-tg-bot.env, fill the token and TG_ADMIN_CHAT_IDS (your chat id; can be found via @userinfobot).
  4. Run as a service (adjust WorkingDirectory/User in the unit to your install):
sudo cp deploy/dsh-tg-bot.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now dsh-tg-bot
journalctl -u dsh-tg-bot -f

Without systemd: NTY_BOT_TOKEN=... TG_ADMIN_CHAT_IDS=... node scripts/bot.mjs

Configuration

VariableDefaultDescription
NTY_BOT_TOKEN / TELEGRAM_BOT_TOKEN—bot token
TG_ADMIN_CHAT_IDS / NTY_BOT_CHAT_ID—allowed chat ids, comma separated
DSH_SESSIONS_DIR$DSH_HOME/sessions (usually ~/.dsh/sessions)dsh sessions directory
DSH_PROJECTS_DIR~/.dsh/projectsprojects directory
DSH_TG_CLI_BIN— (npx)path to a pinned dsh binary; skip npx resolution
DSH_TG_PROFILEheadlessdsh profile the headless agent runs with
DSH_TG_TIMEOUT_MIN20headless run timeout, minutes
DSH_TG_POLL_TIMEOUT_S50getUpdates timeout

Requirements

  • Node.js ≥ 20
  • zstd CLI (to read session.jsonl.zstd)
  • @deepseek-ai/dsh installed (launched via npx -y)
  • gh CLI (for /prs, /pr)

License

MIT

Comments

Loading…

Similar plugins

dsh-channel-telegram

by LosEcher

DSH bundle: thin Telegram bridge (long-poll Bot API, allowlist, per-chat agent sessions) for DeepSeek Harness

Manifest valid

★ 0

↓ 201/wk

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add dsh-channel-telegram

by todayer

DeepSeek Harness Telegram bridge (bot) plugin, Hermes-style: per-topic sessions, DM topics, group gating, media, commands. Fork/extension of hi-wenw/dsh-telegram-channel.

Manifest valid

★ 0

MIT

JavaScript

Aug 25, 2026

dsh plugin --profile web add dsh-telegram-channel

by yuko0331

通过 Telegram 私聊远程使用和查看 DeepSeek Harness

Manifest valid

★ 4

MIT

JavaScript

Aug 16, 2026

dsh plugin --profile web add dsh-telegram-bot

by qschen86

DSH host plugin: Telegram notifications and reply-to-continue for sessions

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 5, 2026

dsh plugin --profile web add dsh-telegram-bridge

by chintoleung

Telegram pings when your DeepSeek Harness agent needs you — question asked, approval requested, turn done. Notification-only: one file, zero deps, real-DSH compat canary.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 2, 2026

dsh plugin --profile web add dsh-ping

by luzhengyangtx

Telegram duty gateway for DeepSeek Harness: phone-message task loop, global approval forwarding, duty/local toggle, zh/en

Notifications & IntegrationsTerminal & ClientsManifest valid

★ 4

↓ 388/wk

TypeScript

Aug 15, 2026

dsh plugin --profile web add @luzhengyangtx/dsh-telegram-duty