Introduction¶
In the DeepSeek Harness session list, different sessions may run under different Agent modes (presets), such as PTC, Minimal, or custom modes. By default, this information is implicit for developers—you have to open a session to confirm its mode. This creates a problem: when browsing the session list, it’s hard to quickly distinguish which sessions use different modes, making batch operations or troubleshooting more difficult.
The DSH plugin dsh-session-agent-mode solves this by displaying a compact badge next to the update time in each sidebar session row, surfacing the Agent mode information directly in the list. The badge only appears for non-default mode sessions; default mode sessions remain unchanged, preserving the original visual experience.
Plugin Overview¶
This is a DeepSeek Harness client plugin developed by maintainer VladikDragon. It inserts a cell named agent-mode into the sidebar session row to display the Agent preset the session is currently running under. The badge is positioned at sidebar.session.row.trailing, adjacent to the update timestamp.
The core value is making the session mode visible in the list view: developers can quickly identify which sessions use different modes without opening them, enabling more efficient batch management.
Core Features¶
-
Mode Badge Display: Shows a compact chip after the update time in each session row, indicating the current mode. The badge text depends on the mode type:
-ptc: displays PTC (batch tool calls with result filtering)
-minimal: displays Минимум (terminal and image reading, minimal toolset)
-cordis: displays Автор (building plugins and modes through conversation)
- Custom modes: displays the preset name provided by the Host -
Default Mode Silence: For sessions running under the default preset (standard), the plugin displays nothing. The list appearance remains identical to before installation.
-
Hover Tooltip: Hovering the mouse over the badge reveals the preset’s description.
-
Web Client Only: The plugin only supports Web clients with
platform: "web". The TUI interface does not support this feature.
Installation & Activation¶
During installation, you must specify the target profile. The following command installs the plugin to the desktop profile:
dsh plugin --profile desktop add github:VladikDragon/dsh-session-agent-mode
After installation, you need to add the plugin to the profile’s bundles. You can do this manually through the plugin manager, or by editing the profile file directly:
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-session-agent-mode"
]
}
}
The profile file path is ~/.dsh/profiles/<profile>/package.json.
For local development, you can clone the repository from Git and install it:
git clone https://github.com/VladikDragon/dsh-session-agent-mode
dsh plugin --profile desktop add file:C:/path/to/dsh-session-agent-mode
When modifying the code of an already-installed plugin, you only need to toggle it off and on in the plugin manager—no application restart required. A restart is only needed when adding a new package.
How It Works¶
The plugin injects code via Cordis’s patch mechanism. cordis.patch.yml defines a Loader with the id session-agent-mode.
The client portion (client.js) is declared in the dsh.client field of package.json and injected into two DSH UI packages: @deepseek-ai/dsh-client-ui-session and @deepseek-ai/dsh-client-ui-workspace. ui-session provides the service uiSession, while ui-workspace provides the sidebar session row slot sidebar.session.row.trailing, which the plugin occupies.
The badge component reads the projectionValues.agentPreset field from the list session. For sessions with the default preset or no preset specified, it returns null and renders nothing. Built-in modes (standard, ptc, minimal, cordis) have predefined badge text, so the badge displays correctly even before the Host has returned the preset list.
The preset list is fetched via remote.agentPresets.list(), requested only once, and re-requested only when a new preset ID appears. It does not re-request on every list change, avoiding excessive communication.
Use Cases & Caveats¶
This plugin is suited for developers who need to manage different Agent modes at the session list level, such as batch-troubleshooting sessions that use a specific mode, or quickly verifying the mode of new sessions after switching the default preset.
Note: The current mode of a session can only be switched when the session is empty (i.e., before the first message is sent). Once a session has started, the Host locks the mode and returns an agent-preset/locked error. To use a different mode, you must start a new session or modify the default preset.
The plugin depends on the projectionValues.agentPreset field in DSH list sessions, which is not a public contract. If DSH changes this field, the badge will stop displaying, but the page will not crash.
The plugin is only applicable to Web clients; the TUI interface does not support this feature.
Ecosystem Context¶
The philosophy of DeepSeek Harness is “everything is a plugin.” The plugin community directory is maintained by the third-party site skillhub.cn and has no official affiliation with DeepSeek or High-Flyer Quant. The content in this article is based on community-maintained plugin repositories and documentation.
References¶
- Plugin directory page: https://www.skillhub.cn/plugins/VladikDragon/dsh-session-agent-mode
- GitHub repository: https://github.com/VladikDragon/dsh-session-agent-mode