dsh-git-status-pill: The Floating Git Status Bar in Harness Sessions

Introduction

When running agents in DeepSeek Harness (DSH), the workspace is often a Git repository: you need to confirm the current branch, the volume of uncommitted changes, and create a Pull Request at the appropriate time. This information is typically scattered across terminals or IDEs, out of sight from the main Harness interface. The community plugin dsh-git-status-pill (maintained by luigiinred) turns Git summaries into a frame-level floating component. It attaches to the shell.overlay slot of the web client, avoiding obstruction of the main interface interactions, and comes with an editable Create PR workflow.

What is this?

dsh-git-status-pill is a client-side plugin for DSH: it displays a draggable “status pill” in the bottom right corner (default position) of the entire application frame under the web profile. The Host side reads the Git status of the current session’s workspace via an HTTP route; the Client side polls this route and renders the UI. The original description is: Floating git status pill for DeepSeek Harness: live branch, +/- line changes and a Create PR prompt.

Package version 0.1.0, License MIT, requires Node >= 20, and the compatibility declaration for Harness is dsh >= 0.1.0-rc.5 (see package.json).

Core Features

The following capabilities are derived from the project README, categorized by interface and data.

Real-time Git Summary

For the workspace repository bound to the current session, the plugin live-displays:

  • Branch name and repository name
  • Line-level additions/deletions (+/- based on git diff HEAD --shortstat)
  • Number of modified files, number of untracked files, upstream, and ahead/behind status
  • Availability of gh (GitHub CLI) in the Host environment

Create PR Panel

When expanded, it allows editing the PR title and provides:

  • The generated gh pr create command
  • Prompt text that can be handed directly to an Agent

Copying prioritizes navigator.clipboard, falling back to a selectable textarea if that fails.

Interaction and Mounting

  • Rendered in the Harness shell.overlay: a full-frame-width, default click-through overlay floating above all columns.
  • Drag to reposition via the handle; click ✕ to hide.
  • For non-repository workspaces: scans for .git in the workspace and its parent directories, lists available repositories as chips, and provides an absolute path input (The README notes that scanning only downwards would miss sibling repositories, hence the inclusion of parent directories).

Sandbox and Access Denial

If the Harness sandbox refuses to read paths outside the session workspace, the response payload will include denied: true rather than silently displaying as zero.

Installation and Activation

The installation command must use the exact text from the README; do not construct github:owner/repo formats on your own.

1. Install the package

Install from the registry:

dsh plugin --profile web add dsh-git-status-pill

Or install from a local checkout / tarball (replace the path with your absolute path):

dsh plugin --profile web add /absolute/path/to/dsh-git-status-pill

dsh plugin … add forwards to pnpm within the profile directory, and the package will enter that profile’s node_modules.

2. Write to bundles

Confirm that dsh.profile.bundles in $DSH_HOME/profiles/web/package.json includes this package, for example:

{
  "dsh": {
    "profile": {
      "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-git-status-pill"]
    }
  }
}

This list is used to apply the package’s cordis.patch.yml, inserting the Host line:

- insert:
    - id: git-status-pill
      name: dsh-git-status-pill

3. Restart the web profile

After restarting, the pill should appear in the bottom right corner of the frame (default DEFAULT_POS).

The README Status section states: The business logic has been verified on real repositories, but module packaging, cordis.patch, and HTTP routes have not yet been fully tested end-to-end within a profile installation; it is recommended to treat 0.1.0 as an initial release and check the run card and browser console after installation.

Typical Usage

  1. Open a Harness session with a Git workspace in the web profile and confirm that the status pill appears in the bottom right corner.
  2. View the branch and +/- line changes; when a PR needs to be created, open the Create PR area, modify the title, and copy the gh pr create command or Agent prompt.
  3. If the session directory is not a checkout, select/enter the target repository in the repository chip or absolute path field provided by the pill before reading the status.
  4. If gh is unavailable, follow the on-screen instructions; Create PR can still be proceeded via the Agent prompt.

The Host and Client share the default route /git-status-pill/status; the Client polling interval POLL_MS defaults to 4000 ms. Both are constants at the top of lib/index.js and lib/client.js. After modification, ensure the route (kind, path) is unique within the composition, otherwise an error will be thrown during registration.

Implementation Details (Optional Reading)

Side File Mechanism
Host lib/index.js ESM Cordis plugin, inject: ['webServer'], registers an exact HTTP route, reads Git via ctx.shell
Client lib/client.js window.__ModuleLoader__ bundle, injects slots, occupies shell.overlay, fetch polls the Host route
Composition cordis.patch.yml Inserts the Host line when the bundle is applied

The README explains: The conventional bridge for Host→Client on Harness is the typert Remote, but the current package does not include @deepseek-ai/dsh-typert-generator. Hand-writing the generator descriptor is fragile, so this plugin chooses plain HTTP. The trade-off is that it does not participate in typert’s scope and schema validation.

Use Cases and Notes

Who it is for: Developers who frequently modify Git repositories within the DSH web client, wish to see the branch and diff scale at a glance, and want to quickly generate PR commands or Agent prompts.

Permissions and Security: The plugin runs with the permissions of the current DSH process; the Host executes Git (and detects gh). Please read the source code and MIT license of the GitHub repository before installation to determine whether to include it in your profile.

Ecosystem Note: DSH adopts an “everything is a plugin” extension approach; the SkillHub directory page is a community collection site and has no official affiliation with DeepSeek / High-Flyer.

Links

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

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

Xiaoye