Foreword¶
When running long sessions in DSH Desktop, a common practice is to start a new session after changing the question phrasing, or to pile up a large number of fork branches in the sidebar, often titled with the workspace directory name. The DeepSeek Harness plugin system allows for patching these interactions on the client side; dsh-client-ui-tweaks is a community-maintained client plugin addressing the daily organizational costs of “modifying questions multiple times within the same working line,” “one sidebar row representing a branch family,” and “session titles updating with content,” without rewriting existing dialogue content.
Below is an introduction to what it does, how to install it, and a few reproducible usage examples consistent with the README.
What is this¶
dsh-client-ui-tweaks (GitHub: ProgrammerAsahi/dsh-client-ui-tweaks, maintained by ProgrammerAsahi) is a community UI plugin for DSH Desktop, categorized as a client-side plugin. The current package version is 0.3.0, licensed under MIT.
It injects web configuration via Cordis, modifying the DOM in the browser and providing a small number of HTTP routes on the host side; its behavior is fixed with no plugin-level configuration options. The prerequisite is that you are using the web profile of DSH Desktop and are willing to register the dependency as a local link: package.
Core Features¶
Edit and Resend (Fork Branch)¶
A pencil button appears next to every persisted user message (next to the copy button). Clicking it opens an inline editor in place with the content prefilled; Enter sends, Esc or the red button cancels, and there are no other side effects during editing.
Upon sending, it switches branches under fork semantics: the branch anchors at the previous turn/end of the turn containing the edited message, and the edited draft becomes the first new message of that branch. If editing the first message of the session (no previous turn), it proceeds as a brand new blank session rather than a fork.
Forks inherit queued messages from the next turn and may cause duplicate responses; the plugin reads the inherited message IDs via POST /edit-resend-inbox and removes them using updateQueue before the child session opens. Below the edited message, there are ‹ n/N › arrows to switch between the original and various branch versions; multiple edits to the same message are merged into the same root branch family.
Sidebar Branch Family Merging¶
The sidebar displays by “branch family”: each family occupies only one row. Visible row priority is: current member > running > just completed > recently updated. Branch sessions share the parent title (renaming writes to and pins session/title), consistent with the top bar.
When opening a session from a family, it defaults to the most recently updated member; switching versions with arrows does not trigger this kind of redirection. The mapping between rows and session IDs prioritizes reading props.node.id from SessionNodeItem via React fiber; if unavailable, it falls back to (title, time label) pairing. Chained forks merge by root, and isolated hidden rows are automatically restored.
If you need to compare multiple branches side-by-side under the same message, this plugin is not suitable: it intentionally collapses each family into a single row.
Auto-summary Titles¶
Title for the first message: waits up to 12 seconds for the result from DSH’s built-in generator (using the session model); if the built-in path fails silently, the plugin generates a title from the first user message to ensure the title and subsequent effects are triggered.
Generation order: first reads the session dialogue model from the session log; then a three-tier fallback K3 → MiMo flash → DeepSeek flash. The tier used is recorded in autotitle.json. The prompt side includes JSON framing and a “data not instructions” declaration; if the generated result resembles prose (punctuation, dashes, or exceeding 45 characters), it is rejected.
Renaming after /compact is handled solely by the plugin (DSH has no built-in compact archive): it regenerates the title from the compaction summary in the session log. The plugin will not overwrite titles manually changed by the user (session/title with source.kind:"user"), branch families already unified by edit-resend, or titles that have stabilized outside the trigger window.
Pixel Shimmer Title Animation¶
After the title settles, the sidebar row plays a pixel shimmer: a transparent pixel grid texture (2px blocks, 2px spacing, consistent with StateDot granularity), a deep blue light band sweeping from right to left (pixel-stepped hard edges, soft shoulders, and a core line), a wave bulge approximately 4px below the title rising and falling, then fading out. The color follows the current StateDot accent color; the canvas is below the title text, driven by a setTimeout chain, and plays even when the window is hidden.
Installation and Enablement¶
The plugin is a pure ESM package requiring no build. The path verified in the README on macOS is: DSH Desktop and the local web profile share ~/.dsh.
- Place the source code in a local directory (method from README):
git clone https://github.com/ProgrammerAsahi/dsh-client-ui-tweaks.git ~/dsh-plugins/dsh-client-ui-tweaks
- Register the
link:dependency in the web profile’s~/.dsh/profiles/web/package.json(replace the path with your username):
{
"dependencies": {
"dsh-client-ui-tweaks": "link:/Users/<you>/dsh-plugins/dsh-client-ui-tweaks"
}
}
- Add
"dsh-client-ui-tweaks"to thedsh.profile.bundleslist of that profile and restart DSH Desktop; thecordis.patch.ymlinside the package will insert the plugin registration.
To uninstall: remove the two registrations mentioned above, delete the symlink in node_modules, and delete the source code directory.
Recommendation (non-plugin config): In the machine-level ~/.dsh/cordis.patch.yml, raise the built-in title generator’s maxOutputTokens from 64 to 4096; otherwise, thinking models may easily exhaust the budget and fail silently. See the repository docs/pitfalls.md for details.
Host-side scanning of long session logs depends on the zstd CLI on the system.
Typical Usage¶
Change phrasing and retain historical versions
- In a long session, find the user message you want to change, click the pencil, edit the text in the inline box, and press Enter.
- Switch between the original and various forks using the
‹ n/N ›below the message to compare subsequent dialogue under different phrasings. - The sidebar still represents this “working line” as one row, and the status dot still reflects the DSH native StateDot.
Refresh title after compact
After executing /compact in a session, the plugin regenerates the title from the compaction summary; if the title was just generated, the sidebar row will play the shimmer.
Work with the built-in title generator
After the first message is sent, the plugin first waits for the built-in generator for up to 12 seconds; if not settled, it proceeds with the plugin fallback chain and leaves a record in autotitle.json to distinguish between plugin-written and user-pinned titles.
Applicability and Notes¶
Suitable for
- Repeatedly changing question phrasing in long sessions without wanting to start a new session from scratch every time.
- Too many forks in the sidebar, preferring one row per working line rather than one row per branch.
- Wanting content-based summary titles for the first message and after
/compact, and accepting the sidebar animation when the title settles.
Not suitable for
- Needing to view multiple branches of the same message side-by-side in the UI.
Security and Permissions
The plugin runs with the permissions of the current DSH process, reading and writing session logs under the profile and injecting client scripts. Before installation, please review the GitHub Source and the MIT license to confirm it complies with your environment policy. The community plugin directory SkillHub Entry has no official affiliation with DeepSeek / High-Flyer and is not an official app store.
Known limitations are subject to the “Known Limitations and Deferred Work” section in the repository README; implementation details (fork anchors, queue cleanup, titles relying solely on session/title events, etc.) can be found in the “Understand the implementation” collapsed section of the README.
Conclusion¶
dsh-client-ui-tweaks packages edit-resend with ‹ n/N › version switching, sidebar branch family single-row merging, unified branch titles, auto-summary titles for the first message and /compact, and pixel shimmer upon title settling into a local link: package with no build step; it does not rewrite existing dialogue text, making it suitable for long-term triage of the same working line.
- Community Directory: https://www.skillhub.cn/plugins/ProgrammerAsahi/dsh-client-ui-tweaks
- Source and README: https://github.com/ProgrammerAsahi/dsh-client-ui-tweaks