rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:baojingyu/dsh-superagent-multi-channel
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH plugin that wires Feishu, GitHub, WeChat, WeCom, DingTalk and Alibaba Cloud Yunxiao Projex into one assess → ticket → execute → reply loop.
Version 2.5.3 · 109 test files / 1,675 passing · MIT · installs beside the official dsh-superagent
An extension of the official open-source superagent: the two official sources (Feishu, GitHub) stay as they are, and WeChat, WeCom, DingTalk and Yunxiao Projex are added and aligned to the same capability surface (reception scope, authorization list, thread context, worker reads, search, label refresh, reply and status write-back). See the capability matrix.

Someone mentions the bot or messages it on any of six channels → the plugin reads the context under the policy and decides whether to take it → an isolated executor session works in its own directory → the result goes back to the same thread, and a work item's board status can follow along.

Trigger shape (thread, sender, structured @, native id).orchestrator_report.stateDir; a person can take over at any step.
Four gates (enabled source → allowed list → structured mention → assessment). Failing any one only observes the message: no ticket, no reply, no remote change.
| Stage | What exists |
|---|---|
| Receive | six sources normalised to one Trigger; groups/DMs; structured @; optional images; dedupe by platform id |
| Authorize | per-source "who may originate work" + admission table (listed/unlisted × @/un-@/DM) |
| Assess | rule switches, mode (off/observe/auto), deadline, model and effort; every decision records strength and evidence |
| Ticket | one ticket per thread; inputs delivered any time; interruptible, supplementable, human-takeover |
| Execute | isolated executor session and directory/branch; structured report; files returned |
| Reply | back to the original thread; idempotent marker; optional work-item status write-back; visible retries |
| Read originals | per-source worker resources, read-only |
| Panel | overview/sources/triggers/assessment/execution/settings/prompts/deployment; prompts and six skills overridable |
| Security | local state, 0600 secrets, reply-only, platform limits stated |

