Preface¶
When developing local agents with DeepSeek Harness (DSH), the Web interface includes several entry points oriented towards the official model API: “Feedback” and “Login” in the sidebar’s “More” menu, the DeepSeek official Provider card in Settings, and the “Upload Session Log when using official model API” switch. If you only use self-hosted or third-party model routing and do not use the official API, these entries only take up space in the menu and settings pages and are prone to accidental clicks.
Below is an introduction to the community plugin dsh-official-cleanup (maintainer tkhs101): without modifying the DSH installation directory, it hides or disables the above capabilities through plugin slots and the loader patch layer, making the interface closer to a “pure local Harness” usage mode.
What is this¶
dsh-official-cleanup is a DSH plugin categorized as a Client. In one sentence, its purpose is: to clean up unused official API-related entries in the Web UI and to lock the official model Session Log upload to the “off” position.
The implementation is divided into two halves: Client and Host. The Client modifies the sidebar and styles; the Host modifies the loader and configuration parsing via internal/config and cordis.patch.yml. Repository: https://github.com/tkhs101/dsh-official-cleanup. Directory page: https://www.skillhub.cn/plugins/tkhs101/dsh-official-cleanup. License MIT.
The current npm package version is 0.4.1 (see package.json in the repository). engines.dsh is declared as >=0.2.1-rc.2 <0.3.0-0; if the version does not match, the DSH compatibility gate will refuse to load and prompt a message, rather than crashing the Harness.
Core Features¶
The README summarizes the three types of targets in a table. Below is an expansion on the same facts.
Sidebar: Settings button replaces “More”, and hides feedback & login rows¶
-
Hide menu rows: In the “More” menu at the bottom left of the session page, the plugin’s own stylesheet sets the “Feedback” and “Login” rows to
display: noneand marks them asdisabled, causing keyboard navigation to skip them. Identification relies on icon geometry (paper plane = Feedback, person silhouette = Login), not on UI language. -
Do not delete DOM:
AccountMenuis hard-coded JSX with no extension points; directly deleting nodes would cause ReactremoveChilderrors, and the launcher slot might be judged asdeadCell. Therefore, hiding is adopted instead of removal. -
Direct access to Settings:
settings.launcheris asingleslot. The plugin registers a button withpriority: -1to cover the default account menu (lowest priority rendering), and clicking it directly callsopenSettings(). The account menu is not deregistered, it just no longer occupies that slot; settings sections, model page login editors, etc., still work in their respective slots.
Settings → Models: Remove DeepSeek official Provider card¶
In cordis.patch.yml, the loader entry llm-deepseek is set to disabled: true. This entry is responsible for both the provider directory entry and adapter routing; once disabled, both the card and routing disappear. The settings page is tolerant of missing rows and will degrade to adapter-absent without throwing errors.
Session Log Upload: Forced to stay off¶
The enabled status of “Upload Session Log when using official model API” defaults to true in the schema, and the bundle patch has the lowest priority, meaning it will be overwritten by profile patches and Web switches. The Host half pins the parsing result of this item to false within the internal/config waterfall, overriding boot defaults, settings page writes, and combined configurations after restart.
Failure Isolation¶
Each registration in the Client and Host is isolated for errors: if a specific hook is rejected, only that effect is lost and a console error is logged, without causing the entire frontend or Harness startup to fail.
Installation and Activation¶
Requires dsh >= 0.2.1-rc.2. Pure JavaScript, no build steps or runtime dependencies.
# Install from npm (Recommended)
dsh plugin --profile web add dsh-official-cleanup
# Pin version
dsh plugin --profile web add dsh-official-cleanup@0.4.1
# Install from GitHub
dsh plugin --profile web add github:tkhs101/dsh-official-cleanup#v0.4.1
# Install from local directory
dsh plugin --profile web add /path/to/dsh-official-cleanup
# Uninstall
dsh plugin --profile web remove dsh-official-cleanup
dsh plugin passes arguments to pnpm within the profile directory; after installation, DSH writes the package into dsh.profile.bundles and applies the patch layer. On the Client side, simply refresh the page; however, since the patch modifies the llm-deepseek loader entry, a Harness restart is required to take effect in the new process. When switching to other profiles, change --profile web to the corresponding name.
npm and GitHub distributions have been verified; the rc.2 Discover plugin market index does not include this plugin, so it must be installed manually via the commands above.
Typical Usage and Recovery¶
After installation and restart, no additional configuration is needed: the sidebar becomes a button directly accessing settings, the official DeepSeek Provider card no longer appears on the models page, and the Session Log upload switch remains off at the parsing layer.
If partial restoration is needed, the README provides corresponding modifications:
- Restore sidebar “More” account menu: Delete or adjust the
settings launcherregistration inclient.js(e.g., removepriority: -1) and refresh the page. - Restore Provider card: Delete the
disabled: truesegment forllm-deepseekincordis.patch.ymland restart the Harness. - Restore Session Log switch: Delete the
internal/configlistener inindex.js, or uninstall the plugin. - Adjust hidden menu rows: Modify the
FEEDBACK_ICON/LOGIN_ICONconstants at the top ofclient.js(sync required if Harness updates change icon paths).
Use Cases and Notes¶
Who it is for: DSH users who mainly use non-official model routing and want less official API guidance in the Web UI; categorized as a client, acting on the Web profile.
Stacking Effects: With the settings button replacing “More” and llm-deepseek disabled, there is almost no visible entry for DeepSeek account login within this profile (the settings.models.sign-in dependency in the model page first-launch guide relies on the disabled official Provider card). This is a design stacking of Feature 1b and Feature 2; if a login entry is needed, one of them should be restored according to the “Recovery Methods”.
Boundaries:
- Menu row hiding depends on the current
Menuicon paths and:has()selectors; after a DSH upgrade, the constants at the top ofclient.jsmay need to be changed, and keyboard navigation should be manually confirmed with arrow keys. internal/configbelongs to the Cordisinternal/*hooks, which have no stability commitment; if registration fails, Feature 3 may degrade to “off by default, but can be turned on via the settings page until the next restart”.- The settings button appearance copies the host gear geometry and relies on
--dsw-alias-*tokens; if the host changes icons or sizes,GEAR_PATHSand.doc-launchermay need to be modified.
Security and Trust: The plugin runs with the current dsh process privileges and works through slots and the patch layer without modifying files in the DSH installation directory. It is recommended to read the repository source code and MIT license before installation; the third-party gear icon geometry follows the MIT declaration of the DeepSeek Harness client UI.
The DSH ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent of DeepSeek / High-Flyer and are not official app stores.
Conclusion¶
dsh-official-cleanup consolidates the official API exposure across the sidebar, models page, and Session Log into a plugin-controllable scope, suitable for scenarios where you simply want to use the Harness as a local workbench. For details and issues, see GitHub: https://github.com/tkhs101/dsh-official-cleanup; Plugin Directory: https://www.skillhub.cn/plugins/tkhs101/dsh-official-cleanup.