Preface¶
DeepSeek Harness (DSH) Web Shell is designed with a default desktop layout: the official styling contains almost no media queries other than prefers-reduced-motion, and there are no breakpoints for mobile widths. On narrow screens, it still renders a three-column desktop layout, where the sidebar squeezes the conversation area, and the Enter behavior of the input box leans towards desktop conventions. If you frequently access DSH on a mobile phone or small tablet (e.g., treating the instance as a long-term online agent box), these details directly impact usability.
Below is the introduction to the community plugin dsh-agentbox: delivered as a toggleable DSH plugin to provide mobile and small-screen fixes, rather than directly modifying upstream patches, allowing these capabilities to be retained via profile composition after DSH upgrades.
What is this?¶
- Name: dsh-agentbox (GitHub:
charysrinathsc/dsh-agentbox) - Maintainer: charysrinathsc
- Category: Client (Web profile)
- Positioning: Mobile and small-screen fixes for the DeepSeek Harness Web Shell, with all capabilities enabled by default and individually configurable.
- License: MIT (see repository README)
The plugin stems from the author’s actual usage scenarios of driving DSH on mobile phones for extended periods. Unlike “patching source code,” it injects styles and behaviors through DSH’s plugin and bundle patch mechanisms.
Core Functions¶
All functions are gated behind switches and are turned on by default. The comparison in the README is as follows:
| Toggle | Effect |
|---|---|
mobileCss |
Only at width ≤640px: collapses the 56px rail, allows the open sidebar to overlay the conversation area instead of squeezing it, auto-collapses the sidebar after clicking a session, and prevents the transcript from showing through the composer. |
usageDockCompact |
Condenses the usage indicator into a single line. |
usageDockTerse |
Rewrites the dock into symbolic form (e.g., ↓319M ·↑937K ·⚡100%), removing verbose metrics. |
enterNewline |
On mobile: Enter inserts a newline, and the send button handles sending; opposite to stock DSH’s “Enter to send, Shift+Enter for newline,” aligning better with mobile keyboard habits. |
Additionally, there are minor fixes: the composer uses an opaque background to prevent the transcript from showing through around the input area; the dock allows wrapping instead of being clipped.
Installation and Activation¶
The installation command comes from the repository README. An existing DSH environment with the web profile is required. dsh plugin forwards to pnpm within the profile directory.
# into a profile — `dsh plugin` forwards to pnpm in the profile directory
dsh plugin --profile web add github:charysrinathsc/dsh-agentbox
# then sign the profile
dsh restart
The package includes dsh.bundle.patch, which is automatically composed into the bundle by the profile. To disable a specific capability, override the configuration in the profile’s cordis.patch.yml, for example, to disable mobile Enter-newline:
- id: dsh-agentbox
config:
enterNewline: false
Typical Usage and Verification Strategy¶
- Install via the command above in the web profile and run
dsh restart. - Resize the browser viewport to ≤640px, or open the same DSH Web URL directly on a mobile phone. Check if the sidebar overlays, if the sidebar collapses after clicking a session, and if Enter inserts a newline while the send button submits.
- If you need to streamline the usage area, leave defaults as is to experience
usageDockCompactandusageDockTerse; if not needed, you can turn them off individually incordis.patch.yml(field names match the README table).
The repository’s tools/ directory provides maintenance scripts (for self-checks after modifying the plugin or upgrading DSH, not mandatory for end-users):
health.mjs: Checks if the DOM/CSS assumptions relied upon by the plugin still hold (probes 25 payload assumptions, exits with non-zero on failure).regress.mjs: Checks under WebKit if behavior still meets expectations (exits with non-zero on failure).
For more detailed sizing, pitfalls, and rollback records, refer to INTERNALS.md in the repository.
Use Cases and Notes¶
Who it is for
- Developers or self-hosters already using the web profile in DSH who need to operate the Web Shell stably on mobile phones or at widths ≤640px.
- Those who want fixes to persist as a plugin form across DSH version updates rather than maintaining private CSS patches.
Environment Requirements (README)
- DSH with a web profile.
- Mobile-related capabilities need to be verified at widths ≤640px; other switches work at any width.
Honest Limitations (README Caveats)
- iOS Keyboard: The composer may still end up below the iOS keyboard. Safari shrinks the visual viewport without changing the layout viewport; previous attempts to adjust the frame using
visualViewport.heightmade things worse and were rolled back. The README treats this as an upstream issue. - Selector Fragility: DSH class names contain hashes. The plugin matches via substrings, which may break after DSH redesigns; it is advisable to run
health.mjs/regress.mjsor manually click through key paths after upgrading. - Version Binding: The author developed and validated on a single DSH version, relying on CSS and DOM structure. Major version upgrades require re-verification.
Security and Trust
DSH plugins run under the permissions of the current dsh process, and client plugins participate in the loading and display of the Web frontend. Before installing, please read the source code and MIT license of the GitHub repository to ensure it complies with your deployment strategy. Community directory sites (such as plugin pages on SkillHub) are independent ecosystem indexes, have no official affiliation with DeepSeek / High-Flyer, and are not equivalent to official app stores.
Conclusion¶
dsh-agentbox packages “small-screen layout, sidebar interaction, usage dock density, and mobile Enter behavior” into a configurable DSH client plugin, suitable for scenarios where DSH Web Shell is driven long-term via mobile phones or small windows. Installation and disabling of individual capabilities follow the dsh plugin commands and cordis.patch.yml in the README.
- Directory Page: https://www.skillhub.cn/plugins/charysrinathsc/dsh-agentbox
- GitHub: https://github.com/charysrinathsc/dsh-agentbox