Introduction¶
When developing with AI agents, source materials are scattered across Feishu, Tencent Docs, cloud drives, WeChat, official accounts, web-based AI chat interfaces, and more. Every time you create content, you have to manually copy and paste material to the model. The philosophy behind DSH (DeepSeek Harness) is “everything is a plugin.” The community maintains a variety of workbench plugins to provide a unified entry point and organized archiving.
Plugin Overview¶
jessicaisleep/dsh-source-inbox is a DSH plugin classified under “Memory,” designed to aggregate your materials from 27 platforms into a single local knowledge base. The plugin provides an official entry button, step-by-step login guidance, credential paste fields, controlled browser self-reading, link-to-Markdown conversion, WeChat Read highlight export, Cubox bookmark sync, IMAP mail retrieval, and more.
The plugin has no third-party package dependencies; all capabilities are implemented natively.
Core Features¶
Four-Level Access Ladder¶
- L0: Official MCP/API
- L1: Restricted official API
- L2: Web login-state reading
- L3: Official export/share/clip
Data Sources and Official Entry Points¶
The plugin maintains a registry of 27 data sources, of which 20 provide an official entry button. Clicking a button navigates to the platform’s official page via the host’s window.open → shell.openExternal: API pages redirect to the login/console; sources that only support web login-state redirect to the login page; sources that only support export redirect to the export entry. The remaining 7 are local channels or official backups that must be completed on a phone/client, and the row explains why rather than placing a dead button.
Step-by-Step Login Guidance¶
All 27 data sources include steps (84 steps in total), with each step clearly stating “click where → get what → paste where.” For example, Feishu has 5 steps (create a self-built app in the developer console → check docx/drive/wiki/bitable read-only permissions and batch-activate → copy App ID/Secret into the input field → manage versions and publish for review → exchange for user_access_token); Tencent Docs has 4 steps (including error codes and a non-Bearer Authorization header); Email has 4 steps (prompting to use an authorization code rather than the login password).
Controlled Browser Self-Read¶
The plugin launches a dedicated Chromium instance (default: Edge), communicating via CDP over --remote-debugging-port with a private --user-data-dir and Node’s built-in WebSocket. The user scans a QR code to log in once in that window, after which the plugin reads lists directly and archives them as Markdown records. The daily browser profile is never touched, avoiding exposure of cookies from all sites.
Whitelist gate: only https pages declared in the source registry can be read; no whitelist means nothing is readable; redirects or suffix spoofing are also rejected; /browser/open only accepts registered official entry URLs.
Login-wall detection: when a page returns 200 and contains text such as “scan to log in,” it is determined as not logged in, returns loginRequired without archiving, and simultaneously opens the page in that plugin window for scanning before clicking again.
Credential Paste Fields¶
Starting from Phase 2.3, credentials no longer require manually writing a file. 8 sources that need credentials provide inline input fields; after pasting, click “Save Locally,” and the plugin writes to $DSH_HOME/_secrets/<file>.json (defaults to ~/.dsh/_secrets when DSH_HOME is not set; can be redirected via config.secretsDir or DSH_SECRETS_DIR; atomic write, permissions 0600). The UI and any API only display a masked preview (cli_****(12 chars)); plaintext never appears in responses, logs, or tool returns.
Link to Markdown¶
lib/fetchdoc.js provides link-to-Markdown conversion, supporting Yuque / web clip / Zhihu / link resolution. Inline input field + “▶ Fetch & Archive” button. Converts HTML to Markdown (headings / lists / blockquotes / tables / images / links / code fences), preferring <article>/<main>/body containers over the full page navigation. Safety checks: only accepts https; rejects URLs with embedded credentials; rejects localhost/internal/169.254 metadata addresses; the final URL after redirects must pass the same checks again; size limit 5 MB; timeout 20 s.
WeChat Read Highlight Export¶
lib/weread.js provides WeChat Read highlight export, calling the official read-only API (bookshelf → highlights per book) using the pasted Cookie, generating Markdown with front-matter grouped by chapter. Inline button “▶ Export Highlights.”
Cubox Bookmark Sync¶
lib/cubox.js provides bookmark sync, pulling bookmarks via the pasted API link; the domain must be cubox.pro or a subdomain, and each entry generates a card record. Inline button “▶ Sync Bookmarks.”
IMAP Mail Retrieval¶
lib/mailimap.js provides email retrieval using a hand-written IMAP client with only node:tls; commands are limited to SELECT / FETCH / LOGOUT, uses BODY.PEEK (does not mark emails as read), decodes multipart / base64 / quoted-printable / RFC 2047 subjects, converts HTML to text, and skips attachments. Inline button “▶ Fetch New Mail.”
Watcher (Phase 1)¶
The plugin supports a dropzone watcher that monitors a local landing directory; new files automatically go through the import wizard, dual-track archiving, and compliance gates. Watcher configuration is stored in <dataDir>/adapters.json, with configuration items including dir (absolute path; the sole exception being the default <root>/dropzone), pollMs, enabled, source, tags. Relative paths and feedback loops landing in the archive directory are rejected.
Data Archiving¶
The default data directory is $DSH_HOME/data/dsh-source-inbox/, overridable via config.dataDir or the environment variable DSH_SOURCE_INBOX_DIR. The structure includes:
- manifest.jsonl: append-only index (one record per line, later writes override the same id)
- _raw/<source>/<YYYY-MM>/: text-track originals
- materialized/<source>/<YYYY-MM>/: text-track Markdown copies
- reference/<source>/<YYYY-MM>/: material-track “text shadow” placeholders
- assets/: reserved
- dropzone/: default dropzone
- browser-profile/: private profile for the controlled browser
- adapters.json: watcher configuration
The material track only stores pointers + text shadows, never copying large file bodies.
Installation and Activation¶
The plugin has been published on GitHub and can be installed with the following command:
dsh plugin add github:Jessicaisleep/dsh-source-inbox
After installation, the plugin loads automatically. The watcher defaults to the dropzone directory and can be adjusted via host configuration or through the API.
Typical Usage¶
- Open the “Source Inbox” workbench in the sidebar.
- Click the official entry button for a platform in the data source list to navigate to the platform’s official page and complete login.
- For sources requiring credentials (e.g., Feishu, Tencent Docs, Email), paste credentials inline and save locally.
- If the platform supports controlled browser reading, use the “Open Browser” button to scan and log in; the plugin will then automatically read and archive.
- For links, WeChat Read highlights, Cubox bookmarks, and IMAP mail, paste credentials or links directly in the corresponding row and click “Fetch & Archive” or “Export/Sync.”
- Check overview and statistics via
/dsh-source-inbox/api/status.
Use Cases and Notes¶
This plugin is suitable for developers and knowledge workers who need to uniformly archive personal materials from multiple platforms. The plugin runs with the current DSH process permissions; review the source code and license before installing.
Compliance red line: personal WeChat / QQ chat records only go through official backup / merged forwarding / share export; local database decryption is absolutely not performed.
Conclusion¶
The plugin aggregates scattered materials from various platforms into a local knowledge base, providing a unified official entry point, step-by-step guidance, credential pasting, controlled browser self-reading, and capabilities such as link-to-Markdown conversion, WeChat Read highlight export, Cubox bookmark sync, and IMAP mail retrieval.
- Directory page: https://www.skillhub.cn/plugins/Jessicaisleep/dsh-source-inbox
- GitHub: https://github.com/Jessicaisleep/dsh-source-inbox