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).
- Install the plugin using the DSH CLI:
dsh plugin --profile web add dsh-slot-health
- Restart
dsh webafter 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.
- Edit the
cordis.patch.ymlfile. - Set
config.originto 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
/healthand/slotsendpoints. - Ollama: Checks the
/api/versionendpoint. - vllm: Checks if the
/metricsendpoint contains thevllm:series. - Unknown: Marked as
unknownif reachable but unidentifiable.
- llama-cpp: Checks
- 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.