@alpacachen/dsh-simple-worktree
A minimal worktree management solution with only one button and one dialog.
Install
dsh plugin --profile web add @alpacachen/dsh-simple-worktree
Sandbox test results
| Stage | Result |
|---|---|
| 1 install | ✗ |
| 2 list | — |
| 3 mount | — |
| 4 boot | — |
dsh: initialized profile web at /home/node/.dsh/profiles/webFour stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).
README
dsh-worktree
一个用于 DeepSeek Harness 的 Git Worktree 插件:创建任务分支、注册 DSH Workspace,并打开隔离会话。
npm 包:@alpacachen/dsh-simple-worktree


简体中文 · [English](README.md)
功能
- 从任意 Git Workspace 的新建对话入口创建 Worktree。
- 支持当前分支和仓库主分支。
- 将新 Worktree 注册为 DSH Workspace,并打开隔离会话。
- 自动创建
task/<name>格式的任务分支。 - 在设置 → Worktree 管理页面扫描并管理所有 Worktree。
- 不需要额外服务或项目配置。
- 支持 DSH 主题、中文和英文界面。
兼容性
基于 DSH 0.1.5 客户端契约构建(0.1.5-rc.1 || 0.1.5-rc.2,web profile)。
使用
安装
dsh plugin --profile web add @alpacachen/dsh-simple-worktree
安装后重启 dsh web。
也可以通过 GitHub 安装:dsh plugin --profile web add github:alpacachen/dsh-worktree。
从新建对话创建
1. 在 Git Workspace 中打开新建对话。
2. 点击输入框上方的创建 Worktree。
3. 输入任务名称;此入口默认选择仓库主分支。
4. 点击创建并打开。
管理 Worktree
打开设置 → Worktree 管理,扫描所有 Workspace 中的 Git 项目和关联的 Worktree,查看它们的分支与变更状态,并移除不再需要的 Worktree。
Worktree 会创建在:
project.worktrees/login-fix/ └── branch: task/login-fix
新 Workspace 的名称为 <父 Workspace>/<任务名称>。删除 Worktree Workspace 不会删除对应的 Git 分支。
Rendered from the README published on npm. Formatted only, not edited.
Versions
Published on npm::16,最后更新 2026-09-28