| Source | Reception | Highlights |
|---|---|---|
| Feishu (official) | history polling | topic/reply chains, AppLink deep links, images, worker reads feishu/<id>/… |
| GitHub (official) | notification polling | issue/PR context, gh for code, PR/issue links |
| WeChat (added) | sidecar polling (two profiles: personal iLink / team replica) | structured @, voice transcripts, downloadable images, worker reads weixin/<id>/message·thread·around, post-reattach catch-up; personal (default) = iLink single-chat assistant, team = Windows dev-group replica (group trigger, history/roster, text/file/@ send) |
| WeCom (added) | signed callback (plugin mounts /wecom/<instance>) |
@ judgement, inbound images, contact-list names, worker reads wecom/<id>/message |
| DingTalk (added) | Stream (deployment injects the SDK connection) | staffId @, Markdown 5000, worker reads dingtalk/<id>/message |
| Yunxiao Projex (added) | work-item polling | requirement/bug/task + comments, status write-back, attachment comments, worker reads projex/<id>/item·comments |
Feishu and GitHub are the two Sources the upstream superagent ships; the other four are this bundle's additions. ✅ present · ➖ not applicable · ❌ impossible on the backend (stated, never faked).
| Capability | Feishu (official) | GitHub (official) | WeCom | DingTalk | Yunxiao Projex | |
|---|---|---|---|---|---|---|
| Receive messages | ✅ poll history + events | ✅ poll notifications | ✅ sidecar poll | ✅ signed callback (plugin mounts /wecom/<instance>) |
✅ stream (needs a connect injected; no SDK shipped) |
✅ poll work items/comments |
| Assess / decide / execute / reply loop | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Structured @ judgement |
✅ open_id | ➖ | ✅ ats (markup fallback, strength in facts) |
✅ mentionsAgent |
✅ ats staffId |
➖ |
| Direct messages | ✅ | ➖ | ✅ | ✅ | ✅ | ➖ |
| Outbound text | ✅ markdown | ✅ comment | ✅ + mention-back | ✅ plain 2048 | ✅ markdown 5000 | ✅ RICHTEXT/Markdown comment |
| Outbound files | ➖ (CLI) | ➖ | ✅ sendFiles |
❌ API text only | ➖ (webhook) | ✅ attachments |
| Idempotent send | ✅ keyed | ✅ marker | ✅ keyed | ❌ none (stated) | ❌ none (stated) | ✅ marker |
| Thread context for the assessment | ✅ thread/root/parent | ✅ PR/issue | ✅ thread/parent; root→no_root |
✅ thread; root/parent→no_* |
✅ thread; root/parent→no_* |
✅ item body + comments |
| Worker reads of the original | ✅ feishu/<t>/… |
✅ github/<t>/… |
✅ weixin/<t>/… |
✅ wecom/<t>/message |
✅ dingtalk/<t>/message |
✅ projex/<t>/item, /comments |
| Inbound images for the assessment | ✅ | ➖ | ✅ [image:<id>], /media |
✅ MediaId, /cgi-bin/media/get |
➖ (text stream) | ✅ item/comment images archived |
| Panel search | ✅ message id | ✅ issue/PR number | ✅ native id | ✅ decimal MsgId |
✅ msgId |
✅ serial or page URL |
| Reply→parent mapping | ✅ | ✅ | ✅ (quote id) | ➖ no quote in callback | ➖ | ➖ |
| Display-name refresh | ✅ chat names | ✅ repo names | ✅ rooms/members | ✅ department users (refreshLabels) |
❌ needs contact permission API, not offered | ✅ status vocabulary |
| Member/roster sync into Policy | ✅ chat members | ✅ collaborators | ✅ group members | ❌ group members unreadable; user list only fills names | ❌ same | ✅ project members |
| Health entries | feishu + history |
github |
weixin |
wecom |
dingtalk |
projex |
| History backfill | ✅ chat history | ✅ notifications | ✅ post re-attach catch-up (marked historical) |
❌ callback only | ❌ stream only | ✅ first-sight comments |
| Message deep link | ✅ AppLink | ✅ issue/PR URL | ❌ | ❌ | ❌ | ✅ item page |
| Multiple instances | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Platform limits, not bugs: WeChat/WeCom/DingTalk have no per-message deep link; WeCom and DingTalk have no history to backfill (callback/stream only); DingTalk needs an injected connect() (src/sources/dingtalk-watch.ts); WeCom/DingTalk cannot enumerate chat members; DingTalk stream events carry text, so no image is claimed.
One WeChat source serves two profiles behind the frozen contract; the Node side only knows the contract, so switching profile means switching the sidecar and the panel's URL/launcher. The default profile is personal:
| Profile | Port | Backend | OS | Cost | Groups / @ |
Members | History | Send | Default use |
|---|---|---|---|---|---|---|---|---|---|
personal (default) |
9300 | weixin-ilink-bridge (ilink / Tencent iLink) |
any OS | free | DMs only; no groups, no @ |
observed | realtime only | text | personal assistant / remote control / self-dispatched tasks |
team |
8788 | weixin-db-bridge (pc-db / wechatauto, needs wechatauto-replica) |
Windows only (WeChat 4.1.12+) | free | groups + DMs (DB-triggered group messages); inbound @ undetectable |
full roster | full DB | read-only by default; --profile team enables text/file/group-@ (UIA) |
dev-group replica: group trigger, history/roster, text/file/@ |
personal iLink is the default (free, cross-OS, DMs only, self-dispatched tasks); team uses replica for Windows dev groups (DB-triggered group messages, full history/roster, sends text/file/group-@ with --profile team). team needs wechatauto-replica installed and WeChat 4.1.12+; no voice, no Moments, no friends/create-group. The release ships only these two backends and two launchers — wxautox4 / gate-guard are not bundled by default, and licensing of any optional wxautox4 backend is the deployer's responsibility.team's send path (UIA/OCR) does drive it, so one UI-automation client per account; only one instance may hold the account login/decryption keys at a time, and ilink is a Bot identity that cannot double-send to the same conversation as a desktop client.mmui tree is not materialised on a cold start). wechatauto ships hot activation, so team's replica DB read passes fully on 4.1.12.55 and can go to production (its --profile team send uses UIA/OCR); personal's ilink is client-version independent. See the compat-4.1.12.55 report and sidecar/README.Pick personal or team in the source card — either profile alone gives you a working WeChat channel; you do not run
both. The card already carries what each profile needs:
baseUrl follows the profile automatically (http://127.0.0.1:9300 for personal,
http://127.0.0.1:8788 for team); timeoutSeconds is 180 s (the team send path drives the desktop UI and is
slower); pollSeconds is 5 s. You rarely type anything, and every value can still be changed.team wants WeChat 4.1.12.55. With team selected the card shows an Install WeChat 4.1.12.55 button; clicking it opens
https://github.com/Rodert/wechat-win-versions/releases/tag/v4.1.12.55 in the browser.http://127.0.0.1:<port>, so there is nothing to change by
hand.autoReplies, acknowledge, ackText and progressAfterSeconds no longer appear in the
panel; canned replies, a pre-assessment receipt and "still working" notes are not part of this channel.Full background and the "why" live in the capability matrix.
The plugin has its own sidebar entry, "Superagent multi-channel", beside the official one. The screenshots below are real captures; project IDs, token paths, organisation IDs, names and chat names are masked.




