dshbase

插件目录 / Developer / dsh-thinking-effort

dsh-thinking-effort

已验证 · 实测可装 hytime

✓ 持续维护 2 位贡献者 基于 1 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

13Stars
1Forks
1未关闭 issue
JavaScript语言
2026-08-25最近推送
跨平台平台

功能简介

Configurable reasoning levels for hand-declared DSH llm-pi-ai models, with bilingual settings and subagent defaults.

我们的评价
可用 — 实测通过,早期项目

Configurable reasoning levels for hand-declared DSH llm-pi-ai models, with bilingual settings and subagent defaults. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-thinking-effort

A DSH (DeepSeek Harness) plugin that adds configurable reasoning effort levels to hand-declared llm-pi-ai models and sets a default reasoning effort for subagents.

npm version
npm downloads
GitHub license

Compatibility note: Version 0.1.8 includes Japanese (ja) and Korean (ko) dictionaries and selector entries, but the current official DSH releases expose only zh and en through LocaleRuntime. On stock DSH, selecting ja or ko fails with locale "<id>" is not registered. These languages will work after official DSH adds the locale IDs. Advanced users can use a DSH fork that updates packages/client/locale/src/locale-settings.ts (LOCALE_IDS) and packages/client/locale/src/client/index.ts (LOCALES labels), together with the corresponding core dictionaries and tests, then rebuild and run the forked DSH. Changing this plugin alone cannot extend DSH's global locale list.

Why use it?

The llm-pi-ai adapter supports hand-declared third-party models, but those entries often do not declare reasoningEfforts. As a result, Composer does not show a reasoning effort selector, and gateway-specific values such as ultra cannot be mapped to DSH's standard levels.

This plugin provides the configuration layer needed to:

  • Add default off, high, and max options to models without a declaration;
  • Configure reasoning levels per model from the DSH settings page;
  • Map a DSH level such as high to a gateway value such as ultra;
  • Set a default reasoning effort for subagents while preserving explicit request values;
  • Keep existing user-defined model declarations unchanged.

The plugin is usually unnecessary when you only use built-in DSH models and their reasoning controls already work.

Identifiers

These identifiers have different responsibilities:

Identifier Purpose
@hytime/dsh-thinking-effort npm package, browser bundle path, loader ID, and host/client runtime ID
thinking-effort Cordis composition entry ID and settings Slot ID

Features

Feature Description
Default levels Adds off, high, and max without overwriting custom values
Per-model editor Select levels and configure their gateway values from Settings
Gateway mapping Send ultra when the user selects DSH high
Subagent default Apply a default effort only when a subagent request has no explicit value
Multilingual settings Includes Chinese, English, Japanese, and Korean dictionaries; Japanese/Korean switching requires DSH core locale support
Version watermark Show the installed plugin version in the bottom-right corner

Install, upgrade, and remove

Use the official DSH CLI to manage the plugin profile. A plain npm install does not register a DSH profile bundle.

# Install the latest version
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort

# Install a specific version
dsh plugin --profile <profile> add @hytime/[email protected]

# Upgrade
dsh plugin --profile <profile> update @hytime/dsh-thinking-effort

# Remove
dsh plugin --profile <profile> remove @hytime/dsh-thinking-effort
rm -f "${DSH_HOME:-$HOME/.dsh}/thinking-effort-loaded.json"

See INSTALL.md for profile discovery, migration, validation, and troubleshooting.

Quick use

  1. Open DSH Settings → Model capabilities and effort.

  2. On stock DSH, use the Page language selector at the top to choose 中文 or English. The 日本語 and 한국어 entries require the DSH core locale changes described above. DSH uses the persisted locale first, then the browser language, then Chinese as the fallback.

  3. Choose a subagent default from the Subagent default effort card, then click Apply.

  4. Use Quick settings to apply the official DeepSeek or generic preset to all models, or expand a provider and model for detailed configuration.

  5. Use the search field to filter models by name or ID. Model rows show text/image input capability badges, a context-window badge when declared, and a settings button for per-model editing.

  6. Select a reasoning level and enter the exact gateway value. For example:

    DSH level Gateway value
    off Leave empty to omit the parameter
    high ultra
    max max
  7. Return to Composer and select the model to use its reasoning selector.

The settings page shows the installed version as a small watermark such as v0.1.8 in the bottom-right corner.

Settings page layout

The page header contains the language selector. Below it, the Subagent default effort card controls the default for requests without an explicit effort. The Quick settings controls apply a preset across models. Provider sections can be expanded or collapsed; each model row exposes input capabilities, context length, and a settings control for reasoning levels and gateway values.

English Model capabilities and effort settings page

How it works

  • Host: Scans llm-pi-ai models and modelOverrides on startup and settings changes, adding defaults only where reasoningEfforts is missing.
  • Client: Registers a settings page through the standard DSH settings API and the official DSH locale service. Chinese, English, Japanese, and Korean dictionaries are maintained separately in src/locales/zh.json, src/locales/en.json, src/locales/ja.json, and src/locales/ko.json, then generated into the client bundle before publishing.
  • Subagents: Stores the default in the llm-pi-ai user layer as subagentEffort. The agent/request waterfall only fills requests that do not already specify an effort.
  • No configured default: The plugin does not automatically choose off, high, or max; the request omits reasoning and the gateway decides its own default behavior.

Limitations

  • llm-pi-ai exposes seven standard levels: off, minimal, low, medium, high, xhigh, and max.
  • Non-off levels require a gateway value. An empty off value means that the parameter is omitted.
  • The selected subagent level must be supported by the target model, or the gateway may return UNSUPPORTED_REASONING_EFFORT.
  • off and an unset effort may both omit reasoning; whether this disables thinking depends on the gateway protocol.
  • Host changes require a DSH restart. Settings and locale changes are applied in the browser, with a refresh available when needed.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-thinking-effort」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:hytime/dsh-thinking-effort

Headless(CLI)profile:

dsh plugin --profile headless add github:hytime/dsh-thinking-effort

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →