dsh-custom-brand: Replace Harness Sidebar Brand Area with JSON

Introduction

By default, the top-left corner of the DeepSeek Harness (DSH) sidebar displays the whale icon and the text deepseek HARNESS. When setting up environments for personal use, presentations, or community mods, many users prefer to replace this area with their own icons and copy. Modifying the client core or repacking app.asar is costly and makes restoring the official style at any time inconvenient.

Below is an introduction to the community plugin dsh-custom-brand (Big Fat Fish Brand Icon): It uses DSH’s sidebar.brand slot to create a shadow overlay. Simply edit a JSON file and refresh the page to take effect; the official branding returns immediately upon uninstallation.

What is this

dsh-custom-brand is released by the maintainer dyguests and is indexed on npm and dsh-plugin.org. The README classifies it as UI & Experience; in directories like SkillHub, it is often categorized under “Fun Customization”—essentially, it modifies sidebar brand display without touching conversation or core logic.

The plugin overrides two slots: sidebar.brand.mark (icon) and sidebar.brand.name (text and badge). When the sidebar collapses into a narrow bar of approximately 56px, the same icon slot remains effective.

Core Features

Override Method

It registers a single slot with a lower priority, overlaying the top without uninstalling the official package. Toggling the switch off on the “Plugins” page or uninstalling the plugin immediately restores the default whale branding.

Icon Modes

  1. glyph: Creates a silhouette based on the image shape, colored with currentColor, and has a transparent background. Behavior is close to the original whale (near black in light themes, lighter in dark themes).
  2. image: Preserves the original image colors, suitable for colored assets like avatars; can be configured with markRadius (e.g., 50% for a circle).

Configurable Items

Icon path, size (12–48px), main text, small label (badge), font size, and badge colors can all be adjusted in the JSON. Icons support absolute paths, ~/, relative paths to $DSH_HOME, and formats like http(s):// and data:.

After configuration changes, read from the local JSON; icons are versioned by file mtime, requiring no repacking—just refresh the page.

Local API

In addition to editing $DSH_HOME/dsh-custom-brand.json, you can read and write configuration via the local Harness HTTP interface (the port depends on your current DSH setup).

Permissions and Privacy

Icons are read by the local Harness and served via local routes without being uploaded to external networks. The plugin only registers UI slots and a small number of local routes; the README states clearly that it makes no external requests and does not read conversation content. However, it is still recommended to review the source code and the MIT license before installation.

Installation and Activation

The Web version profile is generally web, and the Desktop version is desktop. Install to the corresponding profile from npm:

dsh plugin --profile web add dsh-custom-brand

You can also install from the GitHub source:

dsh plugin --profile web add github:dyguests/dsh-custom-brand

After installation, confirm that Big Fat Fish Brand Icon is enabled on the DSH “Plugins” page. Refresh the page to see the default example (the package includes built-in silhouette assets for the Big Fat Fish).

Requirements: DSH >= 0.2.0, supports both Web and Electron desktop; relies only on the brand slots mentioned above and does not modify core files.

Deactivation: Toggle the switch for this plugin off on the “Plugins” page. Uninstallation:

dsh plugin --profile web remove dsh-custom-brand

Typical Usage

Configuration File

Configuration has two sources, with the latter overriding the former:

  1. config: on the plugin line (located in the profile’s cordis.patch.yml)
  2. $DSH_HOME/dsh-custom-brand.json —— generated automatically on first run; this is the file to edit for daily changes.

Field descriptions (excerpted from README):

Field Default Description
mark "" Icon path or URL; uses the package’s default image if empty
markMode "glyph" glyph or image
markColor "currentColor" Icon color in glyph mode
markSize 24 Icon side length (px)
markRadius "50%" Corner radius, only for image mode
name "大肥鱼" Main text; if empty, only the icon is shown
badge "DSH" Small label; not shown if empty
showName true Whether to display text
nameSize "17px" Font size of main text
badgeBg "#1b1f27" Label background color
badgeFg "#ffffff" Label text color

Example ~/.dsh/dsh-custom-brand.json:

{
  "mark": "",
  "markMode": "glyph",
  "markColor": "currentColor",
  "markSize": 24,
  "markRadius": "50%",
  "name": "大肥鱼",
  "badge": "DSH",
  "showName": true,
  "nameSize": "17px",
  "badgeBg": "#1b1f27",
  "badgeFg": "#ffffff"
}

To use your own image: point mark to a local image; if using a colored avatar, set markMode to image. The package’s assets/ directory provides multiple alternative silhouettes (e.g., head-oval.png default, head-eyes.png, etc.) which can be selected as needed.

Changing Configuration with curl

curl -s http://127.0.0.1:<port>/api/dsh-custom-brand/config
curl -s -X PUT -H 'content-type: application/json' \
  -d '{"name":"My Brand","badge":"BETA","markMode":"image","mark":"~/Pictures/avatar.png"}' \
  http://127.0.0.1:<port>/api/dsh-custom-brand/config

Replace <port> with the listening port of your local DSH.

Use Cases and Notes

Suitable for: DSH users who want the sidebar brand to match their personal or community identity without touching the client core; environments that require quick logo/copy changes and the ability to restore the official style at any time.

Notes:

  • This community plugin is unrelated to DeepSeek officials; the plugin runs with the permissions of the current DSH process. Please verify the repository and license before installation.
  • The Big Fat Fish silhouette in the example assets comes from community fan art (dsh-pet-dafeiyu / codex-deepseek-pet series). Redistribution or commercial use requires confirming the original author’s authorization and providing attribution. The character is a community derivative work and is unrelated to officials.
  • If upgrading from the old version dsh-brand-slot, the old ~/.dsh/dsh-brand-slot.json will be read automatically, and old route aliases are still preserved.

Conclusion

dsh-custom-brand consolidates the branding area at the top-left of the Harness into a single JSON file: icon, text, and badge are configurable, taking effect immediately upon refresh, and simply toggling off or uninstalling returns to the default whale. The DSH ecosystem emphasizes “Everything is a Plugin”; community directories (such as the SkillHub plugin page) are independent of DeepSeek / High-Flyer and are not official app stores.

  • Directory Page: https://www.skillhub.cn/plugins/dyguests/dsh-custom-brand
  • Source Code & Documentation: https://github.com/dyguests/dsh-custom-brand
羽毛球分组比赛记分
小程序二维码

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

Xiaoye