Passer au contenu principal
T

dsh-vscode-review (dsh-review)

tlyer233/dsh-vscode-review/dsh-review

Enregistre chaque écriture, modification et `rm` shell de l'agent dans un dépôt git fantôme, puis les examine hunk par hunk dans VS Code — accepter ou annuler chacune. Nécessite l'extension complémentaire dsh-review-vscode ; le panneau n'apparaît que dans la webview de VS Code.

Installer

dsh plugin --profile web add github:tlyer233/dsh-vscode-review

Ce plugin se trouve dans le sous-répertoire dsh-review du dépôt.

README

dsh-review

dsh 插件 + VS Code 扩展:把 agent 的 write/edit 收成可逐 hunk 接受 / 撤回的行内审查。

Features

PixPin_2026-08-24_12-20-02.png

  • Shadow git 记录 write/edit(以及 shell rm 删除)
  • VS Code 行内接受 / 撤回 hunk
  • ipynb 选区指针含块号:nb.ipynb C3 L1~L5(跨块 C2~C4),普通文件仍为 path L1~L2
  • 仅 VS Code iframe 内显示 dock;独立浏览器不改原生对话 UI

Install

macOS / Linux(一行命令,走 gh-proxy 镜像,可去掉 https://gh-proxy.com/ 前缀直连):

curl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/Tlyer233/dsh-vscode-review/v2.1.1/install.sh | bash

Windows(PowerShell;install.ps1 自 v2.1.1 起与 install.sh 同规格,首次实跑请回传日志):

irm https://gh-proxy.com/https://raw.githubusercontent.com/Tlyer233/dsh-vscode-review/v2.1.1/install.ps1 -UseBasicParsing | iex

装了之后:完全退出 VS Code(Cmd+Q / File>Exit)再开,并重启 dsh web。脚本干四件事:dsh 插件(web profile,拷贝制非链接)、VS Code 扩展(注册表同步)、argv.json(enable-proposed-api + remote-debugging-port 9223)、remote.extensionKind=ui(SSH 窗口必需);并重置 shadow git。离线物料在 Releases 页(vsix + tgz)。

UnInstall

卸掉 dsh 插件 dsh-review、VS Code 扩展 dsn.dsh-review-vscode,并删除 shadow 目录。

Mac:

./uninstall.sh

Windows:

powershell -ExecutionPolicy Bypass -File .\uninstall.ps1

Storage

$DSH_HOME/review/shadow/
  repo.git/                 # shadow git位置
  pending/<wbHash>.json     # 记录文件的版本号

VS Code 布局小技巧:破解 Chat 视图"独立不给分组"

(2026-11-03 实得;VS Code 1.144.1 + 内置 Copilot 0.72.0。Chat 视图默认被核心锁成独立栈,直接拖不入组。)

  1. 把 Terminal(底部面板标签)拖进辅助侧栏,与 Chat 并列占位;
  2. Terminal 落位后,Chat 旁会裂出"二级"分组;
  3. 此时 Chat 解锁,随便拖——和 Outline 等同级成组均可;Terminal 用完拖回底部即可。

License

MIT

Plugins associés