dshbase

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

dsh-effort-tweak

已验证 · 实测可装 Toukaiteio

✓ 持续维护 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

3Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-13最近推送
跨平台平台

功能简介

dsh-effort-tweak — DSH 插件(模型)

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

dsh-effort-tweak — DSH 插件(模型) 实测能干净安装、正常启动。早期项目,但功能可用。

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

README

DSH Effort Tweak

English | 中文

DSH Effort Tweak adds a small settings page for choosing the reasoning levels available to each model in a DeepSeek Harness custom provider. It is designed for the case where the model capability must be edited in llm-pi-ai configuration but the official Web UI does not yet expose that control.

What it does

  • Adds Settings → Reasoning effort to the DSH Web UI.
  • Lists models explicitly configured in llm-pi-ai.providers.<provider>.models.
  • Lets you choose off, minimal, low, medium, high, xhigh, or max for one model at a time.
  • Preserves the model's other fields and existing provider-specific wire values.
  • Saves through DSH's settings service, so no manual configuration-file editing is needed.

The page intentionally does not show catalog-only providers. Add a model list to a custom provider first, then open this page to tune that model.

Install from a release

Windows PowerShell

Run PowerShell as your normal user and execute:

irm https://raw.githubusercontent.com/Toukaiteio/dsh-effort-tweak/main/scripts/Install-DshEffortTweak.ps1 | iex

To install into another Profile without starting Web UI:

$script = "$env:TEMP\Install-DshEffortTweak.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/Toukaiteio/dsh-effort-tweak/main/scripts/Install-DshEffortTweak.ps1 -OutFile $script
& $script -Profile work -NoStart

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/Toukaiteio/dsh-effort-tweak/main/scripts/install-dsh-effort-tweak.sh | bash

For another Profile:

curl -fsSL https://raw.githubusercontent.com/Toukaiteio/dsh-effort-tweak/main/scripts/install-dsh-effort-tweak.sh -o install-dsh-effort-tweak.sh
bash install-dsh-effort-tweak.sh --profile work --no-start

The scripts download the latest GitHub Release archive, verify the GitHub-provided SHA-256 digest when available, keep it under DSH_HOME/plugin-archives/dsh-effort-tweak/ for future dependency resolution, install it with dsh plugin, and start the default web Profile unless --no-start or -NoStart is supplied.

Install a local package

pnpm install
pnpm build
dsh plugin --profile web add ./dsh-effort-tweak-0.1.0.tgz

Restart DSH Web after installing or updating the plugin so the new client bundle is loaded.

Development

Requirements: Node.js 22.19 or newer and pnpm 10.

pnpm install
pnpm check
pnpm pack --pack-destination artifacts

The CI workflow checks types, runs unit and bundle integration tests, builds the host and browser bundles, and uploads the package archive. Pushing a matching tag such as v0.1.0 runs the release workflow and publishes the archive to GitHub Releases.

Configuration shape

The plugin edits this part of the llm-pi-ai namespace:

providers:
  my-gateway:
    models:
      - id: my-reasoning-model
        reasoningEfforts:
          off: null
          low: low
          high: high

The selected model's reasoningEfforts map determines which effort levels the DSH model picker can offer. The plugin uses the existing value for a level when one is already present; a newly enabled level is initialized with its canonical name.

License

MIT. See LICENSE.

安装

🧩 让 Agent 自动装(推荐)

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

dsh plugin add dshbase-catalog

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

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

Web profile:

dsh plugin --profile web add github:Toukaiteio/dsh-effort-tweak

Headless(CLI)profile:

dsh plugin --profile headless add github:Toukaiteio/dsh-effort-tweak

实测报告

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

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

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

分享徽章

Developer 里更多

浏览全部 7797 个插件 →