Introduction¶
DeepSeek Harness (DSH) is a development environment built on the “everything is a plugin” philosophy. When plugin developers use DSH, they need a centralized view for comment logs, personas, memories, retrospectives, and other data — but DSH’s native sidebar has no ready-made panel for this. The usual workaround is to open a browser, visit a web dashboard, or write a custom panel from scratch, which adds steps and increases maintenance cost.
dsh-plugin-yu-comments is a DSH sidebar plugin that provides a comment archive and personal center panel via a local HTTP service. It aggregates comment logs, personas, memories, retrospectives, and settings into a single panel, eliminating the need to open a separate browser tab.
What It Is¶
dsh-plugin-yu-comments is a DSH sidebar plugin maintained by heixiaolv. The plugin renders a comment archive and personal center panel from a local HTTP service (default 127.0.0.1:8848). The panel includes two views: Comment Log and Personal Center.
- Comment Log: date-based archiving, keyword search, three display modes (list / thumbnail / large image), lazy loading of covers, auto-refresh every 60 seconds
- Personal Center: overview (today’s stats, persona chain, 24-hour schedule, worker heartbeat, gate), personas, memories, retrospectives, and a whitelist settings form
The plugin is purely front-end rendered, paired with a Host-side half that spawns the local service. It has no bundler, no npm dependencies, and no external network calls (it only accesses 127.0.0.1 by default).
Installation & Activation¶
Before installing, the following prerequisites must be met:
| Scenario | Required |
|---|---|
| DSH Desktop (in-app plugin manager) | Only DSH itself; nothing extra needed |
CLI dsh plugin … |
Node.js ≥ 18 + pnpm |
| Panel data display | A local record service running on 127.0.0.1:8848 |
After installing the plugin, the panel still requires a local record service (default 127.0.0.1:8848). The repository/npm package ships with a zero-dependency synthetic backend.
Option 1: In-App Installation (Desktop)¶
Open DSH’s plugin manager (Plugin Marketplace / Plugins page in Settings) → Install → enter the package name dsh-plugin-yu-comments → restart DSH.
Option 2: Command Line (requires pnpm)¶
npm i -g pnpm
dsh plugin --profile web add dsh-plugin-yu-comments
After installation, restart DSH Host. A fish-shaped icon will appear in the sidebar.
Option 3: Manual Profile Registration¶
Edit ~/.dsh/profiles/<your-profile>/package.json:
{
"dependencies": { "dsh-plugin-yu-comments": "^0.1.2" },
"dsh": { "profile": { "bundles": ["dsh-plugin-yu-comments"] } }
}
cd ~/.dsh/profiles/<your-profile>
npm install --no-audit --no-fund
Restart DSH Host. To modify code without reinstalling, write the dependency as "link:/absolute/path/dsh-plugin-yu-comments".
Option 4: Install from Source¶
dsh plugin --profile web add github:heixiaolv/dsh-plugin-yu-comments
Starting the Local Record Service¶
After installing the plugin, you need to start the local record service. For source installations, run from the repository directory:
node mock/server.mjs
For npm package installations, run from the profile directory:
node node_modules/dsh-plugin-yu-comments/mock/server.mjs
The panel will automatically populate with data within a few seconds.
Typical Usage¶
Viewing the Comment Log¶
After installation and starting the local service, a fish-shaped icon will appear in the sidebar. Click the icon — the panel defaults to the “Comment Log” view. The panel supports date-based archiving, keyword search, and switching between list / thumbnail / large-image modes. Cover images are lazy-loaded, and the panel auto-refreshes every 60 seconds.
Viewing the Personal Center¶
Click the toggle in the top-right corner of the panel to switch to the “Personal Center” view. The overview section displays today’s stats, persona chain, 24-hour schedule, worker heartbeat, and gate information. Below, paginated sections show personas, memories, retrospectives, and the whitelist settings form. The settings form contains 13 input controls but does not include any keys.
Self-Checking the Plugin¶
The repository provides a self-check script to verify panel functionality:
node mock/server.mjs &
node tools/check_panel.mjs --api http://127.0.0.1:8848
Exit code 0 indicates all checks passed. The self-check script does not depend on a browser; it uses a built-in mini React to actually render the component tree, issue HTTP requests, and assert against the text tree rather than snapshots.
Configuration¶
Plugin configuration is adjusted via the cordis.patch.yml file:
| Key | Default | Description |
|---|---|---|
port |
8848 |
Local service port; must match the panel’s API address |
projectDir |
'' |
Service code directory; empty = current working directory of the process |
python |
pythonw |
Interpreter used to spawn the service; use pythonw on Windows to avoid a console window flashing |
supervise |
true |
Whether to auto-restart on disconnect; set to false for fully manual control |
intervalMs |
30000 |
Health-check interval (milliseconds, minimum 5000) |
You can also configure via environment variables: YU_COMMENTS_PORT, YU_COMMENTS_DIR, YU_COMMENTS_PYTHON.
Switching the API Address¶
The panel uses window.__YU_COMMENTS_API__ or localStorage.setItem('yu-comments.api', ...) to switch the API address — no source code changes required.
API Contract¶
The local service provides the following endpoints:
GET /api/state Liveness probe
GET /api/records Comment list (limit / day / q / offset)
GET /covers/<file> Cover images
GET /api/me Personal center aggregated data
POST /api/me/settings Save settings
GET /api/workers POST /api/workers Worker status / toggle
GET /api/clock POST /api/clock Biological clock
See docs/API.md for the full field reference.
Use Cases & Caveats¶
Best suited for DSH Desktop use, to centrally review comment archives, manage personas and memories, and reflect on work status. The plugin runs with the permissions of the current DSH process; review the source code and license before installation.
Common Issues¶
| What you see | Actual cause | Fix |
|---|---|---|
'pnpm' is not recognized as an internal or external command + Command failed with exit code 1: pnpm add dsh-plugin-yu-comments |
dsh plugin requires pnpm, which is not installed; the plugin was never installed |
Run npm i -g pnpm then retry; or use “Option 1 / Option 3” |
dsh: profile "xxx" does not exist |
--profile name is incorrect |
Use an actual, active profile (Desktop is usually desktop, browser is web) |
| Command succeeds but no fish icon in sidebar | Installed into a profile that isn’t started, or Host wasn’t restarted | Verify the profile name; fully restart DSH |
dsh: skipping profile bundle "dsh-plugin-yu-comments": … |
Package not resolved / version requirement not met | Re-run install in the profile directory (dsh plugin --profile X install), or remove and reinstall |
| Panel shows “Cannot connect to local record service” | Plugin is fine; the data service isn’t running | Run the mock above, or start your own service per docs/API.md |
| Panel keeps spinning | Service is running but API fields don’t match | Use curl 127.0.0.1:8848/api/state and compare against docs/API.md |
White screen / console error: @deepseek-ai/dsh-client-ui-layout not found |
DSH version is too old and lacks this client package | Upgrade DSH, or include dsh --version in your issue report |
Permissions & Privacy¶
- The plugin only requests
127.0.0.1(port 8848 by default); no telemetry, no external reporting, no third-party scripts - The server returns what it has; the mock in the repository uses entirely synthetic data
- The panel does not display or request any cookies / tokens / API keys
- The Host-side half will
spawna local service process: this only happens when you’ve configuredprojectDirand that directory containsweb.py;supervise: falsedisables it entirely; the plugin terminates its spawned child processes on release - If you connect your own bot service, keep credentials in the server-side configuration — do not embed them in the front end
Compatibility & Runtime Requirements¶
- DSH Desktop (client-side half requires
platform: web; Host-side half requiresctx.effect/ctx.slots/ctx.get('locale')) - Node.js ≥ 18 (for the mock and self-check scripts; the browser side is loaded by DSH’s built-in runtime)
- Browser: Chromium / Edge / Safari versions from the past two years (uses
color-mix(); older browsers will simply have degraded color rendering)
License¶
MIT
References¶
- Plugin directory page: https://www.skillhub.cn/plugins/heixiaolv/dsh-plugin-yu-comments
- GitHub repository: https://github.com/heixiaolv/dsh-plugin-yu-comments