deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
YLingHao/dsh-codeui
A workbench for programmers to review code and track changes, featuring a conversation navigation rail for jumping to any earlier turn in the dialogue.该工作台专为程序员打造,旨在高效审阅代码并追踪变更历史。其内置的对话导航轨道可常驻显示,支持用户一键跳转至对话中的任意历史轮次,极大提升代码审查与上下文回溯的效率。
PROJECT TOPICS
PROJECT README
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.
dsh-codeui(内部名 codeui)是 DeepSeek Harness 的 Cordis UI 插件,当前以静态 npm 包为主要安装与维护形态。它不重做主对话窗口,而是补齐代码审阅场景的完整链路:
Edited N files、总增删行数、文件路径和每个文件的 +/-;默认展开两行文件,可悬停滚动查看全部;点击文件直接打开对应 Review 面板。write、edit、str_replace_editor(create / str_replace / insert)。localStorage:资源管理器、Review 面板、Git 标记、插件语言。本仓库按 npm 包规范组织,包名为 dsh-codeui。以下命令直接从 GitHub 安装,无需先注册或发布 npm;只有希望用户执行 npm install dsh-codeui(短名安装)时才需要发布到 npm registry。
dsh plugin --profile web add github:YLingHao/dsh-codeui
或手动安装:
cd "$DSH_HOME/profiles/web"
pnpm add github:YLingHao/dsh-codeui
方式 A:作为 bundle 注册(本仓库自带 cordis.patch.yml)
编辑 $DSH_HOME/profiles/web/package.json,在 dsh.profile.bundles 末尾加入 dsh-codeui:
{
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-codeui"
]
}
}
}
方式 B:写入 patch 层
编辑 $DSH_HOME/profiles/web/cordis.patch.yml(或全局 $DSH_HOME/cordis.patch.yml):
- insert:
- id: codeui
name: 'dsh-codeui'
dsh web
浏览器打开后建议 Ctrl+F5 强刷。已安装 dsh-market 的用户,可在 GitHub 仓库添加 dsh-plugin Topic 后从市场搜索安装。
动态安装保留为兼容方式,适合不能使用 npm 包的环境:
cordis_define 新建插件:kind: "new",idPrefix: "codeui"。code.host 填入 host.js,code.client 填入 client.js。注意:本项目当前以静态插件为主要维护线;动态版保留可用,但最新 UI 细节以静态版
lib/为准。
Review 打开右侧面板。设置 → Code UI:资源管理器、Review 面板、Git 标记、插件语言;设置自动保存。git rev-parse --show-toplevel
git -c core.quotepath=false -c diff.renames=false status --porcelain=v1 -z --branch
git -c core.quotepath=false diff --no-ext-diff --unified=3 HEAD -- .
Git 不可用时自动降级:隐藏 Git 标记,patch 导出显示提示。
dsh-codeui/
├── package.json # npm 包清单(dsh.client / dsh.bundle.patch)
├── cordis.patch.yml # bundle 自注册 patch
├── index.js # 动态插件包清单
├── host.js # 动态 Host 半边(function body)
├── client.js # 动态 Client 半边(function body)
├── lib/
│ ├── index.js # 静态 Host:/codeui/api/* + 全量轮次/文件历史
│ └── client.js # 静态 Client bundle
├── README.md
└── LICENSE
dsh-codeui (plugin id codeui) is a Cordis UI plugin for DeepSeek Harness, maintained primarily as a static npm package. It keeps the native chat untouched and adds a complete code-review loop:
before / after / current modes, cumulative patch export, and a draggable left edge (20%–60%, default 42%) flush with the window's right edge.Edited N files, total +/- lines, file paths and per-file stats; scroll inside the card to browse all files, click one to open the Review panel.write, edit, and str_replace_editor (create / str_replace / insert).localStorage: explorer, Review panel, Git badges, and language.This repository is organized as an npm package named dsh-codeui. The commands below install it straight from GitHub — no npm publication is required. Publishing is only needed for the short-name npm install dsh-codeui.
dsh plugin --profile web add github:YLingHao/dsh-codeui
Or:
cd "$DSH_HOME/profiles/web"
pnpm add github:YLingHao/dsh-codeui
Option A: bundle (uses this repo's cordis.patch.yml)
Add dsh-codeui to dsh.profile.bundles in $DSH_HOME/profiles/web/package.json:
{
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-codeui"
]
}
}
}
Option B: patch layer
Edit $DSH_HOME/profiles/web/cordis.patch.yml (or the global $DSH_HOME/cordis.patch.yml):
- insert:
- id: codeui
name: 'dsh-codeui'
dsh web
Hard-refresh the browser (Ctrl+F5). With dsh-market installed, add the GitHub topic dsh-plugin for marketplace discovery.
Kept for compatibility:
cordis_define: kind: "new", idPrefix: "codeui".code.host to host.js and code.client to client.js.The static package is the primary maintenance line; the dynamic distribution remains usable but may lag behind the latest
lib/UI.
Review to open the right panel.Settings → Code UI: explorer, Review panel, Git badges, and language. Changes are saved automatically.git rev-parse --show-toplevel
git -c core.quotepath=false -c diff.renames=false status --porcelain=v1 -z --branch
git -c core.quotepath=false diff --no-ext-diff --unified=3 HEAD -- .
When Git is unavailable the plugin degrades silently.
dsh-codeui/
├── package.json # npm manifest (dsh.client / dsh.bundle.patch)
├── cordis.patch.yml # bundle self-registration patch
├── index.js # dynamic plugin package manifest
├── host.js # dynamic host half (function body)
├── client.js # dynamic client half (function body)
├── lib/
│ ├── index.js # static host: /codeui/api/* + full turn/file history
│ └── client.js # static client bundle
├── README.md
└── LICENSE
The native conversation, tool-call log, and approval UI stay in the harness. Turn snapshots are reconstructed from edit tool parameters, with host-side full-history summaries for unloaded turns. Full Git-level snapshots, inline comments, and AI-assisted review are future work.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。