DSH Hub

BruceLanLan/dsh-tier-router

dsh-tier-router

UIWeb UI6 GitHub stars· updated 2026-08-23

dsh-tier-router is a community DeepSeek Harness plugin. Read the repository README before installing.

Install

npx @deepseek-ai/dsh plugin --profile web add dsh-tier-router

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-tier-router DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-tier-router.svg)](https://dshhub.dev/plugins/dsh-tier-router)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from BruceLanLan/dsh-tier-router, cleaned of badges and images.

dsh-tier-router — Tiered model routing for DeepSeek Harness

handles planning / architecture / review**, while a cheap tier (deepseek-v4-flash by default) handles day-to-day implementation, with per-tier fallback chains and task-intensity reasoning effort. Inspired by Claude Code's /advisor (consult a stronger model for hard decisions) and opusplan (strong model in plan mode, cheap model for execution), implemented on DeepSeek Harness through its official seams, with an escalation gate, failure auto-escalation, and subagent tiering on top.

English · 中文

How it works

flowchart LR
    subgraph main["Main session (header-driven)"]
      U["User message"] --> IN["agent/inbox/inserted"]
      IN -->|"auto mode"| HW["write session request/header"]
      PM["plan/mode flip"] --> HW
      HW --> API["api-proxy selection layer"]
      API --> STEP["each step's model = header tier"]
    end
    subgraph child["Subagents (agent/request swap)"]
      W["tier_worker dispatch"] -->|"agentOptions injection"| C["subagent"]
      C --> AR["agent/request waterfall"]
      AR -->|"swap provider/model per tier"| STEP2["subagent steps"]
    end
    G["tools/pre-execute guard"] -.->|"cheap tier + high-impact pattern"| DENY["deny + escalation hint"]
    E["agent/error failures"] -.->|"within window"| ESC["temporary strong tier (TTL)"]
sequenceDiagram
    participant U as User
    participant S as Session (main agent)
    participant A as Strong v4-pro
    participant C as Cheap v4-flash
    U->>S: /tier plan (enter plan mode)
    S->>S: write header -> strong
    S->>A: planning / architecture / design
    U->>S: approve plan, leave plan mode
    S->>S: write header -> cheap
    S->>C: routine implementation
    S->>A: tier_advisor (hard decisions) / tier_review (final review)
    Note over S,C: high-impact actions (rm -rf / credential files) are denied by the guard until the strong tier is selected

Features

Related plugins