Introduction¶
When running agents in DeepSeek Harness (DSH), Ralph Loop, Agent Teams, and Codex Subagents often exist as global plugins or host built-in capabilities: once enabled, every subsequent conversation carries the same set of tool strategies. Making a simple copy-edit requires running Ralph for multiple rounds, or starting an entire team for a small task, resulting in high token and interaction costs. The community plugin dsh-enhancement-switches (Enhancement Switches) breaks these three capabilities into independent switches above the input box, selectable per session memory; new conversations default to off, and returning to a previous conversation restores the previous settings. Below is an introduction to what it is, how to install it, and how it works with official plugins.
What is it¶
dsh-enhancement-switches is maintained by lonelycrab888 and is categorized as “Workflow” in the SkillHub Plugin Directory. Source code and documentation can be found in the GitHub repository (MIT License). The current maintenance branch requires the host DeepSeek Harness 0.2.2-rc.2 or higher and has been tested on this version.
The plugin injects three switches into the conversation input box area:
| Switch | Function |
|---|---|
| Ralph Loop | Enables iterative verification workflows in the current conversation |
| Agent Teams | Enables tools related to team division of labor and shared taskboards in the current conversation |
| Codex Subagent | Allows the root session to call subagent_codex in the current conversation |
The switches themselves do not call the model; whether a corresponding tool can be used depends on the specific task you provide in the message. The three switches can be enabled individually or simultaneously. Operating the switches does not consume model tokens; the actual usage is determined by the subsequent tasks.
Core Features¶
Per-session Persistence¶
New conversations and independent forks default all three switches to off. When switching switches within the same session, the selection is saved within that session; reopening that conversation restores the previous state.
Relationship with Host and Other Plugins¶
- Ralph Loop: If using enhancement switches to provide conversation-level control, you should disable the official Ralph Loop global plugin on the plugin page to avoid conflicts between the two mechanisms.
- Agent Teams: Shares the same session state as the host built-in Teams and the Teams switch in the input box and model menu; after disabling the enhancement switch, Teams can still be controlled via the host menu.
- Codex Subagent: Since v0.1.3, you must enable the official Codex Subagent plugin (providing backend and model configuration) before using the Codex conversation switches; the enhancement switch only controls whether the tool is available per conversation. You do not need to enable the official Codex plugin when using only Ralph or Teams.
Once Codex is enabled, only the current root session can use subagent_codex; team members and regular subagents do not inherit this tool. Harness starts Codex only when actually invoking the tool, utilizing your local Codex login and configuration.
Host Commands¶
You can send the following commands directly in the input box to update session switches without going through the model:
/agentswitch ralph on
/agentswitch ralph off
/agentswitch teams on
/agentswitch teams off
/agentswitch codex on
/agentswitch codex off
Ralph Round Limit¶
Ralph defaults to a maximum of 8 rounds, with each round potentially containing multiple model calls. You can override this in cordis.patch.yml for the corresponding profile:
- id: agentswitch
config:
maxRounds: 8
Reload the plugin or restart the host for changes to take effect.
Installation and Enablement¶
The plugin runs with the permissions of the current DSH process; it is recommended to read the repository source code and the MIT license before installation to confirm compatibility with your local Harness version.
Plugin Page Collaboration Settings¶
It is recommended to configure the following in the Harness plugin page:
| Plugin or Switch | Setting | Function |
|---|---|---|
| Official Ralph Loop Global Plugin | Disable | Conversation-level control is provided by enhancement switches |
| Host built-in Agent Teams | Keep | Shares session state with UI switches |
| Official Codex Subagent Plugin | Must be enabled when using Codex | Provides Codex backend |
| Enhancement Switches Plugin | Enable | Displays three switches in the conversation interface |
If you have installed an older version with a different name, please uninstall the old version in the corresponding profile first.
Desktop: Custom Plugin Index (Recommended for Automatic Compatibility Selection)¶
- Enable Custom Plugin Index in Plugins → Experimental Plugins.
- Open Discover → Add Index Source and enter:
https://raw.githubusercontent.com/lonelycrab888/dsh-enhancement-switches/main/plugin-index.json
- Select Enhancement Switches and install; Harness will recommend the highest compatible version for your current host.
Manual Installation by Version (Git Address)¶
In Plugins → Add Plugin, select the npm Official Source and enter the address in the table below into Package Name or Address (must match the local Harness version):
| DeepSeek Harness | Enhancement Switches Version | Git Installation Address |
|---|---|---|
>=0.2.2-rc.2 |
rc.2 maintenance branch | git+https://github.com/lonelycrab888/dsh-enhancement-switches.git#v0.2.2-rc.2 |
>=0.2.2-rc.2 |
v0.1.6 | git+https://github.com/lonelycrab888/dsh-enhancement-switches.git#v0.1.6 |
0.2.2-rc.1 |
v0.1.3 | git+https://github.com/lonelycrab888/dsh-enhancement-switches.git#v0.1.3 |
#main points to the current commit of the main branch; users of rc.2 and above can also download .tgz from Release and enter the local absolute path into Package Name or Address.
After installation, restart as prompted by the desktop client and confirm that the enhancement switches are enabled in the plugin page.
Web and Local Development¶
On the Web client, you can install the maintenance branch directly on versions 0.2.2-rc.2 or higher:
dsh plugin --profile web add 'git+https://github.com/lonelycrab888/dsh-enhancement-switches.git#v0.2.2-rc.2'
dsh web
After building and packaging in the plugin repository directory, you can install the generated tgz to the Web profile:
npm ci
npm run build
npm pack
dsh plugin --profile web add "$PWD/dsh-enhancement-switches-0.1.6.tgz"
Uninstall (Web CLI)¶
dsh plugin --profile web remove dsh-enhancement-switches
After uninstallation, historical messages and saved switch selections will still be retained.
Typical Usage¶
First select the workspace, then adjust the switches before sending the first message, and finally write the task boundaries clearly in natural language.
- Select the workspace. Select the workspace when opening a blank homepage; after the session is established, switches will appear above the input box.
- Open switches based on the task. You can enable Ralph only, Teams only, or Codex as needed.
- Send the specific task. The switches only determine whether the tool is available in the current conversation; the task description still needs to be written by you in the message.
Example expressions in the README:
| Switch | When to use | Can say this |
|---|---|---|
| Ralph Loop | Fixing issues requiring repeated attempts and verification | “Use Ralph Loop to fix this problem, run tests every round, max 3 rounds.” |
| Agent Teams | Multiple tasks can be done in parallel, needing teammates and a shared taskboard | “Use Agent Teams to check frontend and backend in parallel, and summarize findings at the end.” |
| Codex Subagent | Want Codex to perform an independent task in this workspace | “Let the Codex subagent check these changes and list potential regressions.” |
Blue indicates enabled, gray indicates disabled (see assets/conversation-switches.png in the repository).
Applicable Scenarios and Notes¶
Who is it for: Developers who frequently switch between “lightweight Q&A” and “multi-round verification / multi-agent collaboration / one-off Codex delegation” within the same Harness; teams that want to control costs and complexity at the conversation granularity.
Usage Notes:
- Even when all three switches are off, regular subagent tools are still usable.
- Work that has already started before closing a switch can be completed; to abort, please use Harness’s stop control.
- Configuration for Codex models and such should be placed in
config.modelunder the officialsubagent-codexentry; do not use the deprecatedagentswitch.config.codexModelanymore. - You need to complete Codex login on your local machine before using Codex for the first time.
The DSH ecosystem follows the “everything is a plugin” philosophy; SkillHub is a community directory site and has no official affiliation with DeepSeek / Hypersphere. The installation paths in this article are based on the repository README.
Conclusion¶
dsh-enhancement-switches takes Ralph Loop, Agent Teams, and Codex Subagent from “turn it on globally and everything is on” to “three switches per session,” defaults to off, remembers settings per conversation, and aligns with the host Teams UI and official Codex backend. When conversation-level workflow control is needed, you can install according to the version table above and manage the coordination with official Ralph / Codex in the plugin page.
- Directory Page: https://www.skillhub.cn/plugins/lonelycrab888/dsh-enhancement-switches
- GitHub: https://github.com/lonelycrab888/dsh-enhancement-switches