Preface¶
When building e-commerce-related agents in DeepSeek Harness (DSH), a common practice is for the Agent to only output prompts or external links, while the actual main images, detail images, and ad images require manually switching to other tools for generation. This creates a disconnect between conversation and disk storage, making it difficult to close the loop on batch image generation, style replication, and white-background main images within a single workflow.
dsh-pixmart is a community-maintained DSH plugin (maintainer: mirror9933, SkillHub category: “Model Inference”) that integrates e-commerce image generation capabilities into the Harness. You describe your requirements in the conversation, and the Agent calls plugin tools to generate images and write them to the plugin’s data directory, where you can browse and manage them in the sidebar under “PixMart → Gallery”. The following sections introduce what it is, how to install it, how to use it, and points to note during usage.
What is this¶
dsh-pixmart is designed for DeepSeek Harness, providing a suite of e-commerce image generation capabilities covering scenarios such as main images, detail images, ad images, style replication, and white-background images. The current version of the plugin is 0.1.2 (MIT License). For source code and documentation, see the GitHub Repository, and for the community directory page, see SkillHub: mirror9933/dsh-pixmart.
The DSH ecosystem emphasizes “everything is a plugin”; directories like SkillHub are independent community sites and have no official affiliation with DeepSeek or High-Flyer. Before installing the plugin, it is recommended to review the source code and license yourself, and understand that the plugin runs with the permissions of the current dsh process.
Core Features¶
According to the project README, the capabilities can be summarized into the following blocks.
Conversation-driven Image Generation
Describe requirements in natural language within the conversation (e.g., “Create a 1:1 white-background main image for this product,” “Replicate the style of this viral product for my item,” “Produce a set of detail images, show me the prompts first”). The Agent will call the plugin via the toolchain to actually generate the images and save them to disk.
Multiple E-commerce Image Types & Prompt Modules
Supports main images, detail images, ad images, etc.; includes built-in prompt modules (the README mentions that pixmart_prompt with listModules: true lists all 24 modules). Scenarios requiring fidelity, style replication, or white backgrounds with reference images must use pixmart_edit with a reference image; pure text-to-image cannot guarantee subject consistency. For pure white backgrounds with reference images, use the tool.white-bg module; main.white-bg is for white-background first images without reference images—do not mix the two.
Configurable Vendors and Models
The plugin ships with no vendors pre-configured. You must manually add a model provider in the settings before first use (built-in directory options like Ofox / Agnes AI / Alibaba Cloud Bailian, or custom APIs). Configure the API Key, test the connection, fetch and save image generation models, then set the default vendor / model / size / count per generation (1–4).
Gallery and Data Directory
Generated results are saved to the plugin data directory (default $DSH_HOME/pixmart/, falling back to ~/.dsh/pixmart if $DSH_HOME is not set; the actual path is shown in the settings page “Data Directory”). The sidebar “Gallery” supports browsing, soft deletion (recoverable via trash), and export (triggered only via the interface; the export path must be an absolute path configured in settings). Copies used for rendering in the conversation are located in the session workspace at pixmart-out/<project_id>/; these can be deleted after confirmation of obsolescence, while the originals remain in the data directory.
Tool Tiering and Billing
There are 8 Agent tools total. Free: pixmart_prompt, pixmart_check_size, pixmart_providers, pixmart_projects, pixmart_ping. Billed: pixmart_generate, pixmart_edit, pixmart_batch. The default sequence prioritizes cost-saving: pixmart_prompt → pixmart_check_size → billed tools. Billing count = Number of items × Count per item; the Agent will confirm before batch processing. Single image generation takes approximately 1–3 minutes in testing; do not repeatedly call the same tool while waiting. In case of insufficient balance (402), the tool returns insufficient_credits, requiring the Agent to stop and ask the user, without retrying or downgrading.
Sizes
You can pass ratios (e.g., 1:1, 3:4, 16:9) or pixels (e.g., 1024x1024); if unsure, call the free pixmart_check_size first (it does not send a request). For some vendors (e.g., agnes), tiers are determined by exact pixels.
Installation & Enablement¶
Recommended order for online installation (do not use the GitHub repository address as a dependency: pnpm 11 build gates will block prepare):
- npm Package Name (Easiest)
- Release
.tgz - Local Directory (For development, requires manual
pnpm build && pnpm build:clientfirst)
Example (the README uses the profile px, replace with your own profile as needed):
dsh plugin --profile px add dsh-pixmart # Published to npm, easiest method; can also use .tgz address or local absolute path
dsh --profile px --dump-config # Output should show the dsh-pixmart layer
Example address for the Release package (Version v0.1.2 in the materials):
# Example: Install .tgz from Release (zero gates, package includes lib/ + dist/)
https://github.com/mirror9933/dsh-pixmart/releases/download/v0.1.2/dsh-pixmart-0.1.2.tgz
If you are unsure whether the plugin is loaded after installation, you can call the side-effect-free pixmart_ping. If the settings page reports “Host has not loaded this interface,” changes on the host side usually require restarting the DSH host.
First Use¶
At least one model provider must be configured before the first use:
- Open Settings → PixMart → Vendors, click “Add Model Provider”.
- Select Third-party Model Provider (built-in directory) or Custom Model API (manually enter ID / Display Name / API URL).
- Fill in the API Key and Save (you can also set environment variables first, e.g.,
OFOX_API_KEY, which takes priority over the settings page). The key is only echoed as “is set,” not displayed, nor included in logs or response bodies. - Click “Test Connection”, then “Fetch Models” to multi-select image generation models → “Save Selection” (the only entry point that writes to the model list).
- In the “Defaults” card, select Vendor / Model / Size / Count per generation (1–4) and save; these defaults are used when image generation is called without parameters.
If no vendor is configured, the billed tools will prompt you to open the path above to add one; if a vendor is configured but the ID is wrong, the error message will list “Configured: a, b”.
Typical Usage¶
Mention Requirements in Conversation
Simply describe the task in plain language, e.g., white-background 1:1 main image, swap my product into a viral style, detail images with prompts previewed first. The Agent will prioritize free prompt and size checks, then call billed generation after your confirmation.
Fidelity and Style Replication
Must use pixmart_edit + reference image; do not rely on pure pixmart_generate to maintain product appearance consistency.
Batch
Use pixmart_batch; the Agent will report the billing item count before batch processing and execute after confirmation.
Troubleshooting Tips
For sizes, rely on the original file and the ledger (pixels returned by the vendor recorded in usage.jsonl), do not solely trust the scaled preview in the conversation. Deleting a vendor card requires two-step confirmation, and deletion will not be automatically restored upon restart.
Applicable Scenarios & Notes¶
Who is it for
Agents or workflows already operating within DSH for e-commerce operations, product listing, and asset batching; users willing to provide their own third-party or custom image generation APIs and accept per-use billing (items × count).
Security and Permissions
The plugin reads and writes to $DSH_HOME/pixmart/ (or ~/.dsh/pixmart) and pixmart-out/ in the session workspace; API Keys are provided by you in settings or environment variables. Before installation, please read the MIT LICENSE and the repository NOTICE, and assess the source code yourself.
What not to do
Do not use git clone or the repository URL as the spec for dsh plugin add (materials explicitly forbid this, and it aligns with the writing constraints of this article). The Agent does not have export capabilities; exports can only be triggered by you in the Gallery interface.
Conclusion¶
dsh-pixmart consolidates e-commerce main images, detail images, ad images, style replication, and white-background images into the DSH conversation and toolchain, delivering results to the Gallery rather than stopping at the prompt level. For installation or version details, refer to the README:
- Community Directory: https://www.skillhub.cn/plugins/mirror9933/dsh-pixmart
- Project Homepage: https://github.com/mirror9933/dsh-pixmart