rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:nanwu98/dsh-hide-account-models
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness bundle that hides the signed-in DeepSeek account model group from the model picker and keeps every dispatch on the official API-key provider.
| In the picker | After enabling |
|---|---|
| DeepSeek account models (signed-in quota) | hidden |
deepseek-official models (API key) |
kept, and the only selectable group |
The plugin has no settings page and no client half. Turn it on or off from Plugins, exactly like any other bundle.
Signing in to the desktop app adds a deepseek-account provider next to the
deepseek-official API-key provider. Both appear in the composer menu. If a
conversation keeps an account model selected, its next request can spend on the
account even when you intended to use your API key.
This bundle removes the account group from the catalog the picker is built from,
and rewrites an already-saved account selection to deepseek-official before the
request leaves the Host.
>=0.2.2-rc.1 <0.3.0 (declared in engines.dsh).deepseek-official).
Without it there is no model left to select after the account group is hidden.
Configure the key first, then enable this plugin.Replace desktop with the profile you actually start. GitHub installs need Git
on the machine, because DSH asks the repository before downloading.
dsh plugin --profile desktop add github:nanwu98/dsh-hide-account-models#v1.0.0
dsh plugin --profile desktop add https://github.com/nanwu98/dsh-hide-account-models/releases/download/v1.0.0/dsh-hide-account-models-1.0.0.tgz
Open Plugins → Add plugin, paste the repository address or the tarball URL, and restart DSH if the page asks. Installing by bare package name only works for a package published to npm; this bundle is currently distributed from GitHub.
After a restart, deepseek-account is gone from the model menu. Nothing else
changes: no new page, no new toolbar item.
Three seams, all in the Host process:
ctx.llm.listProviders(). The plugin wraps that method and drops the
deepseek-account entry, so the account group disappears from the menu, the
search index, and keyboard navigation at the same time.llm.prepareCall() (the Agent loop and title generation) and rewrites only
provider: "deepseek-account" to deepseek-official. Every other field,
including the model id, is preserved.llm.stream() without
preparing first — the default compaction summarizer is one. The same
provider rewrite is applied there.The plugin intentionally does not listen to agent/request: that hook is
deprecated in DSH 0.2.x, and the Agent loop rejects a provider or model change
there before dispatch. Rewriting at prepareCall/stream is the supported
place to keep the route on the API key.
Disabling or removing the plugin restores the original methods and announces the change, so the account group comes back immediately without a restart.
deepseek-official first. The plugin does not check whether the
official route has a usable key. If it does not, the picker will be empty and
requests will fail with the official route's error instead of spending on the
account. That failure is intentional; it is safer than a silent fallback.deepseek-official with the same
model id.The plugin is a pure in-process filter:
llm service that DSH already
mounted; it never resolves, reads, or copies an API key or account token.It reads provider metadata (id, name) from the llm service and writes only
one thing: the in-memory provider list that the UI reads.
Turn the bundle off with its switch in Plugins; the account group returns at once. Remove it entirely with:
dsh plugin --profile desktop remove dsh-hide-account-models
Removing the plugin does the same; it has no state to clean up.
0.2.2-rc.1 through 0.2.x. The bundle relies on the provider ids
deepseek-account / deepseek-official and on ctx.llm.listProviders() and
ctx.llm.prepareCall() from that release line.Pure ESM JavaScript, zero dependencies, no build step. Run the unit tests:
npm test
The tests use a fake llm service and a fake Cordis context. They cover the
provider filter, the prepareCall and stream rewrites, restoration of the
prototype methods through a traceable proxy, and coexistence with another plugin
that patches the same method later.
The repository also publishes a format-1 market index for Plugins → Discover → Index sources:
https://cdn.jsdelivr.net/gh/nanwu98/dsh-hide-account-models@main/index.jsonhttps://raw.githubusercontent.com/nanwu98/dsh-hide-account-models/main/index.jsonMIT. See LICENSE.
The plugin is not affiliated with DeepSeek. It manipulates the harness's in-process provider registry; review the source before enabling it in a profile you depend on.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。