DeepSeek Harness (DSH) has the core philosophy of “everything is a plugin”. In the current ecosystem, development tools and UI theme plugins are relatively rich, while plugins for foreign trade scenarios (inquiry handling, multilingual copywriting) remain scarce. dsh-trade-assistant aims to fill this gap by providing a rule-driven, zero-model-dependency workflow plugin for foreign trade practitioners.
Core Features¶
The plugin includes two main tools: trade_inquiry_reply, the Inquiry Reply Assistant, and product_copy_multilang, the Multilingual Product Copy Generator.
Inquiry Reply Assistant (trade_inquiry_reply)¶
This tool handles customer inquiries by automatically parsing text content with a rule engine.
- Inquiry type identification: identifies specific purchasing, price comparison requests for price lists, sample requests, agency/distribution applications, general market-development inquiries, and phishing/scams.
- Key field extraction: extracts quantity, amount clues, delivery lead time requirements, payment terms (e.g., T/T, L/C), specification clues, customer region, and customer identity clues (traders, government tenders, educational institutions, manufacturers) from the text.
- Reply structure recommendation: based on the identified inquiry type, provides a targeted strategy and step-by-step reply outline.
- Pre-send checklist: checks timeliness, quotation elements, attachment conventions, and next actions.
- Risk warnings: issues tiered alerts for phishing or scam indicators (e.g., advance payments, Western Union transfers, suspicious links or attachments).
Multilingual Product Copy (product_copy_multilang)¶
This tool generates product copy skeletons in 13 languages.
- Multilingual support: outputs copy in Chinese, English, Spanish, French, German, Arabic, Russian, Portuguese, Japanese, Korean, Vietnamese, Thai, and Indonesian, totaling 13 languages.
- Copy structure: provides title alternatives (3 options, localized phrasing), core selling points, and a five-part description structure (hook → pain point → solution → trust evidence → call to action).
- Localization materials: provides localization notes, including number formats (e.g., 1.234,56), tone (Spanish usted, Japanese keigo), market taboos (e.g., religious-sensitive terms in the Middle East), and B2B trust terms.
Working Principle¶
dsh-trade-assistant uses a rule engine rather than a large language model (LLM) to perform tasks. The built-in foreign trade knowledge base (including inquiry type features, key field regular expressions, and a 13-language localization material library) does not initiate any LLM calls during execution.
This design results in the following characteristics:
* Zero model dependency: does not depend on external model services.
* Zero token consumption: does not consume large-model inference resources.
* Zero external API calls: runs entirely locally.
* High output determinism: based on regex and rule matching, results are predictable and easy to unit-test and audit.
* Transparent logic: the inquiry type and risk identification logic are fully transparent, and matched keywords can be inspected.
Installation and Activation¶
Install it as an npm package. The plugin is implemented in pure JS and has no build step.
dsh plugin --profile web add dsh-trade-assistant
After installation, use the following command to verify that it loaded successfully:
dsh --profile web --dump-config | grep trade-assistant
Typical Usage¶
In a DSH Web UI session, invoke the tool directly and provide the relevant parameters.
Scenario 1: Inquiry Parsing¶
Use trade_inquiry_reply to process customer inquiry text.
用 trade_inquiry_reply 处理这封询盘:
"Dear Sir, we are an import company in Nigeria and need 500 pcs of your solar panel 550W, please quote best price with delivery to Lagos port. Payment by T/T."
Scenario 2: Multilingual Copy Generation¶
Use product_copy_multilang to generate Spanish and Arabic product copy for a mining machine.
用 product_copy_multilang 给我们的矿机产品写西语和阿拉伯语文案:
产品:BTC 矿机 S21,卖点:能效比 15J/TH;支持 220V 家用电压;质保 12 个月
Use Cases and Cautions¶
This plugin is suitable for users who need to process foreign trade documentation quickly within the DSH ecosystem. Before use, review the plugin source code and license (MIT) to ensure compliance with local security requirements. The plugin runs with the permissions of the current DSH process, so data isolation should be considered.