dsh-github
已验证 · 实测可装 PivotStackIntelligence
功能简介
(无描述)
可用 — 实测通过,社区增长中
(无描述) 实测能干净安装、正常启动。社区在增长,是个稳妥选择。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
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,
Amendcheckbox,Commitbutton 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:
Agreen,Mbrown-yellow,Dred,R/Cblue,Ugreen,!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 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.
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.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-github」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
Web profile:
dsh plugin --profile web add dsh-github Headless(CLI)profile:
dsh plugin --profile headless add dsh-github 包信息
npm:dsh-github · 版本 0.1.0 · 实测环境 dsh 0.1.0-rc.6
实测报告
端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。