rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:GooDAnDReaDY/dsh-messenger-gateway
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明
|
⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.
🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version. |
dsh-messenger-gateway provides an enterprise-grade, multi-transport messaging gateway for DeepSeek Harness agents.
Talk to your Harness agent directly from Telegram: interactive keyboard buttons, forum topic sessions, private user workspaces, pairing codes, and optional spoken voice replies.
Talk to your Harness agent from Telegram: text, voice, photos, documents, inline buttons, named homes, and optional spoken replies.
telegram.proxyUrl)telegram.apiRoot) for reverse proxies and local Bot API serversallowlistMode: open is an explicit opt-in)/sessions and /resume <n|id>)sessionScope)agent.sessionTitleFromChat: TG · @username or TG · Group › topic N)/keyboard on|off)messenger_ask)/role coder, /role architect, @role tags in group chats)/skills, /tools)/export), turn rewind (/rewind), session branching (/fork)/files [dir]) and file download (/get <path>) with directory traversal protection/setalert, /alert)/remind <time> <text>, /remind list, /remind cancel)POST /dsh-messenger-gateway/events) for CI/CD and external alerts/stop, /new, /model, /status, /voice, /sethome, /homemessenger_ask (inline keyboard answers return to the agent)messenger.senddsh-voice), photos → vision (dsh-vision-bridge)dsh-tts); mp3 is converted to OGG/Opus via ffmpeg for Telegram voice notesDiscord and Slack adapters are available as outbound transports (Webhooks or Bot REST APIs).
dsh plugin --profile web add @goodandready/dsh-messenger-gateway
Then open Settings → Plugins → Messenger gateway:
| Plugin | Role |
|---|---|
@goodandready/dsh-voice |
Transcribe inbound voice messages |
@goodandready/dsh-tts |
Speak agent replies |
@goodandready/dsh-vision-bridge |
Describe inbound photos |
They are not npm dependencies of this package — install them separately if you want those features.
Spoken replies use Telegram sendVoice. If TTS returns MP3 (or other non-Opus audio), the gateway runs ffmpeg (libopus) to produce OGG. If ffmpeg is missing or conversion fails, the audio is sent as a regular audio file instead of a voice note.
| Command | Description |
|---|---|
/start /help |
Help |
/whoami |
Your Telegram user id |
/new |
New agent session |
/sessions |
List recent messenger conversations |
/resume <n|id> |
Switch chat to previous session |
/stop |
Abort the current turn |
/model |
Interactive 2-step model picker (providers → models) or /model <prov> <mod> |
/status |
Gateway status and session counters |
/top |
Live server resources: RSS/Heap memory, uptime, active chats, reminders |
/topic <name> |
Create a new Telegram forum topic in supergroups and start an isolated session |
/role [name] |
Switch agent persona (coder, architect, reviewer, writer, translator, concise) |
/skills /tools |
List active agent tools and capabilities |
/fork |
Fork current session into a new independent session |
/export |
Export session dialogue history to Markdown |
/rewind [N] |
Rewind last N conversation turns |
/files [dir] |
Workspace file manager |
/get <path> |
Download file from workspace |
/remind <time> <text> |
Set a reminder (e.g. /remind 15m Call client) |
/setalert /alert |
Configure admin alert channel and send test alert |
/keyboard on\|off |
Toggle quick actions reply keyboard |
/voice on\|off |
Per-user spoken replies |
/tts on\|off\|status |
Per-chat spoken replies |
/sethome [name] |
Bind current chat/topic as a named home |
/home |
List homes |
In addition to Telegram, outbound messages can be dispatched to Discord and Slack via Webhooks or Bot APIs:
discord.enabled: true, provide either webhookUrl or botToken. Target channels via chatId: "<channel_id>".slack.enabled: true, provide either webhookUrl or botToken. Target channels via chatId: "<channel_id>" or threads via threadId: "<thread_ts>".messenger_ask — ask the user with inline buttons; choice is fed back into the turn/messenger/send, /messenger/ask, /messenger/progressctx.messenger for other pluginssessionScope: user (default) or chat — how group chats isolate sessionsallowlistMode: closed (default) or open — closed refuses every unknown user (fail-closed): a fresh install admits nobody until the admin approves a pairing code (/start → approve in the settings card); open admits all users when the allowlist is empty — enable it explicitly only for public assistant bots, the settings card and /status surface the exposuresecurity.trustProxy: false (default) — loopback-trusted requests must carry a pinned localhost / 127.0.0.1 / [::1] Host (DNS rebinding defense). Enable only behind a trusted local reverse proxy that rewrites the Host header/get and /files require allowlisted users and never serve hidden (dot) filestelegram.proxyUrl is a secret: the settings API returns only a masked value and an empty field keeps the configured proxyauth_date required, 1h acceptance window, one-time query_id (replays rejected); initData in URL query is not accepted — the Mini App must send it via the Authorization: tma headermutations sensitivity every tool that is not recognizably read-only (including network, send and MCP tools) asks for confirmation; a chat without a target refuses unconfirmed actionsjavascript: URLs stripped)/voice summary and /keyboard persist through the settings writertelegram.apiRoot with plain http is only accepted for loopback hosts (a local Bot API server); the webhook URL is logged without its secret pathwebhooks.enabled: false removes the messenger write routes entirely; GET /update and /messenger require trusted callerswebAppEnabled: false takes the whole Mini App surface down (dashboard and every /api/* answer 404) and clears the menu buttonreplyMarkup sent via /messenger/send is schema-validated (button text/actions, sizes) before delivery0600 permissions inside 0700 directories.bak of the previous good version, files carry a schemaVersion with migrations from legacy formats, and a corrupted file is preserved as .corrupt-<ts> and recovered from .bak — pairing never silently wipes access (fail-closed with an explicit error)stat/realpath (matters on network filesystems), outbox persistence batches enqueue bursts into one debounced write and is forced out on stop(); the plugin also loads cleanly into profiles without a webServer service (routes are skipped with a warning), and a reload/dispose never leaves a stopped gateway reachable/mute (per chat) stops ALL outbound delivery to that chat — notify bridge, messenger.send, HTTP sends, cron prompts and forum mirroring report {ok, muted} and skip delivery; the interactive turn conversation is unaffected, and the dashboard shows real outbox/DLQ counterssessionList: true (default) — enables /sessions and /resume commands in chatsessionTitleFromChat: false (default) — name each new session after its originating chat (TG · @user, TG · Group › topic N) instead of generic generated titlesvoiceMode: mirror / always / off — when to speak replies (also /voice)tts.enabled / tts.maxChars — TTS gate and length capnotifyBridge — forward non-messenger web session events to a hometelegram.proxyUrl: optional HTTP, HTTPS or SOCKS5 proxy URL (socks5://user:pass@127.0.0.1:1080, http://127.0.0.1:8080); socks:// and socks5h:// are aliases. Leave it empty to use TELEGRAM_PROXY / DSH_MESSENGER_TELEGRAM_PROXY / HTTPS_PROXY / ALL_PROXY from the environment, use off/none/direct to disable proxying entirely, and NO_PROXY/no_proxy rules are honoured. The tunnel is implemented with node:net/node:tls (no extra dependencies) and keeps normal TLS certificate verification for api.telegram.orgtelegram.apiRoot: optional custom Telegram Bot API base URL (default: https://api.telegram.org), for local Bot API servers or reverse proxiessettings.plugin.item on the Plugins tab (key: dsh-messenger-gateway).settingsScope.bind({ namespace: 'dsh-messenger-gateway' }) with snapshot status checking (loading, unavailable, ready).ffmpeg on the host PATHMIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。