dsh-comfyui-gallery: Browse ComfyUI Images and Full Generation Parameters in DSH

Foreword

When generating images in batches with ComfyUI, the outputs often pile up in the output directory: filenames carry seeds or timestamps, and there might be a JSON file nearby. However, to check the positive prompts, negative prompts, sampling steps, base model, and LoRA, you must open them one by one in File Explorer. If discussing “what prompts were used for the previous image” in DeepSeek Harness (DSH), you have to manually copy paths or scroll through chat history. Many capabilities in the DSH community are available as client plugins hanging on the left sidebar. Below is dsh-comfyui-gallery released by maintainer SunSets44Times (npm package name dsh-comfyui-gallery, version 0.9.4 in the current documentation). It brings ComfyUI image generation, metadata, workflows, and LoRA asset management into a single page and supports bringing selected content back to the current conversation.

What is it?

dsh-comfyui-gallery is a ComfyUI Gallery Client Plugin for DSH. Opened from the DSH left sidebar, you can browse local ComfyUI generated images, view prompts, negative prompts, sampling parameters, dimensions, models, LoRAs, workflows, and original metadata associated with each image; you can also organize the gallery, manage workflows and LoRA libraries, and add images or text information to the current conversation draft when needed. The plugin emphasizes local-first: images and model files remain on the disk, while indexes and user data are saved in the local DSH user data directory.

Core Features

The following capabilities are derived from the project README, summarized by usage path.

  • Thumbnail grids, details, large image preview, search, sorting, directory filtering, and pagination.
  • Directory Tree: Expands based on ComfyUI output path hierarchy, displaying image counts at each level; collapses if there are too many subdirectories.
  • Grouping: Group by date (Today/Yesterday/Last 7 Days/By Month) or by project directory (first two path segments); directory filtering and grouping can be combined.
  • Organizing: Favorites, ratings, custom tags, notes, batch selection.
  • Deletion: Delete disk original images singly or in batch (two-step confirmation); syncs to clean index and thumbnail cache; only allows deleting files inside roots in the config, and there is no recycle bin.

Generation Information and Conversation Integration

  • Detail pages display positive / negative prompts, sampling parameters, dimensions, model, LoRA, workflow, and original metadata.
  • Conversation Actions: Add selected images, prompts, or LoRA info to the current DSH conversation draft.
  • Workflow Reuse: Edit existing parameters and submit to the ComfyUI workspace (requires ComfyUI related paths to be configured locally).

Workflow List

  • Lists saved ComfyUI workflow .json files, using the most recent generation from that workflow as a sample image.
  • Groups by node structure, connections, and used models (seeds, CFG, prompt text do not participate in identity determination).
  • Workflow details provide model and LoRA lists, node Chinese names and key parameters, and can export JSON.
  • By default, workflows that only exist in image metadata and have never been saved are not listed; you can check “Include unsaved workflows” in the toolbar to set this in ~/.dsh-comfyui-gallery/settings.json. New images need to complete parameter indexing before workflow statistics are complete.

Prompt Inference (WD14)

  • Use the local WD14 model for single image, uploaded image, or batch inference in the image detail or upload panel; tasks can run in the background and history can be viewed.
  • Requires a Python environment with Pillow, NumPy, and ONNX Runtime; can recognize common WD14 model directory layouts.
  • Inference output is primarily scene tags and cannot restore unrevealed original prompts or LoRA weights.

LoRA Library

  • Scans ComfyUI (and optional SD-LoRA-Manager) directories, reads safetensors header info, JSON, Civitai info files, and preview images.
  • Supports classification, favorites, tag filtering, pagination, and batch fetching of public metadata; can add LoRA invocation info to conversation; does not modify model weight files.

Similar Image Grouping

  • pHash: Finds approximatively duplicated images after scaling or compression.
  • CLIP: Finds images with similar subjects or composition (requires configuring compatible CLIP Vision model and Python dependencies).
  • Grouping results are for manual review only; files are not automatically deleted.

Environment Requirements

Confirm the local machine has the following before installation:

  • DeepSeek Harness Desktop Version (plugin dsh engine requires >=0.2.0-rc.1)
  • Node.js 20+
  • ComfyUI already installed and available (Windows / Linux / macOS)
  • Optional features like inference and CLIP similarity require corresponding Python and models as per README

The README states that the plugin has no third-party Node.js runtime dependencies and no build steps required.

Installation and Enablement

Recommended installation from npm (original command in documentation):

dsh plugin --profile web add dsh-comfyui-gallery

