Back to home@Elysiaqwq

dsh-reasoning-depth

No description

Stars
0
Language
JavaScript
Created
Aug 24, 2026
Updated
Aug 24, 2026

Introduction

dsh-reasoning-depth

Configure a thinking depth (reasoning effort) for each model in DeepSeek Harness — from the settings page, without modifying DSH itself.

English · 中文

DSH plugin Version License Node


✨ Features

  • 🖥️ Adds a Thinking Depth section to the DSH web settings page.
  • 🔍 Auto-reads your configured models from settings.yaml (llm-pi-ai.providers.<route>.models), including each model's supported reasoningEfforts.
  • 🎚️ Set a global default level and a per-model level (off / minimal / low / medium / high / xhigh / max).
  • 💾 Writes a reasoning-depth: section into settings.yaml; changes apply immediately (no restart).
  • ⚡ Applies the level through DSH's agent/request waterfall hook — the plugin's setting wins over inherited efforts (e.g. agent-default-model.reasoningEffort).

⚙️ Configuration

reasoning-depth:
  default: medium
  perModel:
    ark/deepseek-v4-flash: high
    uu/claude-opus-5: low

A level a model does not declare in its reasoningEfforts is skipped instead of failing the request with UNSUPPORTED_REASONING_EFFORT.

🚀 Install

One-click copy: hover the code block below and click the copy button in the top-right corner.

1. Add the dependency (the loader can then resolve the package):

dsh plugin --profile web add github:Elysiaqwq/dsh-reasoning-depth

2. Append the mount row to ~/.dsh/profiles/web/cordis.patch.yml (DSH hot-applies it):

- insert:
    - id: dsh-reasoning-depth
      name: dsh-reasoning-depth

3. Refresh the browser (F5) — the Thinking Depth section appears in Settings.

⚠️ Do not also mount it via the bundle layer (no dsh.bundle.patch, not in dsh.profile.bundles) or the next boot fails with a duplicate loader entry id.

🧹 Uninstall

dsh plugin --profile web remove dsh-reasoning-depth

Then remove the - insert: … dsh-reasoning-depth … block from cordis.patch.yml, and optionally delete the reasoning-depth: section from settings.yaml.

🧪 Verify

cd dsh-reasoning-depth && node test-apply.mjs

A smoke probe that runs the real apply() against a stub ctx and drives the captured agent/request listener plus the pure helpers (model enumeration, level resolution, support checks).

📦 Dependencies

Runtime imports only @deepseek-ai/dsh-settings and @deepseek-ai/schemastery, resolved through the launcher-maintained $DSH_HOME/profiles/node_modules fallback — no extra npm packages.