Back to All Projects
Open Source Verified Architecture
dsh-routing-suite
dsh-routing-suite is an open‑source kit that bundles a lightweight runtime injector with a task‑aware, reasoning‑mode router preset. Install the injector first, then drop in the router to get out‑of‑the‑box routing performance measured across the P1‑P23 benchmarks. It’s aimed at developers who need fast, configurable routing in distributed or microservice architectures.
7,096 Stars 149 Forks
Core Technologies & Frameworks
JavaScript
Technical Architecture & Specifications
Managing runtime behavior and prompt routing in DSH (target version `>=0.1.0-rc.6 <0.2.0`) often requires a fragmented setup. The `dsh-routing-suite` consolidates three core operational modules into a single monorepo: a runtime injector, persona-based router presets, and a session-level graded task protocol.
### Architecture Breakdown
#### 1. Runtime Injector (`injector/` - v0.3.3)
The injector operates as a restart-free runtime management layer. It introduces a suite of `dev_*` developer utilities that handle:
* Dynamic tool injection and hot reloading
* Tool unloading and side-mount-to-main promotion
* Route self-healing
When fetched directly via `github:`, the `prepare` lifecycle hook automatically triggers the build step.
#### 2. Router Presets (`preset/` - v0.3.0)
The router suite provides task-aware reasoning routing, validated across P1–P23 test measurements. It breaks down into two distinct presets:
* `router-standard`: Employs categorized personas coupled with complete system prompt sections.
* `router-spec`: Tailored for deep-thinking-first execution modes.
*(Note: The advanced `router-pro` preset is currently listed as planned and is not packaged in v0.3.0).*
#### 3. Graded Task Protocol (`graded/`)
To combat model attention slack in extended sessions—where models systematically decrease tool utilization and image processing in later execution stages—the graded module enforces a structured protocol (Brainstorming → Specification → Check-in → Group Wrap-up → Final Audit). It equips your runtime with 6 tools, 3 execution modes, red-team quality gates, audit endpoints, and a monitoring panel.
To benchmark model attention decay on your own raw session logs, run the included telemetry script:
```bash
node scripts/measure.mjs your_session.jsonl
```
---
### Installation & Deployment
You can install the entire suite into DSH using a single profile command:
```powershell
dsh plugin --profile web add github:yjh051108/dsh-routing-suite
```
Alternatively, clone the repository for manual setup.
Important DSH Routing Rule: DSH only scans top-level subdirectories inside `.agent-presets`. Do not copy the root `preset/` directory directly into DSH, or the presets will not be discovered.
#### Manual PowerShell Setup
```powershell
# 1. Clone the repository
git clone https://github.com/yjh051108/dsh-routing-suite.git
cd dsh-routing-suite
# 2. Register the injector plugin
dsh plugin --profile web add .\injector
# If dsh is not in PATH, use: npx '@deepseek-ai/dsh' plugin --profile web add .\injector
# 3. Copy individual presets to the target agent-presets directory
$target = Join-Path $env:USERPROFILE '.dsh\.agent-presets\router-standard'
Copy-Item -Recurse .\preset\router-standard $target
$target = Join-Path $env:USERPROFILE '.dsh\.agent-presets\router-spec'
Copy-Item -Recurse .\preset\router-spec $target
# 4. Restart DSH and select Router Standard or Router Spec in your new session
```
### Technical Verdict
As DSH navigates its developer preview with frequent updates (tracked against builds like `0.1.1-rc.2` and `0.1.2-alpha.1`), `dsh-routing-suite` offers a solid blueprint for handling context degradation and live tool manipulation without dropping active runtime states.
Reviewed by DevTechPulse Editorial Board
All listed blueprints, repositories, and case studies are verified against public documentation and LTS container environments. For inquiries or updates, view our Editorial Policy.