Introduction¶
DeepSeek Harness (DSH) uses a plugin-based architecture. For developers who need to integrate an email system into the Web interface, hun1315/tencent-agent-mail-dsh-plugin provides a full-screen workbench solution based on Tencent Agent Mail (agent.qq.com). The plugin allows users to perform email polling, storage, classification, and LLM-based organization directly within DSH, without navigating to external web pages.
Core Features¶
The plugin mainly provides the following capabilities:
1. Real-time email retrieval and storage: While DSH is online, it polls the Agently mailbox in the background every 60 seconds (configurable). New emails are automatically stored in local JSON storage.
2. Local classification and LLM organization: Supports five rule-based categories (invoices, shift schedules, workflows, instruction tasks, and inbox). New emails can be summarized and structurally extracted by a configured OpenAI-compatible model (for example, invoice amount and shift cycle).
3. Full-screen workbench UI: Provides a date-grouped list, a details slide-out panel, local search, and ESC-based hierarchical dismissal.
4. Attachments and archiving: Supports downloading and opening attachments (with automatic authorization refresh). Supports archiving (soft delete) and recovery from the recycle bin; sent records are categorized separately.
5. Mailbox memory: The summary of each email is automatically appended to memory/default.md.
6. Email remote control (command channel): Users can trigger DSH to execute tasks and reply by sending an email containing specific keywords from a whitelisted mailbox.
Installation and Setup¶
The plugin requires Node.js >= 18.
1. Install and log in to Agently CLI:
npm install -g @tencent-qqmail/agently-cli
agently login
- Configure LLM credentials:
Create the~/.dsh/dsh-mailbox/credentialsfile with the following content:
{
"base_url": "https://<your-endpoint>/v1",
"api_key": "<your-key>",
"model": "<model-name>"
}
- Install the plugin:
dsh plugin --profile web add github:<you>/dsh-mailbox
- Initialize:
After installation, you need to complete initialization steps such as binding the LLM key in the DSH dialog. By default, the plugin locates the agently-cli entry point vianpm root -g.
Notes¶
- Environment requirements: Windows is preferred. Linux/macOS may work in theory but have not been fully validated. Node.js >= 18 is required.
- Security: Email bodies are treated as untrusted input and are rendered as plain text only; they are never executed. Credentials are stored locally in
~/.dsh/dsh-mailbox/credentials.jsonand are not committed to the repository. - Not plug-and-play: After installation, bind the LLM key in the DSH dialog and edit
~/.dsh/dsh-mailbox/settingsto configure parameters such as the whitelist and polling interval.
Conclusion¶
This plugin deeply integrates the sending, receiving, and management capabilities of Tencent Agent Mail into DeepSeek Harness workflows. It is especially suitable for developers who need LLM-driven email organization or want to remotely control an Agent via email. For full configuration documentation, see the GitHub repository.