1841220388zzzcccxxx-star/dsh-git-graph 预览 preview

1841220388zzzcccxxx-star/dsh-git-graph

嵌入式Git仓库图谱可视化插件(提交历史图/分支过滤/文件diff/VSCode式未提交改动)

Project Overview项目介绍

This is a native Git visualization plugin built exclusively for DeepSeek Harness (DSH). It embeds directly into the DSH web GUI’s conversation interface, so developers can manage Git repositories without leaving their current AI-assisted development session. To install the plugin, you edit your DSH profile’s package.json to add the plugin dependency, then add a bundle entry to cordis.patch.yml, run pnpm install, and restart DSH. Once installed, you can access it via the new “Git Graph” tab next to the default “Trajectory” tab on any existing conversation page in DSH.

It is targeted at developers who use DSH for AI coding and agent development, as well as any Git user who prefers to view commit history, branches, and uncommitted changes all in one interface. It works smoothly even for large repositories with thousands of commits, thanks to built-in paged loading that keeps the interface responsive. It supports all common Git operations right in the DSH interface, from viewing diffs and commit details to staging, committing, pushing, and branching, with confirmation prompts for all destructive operations that can cause permanent data loss.

The plugin is released under the permissive MIT open source license, so it is free to use, modify, and distribute without any cost or restriction. It includes an automatic update feature that checks for new versions on GitHub when you open the graph, and updates can be applied with a single click. Automatic updates keep a backup of your current installed version, so if an update fails for any reason, it will automatically roll back to the working previous version. All write operations require explicit user confirmation before execution, so you never have to worry about accidental changes to your local Git repositories.

这是一个专为 DeepSeek Harness (DSH) 开发的原生 Git 可视化插件,可直接嵌入 DSH 的对话界面,提供 GitHub 风格的提交历史图、分支管理、代码 Diff 展示,还有 VSCode 风格的未提交改动面板。AI 开发过程中无需切换到外部 Git 客户端,就能在同一界面完成全部 Git 相关操作。

这款插件面向使用 DSH 进行 AI 编程和 Agent 开发的开发者,也适合希望在单一界面查看提交历史、分支状态和工作区改动的 Git 用户。对于习惯用命令行但需要更直观 Git 可视化工具的个人开发者和团队,它都能省去切换工具的麻烦,很好满足需求。

本插件采用 MIT 开源许可,可免费使用修改。安装时需要编辑 DSH profile 的 package.json 和 cordis.patch.yml,添加依赖和挂载配置后运行 pnpm install 再重启 DSH 即可使用。插件自带自动更新功能,发现新版本可一键更新,同时保留旧版备份更新失败可回滚。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 14 stars - an early-stage project星标 14,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:1841220388zzzcccxxx-star/dsh-git-graph

把 1841220388zzzcccxxx-star/dsh-git-graph 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-git-graph

🌏 中文 · English

🧭 一句话定位:DSH 生态里开箱即用的 Git 可视化工具。 在 DeepSeek Harness 对话界面内直接嵌入 GitHub 风格的提交历史图、分支管理、代码 Diff 与 VSCode 风格未提交改动面板——AI 开发时不用再切到别的 Git 客户端。

DeepSeek Harness(DSH)Web GUI 的嵌入式 Git 仓库图谱可视化插件。

在对话界面里直接查看、浏览、管理 git 仓库:提交历史图、分支过滤、提交详情、文件 diff、工作区状态、右键 git 操作,全部内嵌在 harness 界面中,无需离开当前对话。提交图一目了然,未提交改动像 VSCode 一样分组展示,一眼看清"改了什么、谁改的、要不要提交"。

适合谁:用 DeepSeek Harness / DSH 做 AI 编程、Agent 开发的开发者;想在同一个界面里同时看清提交历史、分支、工作区改动的 Git 用户;需要比命令行更直观的 Git 可视化工具的开发者与团队。

🔍 搜索关键词:DSH 插件 · DeepSeek Harness 插件 · Git 可视化 · Git 图谱 · 提交历史图 · 分支管理 · 代码 Diff · VSCode 风格改动面板 · Git 效率工具 · AI 编程助手

🛠 本项目由 AI 辅助开发(AI-assisted development)。

Git 图谱

📸 效果预览

Git 图谱演示

