Introduction¶
When forking sessions in DSH (DeepSeek Harness), the platform records the actual parent-child relationships and uses indentation in the sidebar to reflect the hierarchy. However, the sidebar does not explicitly state “which conversation this fork was branched from.” Officially, after forking, the child session title often follows a counted format like <source title> (1). Relying solely on numbers makes it difficult to distinguish at a glance whether this is a specific fork or just a newly created ordinary conversation.
If you frequently open multiple experimental branches from the same source conversation, or fork via message menus, other plugins, ctx.sessions.fork, etc., you need to see the source information in both the title and the sidebar. dsh-plugin-branch-origin, published by community maintainer WindFromKadath and categorized under “Fun Styling” in the DSH community plugin directory (currently 0 GitHub stars), tags each new fork with its origin through two complementary channels. It is zero-dependency, requires no build chain, is currently at version v0.1.2, and is licensed under MIT.
What is this¶
dsh-plugin-branch-origin is a Cordis plugin for DSH: it rewrites the child session title when a fork occurs and adds a read-only source badge at the beginning of the sidebar row. It does not alter the existing SessionHeader.parentSession chain in DSH; instead, it turns “which conversation this came from” into visible text.
Maintainer: WindFromKadath
Directory Page: https://www.skillhub.cn/plugins/WindFromKadath/dsh-plugin-branch-origin
Source Code: https://github.com/WindFromKadath/dsh-plugin-branch-origin
Core Features¶
The plugin follows a single core rule, from which all other behavior is derived. The implementation is split into two halves: “host-side” and “client-side,” both enabled by default.
Title Prefix (Host-side)¶
After a new fork is completed, if the child session title is still in an “inherited from source title” state (identical to the source title after removing the official (1) suffix), the title will be set to:
⤷ Source: <source session title>
⤷ Source: is a fixed product string (literal meaning: source) and is not translated, facilitating identification across different language environments.
If DSH subsequently changes the title to <source title> (1), the plugin converges it to ⤷ Source: <source title> (1), preserving the count so that multiple forks from the same source can be distinguished. If the user or another lineage-type plugin has already modified the title (e.g., ⑂1 …, my experiment), or if the title already starts with ⤷ Source:, no write will occur. New sessions without a parent, or cases where the source session had no title at the time, will also remain unchanged. Child agent sessions (header.origin === 'subagent') are not processed by default but can be enabled via labelSubagents.
Note: The source in the title is a snapshot taken at the moment of forking; if you rename the child session, the ⤷ Source: … in the title will disappear along with the title change. This is the inherent cost of writing the tag into the title string.
Sidebar Badge (Client-side)¶
The sidebar does not replace official row components. It simply displays ⤷ at the start of the row if there is a non-empty parent and the session is not a subagent. Hovering over the row reveals a “Source” block displaying the source conversation title.
| Situation | Behavior |
|---|---|
| Renaming a forked child session | The source in the title may be gone, but the badge remains. |
| Renaming the source conversation | The badge displays the current title from the list; the title prefix remains the snapshot from the fork time. |
| Source conversation is not in the current list snapshot | Displays (Untitled conversation) without crashing. |
Ordinary sessions, subagents, and their forks do not have a badge by default.
Installation and Activation¶
This plugin is installed via the desktop profile (the README notes it has the same form as dsh-plugin-branch as of 2026-10-07 and has been verified in a trial environment). Installation adds a link: dependency to the profile’s package.json, writes the package name to dsh.profile.bundles, and links to this repository under node_modules. The repository provides a script to handle installation, checking, and uninstallation:
node .verify/install-desktop.mjs --status # Check only, no file writes
node .verify/install-desktop.mjs # Install (idempotent, can be run repeatedly to repair)
node .verify/install-desktop.mjs --uninstall # Uninstall
After installation, you must fully exit and reopen DSH Desktop: HMR does not hot-reload plugin rows, and the client-side loading decision is also cached until restart. The README also mentions: if the application has previously rewritten the profile manifest from its own state and cleared the local link: dependencies and bundle items, simply re-running the installation command above will fix it (idempotent).
If you need a read-only check of the composition before restarting, you can run the following in the repository root directory:
node --import ./test/register.mjs .verify/diagnose-desktop-compose.mjs
node .verify/check-client-manifest.mjs
This plugin has zero imports and is not subject to the “junction installation cannot resolve host packages” restrictions that affect dependency-based plugins.
Typical Usage¶
After completing installation and restarting DSH Desktop, you can test the behavior described in the README using the following steps:
- Select “fork session” for any conversation in the sidebar → The new session title should change to
⤷ Source: <source session title>, and a⤷badge should appear at the start of the row. - Rename this forked session → The source prefix in the title will disappear, but the
⤷at the start of the row remains, and hovering will still show the source conversation name.
The fork entry point is not limited to the sidebar: message menus, forks triggered by other plugins, ctx.sessions.fork, etc., will all undergo the same labeling logic as long as they generate a new fork with a parent link and the title is still in the “inherited” state. The plugin does not retroactively scan for forks that existed before activation.
Within approximately 4.6 seconds after forking (settleMs 600 + graceMs 4000), the title may continue to converge toward the counted format. If you manually rename the title within this window, the plugin will not overwrite it (the title is no longer in an inherited state).
Use Cases and Notes¶
Who it is for: DSH users who frequently fork multiple branches from the same conversation and need to quickly identify “where it branched from” in the sidebar. It coexists with official indentation and counted titles; it does not replace parentSession, but only supplements visibility.
Runtime and Trust: DSH plugins are loaded and execute host-side logic under the permissions of the current dsh process; client scripts are injected into the Web sidebar UI. Before installation, please review the GitHub repository source code and MIT license to ensure it meets your security and compliance requirements. The community directory SkillHub is an independent site, has no official affiliation with DeepSeek / High-Flyer, and is not an official app store.
Known Limitations (Excerpted from README):
- The source in the title is not preserved upon renaming the child session; the sidebar badge is preserved.
- The source in the title is a snapshot at the time of forking; after renaming the source conversation, the badge updates, but the title prefix does not.
- Only labels new forks created after the plugin is loaded.
- Requires Node.js >= 22.5 (see
enginesinpackage.json).
Developers can run npm test, npm run client-smoke, npm run rm-test etc. within the cloned repository for offline or real-device harness verification; details can be found in the Checks table in the repository README.
Conclusion¶
dsh-plugin-branch-origin answers “where did this fork come from” using two channels: a title prefix and a sidebar badge. One is intuitively written in the title, and the other allows you to see the live source name via hovering even after renaming. If you use DSH in a desktop profile and frequently fork sessions, you can install it via the install-desktop.mjs in the repository and try it out after restarting the client.
- Plugin Directory: https://www.skillhub.cn/plugins/WindFromKadath/dsh-plugin-branch-origin
- GitHub: https://github.com/WindFromKadath/dsh-plugin-branch-origin