dsh-multi-git-repo-manager: Unified Management of DSH Multi-Git Repositories and Regular Directories

Preface

When developing agents or plugins in DeepSeek Harness (DSH), an engineering session often corresponds to multiple Git repositories, and may also include non-Git component directories. If every plugin maintains its own “target list, path attribution, and discovery logic,” it leads to redundant code and inconsistent behavior. Maintainer wuqingzhong2020 extracted the common management capabilities from the file review scenario into a standalone client plugin, dsh-multi-git-repo-manager (current version v0.1.4). This plugin provides a native “Multi-Repo Management” tab on the right side of the host and exposes unified workspace and file attribution services to other plugins.

What is this

dsh-multi-git-repo-manager is a common Git repository and non-Git directory management plugin for DSH. The Host service and Remote namespace are multiGitRepoManagerByWqz; the accompanying file review consumer is multiGitFileReviewByWqz (Repository dsh-file-review-tab-Multi-git-repository, v0.3.5 strictly depends on version 0.1.4 of this plugin). The management plugin can run independently; to use file review, both plugins must be installed and enabled. The engineering configuration uniformly adopts v2, and the Profile only records the project root index.

Category: Client. Community directory page: skillhub.cn Plugin Page. Source code and documentation: GitHub Repository. License: MIT.

Core Features

The following capabilities are derived from the repository README and feature list. Interface scopes not individually verified on specific platforms do not equate to full platform acceptance.

  • Unified Git and Regular Directory Management: Add, name, edit, and remove both types of targets; display counts for Git, non-Git directories, and unavailable items separately. Removing an entry only modifies the configuration; it does not delete the directory on disk.
  • Native Right-Side Tab: Uses the host’s sidebarRightTabs and content/title slots, requiring no third-party sidebar; hiding and switching tabs preserves the current form state.
  • Project-Level Configuration: Enable/disable multi-target scope, select whether to include the project root, written to dsh-multi-git-repo.json; automatically finds the nearest config file from project subdirectories.
  • Unified v2 Configuration: Explicit lists; rejects mismatched formats; does not provide manifest imports or format upgrades.
  • Direct Subdirectory Discovery: Configurable containers (e.g., project, project/plugins); preview generates candidates only, and items are managed only after being individually added to the list and saved.
  • Type and Status Checks: Identify .git files for Git roots and worktrees; retain diagnostic information when paths are missing or metadata is corrupted.
  • Session Temporary Targets: Paths outside the project use absolute paths, are valid only for the current session, and are not written to the project JSON; cleaned up upon agent release, plugin uninstallation, or process restart.
  • Common File Attribution: Deepest target takes priority; exposed via APIs like resolveTargetPaths for consumers to re-verify attribution before reading or writing paths.
  • Save and Linkage: Validate project identity and project file hash, atomic write, and reject stale saves; configuration changes can notify consumers in separate bundles to re-fetch the workspace.

The target interface is DSH Stable >= 0.2.0, with a 0.2.0-rc.2 test channel retained; the actual verified environment recorded in the README is Windows Desktop (Host 0.2.0-rc.2).

Installation and Activation

Installation and activation are two separate things: DSH 0.2 only loads plugins selected in dsh.profile.bundles; installing npm dependencies alone does not automatically load the management service.

DeepSeek Harness Desktop

Fully exit Desktop (including tray), and replace the sample path with the actual tgz location in PowerShell:

pnpm --dir "$env:USERPROFILE\.dsh\profiles\desktop" add "D:\Downloads\dsh-multi-git-repo-manager-0.1.4.tgz"

If using the accompanying file review, both local packages can be installed at once:

pnpm --dir "$env:USERPROFILE\.dsh\profiles\desktop" add "D:\Downloads\dsh-multi-git-repo-manager-0.1.4.tgz" "D:\Downloads\dsh-file-review-tab-multi-git-repository-0.3.5.tgz"

After restarting, confirm it is enabled on the “Plugins” page and open the management tab from the right-side “Getting Started” page. For public installation, download the agreed assets (e.g., the tgz corresponding to v0.1.4) from the GitHub Release.

Standalone Web Profile

In the management repository root, install using the local latest index:

$build = Get-Content ../../dist/latest/dsh-multi-git-repo-manager.json -Raw | ConvertFrom-Json
dsh plugin --profile web add ("../../dist/" + $build.history)