✨ 功能

  • 提交历史图:GitHub 风格提交列表,分支分组折叠、分支着色(本地与远程分支各有独立分组)
  • 跟随当前对话(自动识别工作区):自动定位当前对话的工作目录(v0.13 修复会话工作区识别)并显示其中的 git 仓库,切换对话自动跟随;非 git 仓库的对话显示空态提示,并可「🖥 在当前对话目录下查找 Git 仓库」一键扫描工作区及其子目录中的仓库(v0.13)
  • 📂 打开文件夹(v0.11):不局限于当前对话工作区——点击顶栏「打开」或在空态中点「打开文件夹」,可浏览磁盘(驱动器 → 目录逐层进入,带 git 标记),选择任意文件夹(如另一个工作区的仓库 B)查看其版本管理;添加过的仓库持久保存,顶部下拉随时切换,刷新后仍可继续查看
  • 分支过滤:勾选 = 显示该分支 · 不勾 = 完全隐藏(全部不勾选则列表为空)
  • 提交详情:提交信息、文件变更列表、单文件 diff、两次提交对比(Ctrl+点击)、📜 文件历史(查看单个文件的所有历史提交)
  • 未提交改动(VSCode 风格,常驻图谱顶部):已暂存 / 更改 / 未跟踪三组文件列表、状态徽标(A/M/D/R/U/?)、每文件 +/− 行数、点击行展开单文件 diff(语法高亮)、重命名 旧 → 新、未跟踪文件直接显示内容;☑ 分组开关可单独隐藏某组,面板与分组均可点击折叠;每行可 暂存/取消暂存/还原,顶栏 全部暂存/提交,勾选复选框可批量 暂存选中/取消暂存选中/还原选中/忽略选中/提交选中(破坏性操作执行前弹确认框);提交对话框内可 ✨ AI 生成提交信息(依据 diff 自动生成候选,可编辑)
  • 右键菜单:复制哈希/消息、查看详情、🏷️ 打标签(可改名/删除)、🌿 从提交新建分支、🌐 打开 GitHub 提交页、复制仓库路径、在文件管理器中打开
  • 远程/分支操作:顶栏 ⬇ 拉取(git fetch)与 ⬆ 推送(git push 当前分支,确认后执行);分支组头右键——本地分支可 🔄 切换 / ⬆ 推送 / 🗑️ 删除(已合并才可删,HEAD 受保护),远程分支可 ⬇ 拉取 / 复制远程分支名
  • 远程分支可见:远程分支组头始终显示(即使与本地完全同步),并标注「已同步」/「已包含」状态
  • 自动更新(按挂载形态降级):常规安装时打开图谱静默检查 GitHub 最新版本,发现新版本顶栏显示「🔄 新版本 vX.Y」,一键自动下载并替换插件文件(自动备份旧版,失败自动回滚),重启后生效;以 git 工作区(link:)挂载时自动隐藏更新按钮,改为提示 git pull,绝不改写 git 管理的文件
  • 状态记忆:分支过滤、☑ 分组开关、面板/分组折叠状态、主题自动保存,刷新后保留(v0.8 起键统一为 gg2-*,首次打开分支默认全部展开)
  • 多仓库切换:图谱页头部下拉快速切换多个仓库
  • 大仓库优化:提交列表分页加载(200 条/页 + 加载更多),上万提交也不卡
  • 键盘快捷键:Ctrl+F 搜索、Ctrl+/ 快捷键面板、Ctrl+B 折叠/展开全部分支组、↑↓/j/k 导航、Enter 详情、Esc 关闭
  • 自动刷新:页面可见时每 5 秒监听工作区改动与新增提交,自动更新统计与列表
  • 主题系统:自动跟随 / 深色 / 浅色,外加 8 种风格方案(与拾光记同款)——🌸 樱花(飘落花瓣)、🌊 海洋(波浪/气泡/鱼群)、🌲 森林(树木/落叶/萤火虫/蝴蝶)、🌙 夜空(星星/月亮/流星)、🍬 糖果(彩虹/彩带/棒棒糖)、💼 商务(几何/玻璃浮块)、✨ 星河(繁星/月亮/流星/地球)、🤖 科技(电路/齿轮/芯片),每种风格自带专属动态背景(海洋/科技/商务/糖果元素密度更高)
  • 挂载位置:会话页内「Git 图谱」标签(位于「轨迹」标签旁)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-plugin-lookatstudy 下一个 Next DshVibeLearning →