opencode-worktree vs worktrunk

Git worktree tools for OpenCode sessions and parallel development

opencode-worktree automates isolated Git worktrees for OpenCode V1 and opens a separate terminal session for each one. worktrunk is a Rust CLI for creating, switching between, and cleaning up worktrees, with broader branch-oriented commands and workflow automation.

opencode-worktreeworktrunk
LanguageTypeScriptRust
LicenseMITNOASSERTION
Stars7288.7k
Forks42315
Last analyzedOct 11, 2026Oct 4, 2026

Key differences

  • opencode-worktree is a TypeScript plugin for OpenCode V1; worktrunk is a standalone Rust CLI for Git worktree management.
  • opencode-worktree creates a worktree and launches OpenCode in a new terminal, while worktrunk provides commands to create, switch, list, and remove worktrees.
  • opencode-worktree supports configured file copying or symlinking and post-create or pre-delete hooks; worktrunk offers hooks for events such as worktree creation and merges.
  • worktrunk includes merge workflows, commit-message generation, shell integration, and build-cache sharing on APFS, btrfs, and XFS; these are not listed as opencode-worktree features.
  • opencode-worktree is archived, targets OpenCode V1, and has no planned V2 port; worktrunk is not archived.
  • opencode-worktree reports an MIT license, while worktrunk reports NOASSERTION in repository metadata and displays an MIT OR Apache-2.0 README badge.

Choose opencode-worktree if you…

  • need worktree creation tied directly to OpenCode V1 sessions in separate terminals.
  • want configured files or directories copied or symlinked into new worktrees.
  • need project setup or teardown hooks and understand that deletion commits changes before removing a worktree.
Read the opencode-worktree analysis →

Choose worktrunk if you…

  • want a CLI for creating, switching between, listing, and removing Git worktrees.
  • run parallel coding tasks or agents and want to launch commands after switching into a worktree.
  • need workflow features such as hooks, merge workflows, shell integration, or supported build-cache sharing.
Read the worktrunk analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.