DeepSeek Harness 插件

dsh-github-panel

Source Control and GitHub panel for DeepSeek Harness.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
PivotStackIntelligence/dsh-github
最近更新
2026年8月18日
分类
界面增强
GitHub stars
17
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/PivotStackIntelligence/dsh-github
插件名:dsh-github-panel
作者:PivotStackIntelligence

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-github

A Source Control and GitHub repository panel for DeepSeek Harness that mirrors the VS Code native Git Source Control view.

Features

  • Source Control tab — a third "Source Control" tab in the session view ring (alongside chat and trajectory); when active it fills the main area and splits into the SCM panel (left) and the diff viewer (right) with no overlay, shows only the current session's workspace, and switching back to chat restores the conversation.
  • Repository header — repository (workspace) name, current branch, ahead/behind counts, GitHub link, and refresh button.
  • Commit bar — multi-line commit message, Amend checkbox, Commit button with a dropdown (Commit / Commit & Push / Commit & Sync / Undo Last Commit), and a round Sync/Publish button with ↑n ↓n counts.
  • Change groups — STAGED CHANGES / CHANGES / MERGE CHANGES (untracked files live inside CHANGES), collapsible, with count badges and group actions (+ stage all / − unstage all / ↶ discard all). File status badges use VS Code colors: A green, M brown-yellow, D red, R/C blue, U green, ! yellow.
  • Diff viewer — side-by-side and inline modes with line numbers and added/removed coloring; the file header shows old path → new path. Conflict files expose Accept Current / Accept Incoming / Accept Both.
  • Discard with confirmation — discard a single file or all changes through an inline confirmation dialog (never a bare window.confirm).
  • Commits — searchable history (message/author), short SHA + subject + author + relative date + refs badges; expand a commit for full details and per-file diffs, with Copy SHA, Checkout Commit, Create Branch, and Create Tag.
  • Branches — current branch highlighted; checkout, rename, delete, merge-into-current, and rebase-onto.
  • Remotes — fetch/push URLs per remote; fetch, fetch (prune), add, and remove.
  • Tags — list, create, push, and delete.
  • Stashes — list, apply, apply & drop, drop, and view diff.
  • Merge / rebase state — continue and abort an in-progress merge or rebase from the panel.
  • Git output — a collapsible section of recent git commands and their (redacted) output.
  • Auto-refresh — refreshes on open, every 3 seconds while the tab is active (paused when switched away), and on window focus / visibility change; the lazy sections (commits, branches, remotes, tags, stashes) load on first expand and refresh with each status poll.

The plugin uses the repository's normal local Git configuration, SSH keys, HTTPS credential helpers, and Git remotes. It does not call the GitHub API, store GitHub tokens, implement OAuth, depend on GitHub CLI, or expose arbitrary shell commands. GitHub links open the corresponding browser pages; the Compare page is the handoff for creating a pull request. Git writes require an explicit user action, and repository state is reloaded after each operation.

Design notes

See [docs/ANALYSIS.md](docs/ANALYSIS.md) for the state model, VS Code Git alignment, local authentication boundary, and GitHub browser handoff design. The panel's visual design follows the DeepSeek design spec — see [docs/UI_DESIGN.md](docs/UI_DESIGN.md).

Requirements

  • DeepSeek Harness >=0.1.0-rc.6
  • Git available on PATH
  • A configured Git remote and credential helper for push/fetch/pull operations

Install from a local checkout

pnpm install
pnpm run build
dsh plugin --profile web add .

Restart the Web Harness after rebuilding the plugin. A third "Source Control" tab appears in the session view ring (next to chat and trajectory).

Development

  • Node.js >= 22.19
  • pnpm >= 9
pnpm run check

pnpm run check runs typecheck, lint, test, and build. CI runs the same command after pnpm install --frozen-lockfile.