MichengAI/dsh-im-connect ↗★ 21
@michengai/dsh-im-connect
将主流即时通讯平台接入本机智能体 适合需要通过微信、飞书、Telegram等IM工具远程与本地智能体交互的用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MichengAI/dsh-im-connect說明文件
閱讀完整 README ↗Usage
Open Settings → IM Assistant, select Add account under the target channel, then choose that account's workspace, model, permission, and private-access mode.
| Goal | Action | Notes |
|---|---|---|
| Add an account | Select Add account under a channel, choose the account settings, then scan or enter credentials | The same channel can contain multiple accounts; Feishu / Lark / WeChat are QR-only, while Telegram needs a Bot Token |
| Change account settings | Expand the channel, select an account, then edit its workspace, model, reasoning effort, permission, or private-access mode in its settings dialog | Changes affect only that account and apply to its subsequent sessions immediately |
| Pause receiving | Turn off Receive messages on the account row | Credentials and settings stay; only new inbound messages for that account pause |
| Send work from IM | WeChat / Feishu / Lark / QQ QR scanners can DM immediately; DingTalk / WeCom scanners and other users need approval. Groups only need a mention | Each chat has its own channel session |
| Split input | End with .. to continue, !! to flush now | Default merge window is about 5 seconds |
| Start a new session | Send /new or /clear | Creates and switches the current IM session; previous sessions stay in the Channels list without affecting web tasks |
| Status / help | Send /status or /help | Current session and dynamically discovered Chat commands |
| Agent preset | Choose Agent preset when adding or editing an account | Uses the Chat roster; changes apply to new sessions while previous sessions keep their preset |
| Command permissions | Open Settings on the account row and toggle DM/group commands | Admission is checked first; disabling commands keeps conversation and approval/question replies available |
| Sessions / workspaces | /sessions, /session ; /workspaces, /workspace | Resume ordinary Chat sessions; workspace selection creates a session without changing account defaults |
| Task controls | /stop, /steer , /queue | Stop, provide instructions, or inspect the queue; stopping preserves Host queued messages |
| Session with a preset | /presets, /preset , /preset --default | Starts and connects a new session in the current workspace without changing account defaults |
| Model / reasoning | /models, /model , /reasoning [effort or --default] | Changes the current selection and updates the Host default for subsequent Chat sessions |
| Result recovery | /delivery, /delivery retry | Check recent deliveries and resend text from the original task |
| Session management | /history, /rename , /fork | Recent text history, rename, or fork and switch |
| Approve a stranger DM | Open Settings → IM Assistant and approve or deny the pending request | Affects DM access only |
| Answer an interactive question | Reply with an option number or text; separate multiple choices with commas, or enter a custom answer | Multiple questions arrive in order; only the initiating user can answer in a group |
| Approve a tool | Reply Approve / Deny or 批准 / 拒绝 in a DM | Also accepts yes / no / allow / reject; group replies cannot grant |
| Review on the web | Open the workspace Channels tab | IM sessions never appear under Tasks |
After /workspace, /new and continuing after archiving the current session keep the selected workspace and use the account model, Agent preset, and permission preset. /session and /fork preserve the original session configuration.
DingTalk replies prefer official AI Card streaming. If card creation fails, plain text preserves line breaks; code fences and list markers remain literal. Do not enable Webhook on the same Telegram bot.
Send commands as separate text messages; image captions remain ordinary input. Start with /help; individual replies also suggest related actions.
- Sessions and workspaces: list numbers expire after 15 minutes. Archived sessions are marked; restore them on the web first. Finish running tasks and pending interactions before switching.
- Models: as in Chat,
/modeland/reasoningalso attempt to save the default for future sessions. Other existing sessions are not changed. - Stopping and queues:
/stopsubmits a stop request and keeps queued messages. Pause an active goal separately with/goal pause. Use/queueto view and manage queued messages. - Forking:
/forkrequires at least one completed turn. If a fork was created but switching failed, follow the session ID and recovery instructions in the reply. - Permissions and export:
/permissionsettings survive session restoration./exportfollows private-chat admission and private/group command permissions. Completion is reported only after the ZIP file is sent.
Command replies support Chinese and English and follow the language explicitly saved in web settings. With no preference or an unavailable language service, they default to Chinese. Dynamic names, paths, user content, and extension results remain unchanged. Tool approvals, interactive questions, and some channel errors are not yet fully localized.