Once the Release is ready, a fixed URL can also be used:

dsh plugin --profile web add https://github.com/wuqingzhong2020/dsh-multi-git-repo-manager/releases/download/v0.1.4/dsh-multi-git-repo-manager-0.1.4.tgz

Using the review feature still requires installing and enabling the corresponding consumer; a restart of dsh web is required if hot reload is not available.

Desktop Directory Selection Start Path (Optional)

The native directory selection interface in Desktop 0.2.0-rc.2 lacks start path capabilities. If you want “Open” to locate based on an already filled path, you can run the compatibility script included in the package after fully exiting Desktop (modify the second argument if the installation directory differs):

node "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-multi-git-repo-manager\scripts\patch-desktop-directory-picker.mjs" "D:\app\DeepSeekHarnessDesktop\resources\app.asar"

Adaptation must be re-checked after host updates; installing the tgz does not automatically modify Desktop.

Typical Usage: Configuring a Project

  1. In the target project session, open “Multi-Repo Management” from the right-side “Getting Started” page. The project directory and project name are determined by the session and displayed as read-only.
  2. Click Add Repository or Directory, select Git or Non-Git Directory, fill in the name and path, or use Open to select a directory.
  3. Select whether to enable multi-target management and whether to include the project root. If there is no project file, click Generate New Config File; if a file exists, click Save Configuration.
  4. View the counts, sources, and statuses of the two types of targets below. After editing the disk JSON directly, click Reload Saved Configuration.

Project configuration file example (v2):

{
  "version": 2,
  "enabled": true,
  "includeProjectRoot": false,
  "repositories": [{ "name": "Core", "path": "core" }],
  "directories": [
    { "name": "LocalComponent", "path": "project/LocalComponent" },
    { "name": "LocalPlugin", "path": "project/plugins/LocalPlugin" }
  ],
  "discovery": { "containers": ["project", "project/plugins"] }
}

Git entries go in repositories, and regular directories go in directories. Fill in in-project paths in discovery containers, click Preview Discovery Results, and after clicking Add to List item by item, you must Save; the containers themselves are not automatically managed. External project targets must be added as current session temporary targets (absolute paths); a project configuration must exist first. Configuration limits are 1 MiB, 512 targets, and 32 discovery containers. For detailed steps and screenshots, see the repository’s Chinese User Guide.

For Reuse by Other Plugins

Consumers can declare a peer dependency in package.json and pin the version:

{ "peerDependencies": { "dsh-multi-git-repo-manager": "0.1.4" } }

The host injects multiGitRepoManagerByWqz via Cordis. Typical usage includes workspace(agent) and resolveTargetPaths(agent, [path]); attribution resolution should be called again before specific file operations, and Git capabilities should only be used for targets that are available and have capabilities.git set to true. On the browser side, obtain the Remote from sessions.scope(sessionId)?.get('remote.multiGitRepoManagerByWqz'). Stable service names can be imported from dsh-multi-git-repo-manager/service-names. See ARCHITECTURE.md for architectural boundaries.

Scenarios and Notes

Who it is for: Developers who need to uniformly manage multiple Git repositories and non-Git directories within DSH project sessions; when writing DSH plugins that rely on multi-target workspaces, you can reuse this plugin’s configuration, discovery, and file attribution without building a separate management tab.

Notes:

  • The plugin accesses the file system with the current DSH process permissions; read the source code and the MIT license before installation to independently assess the exposure scope of paths and sensitive directories.
  • This plugin does not clone, pull, initialize Git, or delete source code; removing configuration entries does not delete data from disk.
  • The interfaces and verification records declared in the README are subject to the maintainer’s documentation; if the Stable version, full Web host, or other platforms are not explicitly stated as accepted in the documentation, independent verification is required before use.
  • Community directories (like skillhub.cn) are independent sites and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem follows the “Everything is a Plugin” philosophy, and this introduction is not considered an official app store description.

Conclusion

dsh-multi-git-repo-manager consolidates the management, discovery, saving, and path attribution of multi-repo and non-Git directories into a single set of v2 project configurations and host services, and provides a native right-side management entry point to facilitate collaboration with consumers like file review. For further information, see the Directory Page and the GitHub Repository.

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

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

Xiaoye