hyprwt 0.1.4

dotnet tool install --global hyprwt --version 0.1.4
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local hyprwt --version 0.1.4
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=hyprwt&version=0.1.4
                    
nuke :add-package hyprwt --version 0.1.4
                    

hyprwt 🚀

A better git worktree experience

hyprwt is a modern, highly customizable CLI tool that supercharges your git worktree workflow. It makes creating, switching, and managing worktrees effortless, with first-class terminal integration and powerful automation hooks.

Why hyprwt?

Git worktrees are amazing for parallel development, but managing them manually is tedious. hyprwt solves this:

  • ⚡ Instant Context Switching: hyprwt feature-branch handles everything—fetching, creating the worktree, and opening it.
  • 🖥️ Terminal Integrated: Automatically opens your worktree in a new tab or window (supports iTerm2, Tmux, Ghostty, VS Code, and more).
  • ✨ Interactive TUI: built-in interactive menu for selecting and managing worktrees.
  • 🧹 Smart Cleanup: hyprwt cleanup intelligently finds and deletes worktrees for merged or closed branches (including GitHub integration).
  • 🔗 Lifecycle Hooks: Run scripts automatically on create, switch, or cleanup (e.g., bun install or copying .env files).

📦 Installation

Support for various package managers is available:

  • Homebrew (macOS): brew install hyprwt
  • Winget (Windows): winget install hyprwt
  • Scoop (Windows): scoop install hyprwt
  • AUR (Arch Linux): yay -S hyprwt

.NET Tool (Alternative)

dotnet tool install --global hyprwt

⚡ Usage

Create & Switch

Create a new worktree for a feature branch and open it instantly in a new tab:

# Creates a worktree for 'my-feature' and opens it
hyprwt my-feature

Cleanup

Clean up old worktrees. hyprwt checks if branches are merged or if their PRs are closed.

hyprwt cleanup

🛠️ Configuration

hyprwt is highly configurable via a global or project-local hyprwt.json file.

Example hyprwt.json:

{
  "worktree": {
    "directoryPattern": "../{repo_name}-worktrees/{branch}"
  },
  "terminal": {
    "mode": "tab"
  },
  "scripts": {
    "sessionInit": "bun install && cp ../main/.env ."
  }
}

See example_config.json for a comprehensive list of options.

🏗️ Development

Prerequisites:

  • .NET 10.0 SDK

Build & Run:

# Setup dependencies
./setup.sh

# Build
dotnet build

# Run tests
dotnet test
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.4 130 11/28/2025
0.1.0 181 11/26/2025