Preface¶
When working with sessions in DeepSeek Harness (DSH), you often need to open the current workspace directory in a local editor or IDE. DSH’s native session header toolbar includes an Open In… button, but the built-in application list is fixed at compile time, and clients have whitelist filtering. Third-party applications cannot be integrated, and there is no officially provided application-level extension point. If you want to open the current session directory in tools like Cursor or VS Code with one click, you must rely on community solutions.
Below introduces dsh-open-in-app-base published by maintainer lovezi0: it does not modify host configurations, provides an extensible button group at the same position, and turns “which application to open with” into a registration contract, allowing similar downstream plugins to add target applications.
What Is This¶
dsh-open-in-app-base is a third-party DSH plugin categorized as workflow. It provides an Open In… button group foundation in the session header toolbar: the foundation handles button appearance and menu rendering; specific application detection, routing, and launching are implemented by downstream plugins. Repository: GitHub, Directory page: SkillHub. Current npm package version is 0.2.0, license MIT; the README indicates compatibility with DeepSeek Harness 0.2.0-rc.1, and supports Desktop.
Core Features¶
The following capabilities are all from the project README and package descriptions.
Open Slots¶
Contributors can join the menu by registering id, label, route (optional icon, order), without modifying the foundation source code.
Appearance and Native Alignment¶
Button specifications (24px height, 11px font size, 0.5px stroke, rounded corners, and hover) align with the native split button; contributors only need to provide icon path data, and dimensions and structure are uniformly rendered by the foundation.
Zero Host Surface and Security Boundary¶
The foundation itself does not register local routes or launch processes; target application detection and launching remain within each contributor’s plugin.
State Management¶
The host side provides cross-profile shared settings storage (service name openInAppState), allowing downstream plugins to read and write custom installation paths and other configurations without building their own persistence.
Stealth and Usability¶
If there are no registered targets, all targets are unavailable, or the current session has no workspace yet, the entire button does not render. After mounting, it concurrently detects each target; uninstalled or failed targets do not appear in the menu.
Cross-Platform Consistency¶
Both web profile and Desktop (Electron) load the same browser artifact.
Installation and Activation¶
This plugin is a common dependency for “Open In…” downstream plugins: if only the downstream plugin is installed, the menu will not appear; it must be installed together with specific target application plugins. Downstream plugin installation instructions should also clearly state this dependency (see repository DEVELOPMENT.md for details).
Web profile (command line):
dsh plugin --profile web add dsh-open-in-app-base
Desktop: Install from the Plugins page in the application, package name dsh-open-in-app-base.
Before installation, please review the repository source code and MIT license yourself; plugins run with the current DSH process privileges and involve local paths and external program launches, so pay attention to environment security.
Typical Usage¶
The button appears in the session header toolbar, located to the right of the native Open In… button.
- Click the button icon or the right-side dropdown arrow to expand the menu; only after selecting a specific application will it request that target’s route, and the downstream plugin opens the current session’s workspace directory.
- When one or more downstream targets are installed, the interaction is consistent.
- Applications selected during the current session are remembered and checked in the menu.
- Targets that are not installed or fail detection do not appear; if all targets are unavailable, the entire button does not render.
Extension Development¶
To write an Open In downstream plugin pointing to a specific application, see the repository’s DEVELOPMENT.md for the registration contract, minimal client and host implementations, hard requirements, and installation instructions template.
Working principle summary: The plugin is divided into a host side and a browser side. The browser side registers the button group in the session header slot and exposes a registry via the cordis service openInAppTargets; after clicking, it requests each target’s own route. The host side provides openInAppState for shared settings.
Use Cases and Notes¶
Suitable for: Developers already using DSH for agent or session development who need an extensible “open workspace in external IDE/editor” workflow and are willing to install both the foundation and specific target plugins (e.g., community Open In plugins for Cursor, VS Code, etc.).
Notes:
- It cannot replace the behavior of native Open In whitelisted applications; the foundation is a parallel extension point that depends on downstream registration.
- Community plugin directories (such as SkillHub) are independent sites with no official affiliation with DeepSeek/Hunyuan; installation and trust boundaries need to be assessed independently.
- Node build requirements are
>=20(see package.json), which is not directly related to normal users installing npm packages, but should be noted when developing extensions.
Conclusion¶
dsh-open-in-app-base solves the problem that DSH’s native Open In cannot be extended by third parties: through a unified button group and registration contract, downstream plugins only need to focus on “how to detect and open their own applications.” If your workflow requires multi-target, configurable “open session directory in external applications,” first install the foundation, then add targets according to DEVELOPMENT.md or downstream plugin instructions.
- Directory page: https://www.skillhub.cn/plugins/lovezi0/dsh-open-in-app-base
- GitHub: https://github.com/lovezi0/dsh-open-in-app-base
- npm: https://www.npmjs.com/package/dsh-open-in-app-base