{"id":47680062,"url":"https://github.com/rrbe/grove","last_synced_at":"2026-04-02T13:56:36.025Z","repository":{"id":345253343,"uuid":"1178020514","full_name":"rrbe/grove","owner":"rrbe","description":"Git Worktree Management GUI App","archived":false,"fork":false,"pushed_at":"2026-03-26T04:27:37.000Z","size":3366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T12:25:51.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rrbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-10T15:54:43.000Z","updated_at":"2026-03-25T16:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rrbe/grove","commit_stats":null,"previous_names":["rrbe/grove"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rrbe/grove","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrbe%2Fgrove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrbe%2Fgrove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrbe%2Fgrove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrbe%2Fgrove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrbe","download_url":"https://codeload.github.com/rrbe/grove/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrbe%2Fgrove/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-02T13:56:34.214Z","updated_at":"2026-04-02T13:56:36.009Z","avatar_url":"https://github.com/rrbe.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grove\n\nA macOS-first desktop app for managing Git worktrees — launch editors, terminals, and AI coding agents from worktrees, with lifecycle hooks for automating setup.\n\n## Screenshot\n\n![Image.png](./docs/screenshot.png)\n\n## Features\n\n### Worktree\n\n- **Scan** — Parses all worktrees via `git worktree list --porcelain`, showing dirty / ahead / behind / prunable / locked status\n- **Create** — New branch, existing local branch, or remote tracking branch modes with branch dropdowns, random branch name suggestions, and auto-filled target paths\n- **Remove** — Streamed execution logs, preview and execute `git worktree prune`\n- **Launch** — Built-in launchers for Terminal, Ghostty, iTerm2, VS Code, Cursor, Claude CLI, Codex CLI, Gemini CLI, plus custom launchers\n\n### Hooks\n\n6 lifecycle hook events to automate custom actions during worktree creation, launch, and removal:\n\n| Event | Fires | Working directory |\n|-------|-------|-------------------|\n| `pre-create` | **Before** worktree creation | Repo root |\n| `post-create` | **After** worktree creation | Worktree path |\n| `pre-launch` | **Before** launcher execution | Worktree path |\n| `post-launch` | **After** launcher execution | Worktree path |\n| `pre-remove` | **Before** worktree removal | Worktree path |\n| `post-remove` | **After** worktree removal | Repo root |\n\nEach hook consists of one or more **steps**, with 4 step types:\n\n#### `script` — Run any shell command\n\n```toml\n[[hooks.post-create]]\ntype = \"script\"\nrun = \"echo 'Worktree {branch} ready at {worktree_path}'\"\n```\n\n#### `install` — Auto-detect package manager and install dependencies\n\nWithout `run`, auto-detects: pnpm → bun → yarn → npm, poetry → pdm → pipenv → uv → pip, bundle, cargo build, go mod download, composer, dotnet restore, gradlew, mvn, etc. Or specify a custom command.\n\n```toml\n[[hooks.post-create]]\ntype = \"install\"\n\n# Or specify manually\n[[hooks.post-create]]\ntype = \"install\"\nrun = \"pip install -r requirements.txt\"\n```\n\n#### `copy-files` — Copy files from repo root to new worktree\n\nFor copying untracked config files like `.env.local`. Skips if target already exists.\n\n```toml\n[[hooks.post-create]]\ntype = \"copy-files\"\npaths = [\".env.local\", \".npmrc\", \".env.production\"]\n```\n\n#### `launch` — Trigger a launcher within a hook\n\n```toml\n[[hooks.post-create]]\ntype = \"launch\"\nlauncherId = \"vscode\"\n```\n\n#### Template variables\n\nUse `{variable}` syntax in `run` fields to reference context variables:\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `{repo_root}` | Repo root path | `/Users/me/myrepo` |\n| `{worktree_path}` | Worktree path | `/Users/me/myrepo/.worktrees/feat` |\n| `{branch}` | Branch name | `feature/new-ui` |\n| `{base_branch}` | Base branch name | `main` |\n| `{head_sha}` | HEAD commit SHA | `a1b2c3d4...` |\n| `{default_remote}` | Default remote | `origin` |\n| `{is_main_worktree}` | Is main worktree | `true` / `false` |\n\nScripts also receive uppercase environment variables: `$REPO_ROOT`, `$WORKTREE_PATH`, `$BRANCH`, `$BASE_BRANCH`, `$HEAD_SHA`, `$IS_MAIN_WORKTREE`, `$DEFAULT_REMOTE`.\n\n#### Re-run hooks\n\nManually trigger any configured hook event from the \"Re-run Hooks\" section in the worktree detail panel.\n\n### CLI\n\nGrove provides a `grove` CLI command (like VS Code's `code`), following the `\u003cnoun\u003e \u003cverb\u003e` pattern:\n\n```bash\ngrove .                          # Open current repo in Grove GUI\ngrove open [path]                # Open a repository in the GUI\ngrove hook run \u003cevent\u003e           # Run hooks for a given event\ngrove hook list                  # List configured hooks\ngrove worktree list              # List worktrees\n```\n\nInstall the CLI via **Settings → CLI Command → Install CLI**, which creates a symlink at `/usr/local/bin/grove`. The `hook run` command auto-detects the repo root and worktree from the current directory.\n\n### Other\n\n- **GitHub PR integration** — Auto-queries and caches associated Pull Requests via `gh` CLI\n- **Single instance** — Multiple `grove open` calls reuse the running app instance\n- **i18n** — Chinese (default) and English\n\n## Stack\n\n- **Frontend**: React 19 + TypeScript + Vite\n- **Backend**: Rust (Tauri 2), shelling out to system `git`\n\n## Getting Started\n\n```bash\npnpm install        # Install frontend deps\npnpm build          # Frontend type-check + build\npnpm tauri:dev      # Run in dev mode\npnpm tauri:dist     # Build .dmg\ncd src-tauri \u0026\u0026 cargo test    # Rust tests\ncd src-tauri \u0026\u0026 cargo clippy  # Rust lint\n```\n\n## Config\n\nAll config and app state is stored at `~/.grove/store.json` (recent repos, per-repo config, worktree root settings, default terminal, etc.). Grove does not write config files into the repository.\n\nPer-repo config is edited via the in-app settings page (TOML format). Config is merged in order (later overrides earlier):\n\n1. **Built-in defaults** — worktree root `.claude`, base branch `main`, built-in launchers\n2. **Repo config** — TOML config edited in the UI\n\n### Example config\n\n```toml\n[settings]\nworktree-root = \".worktrees\"\ndefault-base-branch = \"main\"\n\n[[hooks.post-create]]\ntype = \"copy-files\"\npaths = [\".env.local\", \".env.production\"]\n\n[[hooks.post-create]]\ntype = \"install\"\n\n[[hooks.post-create]]\ntype = \"script\"\nrun = \"echo 'Worktree ready at $WORKTREE_PATH'\"\n\n[[hooks.post-create]]\ntype = \"launch\"\nlauncherId = \"vscode\"\n\n[[hooks.pre-remove]]\ntype = \"script\"\nrun = \"echo 'Cleaning up {branch}...'\"\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrbe%2Fgrove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrbe%2Fgrove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrbe%2Fgrove/lists"}