Preface¶
When developing agents or projects in DeepSeek Harness (DSH), it is often necessary to hand over the current workspace directory to local editors or tools such as Zap, Qoder IDE, IntelliJ IDEA, Obsidian, or HBuilderX. DSH comes with the @deepseek-ai/dsh-host-open-in-app control, but its application catalog is fixed at build time. External plugins cannot append entries to this table, nor can they extend the list via configuration. The community plugin dsh-open-workspace-any-app (maintainer: F1yBear) adds an independent “Open in Other Apps” button at the session header, coexisting side-by-side with the built-in control. It declares applications via YAML and hands the workspace directory to the selected app.
What is this¶
- Name:
dsh-open-workspace-any-app(npm display name: DSH Open Workspace In Any App) - Category: Client Plugin
- Version (package.json): 0.1.0
- License: MIT
- Engine Requirements:
dsh>= 0.1.7-rc.1; Node ^22.19.0 or >= 24.0.0
The plugin registers its own control at the session header: the button displays the icon of the currently selected application, and clicking it opens the current workspace directory with that app. The built-in open-in-app and this plugin do not block each other; each manages its own area.
Differences from built-in open-in-app¶
The built-in control’s OPEN_IN_APP_CATALOG is a module-level constant that is not exported. Its resolution relies on private host internals, and Config only contains a timeout field with no application list. Applications not listed in the official table cannot be added via configuration.
| This Plugin | Modifying Built-in Whitelist | |
|---|---|---|
| Custom Editor Appearance | Independent button listing all declared apps | Integrated into built-in dropdown |
| Modifying Official Installer | No | Requires modifying asar |
| Breaking Code Signing | No | Yes |
| After DSH Update | Config and plugin retained | Needs to be redone |
| Coexistence with Built-in Menu | Two controls side-by-side | Single control |
Core Features¶
Interaction¶
- The button displays the app icon directly, eliminating the need to expand a menu to identify the target.
- Remembers the last selection (across sessions and browser restarts); the current item in the menu is marked with a check.
- The “Manage Apps…” button at the bottom of the menu opens a dialog: allows one-click addition of installed apps found in the “Discovered” section that are not yet in the menu; each item can be removed (including items declared in
cordis.patch.yml); removed items can be restored. Additions and deletions take effect immediately without restarting DSH. - The dialog has a fixed window (card height max ~520px) with the list scrolling inside; “Discovered” defaults to showing only the first 6 items when the search is empty, with others accessible via the top search box; search filters all three sections (“In Menu / Removed / Discovered”), and truncation is disabled when keywords are present.
Configuration and Resolution¶
The application list is written in cordis.patch.yml under config.apps, or overridden in ~/.dsh/profiles/desktop/cordis.patch.yml.
Locators are tried in order, and the first one verified locally wins:
| kind | Meaning | Default Launch Method |
|---|---|---|
app |
Absolute path to application bundle | open (macOS uses LaunchServices) |
file |
Absolute path to executable file | argv |
cli |
Command in PATH | argv |
app-paths |
Windows Registry App Paths | argv |
Under platforms, a specific platform key entirely replaces that platform’s locators rather than merging with the default. Icons can be provided via iconBundle (converts .icns from the bundle to PNG) or iconPath; if the icon cannot be retrieved, the route returns 404, but the menu item is retained.
Security and Behavior¶
The route first passes through connection.requestRejection (Host/Origin fencing, browser authentication), and the launch interface then validates the JSON body: app/path must be strings, and the path must be an existing absolute directory. The route returns 503 if connection is missing. The subprocess environment strips variables containing KEY/PASSWORD/SECRET/TOKEN, DSH_*, NODE_OPTIONS, NODE_PATH, etc.
SSH sessions do not probe local applications; a failure in a single locator does not affect other menu items; resolution has a resolveBudgetMs (default 15s) budget. If exceeded, it returns the completed portion and may include truncated: true.
Installation and Activation¶
Install this package via the DSH plugin page or via the Agent using plugin_manager. Newly installed JS modules require a reload; restart DSH after installation.
Post-installation mechanism (as per README):
package.json’sdsh.bundle.patchpoints tocordis.patch.yml, which the Profile applies as a patch layer;- The patch’s
insertaddsdsh-open-workspace-any-appto the Profile; - The
dsh.clientdeclaration allows the browser side to load theexports["./client"]client artifact.
Community Directory Page: SkillHub - dsh-open-workspace-any-app. This site is an independent ecosystem directory and has no official affiliation with DeepSeek or High-Flyer.
Typical Configuration Examples¶
The following declares Zap in cordis.patch.yml or the user profile’s cordis.patch.yml, and sets a launch watch window:
- id: open-workspace-any-app
name: dsh-open-workspace-any-app
config:
launchWatchMs: 1000
apps:
- id: zap
label: Zap
locators:
- kind: app
paths:
- /Applications/Zap.app
- ~/Applications/Zap.app
Prefer CLI, fallback to app bundle if not found (IntelliJ IDEA example):
- id: idea
label: IntelliJ IDEA
iconBundle: /Applications/IntelliJ IDEA.app
locators:
- kind: cli
command: idea
- kind: app
paths: [/Applications/IntelliJ IDEA.app]
When launching via argv: if no argument contains {path}, the workspace directory is appended to the end; if an argument contains {path}, it is replaced in that position. If launch is omitted: app locators use open, others use argv.
Common configuration fields (default values see README):
| Field | Default | Meaning |
|---|---|---|
apps |
[] |
Declared apps; order defines menu order |
probeTimeoutMs |
10000 |
Single locator resolution timeout |
iconTimeoutMs |
10000 |
Icon extraction timeout |
launchWatchMs |
1000 |
Observation window for early launch failures |
resolveBudgetMs |
15000 |
Total budget for a single resolution |
storeDir |
<DSH home>/open-workspace-any-app |
Storage directory for apps added via UI |
Duplicate ids will cause an error during the composition phase.
Apps added via the UI and the hidden list are saved in <DSH home>/open-workspace-any-app/apps.json; deletions are recorded as hidden without rewriting the handwritten YAML, allowing for reversible restoration.
Use Cases and Notes¶
Suitable for: Users who need to open the current workspace in IDEs, note-taking apps, or tools not in the built-in list with one click within a DSH session; who want to share a config across multiple machines while only showing apps resolved on the local machine; who want to coexist with the official open-in-app without modifying the asar.
Notes:
- The plugin runs with the current DSH process privileges, and the launch route spawns subprocesses locally; before installation, you should review the source code and MIT license on GitHub to ensure you accept its behavior and security design.
- Only apps declared in the config or added via the UI that resolve successfully on the local machine will appear in the menu.
- The dependency surface is intentionally narrowed: except for
@deepseek-ai/schemastery, host capabilities are obtained via the cordis context (webServer,connection,subprocess) to reduce the risk of import failures caused by version mismatches with the Profile.
The maintainer’s repository currently has 1 GitHub star (based on directory page clues); features and details are subject to the README.
Reference Links¶
- Directory Page: https://www.skillhub.cn/plugins/F1yBear/dsh-open-workspace-any-app
- Source Code and Documentation: https://github.com/F1yBear/dsh-open-workspace-any-app