rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:fengzhiyushui/dsh-think-intensity
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
[!IMPORTANT]
📦 Project Archival Notice / 项目归档通知
The features of this project have been implemented in dsh 0.2.2-rc.1, and the project is now archived.
本项目的功能已在 dsh 0.2.2-rc.1 实现,项目转入归档状态。
Thinking Intensity Strategy Plugin for DeepSeek Harness (DSH)
Decides reasoning effort levels on top of existing model capabilities — observable, self-healing, and fully reversible.
English | 简体中文
In DeepSeek Harness (DSH), thinking intensity is not an arbitrary runtime switch, but a strict capability declaration (reasoningEfforts):
Reasoning Effort >;step-5-preview, Zhipu glm-5.3, or proxy gateways) do not have reasoning effort fields exposed in the DSH custom model settings UI, leaving them without reasoningEfforts declarations;UNSUPPORTED_REASONING_EFFORT.dsh-think-intensity solves this elegantly:
Reasoning Effort > menu;defaultLevel, subagentLevel for subagents, or purposeLevels for compaction) when no manual choice was made;This plugin fully embraces DSH's official native UI components rather than adding intrusive floating widgets or custom sliders. In the chat composer, clicking the active model displays DSH's standard two-row menu:
┌──────────────────────────────────────┐
│ Model step-5-preview / … >│
│ Reasoning Effort High >│
└──────────────────────────────────────┘
Clicking Reasoning Effort expands the native choice list:
Off (Disable thinking / zero parameter)LowMediumHighMax┌───────────────────────┐
│ Agent Request Triggered│
└───────────┬───────────┘
│
▼
Explicit UI Choice? ──(Yes)──► Pass through untouched (100% User Priority)
│ (No)
▼
Origin === 'subagent'? ──(Yes)──► Apply subagentLevel
│ (No)
▼
Purpose Match (compaction)? ──(Yes)──► Apply purposeLevels mapping
│ (No)
▼
Apply defaultLevel
│
▼
Capability Guard (resolveModelInfo)
├── Target model supports effort? ──► Inject and proceed
├── Model is non-reasoning? ──► Strip inherited parameter to prevent errors
└── Level hit gateway error blacklist? ──► Fall back cleanly
DSH stores configuration patches in cordis.patch.yml under each profile:
| OS | Desktop App (desktop profile) |
Web App (web profile) |
|---|---|---|
| Windows | %USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml |
%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml |
| macOS | ~/.dsh/profiles/desktop/cordis.patch.yml |
~/.dsh/profiles/web/cordis.patch.yml |
| Linux | ~/.dsh/profiles/desktop/cordis.patch.yml |
~/.dsh/profiles/web/cordis.patch.yml |
In your profile's cordis.patch.yml, configure the plugin by entry id:
- id: think-intensity
config:
defaultLevel: high # Default effort for unselected requests; empty = pass through
subagentLevel: max # Dedicated level for subagent sessions; empty = fall back to defaultLevel
providers: [] # Whitelisted provider routes; empty = all providers
purposeLevels: # Internal task effort mappings
compaction: low # Save tokens on memory compaction
session-title: off # Disable thinking for session titles
backfillEnabled: true # Automatically backfill declarations to activate the native menu
| Key | Type | Default | Description |
|---|---|---|---|
defaultLevel |
string | "" |
Global fallback level (low, medium, high, max); empty = no intervention |
subagentLevel |
string | "" |
Level for subagent sessions (origin === 'subagent'); empty = fall back to defaultLevel |
providers |
string[] | [] |
Whitelisted provider routes; empty = all routes |
purposeLevels |
object | {} |
Mapping from internal task purpose to effort level |
statsFlushMs |
number | 30000 |
Minimum disk flush interval (ms) for $DSH_HOME/storages/think-intensity-stats.json |
backfillEnabled |
boolean | false |
When true, writes missing reasoningEfforts declarations; default is dry-run |
backfillLevels |
object | {} |
Effort to wire value table; empty falls back to DEFAULT_BACKFILL_LEVELS |
routeDefaultLevel |
string | "" |
Route default level; written only if all models in route support it |
You can also manually declare reasoningEfforts under llm-pi-ai in cordis.patch.yml:
- id: llm-pi-ai
name: "@deepseek-ai/dsh-llm-pi-ai"
config:
providers:
stepfun:
models:
- id: step-5-preview
name: step-5-preview
contextWindow: 1024000
reasoningEfforts:
off: null # off sends nothing to the wire
low: low
medium: medium
high: high
max: max
Restart DSH, and the native reasoning effort menu activates immediately.
# Desktop profile
dsh plugin --profile desktop add dsh-think-intensity
# Web profile
dsh plugin --profile web add dsh-think-intensity
dsh plugin --profile desktop add github:fengzhiyushui/dsh-think-intensity#v0.1.0
dsh plugin --profile desktop add /path/to/dsh-think-intensity
dsh plugin --profile desktop remove dsh-think-intensity
# Verify cleanly removed
dsh --profile desktop --dump-config
# Install dependencies
pnpm install
# Build single ESM bundle (lib/index.js) and types
pnpm run build
# Run 124 unit tests with Vitest
pnpm run test
# Type check
pnpm run typecheck
defaultLevel, subagentLevel, and purposeLevels applied correctly;high: ultra) correctly delivered to upstream gateways;UNSUPPORTED_REASONING_EFFORT triggers in-session blacklisting to prevent request crashes;DEFAULT_BACKFILL_LEVELS complies with catalog schema.MIT © 2026 fengzhiyushui and contributors.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 模型。