Files
deepseek-harness/packages/experimental/tool-worktree/docs/DETAIL.zh.md
T
LegGasai 33371b069e feat(worktree)!: merge create_worktree into enter_worktree
The model has one tool for entering a worktree, as Claude Code's
EnterWorktree: `enter_worktree({ name?, from? })`. When the pool of the
checkout the Session is in holds a registered worktree of that name, the call
enters it and changes neither Git state nor files. Otherwise it creates a new
branch and checkout from `from`, HEAD by default, and enters it. `from` asks
for a new worktree, so it fails with `WORKTREE_ALREADY_EXISTS` when the name is
taken; a call without a name always creates one. The result adds `created`.

`create_worktree` is removed. `ctx.worktrees.create` and `enter` keep their
behavior: the tool calls `enter` first and `create` only on
`WORKTREE_NOT_FOUND`, so Host callers such as the forge panel still create.

The upgrade guide `create-worktree-tool-merged` covers the removed tool name.
2026-11-16 13:32:27 +08:00

131 B