Skip to content

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 13 Feb 10:40
· 58 commits to main since this release
f565d29

What's New

🌐 Remote Branch Support

Create worktrees directly from remote branches without checking them out locally first! No more git fetch && git checkout dance.

In TUI:

  • Remote branches shown with 🌐 globe icon in blue color
  • Automatic local tracking branch creation
  • Visual distinction: locals (βœ“), remotes (🌐)
  • Info banner: "Remote branches (origin/*) are shown with globe icon"

Example:

gren
# Press 'n' β†’ "Use existing branch" β†’ Select origin/feature-auth
# Automatically creates local tracking branch + worktree!

Thanks to @jaranflaath for this feature request! πŸ™

πŸ€– Claude Code Skill Installation

Install a comprehensive gren skill for Claude Code that enables natural language worktree management.

One command to install:

gren install-skill
# Installs to ~/.claude/skills/gren/

Then use natural language with Claude:

  • "create a new worktree for feature-auth"
  • "help me generate a post-create script"
  • "delete the old feature worktree"

Claude automatically detects when you need gren and uses the skill!

Skill includes:

  • SKILL.md - Main skill with auto-invocation (6.6 KB)
  • reference.md - Complete command reference (9.1 KB)
  • examples.md - Real-world usage patterns (14 KB)

Inspired by @erik-agens' skill installation pattern ❀️

Improvements

  • Better .gitignore: Fixed pattern to only ignore /gren binary, not skills/gren/
  • Comprehensive testing: Full TDD approach with test coverage for new features
  • Help updates: install-skill command now shown in --help output
  • Embedded skills: Skill files embedded in binary for zero-dependency installation

Technical Details

Remote Branch Implementation

  • Added IsRemote field to BranchStatus struct
  • Updated getAvailableBranchesForWorktree() to fetch both local and remote branches
  • Smart filtering: removes remote branches that have local tracking (avoids duplicates)
  • Automatic origin/ prefix stripping when creating worktree
  • Visual styling with StatusRemoteStyle

Skill Installation System

  • //go:embed skills/gren/* for embedding skill files
  • SetSkillFS() initialization in main.go
  • install-skill command with --force and --path flags
  • File conflict detection with interactive prompts
  • Preserves init workflow (still uses embedded gren_setup.md)

Installation

Homebrew (macOS/Linux)

brew tap langtind/tap
brew install gren
# or upgrade
brew upgrade gren

Install Skill (after installing gren)

gren install-skill

Go

go install github.com/langtind/gren@v0.7.1

Download Binary

Download the appropriate binary for your platform below.

Full Changelog: v0.7.0...v0.7.1