dsh-slot-health: Local LLM Endpoint Health Monitoring

Introduction

In the DeepSeek Harness (DSH) dsh web sidebar, the health status of local LLM endpoints can often only be viewed through raw logs. The dsh-slot-health plugin adds a real-time health monitoring panel to the sidebar.

This plugin distinguishes between different local engines (such as llama.cpp or Ollama) using fingerprinting technology and displays specific slot statuses, server metrics, or model loading details in the right sidebar. It is a dual-sided plugin (Host + Client) that fetches data and renders it via a 1-second sampling cycle.

Core Features

  • Local Endpoint Health Monitoring: Displays the real-time health status of local LLMs in the right sidebar of the DSH Web UI.
  • llama.cpp Slot Monitoring: Detects slot busy states, Time to First Token (TTFT), and stalled conditions.
  • Ollama Model Monitoring: Distinguishes between “Loaded” and “Empty” states, showing detailed information for loaded models.
  • Engine Fingerprinting: Identifies the backend engine type via response characteristics.
  • Card Display: Shows SLOT, SERVER, and MODELS cards.
  • Dual-sided Plugin: Consists of a Host side (data collection) and a Client side (UI rendering).

Installation and Activation

This plugin requires the DeepSeek Harness Web configuration profile (dsh web).

  1. Install the plugin using the DSH CLI:
    dsh plugin --profile web add dsh-slot-health
  1. Restart dsh web after installation or force refresh the page in your browser.

Configuration and Usage

After installation, you must specify the local endpoint address to monitor in the configuration file.

  1. Edit the cordis.patch.yml file.
  2. Set config.origin to point to the target address.

Default Configuration (llama.cpp):

config:
  origin: http://127.0.0.1:8080

Ollama Configuration:

config:
  origin: http://127.0.0.1:11434

Once installed, a tab named “Slot Health” will appear in the right sidebar of the Web UI, and corresponding status chips will also be displayed in the bottom Dock.

Architecture and Limitations

  • Runtime Dependencies: Only allows importing frozen PLATFORM_MODULES (such as React, Cordis, UI primitives) at runtime.
  • Purely Read-Only Access: The plugin performs only read-only operations on local endpoints; it does not execute load, unload, or terminate commands.
  • Styling Approach: Uses inline styles exclusively; no separate CSS files are included.
  • Engine Fingerprint Logic:
    • llama-cpp: Checks /health and /slots endpoints.
    • Ollama: Checks the /api/version endpoint.
    • vllm: Checks if the /metrics endpoint contains the vllm: series.
    • Unknown: Marked as unknown if reachable but unidentifiable.
  • Tech Stack: Host side is ESM, Client side is a CJS closure factory; build dependencies include React ^19.2.7 and Node >=20.

Conclusion

dsh-slot-health solves the problem of difficulty in quickly judging endpoint status from raw logs by displaying structured monitoring data of local LLMs in the DSH right sidebar. It supports llama.cpp and Ollama and maintains generality for expansion through its fingerprinting mechanism.

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

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

Xiaoye