YLingHao/dsh-codeui

该工作台专为程序员设计,用于代码审查与变更追踪,并配有对话导航栏,可一键跳转至对话中的任意历史轮次。

Project Overview项目介绍

dsh-codeui is a native Cordis UI plugin built exclusively for DeepSeek Harness, distributed and maintained primarily as a static npm package. It leaves DSH’s core chat interface completely untouched, and adds a complete end-to-end code review workflow for AI-generated code changes. After each full conversation turn, it automatically generates a clickable Review card below the output list, adds a resizable right-side panel for viewing turn-by-turn diffs, and includes a turn navigation rail to jump directly to the corresponding conversation, letting users review AI code changes just like they review a standard GitHub pull request.

The typical workflow starts after you complete an AI-assisted code editing turn in DeepSeek Harness. You will find the auto-generated Review card at the bottom of the output files list, and can click any listed file to open the right-side Review panel and inspect the full code changes. The panel supports unified diff view with standard IDE-style syntax highlighting, in-place editing of the original working file, and adjustable width via dragging the left edge. The turn navigation rail on the right lets you hover to see full turn details and click to jump straight to that target conversation turn. This plugin is purpose-built for developers who regularly use DeepSeek Harness for AI-assisted coding, as it streamlines code review and history navigation.

This plugin is released under the open-source MIT license, and all Git operations performed by the plugin are read-only. It will never create new commits, modify existing files outside the current editing session, or switch Git branches without explicit user action. All edits are restricted to the current active workspace, and any file path outside this boundary will be rejected, while outdated file versions will prompt a reload before editing can continue. The primary supported installation method is via static npm package, though dynamic Cordis plugin installation is still available for compatibility with older DSH environments, and the static package is the actively maintained main line of development.

这是一个专为DeepSeek Harness(DSH)开发的原生代码审阅UI插件,目前以静态npm包作为主要分发和维护形式。它不改动DSH原生主对话窗口,补充了完整的AI代码修改审阅工作流,每轮对话结束会生成可点击的Review卡片,右侧面板按轮查看代码差异,轮次轨道支持跳转对应对话,让你像审阅GitHub PR一样查看AI修改的代码。

这款插件面向经常使用DSH进行AI辅助代码开发的用户,开发者完成每轮和AI的代码交互后,可在产物列表下方找到Review卡片,点击文件即可打开右侧Review面板查看代码差异。面板支持统一diff视图、语法高亮、直接编辑文件,左边界可拖动调整宽度,右侧轮次轨道支持悬停查看详情、点击跳转对话,提升代码审阅和回溯效率。

本插件遵循MIT开源许可协议,所有Git操作均为只读,不会修改提交、切换分支,编辑操作仅允许在当前工作区范围内进行,超出工作区范围的路径会被拒绝,文件版本过期会要求重新载入。安装优先推荐静态npm包方式,同时保留动态Cordis插件安装方式兼容旧环境,静态包是当前主要维护分支。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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:YLingHao/dsh-codeui

把 YLingHao/dsh-codeui 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-codeui (Code UI)

DeepSeek Harness 代码审阅工作台:每一轮对话结束都会生成一份可点击的 Review 卡片;右侧 Review 面板按轮查看文件差异,右侧轮次轨道负责对话跳转,像看 GitHub PR 一样审阅 AI 修改的代码。

A code-review workbench for DeepSeek Harness: every turn ends with a clickable Review card, the right-side Review panel shows per-turn diffs, and the turn rail jumps back to the exact conversation — review AI code changes like a GitHub PR.

中文 | English


中文

项目简介

dsh-codeui(内部名 codeui)是 DeepSeek Harness 的 Cordis UI 插件,当前以静态 npm 包为主要安装与维护形态。它不重做主对话窗口,而是补齐代码审阅场景的完整链路:

  • 工作区资源管理器:文件树 + 只读 Git 状态标记(M / A / D / R / U / !)、分支、领先/落后信息。
  • 右侧 Review 面板:默认单栏(统一)diff,双栏保留;统一视图默认只显示修改块和前后 3 行上下文,点击“统一”可切换完整文件;支持改前 / 改后 / 当前三种视图、累计 patch 导出;面板左边界可拖动,宽度范围 20%–60%(默认 42%),右边界紧贴窗口右缘。
  • 接近 IDE 的代码显示:Review 使用完整文件行号,统一视图只有一列行号;新增 / 删除行使用 Codex 风格的绿色 / 红色背景和左侧深色竖条,并提供 VS Code 风格的常用语法高亮。
  • Review 内编辑:点击“编辑”可直接修改当前磁盘文件;编辑器保留行号和语法高亮,600ms 自动保存,失焦保存,支持 Ctrl+S / Cmd+S 立即保存。保存请求绑定当前工作区,并使用版本令牌防止覆盖其他程序或 AI 的并发修改。
  • 每轮结尾 Review 卡片:位于每轮产物列表下方,显示 Edited N files、总增删行数、文件路径和每个文件的 +/-;默认展开两行文件,可悬停滚动查看全部;点击文件直接打开对应 Review 面板。
  • 右侧轮次轨道:细/粗横线交替表示轮次;悬停提问行弹出该轮文件详情卡(轮次、状态、文件详情、文件数量、任务时长,默认显示 3 个文件并带滚动条);点击文件打开 Review 面板;点击轮次则跳转对话。对话跳转只由轨道触发,Review 面板中的轮次选择不会滚动对话。

功能亮点

  • 捕获 write、edit、str_replace_editor(create / str_replace / insert)。
  • Host 会扫描完整持久化会话日志,为未加载的历史轮次也提供文件修改详情。
  • 历史轮次使用完整操作集合重建改前 / 改后快照;大段删除再生成的内容会用稳定锚点对齐,减少虚假的整段 +/-。
  • 卡片和 Review 面板使用同一份重建结果统计增删行数;没有实际变更的文件不会再显示为 +0 -0。
  • 点击未加载轮次时自动向上滚动对话、自动点击“加载更早”,直到目标轮次进入当前窗口后定位高亮。
  • Review 面板与轨道共享全量轮次历史;轮次选择器始终显示所有轮次。
  • 设置项持久化到 localStorage:资源管理器、Review 面板、Git 标记、插件语言。
  • 全部 Git 操作只读:不写入、不提交、不切换分支。
  • 编辑写入只允许当前工作区范围;工作区外路径会被拒绝,文件版本过期时要求重新载入。

安装(静态插件,推荐)

本仓库按 npm 包规范组织,包名为 dsh-codeui。以下命令直接从 GitHub 安装,无需先注册或发布 npm;只有希望用户执行 npm install dsh-codeui(短名安装)时才需要发布到 npm registry。

第 1 步:安装包

dsh plugin --profile web add github:YLingHao/dsh-codeui

或手动安装:

cd "$DSH_HOME/profiles/web"
pnpm add github:YLingHao/dsh-codeui

第 2 步:注册插件(二选一)

方式 A:作为 bundle 注册(本仓库自带 cordis.patch.yml)

编辑 $DSH_HOME/profiles/web/package.json,在 dsh.profile.bundles 末尾加入 dsh-codeui:

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-dingtalk 下一个 Next gh-tea-npm-dsh →