stateDir empty to adopt an existing ~/.dsh/state/superagent (no migration); two superagent
installs each need their own directory.More in deployment; per-channel steps in EXTENSIONS.md.

facts.Does it auto-reply to everyone? No. Only threads the assessment accepted get a reply; a message from an unlisted person is
observed at most.
Where does data go? Everything stays in the local stateDir; data reaches a platform only when the plugin calls that
platform's API to read or reply.
Can it run beside the official superagent? Install both, but enable one at a time (a Host accepts one Source kind per id);
each keeps its own stateDir.
Does upgrading lose data? No. stateDir is unchanged and, since 2.3.0, the agent presets keep the shared ids so old
sessions resume.
A source receives nothing? See the troubleshooting table in docs/008-cookbook.md: WeCom callback
URL and token, DingTalk's injected stream connection, the WeChat bridge /health.
| Document | What it covers | Length / Audience |
|---|---|---|
| docs/README.en-US.md | Reading order and the full map (中文:docs/README.md) | 46 lines · start here |
| docs/000-philosophy.md | Why assess → ticket → execute | 35 lines · everyone, ~10 min |
| docs/001-domain.md | Trigger / Thread / Ticket / Assignment | 114 lines · developers, integrators |
| docs/002-authorization.md | Policy, allowed lists, addressed detection | 157 lines · admins, security review |
| docs/003-execution.md | Executor sessions, directories, delivery | 205 lines · developers, operators |
| docs/004-prompts.md | Prompts and skills | 98 lines · prompt maintainers |
| docs/005-panel.en-US.md | The panel page by page (with screenshots) | 60 lines · everyday users |
| docs/006-deployment.md | Deployment, settings, upgrades, coexistence | 298 lines · deployers, operators |
| docs/007-architecture.md | Architecture, module and test tables | 713 lines · maintainers, contributors (as an index) |
| docs/008-cookbook.en-US.md | Recipes and troubleshooting | 51 lines · on-call, troubleshooting |
| docs/extensions/capability-matrix.md | Six-source comparison and platform limits | 42 lines · selection, review |
| docs/extensions/ | ADR-005 … ADR-012 (each in English and Chinese) | 40–356 lines each · decision history |
| docs/gallery.en.html | Illustrated preview (中文:docs/gallery.html) | image pages · demo, review |
pnpm typecheck # tsc --noEmit
pnpm test # vitest run --maxWorkers=2
pnpm build # tsdown, eight entries
Latest full regression (2026-11-17, 2.5.1): tsc 0; 103 files passed, 1,674 passed / 27 skipped; tsdown build complete.
Two suites fail on macOS only and are unrelated to the plugin's logic: tests/source-actions.spec.ts spawns a
Windows .cmd launcher (spawn cmd.exe ENOENT), and tests/weixin-bridge-contract.spec.ts starts the iLink mock
server, whose beforeAll times out here. Both fail the same way on 2.5.0.
MIT, with the upstream dsh-superagent notices kept. WeChat UI automation is a third-party tool without Tencent's
authorization and may break at any time; use it within ADR-005's boundary (reply
only when mentioned, no broadcasts, no bulk friend requests, one account online at a time).
Screenshots are real captures with sensitive fields (project/organisation IDs, token paths, names, chat names, session titles) masked; the architecture and lifecycle images are diagrams drawn from the current implementation.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、llm-agent、deepseek-harness。