快速了解
它能做什么
为 DeepSeek Harness 提供 Review 标签页,用于审查工作区改动并执行需确认的 Git 操作。
本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。
Web Profile
DeepSeek Harness 0.1.2-rc.1 through 0.1.6-alpha.1; Node >=23.6
证据已验证
核对日期 2026/9/15 UTC 14:19
有代码证据的贡献
它为 DSH 增加什么
在会话中新增 Review 标签页,用于查看工作区差异、提交历史、评论、文件预览和需确认的 Git 操作。
机制证据 ↗选择前先看
DSH Git Review 会在 Web 会话视图中、Chat 和 Trajectory 旁新增 Review 标签页。它可用可筛选文件树、文件差异、提交图、历史记录、行级评论和预览来查看工作区相对 HEAD 或任意两个引用的变化;同一页面还提供受保护的 Git 操作,包括暂存、提交、推送、分支、标签、暂存改动和冲突处理。
适合谁
在本地 Git 工作区中审查智能体改动,并希望不离开 DeepSeek Harness 会话即可管理改动的 Web 用户。
常见任务
- 以统一、并排或完整文件差异查看改动,并搜索差异内容。
- 查看提交历史、blame、文件历史和每个提交的差异。
- 在差异行添加评论并放入编写器草稿。
- 在确认后暂存指定区块、提交、推送、管理分支或暂存改动,并处理合并冲突。
- 从文件树预览 Markdown、图片、SVG、HTML、PDF 和图片差异。
权限与数据
通过宿主内受围栏保护的 Git API 操作当前会话工作区中的 Git 仓库。
权限- 读取工作区文件、Git 引用、差异、历史和文件版本。
- 在明确确认后,可执行暂存、丢弃、提交、推送、分支修改、重置、还原、标签、暂存改动和冲突处理等 Git 写操作。
- 可为 Office 文档预览启动外部应用。
- 按工作区保留评论草稿。
- 文档说明宿主路由被限制在会话工作区仓库内,并会在服务端重新解析引用。
- 宿主 PATH 中必须有 Git。
- 推送、获取、拉取及远程跟踪可能与仓库已配置的 Git 远程端通信。
- 未声明凭据要求;Git 远程操作可能使用宿主已有的 Git 身份验证。
局限
- 需要 DeepSeek Harness 0.1.2-rc.1 至 0.1.6-alpha.1、Node >=23.6,以及宿主 PATH 中的 Git。
- 在非 Git 仓库中,它提供文件浏览和一键初始化 Git,而不是完整审查工作台。
- 该包声明了会执行构建的 prepare 生命周期脚本。
- 大型视图会受上限或截断影响,包括 20,000 行渲染上限、单文件 2 MiB 差异上限,以及大型 Git 响应和预览各 8 MiB 上限。
DSHub 已核对
- 固定提交中的 DSH bundle manifest 和 Cordis patch 已通过结构验证。
- manifest 声明了 Web 客户端及文档所列的 DeepSeek Harness peer dependency 范围。
- README 记录了 Review 标签页、受围栏保护的 Git API、确认机制、支持的操作和安装命令。
DSHub 未核对
- 本次收录未实际执行安装或运行时行为。
- 未审计 npm Registry 包的具体内容。
- 未提供针对特定 Harness 构建或 Git 远程端的成功兼容性测试。
固定版本安装
安装 DSH Git Review
这个Plugin Bundle没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。
维护者原文
项目 README
DSH Git Review
<p align="center">English | <a href="README.zh.md">中文文档</a></p><p align="center"> <a href="https://www.npmjs.com/package/dsh-git-review"><img src="https://img.shields.io/npm/v/dsh-git-review?style=flat-square" alt="npm version"></a> <a href="https://www.npmjs.com/package/dsh-git-review"><img src="https://img.shields.io/npm/dt/dsh-git-review?style=flat-square" alt="npm downloads"></a> <img src="https://img.shields.io/badge/dsh-plugin-4D6BFE?style=flat-square&logo=deepseek&logoColor=white" alt="dsh plugin"> <img src="https://img.shields.io/badge/dsh-0.1.2--rc.1..0.1.6--alpha.1-4D6BFE?style=flat-square" alt="harness 0.1.2-rc.1 through 0.1.6-alpha.1"> <img src="https://img.shields.io/badge/platform-web-8A9CF5?style=flat-square" alt="platform: web"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square" alt="License: MIT"></a> <img src="https://img.shields.io/badge/i18n-zh%20%7C%20en-success?style=flat-square" alt="i18n: zh | en"> <a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome DSH Plugin"></a> <a href="https://github.com/HaoyueQin/dsh-git-review/graphs/commit-activity"><img src="https://img.shields.io/github/commit-activity/t/HaoyueQin/dsh-git-review?style=flat-square" alt="Commit activity"></a> <a href="https://github.com/HaoyueQin/dsh-git-review/commits"><img src="https://img.shields.io/github/last-commit/HaoyueQin/dsh-git-review?style=flat-square" alt="Last commit"></a> </p>A Review tab plus fenced git workbench for DeepSeek Harness: everything an agent changed, laid out for a decision — file tree, diffs, commit graph — with guarded git operations in the same place.
<p align="center"> <img src="docs/demo.svg" alt="DSH Git Review demo" width="720"> </p>Screenshots
<p align="center"> <img src="docs/review-changes.png" alt="Changes view: syntax-highlighted file with the filterable tree" width="720"> <br> <em>Changes view — syntax-highlighted file with the filterable tree</em> </p><p align="center"> <img src="docs/review-graph.png" alt="Graph view: commit detail with side-by-side diff and word highlights" width="720"> <br> <em>Graph view — commit detail with side-by-side diff and word highlights</em> </p>What it does
DSH Git Review registers a Review tab next to Chat and Trajectory in the session view. It shows the workspace repository against HEAD — or any two refs — and lets you act on what you see without leaving the tab:
- Review first: filterable file tree with status badges, side-by-side / unified / full-file diffs, hunk folding, word-level change highlights, syntax coloring, and diff search across file names, diff text, and file content. Keyboard-first:
j/kmove between files,/focuses search. - Decide with history: a lane commit graph with per-commit files and diffs, blame gutters, per-file history, and reading any file version from history.
- Act under guard: stage / unstage / discard per file or per hunk, commit (plus amend, Ctrl+Enter), commit-and-push, and push; branches (create / switch / rename / delete / merge / track remotes) with fetch and pull; history operations (reset / revert / cherry-pick, per-commit actions from the graph); lightweight tags (create / delete / push); stash; and merge-conflict resolution (ours / theirs, continue / abort). Every write needs explicit confirmation, destructive ones ask twice, and everything locks while the agent is running.
- Close the loop: comment on any diff line and drop it into the composer draft, mark files reviewed (auto-cleared when the file changes again), and keep comment drafts per workspace.
- Preview files: markdown renders with the shell's own Markdown engine, HTML / images / SVG show inline, PDFs open sandboxed — a script-dependent HTML page gets a notice strip with an open-in-browser shortcut instead of sitting black — every preview has a source view toggle, and office documents open in your external apps from the tree's right-click menu.
- Picture diffs: image changes (PNG / JPG / GIF / WebP / BMP / AVIF / ICO / SVG) render as pictures right inside the diff view — 2-up (side by side, or stacked in unified), swipe, onion skin and a difference blend, with the source diff one click away.
Preferences (diff layout, default search scope, graph shape, matching, whitespace, syntax) live in the harness settings Plugins tab and sync instantly with the Review tab.
Install
From npm:
dsh plugin --profile web add dsh-git-review
dsh web
Or from a local tarball:
pnpm install
pnpm build
pnpm pack
dsh plugin --profile web add ./dsh-git-review-<version>.tgz # the exact filename pnpm pack prints
dsh web
Requires DeepSeek Harness 0.1.2-rc.1 through 0.1.6-alpha.1 (prerelease series are pinned one by one in peerDependencies) and git on the host PATH. Outside a git repository the tab offers file browsing with one-click git init instead of the review workbench — never a blank screen.
Checks
pnpm typecheck # strict, noEmit
pnpm check:parse # pure-function regression (Node >= 23.6 native TS stripping)
pnpm check:git # real-git fixture integration (repositories under .tmp-check-git/)
pnpm build # lib/index.js (node) + lib/client.js (browser factory bundle)
How it works
- Host half: an in-process cordis plugin serving a fenced prefix route for versioned API actions over JSON (non-JSON bodies get 415, which also closes the classic no-cors write vectors). Every path is fenced inside the session workspace repository, every ref is re-resolved server-side, commit ids only travel as 40-hex, and GIT_DIR-style environment hijacks are scrubbed.
- Client half: a conversation-view slot component; the host route is optional — without it the tab says so instead of erroring.
- Scale guards: 20k-row render cap, 2 MiB per-file diff cap, 500-commit graph pages with load-more, an 8 MiB streaming byte cap on the largest git answers plus a separate 8 MiB preview cap (both truncate instead of buffering whole), and exact-count probing within a 32 MiB per-status budget.
- Interface languages: Simplified Chinese and English, following the harness locale; dark and light themes via semantic tokens.
Activity
<p align="center"> <a href="https://gitstock.org/HaoyueQin/dsh-git-review"><img src="https://gitstock.org/HaoyueQin/dsh-git-review/stock.svg" alt="HaoyueQin/dsh-git-review GitStock K-Line Chart"></a> </p>MIT © HaoyueQin
有意识地管理
安装与管理
前置条件与目标 Profile
目标: Web Profile
交付方式: Git Bundle — HaoyueQin/dsh-git-review#a99344b6c2f8c6504d9783ae9510452925a5cfe7。
验证、更新与移除
显示生命周期命令
dsh plugin --profile web list兼容性与访问范围
DeepSeek Harness web plugin; requires Git on the host PATH: DeepSeek Harness 0.1.2-rc.1 through 0.1.6-alpha.1; Node >=23.6。
风险事实
证据与编辑审查Manifest、Bundle patch、分发与新鲜度
不可变证据
审查状态与源码活动
安装前请检查 Git 写入权限,尤其是会话工作区配置了远程仓库时。
AI 审查于 2026/9/15 UTC 14:20。GitHub 事实核对日期: 2026/9/15 UTC 14:20。
自当前证据基线以来,没有记录到重要源码变化。