FlashingChen/dsh-worktree2

dsh-worktree

Codex-style permanent git worktrees for DeepSeek Harness: agent tools, a /worktree command, and session context for durable worktrees.

AI 분석

核心用途是管理持久化的 Git 工作区。适合需要在多个代码分支或独立工作区中并行执行任务的开发人员与 Agent 协作场景。

패키지
dsh-worktree
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 13.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

Usage

Agent tools

  • worktree_create {name, baseCommit?} — create a permanent detached worktree of the repository containing the current session (default base: current HEAD). Returns the worktree path, repo root, and base commit.
  • worktree_list — list registered worktrees with live git state (exists, HEAD, branch).
  • worktree_remove {name, force?} — remove a registered worktree (--force also discards uncommitted changes). Refuses to remove the worktree the current session is working inside.

Chat command

/worktree                          # list (same as /worktree list)
/worktree list
/worktree create  []
/worktree open               # print path/state + register as workspace
/worktree remove             # (close/delete accepted as aliases)

Session context

When a session's workspace is inside a registered permanent worktree, the agent is told once: which worktree, of which repo, at which base commit, plus the management commands.