Alternatively, you can go to Plugins → Add Plugin in the DSH left sidebar and enter the package name dsh-comfyui-gallery; the steps are the same for Desktop and Web versions.

After installation, restart DSH or reload the plugin as prompted, then open ComfyUI Gallery from the left sidebar.

If deploying from source to the plugin path under the DSH config directory, you can run ./scripts/install.ps1 in the repository to register the entry and backup existing config; specific path follows README. When submitting issues or sharing logs, please remove local paths, usernames, and tokens.

Security and Permissions: The plugin reads and writes to local ComfyUI output directories, model directories, and user data alongside the current DSH process. Before installation, read the repository source code and MIT license to confirm that configs like roots only point to directories you allow the plugin to delete and index.

Configuration

The plugin automatically locates ComfyUI’s output and model directories by default. For custom needs, create in the user data directory:

<DSH user data>/dsh-comfyui-gallery/config.json

Example (field meanings see README config table):

{
  "roots": ["<ComfyUI>/output"],
  "loraRoots": ["<ComfyUI>/models/loras"],
  "comfyRoot": "<ComfyUI>",
  "python": "<Python executable>",
  "thumbMax": 480,
  "pageSize": 60,
  "warmCount": 300,
  "scanIntervalMs": 30000
}

Common fields include: roots (array of image root directories), loraRoots, comfyRoot, workflowRoots, python (for thumbnails and inference), wd14ModelDir, similarityModel, interrogateTimeoutMs, workflowFromImages, etc. Config file should only be kept locally, do not commit to public repository.

Typical Usage

  1. Execute dsh plugin --profile web add dsh-comfyui-gallery and restart or reload the plugin as mentioned above.
  2. Enter ComfyUI Gallery in the left sidebar, confirm thumbnails come from local output (or roots configured in config.json).
  3. If the list is incomplete, run Complete Full Library Parameter Indexing on the image page (the workflow page may also prompt to complete), then view workflow statistics.

2. Cleaning Up Batch Outputs by Directory or Date

  1. Open the Directory tree in the toolbar and select a subdirectory.
  2. Switch Grouping to “By Date” or “By Project Directory”, use the date jump bar to locate a specific day if necessary.
  3. Verify prompts and sampling parameters in details; for reuse, use “Add to Conversation” or copy relevant fields.

3. Reverse-Checking Historical Outputs from Workflows

  1. Enter the Workflow page in the left sidebar and open the details of a saved workflow.
  2. Check the base model, LoRA strength, and node parameter descriptions; export the workflow JSON if files are needed.
  3. Click on a single image from the generation list associated with that workflow to compare metadata and whether the node interpretation on the interface matches.

4. Optional: WD14 Inference and LoRA Organization

  1. Set python and (if needed) wd14ModelDir in config.json.
  2. Initiate inference in image details or the upload panel, view progress and history in background tasks.
  3. Filter LoRAs by tags in the LoRA Library, add LoRA invocation info to the current conversation to continue writing prompts in DSH.

Suitable Scenarios and Notes

Who is it for: Developers or creators who run ComfyUI locally for a long time, generate large amounts of images, and frequently need to reference historical prompts/LoRAs/workflow parameters in DSH conversations. If you only occasionally generate a few images, File Explorer might suffice; once you need to search by directory, date, or workflow structure, the indexing and UI provided by this plugin are much more convenient.

Things to Note:

  • Deletion operations target disk original images and cannot be recovered from within the plugin. The batch deletion limit is 200 images; please confirm the roots scope first.
  • Internet access is only used when fetching public metadata for features like LoRA (active fetching); the rest of the indexing and caching is local.
  • Optional features (WD14, CLIP) depend on additional Python and models; without configuration, you can still use the gallery and metadata browsing.
  • The DSH plugin ecosystem follows the “everything is a plugin” philosophy; the directory on skillhub.cn is a community site with no official affiliation to DeepSeek / HF, please refer to GitHub README and license for code review before installation.

Conclusion

dsh-comfyui-gallery turns the ComfyUI output directory into a searchable, groupable, and conversational gallery, and places workflow interpretation, LoRA library, and local WD14 inference in the same client. If you are already using DSH to orchestrate agent workflows, you can install package name dsh-comfyui-gallery per README and start using it from the left sidebar after configuring roots.

  • Page: https://www.skillhub.cn/plugins/SunSets44Times/dsh-comfyui-gallery
  • GitHub: https://github.com/SunSets44Times/dsh-comfyui-gallery
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye