Git Worktrees, Finally EZ!
Overview: Why is this cool?
You know that feeling when you’re deep into a feature, but then a critical bug pops up on main, or you need to test a quick fix in an older version? Traditionally, that means stashing, switching branches, maybe even cloning the repo again. Ugh. Git worktrees are the right way to handle this, but honestly, managing them can be a chore. Enter worktrunk! This Rust-powered CLI is a total game-changer, especially for anyone, like me, dabbling in parallel AI agent workflows where you need isolated environments constantly. It takes the friction out of worktree management, making it feel like it’s part of your daily terminal flow.
My Favorite Features
- Effortless Creation & Deletion: Say goodbye to arcane
git worktree addcommands.worktrunklets you spin up and tear down isolated dev environments with simple, intuitive commands. Clean code, clean workflow! - Parallel Workflow Powerhouse: This is HUGE. For those of us running multiple AI agent experiments or needing different setups for various feature branches simultaneously,
worktrunkkeeps everything tidy and accessible. No more branch-switching headaches! - Seamless Context Switching: Jump between your different worktrees with ease. It’s like having multiple ‘active’ development environments without the overhead of multiple full clones or complex
gitjuggling. My productivity just went up 10x. - Built with Rust: You know I love my performant tools. Being written in Rust means it’s blazing fast, reliable, and generally just feels solid. No flaky scripts here, just pure CLI goodness.
Quick Start
I literally had this up and running in under a minute! If you have Rust and Cargo installed, it’s just cargo install worktrunk. Then hit worktrunk --help to see all the magic. Seriously, that’s it. It just works.
Who is this for?
- AI/ML Engineers: Running parallel experiments, tweaking agent parameters, or testing different model versions? This is your new best friend for managing isolated development sandboxes.
- Full-Stack Developers: Juggling multiple feature branches, bug fixes, or needing to quickly switch contexts? Stop stashing and start
worktrunk-ing! - Git Power Users: If you’ve been using worktrees manually and wishing for a better CLI, your wish has been granted. Automate your workflow and reclaim your mental energy.
Summary
This is one of those tools you discover and wonder how you ever lived without it. worktrunk streamlines a crucial, often overlooked, part of a developer’s workflow, especially for modern, complex projects. It’s clean, efficient, and solves a real pain point. I’m definitely integrating this into my daily routine and recommending it to everyone on my team. Go check it out NOW!