DeepSeek Harness Read-Only LoRA Panel

Preface

When you accumulate a large number of locally trained or downloaded LoRA files, managing them becomes cumbersome. File names are long (e.g., nai2_v1_step2000.safetensors), trigger words are scattered across various sources, and recommended weights differ from one to another. Assembling the correct parameters in an image generation script is prone to omissions or misremembering.

Plugin Overview

o0w2e1n7/dsh-lora-panel is a read-only LoRA panel plugin for DeepSeek Harness, published by the maintainer O0W2E1N7. It displays local LoRA metadata grouped by base model in the DSH left sidebar and supports one-click copying of strings conforming to the ComfyUI --lora parameter format.

Core Features

  • Grouping by base model: LoRA metadata is grouped by base_group, with a fixed prefix order of MOSS → Anima → Illustrious / SDXL → Pony. All remaining entries are placed into “Ungrouped” in order of first appearance.
  • Card display: Each record is rendered as a card containing the Civitai title, version, alias, file name, type, trigger word, and recommended weight.
  • One-click copy: Clicking a card copies a string in the format filename:weight, which is directly usable as the --lora parameter in most ComfyUI scripts.
  • Weight handling: Known weights display the specific numeric value; unknown weights display “weight pending.” Clicking in this case only shows a hint and does not perform a copy.
  • CLIP badge: When loader is LoraLoader, the card displays a “CLIP chain required” badge, reminding the user that the LoRA must be chained with CLIP in the workflow.
  • Read-only mechanism: The JSON file is re-read every time the panel is opened, with no caching, to avoid using stale data. The plugin does not write files, does not call ComfyUI, and does not access any other paths.
  • Error handling: File not found or unreadable → displays unreadable; JSON parse error → displays parse-failed; top-level is not an object mapping → displays shape; Host returns a non-2xx status → displays the corresponding status code; network error → indicates Host is unreachable; response body is not valid JSON → displays parse-failed.

Data Contract

The plugin reads LoRA metadata from a JSON file. The top level is a mapping from file names to their metadata objects. Field types and card rendering behavior are as follows:

  • civitai_title: string — the card title line, output as-is with bracket suffixes preserved; falls back to the file name if missing.
  • civitai_version: string — the card “Version” line; displays — if missing.
  • alias: string — the card “Alias” line; displays — if missing.
  • kind: string — the card “Type” line, with values style / character / costume / slider / control; displays — if missing.
  • trigger: string — the card “Trigger” line; displays — if missing.
  • default_weight: number or null — the card “Weight” line, and the weight value in the copied string; displays “weight pending” if missing or null.
  • loader: string — when set to LoraLoader, a “CLIP chain required” badge is added; otherwise no badge.
  • base_group: string — the grouping key; entries without this field are placed into “Ungrouped.”
  • note: string — not displayed in v0.1.

Installation & Activation

  1. Clone the plugin repository to a fixed location:
   git clone https://github.com/O0W2E1N7/dsh-lora-panel.git
  1. On the DSH Plugins page, add this directory as a local bundle using the absolute-path file: form, e.g.:
    file:/absolute/path/to/dsh-lora-panel. DSH will link it into the profile’s node_modules, read dsh.bundle.patch from package.json, and apply cordis.patch.yml.

  2. When the plugin entry shows restart-required, restart DSH.

  3. Open the “LoRA Panel” from the left sidebar.

Typical Usage

Prepare a JSON file describing your LoRAs. The path can be overridden via the environment variable LORA_PANEL_META; the default path is D:\CreativeModels\lora_meta.json. The file must be saved as UTF-8; a BOM is also accepted. The Host module reads this environment variable once at DSH startup and loads the corresponding JSON file.

Example JSON structure:

{
  "BunnySlop_MOSS.safetensors": {
    "alias": "slopm",
    "base": "MOSS Image",
    "base_group": "MOSS",
    "kind": "style",
    "civitai_title": "BunnySlop AI Style 『MOSS | Anima | Illustrious』",
    "civitai_version": "MOSS v6.9",
    "civitai_base": "MOSS Image",
    "civitai_confidence": "exact",
    "trigger": "@sl0p",
    "default_weight": 0.6,
    "loader": "LoraLoaderModelOnly",
    "note": "Stylised volume and gloss."
  }
}

Use Cases & Cautions

  • Ideal for developers who need to quickly browse and copy LoRA parameters from the DSH left sidebar.
  • The plugin runs with the permissions of the current DSH process; review the source code and license before installing.
  • Only reads the specified JSON file — does not list directories, does not perform glob patterns, does not write files, and does not call ComfyUI.
  • If you need to relax the DSH version range, verify panel functionality on the new version first.

Conclusion

o0w2e1n7/dsh-lora-panel simplifies LoRA parameter management with grouped cards and one-click copy, making it a convenient companion for ComfyUI scripting workflows. For more details, visit the plugin directory page and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye