{"id":45074117,"url":"https://github.com/worktree-io/runner","last_synced_at":"2026-04-01T17:30:24.022Z","repository":{"id":339372090,"uuid":"1161362150","full_name":"worktree-io/runner","owner":"worktree-io","description":"CLI that opens GitHub issues as isolated git worktree workspaces in your editor","archived":false,"fork":false,"pushed_at":"2026-03-17T18:45:32.000Z","size":638,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-18T06:58:49.883Z","etag":null,"topics":["cli","developer-tools","git-worktree","github","rust","worktree"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/worktree-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":null,"dco":null,"cla":null}},"created_at":"2026-02-19T02:45:11.000Z","updated_at":"2026-03-17T18:45:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/worktree-io/runner","commit_stats":null,"previous_names":["worktree-io/runner"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/worktree-io/runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktree-io%2Frunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktree-io%2Frunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktree-io%2Frunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktree-io%2Frunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worktree-io","download_url":"https://codeload.github.com/worktree-io/runner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktree-io%2Frunner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: 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":["cli","developer-tools","git-worktree","github","rust","worktree"],"created_at":"2026-02-19T13:11:29.869Z","updated_at":"2026-04-01T17:30:24.008Z","avatar_url":"https://github.com/worktree-io.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.svg\" alt=\"worktree\" width=\"96\"\u003e\n\u003c/p\u003e\n\n# worktree\n\nA CLI tool that opens GitHub issues as git worktree workspaces. Paste a GitHub issue URL (or use a `worktree://` deep link) and `worktree` clones the repo as a bare clone, creates a dedicated worktree branch, and opens it in your editor.\n\n## Install\n\nDownload a prebuilt binary from the [latest release](https://github.com/worktree-io/runner/releases/latest):\n\n| Platform | Download |\n| -------- | -------- |\n| macOS (Apple Silicon) | `worktree-macos-aarch64.tar.gz` |\n| macOS (Intel) | `worktree-macos-x86_64.tar.gz` |\n| Linux x86_64 | `worktree-linux-x86_64.tar.gz` |\n| Linux ARM64 | `worktree-linux-aarch64.tar.gz` |\n| Windows | `worktree-windows-x86_64.zip` |\n\nOr install from [crates.io](https://crates.io/crates/worktree-io):\n\n```sh\ncargo install worktree-io\n```\n\nThen run first-time setup:\n\n```sh\nworktree setup\n```\n\nThis detects your editor, writes the default config, and registers the `worktree://` URL scheme handler — all in one step.\n\n## Usage\n\n### Open a workspace\n\n```sh\n# GitHub issue URL\nworktree open https://github.com/owner/repo/issues/42\n\n# Shorthand\nworktree open owner/repo#42\n\n# worktree:// deep link (used by browser / integrations)\nworktree open \"worktree://open?owner=owner\u0026repo=repo\u0026issue=42\"\n```\n\nFlags:\n\n| Flag           | Description                       |\n| -------------- | --------------------------------- |\n| `--editor`     | Force open in editor              |\n| `--print-path` | Print the workspace path and exit |\n\n### Configuration\n\n```sh\nworktree config init          # write default config to disk\nworktree config show          # print current config\nworktree config path          # print config file path\nworktree config set \u003ckey\u003e \u003cvalue\u003e\nworktree config get \u003ckey\u003e\n```\n\nConfig keys:\n\n| Key              | Type   | Default | Description                                            |\n| ---------------- | ------ | ------- | ------------------------------------------------------ |\n| `editor.command` | string | —       | Command to open the editor, e.g. `code .` or `nvim .` |\n| `open.editor`    | bool   | `true`  | Open editor automatically                              |\n\nThe config file lives at:\n\n- **macOS/Linux:** `~/.config/worktree/config.toml`\n- **Windows:** `%USERPROFILE%\\.config\\worktree\\config.toml`\n\nExample `config.toml`:\n\n```toml\n[editor]\ncommand = \"code .\"\n\n[open]\neditor = true\n```\n\n### Hooks\n\nRun shell scripts automatically when a workspace is opened.\n\n| Layer | Configured in | Scope |\n| ----- | ------------- | ----- |\n| **Global** | `config.toml` under `[hooks]` | All repos |\n| **Per-repo** | `.worktree.toml` in the repo root under `[hooks]` | That repo only |\n\nBoth layers use the same hook names and template variables. For `open-multi`, each hook fires once per repo with that repo's context.\n\n| Hook | When it runs |\n| ---- | ------------ |\n| `pre:open` | After the worktree is created, before the editor launches |\n| `post:open` | After the editor launches |\n\n| Template variable | Description |\n| ----------------- | ----------- |\n| `{{owner}}` | GitHub owner / org |\n| `{{repo}}` | Repository name |\n| `{{issue}}` | Issue number |\n| `{{branch}}` | Branch name (e.g. `issue-42`) |\n| `{{worktree_path}}` | Absolute path to the worktree directory |\n\nPer-repo hooks compose with the global hook via an `order` field:\n\n| `order` | Behavior |\n| ------- | -------- |\n| `before` *(default)* | Per-repo script runs first, then global |\n| `after` | Global script runs first, then per-repo |\n| `replace` | Only the per-repo script runs; global is suppressed |\n\nA non-zero exit code prints a warning but does not abort the open.\n\n### worktree:// URL scheme\n\nRegister `worktree` as the system handler for `worktree://` links so they open automatically from the browser:\n\n```sh\nworktree scheme install    # register the URL scheme handler\nworktree scheme uninstall  # unregister it\nworktree scheme status     # check whether it's registered\n```\n\nPlatform details:\n\n- **macOS** — installs a minimal `.app` bundle in `~/Applications/WorktreeRunner.app` and registers it with Launch Services.\n- **Linux** — installs a `.desktop` file in `~/.local/share/applications/` and registers it with `xdg-mime`.\n- **Windows** — writes the handler to `HKCU\\Software\\Classes\\worktree` in the registry.\n\n## How it works\n\n1. Parses the issue reference into `owner`, `repo`, and `number`.\n2. Bare-clones the repository to `~/worktrees/github/\u003cowner\u003e/\u003crepo\u003e` (re-uses the clone on subsequent runs and fetches latest).\n3. Creates a git worktree at `~/worktrees/github/\u003cowner\u003e/\u003crepo\u003e/issue-\u003cN\u003e` on a branch named `issue-\u003cN\u003e`.\n   - If the branch already exists on the remote it is checked out and tracked locally.\n   - Otherwise a new branch is created from the repo's default branch (`main`, `master`, etc.).\n4. Opens the workspace directory in the configured editor.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworktree-io%2Frunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworktree-io%2Frunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworktree-io%2Frunner/lists"}