dsh-open-in-androidstudio: One-click open workspace in Android Studio from DSH session

Preface

When running agents or modifying projects within DeepSeek Harness (DSH), the working directory often resides in the session’s workspace. If you are simultaneously developing for Android on Windows, the common practice is to manually launch Android Studio, then select the directory or drag it in from the file explorer—a multi-step process prone to opening the wrong version (especially when stable and preview versions coexist). The DSH community plugin dsh-open-in-androidstudio integrates this step into the “Open In…” button group already present in the session header. By selecting the Android Studio target, the corresponding locally installed version is launched directly with the current session directory. The following section introduces what it is, how to install it, how to use it, and the usage boundaries.

What is this

dsh-open-in-androidstudio is a third-party DSH plugin maintained by lovezi0, with the repository located at github.com/lovezi0/dsh-open-in-androidstudio. It does not handle the rendering of the buttons and menus in the session header—that part is uniformly handled by the base plugin dsh-open-in-app-base; this plugin only registers the Android Studio “open target” and implements the “local availability” check and “IDE launching” logic on the host side.

The current package version is 0.1.1, licensed under MIT, with a declared DSH compatibility range of >=0.2.1-0 <1.0.0 (README badge indicates DeepSeek Harness 0.2.1-rc.2). The SkillHub directory classification is Client.

Core Features

Integration Location and Multi-Version Support

The target is integrated into the session header’s “Open In…” button group; dimensions and icon specifications are handled by the base plugin. The plugin first probes all local Android Studio installations, creating one menu item per version. Versions are sorted from newest to oldest, with the latest version being the default menu selection. If both stable and preview versions exist locally, clicking the respective item will open the current workspace using that specific version.

Automatic Detection and Supplementary Paths

Detection order (summarized from README): Explicit configuration → Registry uninstall entries and App Paths → .home records in system directories for various versions → Scanning common installation directories. System-level and user-level default paths, non-system drives, <Drive>:\Android Studio\<Version>\, and layouts for Toolbox / Chocolatey / Scoop are all covered in the documentation. If detection fails, the target will not appear in the menu (effectively unavailable in remote or SSH scenarios). You can also additionally specify installation roots in the panel or profile, which are merged with automatic results and do not replace auto-detection.

Dual-End and Platform

Web profiles and Desktop (Electron) profiles use the same channel and codebase (README states “dual-end consistency”). Windows Only: This target is permanently unavailable on non-Windows platforms.

Security Behaviors

The host-side router only accepts same-origin requests from loopback/trusted hosts; the target directory must be a local absolute path that physically exists; the version list is not sent to the client (see the “Security Fencing” section in the README).

Installation and Activation

Prerequisite: Base Plugin

You must install dsh-open-in-app-base first (for the session header “Open In…” button group; panel configuration depends on openInAppState provided by the base plugin starting version 0.2.0). This plugin does not bundle the base plugin; if the base is not installed, this plugin will not throw an error, but no targets registered by it will appear in the menu.

dsh plugin --profile web add dsh-open-in-app-base
dsh plugin --profile desktop add dsh-open-in-app-base

Installing the Android Studio Target Plugin

The project does not publish npm packages yet; installation from source or git is required (the repository includes lib/, README states zero-build).

Local Path Installation (execute in the parent directory of the repository, pointing file: to this repo):

dsh plugin --profile web add file:./dsh-open-in-androidstudio
dsh plugin --profile desktop add file:./dsh-open-in-androidstudio

Install from GitHub (replace the tag with the actual version tag released by the repository, e.g., corresponding to the version in package.json):

dsh plugin --profile web add 'github:lovezi0/dsh-open-in-androidstudio#vX.Y.Z'

Development & Debugging (execute in the repository root directory, changes take effect immediately):

dsh plugin --profile web add .

After loading, use the following command to confirm if this plugin section appears in the configuration layer:

dsh --profile web --dump-config

The output should contain # == dsh-open-in-androidstudio.

Typical Usage

  1. Complete the installation of the base plugin and this plugin, and use DSH on a Windows local machine (either web or Desktop profile).
  2. Open a session and ensure the workspace directory is the project root you wish to edit in the IDE.
  3. Find “Open In…” in the session header and select Android Studio from the menu (select the corresponding version entry if multiple versions exist).
  4. The host will launch the Android Studio version with the current session directory as the argument.

If auto-detection fails to find portable or non-standard paths, you can supplement the path in the Plugin Management Panel: Sidebar “Plugins” → This plugin → “Additional Android Studio installation paths”, fill in line by line and save (values are hosted by the base plugin and shared across profiles). You can also write studioHome in the profile’s cordis.patch.yml (merged with panel configuration):

- id: open-in-androidstudio
  config:
    studioHome:
      - C:\Tools\AndroidStudio
      - C:\Portable\Android Studio

If left blank, only auto-detection is used; invalid paths will trigger warnings in the host log.

Scenarios and Notes

Target Audience: Developers managing Android-related workspaces with DSH on Windows who want to enter Android Studio from the session header in one click; specifically for situations where multiple local versions coexist and explicit selection is needed.

Permissions and Trust: The plugin runs with the current dsh process permissions. Before installation, please read the repository source code and the MIT license to determine if it meets your environment’s security requirements. The community directory SkillHub Plugin Page has no official affiliation with DeepSeek / High-Flyer. The DSH ecosystem emphasizes “everything is a plugin”, so third-party plugins require your own discernment.

Others: Node engine requirement is >=20; for packaging and distribution, you can use npm pack to generate a tgz and then install via dsh plugin add ./<package-name>-<version>.tgz—details can be found in the repository README under “Development and Distribution”.

Conclusion

dsh-open-in-androidstudio condenses “Open current session workspace with Android Studio” into a single target within the session header’s “Open In…” menu, with a clear division of labor with dsh-open-in-app-base: the base handles the UI, while this plugin handles detection, configuration, and launching on Windows. For documentation or to submit issues, please refer to the GitHub Repository and SkillHub Directory Page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye