Introduction¶
When developing agents with DeepSeek Harness, you frequently need to switch between multiple sessions and working directories. Without a clear indicator of the current state, it’s easy to get confused about the context. Existing status bars either display too little information or require manual configuration, failing to intuitively reflect the current Git repository status.
Below is an introduction to a plugin that displays the current session’s Git status at the bottom of DeepSeek Harness.
Plugin Overview¶
dsh-statusline is a plugin for DeepSeek Harness that provides a bottom status line display, maintained by Magicqy (author Yong). It reads the Git repository information of the current session and displays key information such as branch, worktree, directory changes, and sync status at the bottom of the interface.
Core Features¶
The plugin displays a single line of status information at the bottom of DeepSeek Harness, based on Git command output:
- Branch: Displays the current Git branch name, or a short commit hash if in a detached HEAD state
- Worktree: Always displayed, showing the checked-out directory name; hover with mouse to view the full repository path
- Directory: Shows the current session’s working directory, displaying only the last path segment; hover to view the full path
- Changes: Retrieves change statistics via
git status --porcelain=v2, distinguishing modifications (*), additions (+), untracked (?), and deletions (-), counted by path - Sync: Displays ahead/behind counts in the form
↑a ↓b, only shown when values are non-zero
If not in a Git repository, it displays the directory and “not a git repository”. If the git command is missing or does not respond within 5 seconds, it displays git not found or git timed out, rather than disguising the state as a non-repository.
The status line is only displayed when a session containing a working directory is open. The blank start screen will show no content.
Installation and Enablement¶
The plugin is distributed via a GitHub repository and supports both desktop application and command-line installation methods.
Desktop Application Installation¶
- Clone the repository locally:
git clone https://github.com/Magicqy/dsh-statusline
-
Open DeepSeek Harness, go to Plugins → Add plugin, and select the cloned folder.
-
Restart DeepSeek Harness.
CLI Installation¶
If using the dsh command line, you can install it to a specified profile:
dsh plugin --profile <profile> add github:Magicqy/dsh-statusline
Restart DeepSeek Harness after installation. A page refresh will reload the browser-side code but will not reload the Host-side code.
Plugin Marketplace¶
Once this repository is included in the awesome-dsh-plugin directory, it can be installed directly from the GitHub source via the plugin marketplace.
Typical Usage¶
After installation, as long as the current session’s working directory is within a Git repository, the status line will be automatically displayed at the bottom. For example:
main *+0-0 ↑1 ↓0
This indicates:
- Branch: main
- Changes: 0 modifications, 0 additions, 0 deletions
- Sync: 1 commit ahead of remote
Hover the mouse over the directory or worktree name to see the full absolute path.
Use Cases and Notes¶
Suitable for developers who frequently switch between multiple Git repositories, especially when using DeepSeek Harness for agent development, as it helps avoid operational errors caused by context confusion.
The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installation. The plugin only performs read-only Git operations (rev-parse and status --porcelain=v2), ensuring privacy and security. Unless the environment variable DSH_STATUSLINE_REPORT=1 is set, no data will be written to disk.
The plugin requires DSH version >=0.2.2-rc.1 <0.3.0, and development testing was based on 0.2.2-rc.5. Due to the client reading specific structures of the sessions store (retainedBy, projectionsBySession), future versions may require updates.
Summary¶
dsh-statusline helps developers quickly grasp the current session’s repository information by displaying Git status in real time at the bottom of DeepSeek Harness, reducing errors caused by context switching. The plugin is lightweight with minimal dependencies, and both installation and usage are very simple.
- Directory page: https://www.skillhub.cn/plugins/Magicqy/dsh-statusline
- GitHub: https://github.com/Magicqy/dsh-statusline