Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/opencode/src/tool/enter-worktree.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Bind this session to a git worktree. Once entered, every subsequent tool call resolves relative paths from inside the worktree until ExitWorktree is called.

Use this tool whenever the user asks to create, start, enter, open, or switch the session to a worktree.

This is the authoritative PawWork mechanism for session worktrees. Prefer it over skill-based worktree workflows and over shell-based `git worktree` commands, because only this tool binds the session execution context and makes subsequent tool calls resolve inside the worktree.

Do not invoke a worktree skill first when this tool directly satisfies the user's request.

Use only when the user explicitly asks for worktree usage, or project instructions require it.

Modes:
Expand Down
Loading