[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116948":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":9,"trendingCount":14,"starSnapshotCount":14,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},116948,"work3","svaraborut\u002Fwork3","svaraborut","One command from branch name to a fully set up worktree with Claude Code running inside it",null,"TypeScript",114,5,61,0,7,46,39,2.33,"MIT License",false,"main",true,[],"2026-11-25 02:05:52","\u003Cdiv align=\"center\">\n\n# Work3 CLI\n\n**Run a fleet of Claude Code agents in parallel, each on its own branch, in its own fully set up worktree.**\n\n[![GitHub stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fsvaraborut\u002Fwork3?style=for-the-badge&logo=github&logoColor=white&label=stars&labelColor=18181b&color=3f3f46)](https:\u002F\u002Fgithub.com\u002Fsvaraborut\u002Fwork3\u002Fstargazers)\n[![Claude Code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fremote%20control-d97757?style=for-the-badge&logo=claude&logoColor=white&label=claude%20code&labelColor=18181b)](https:\u002F\u002Fclaude.com\u002Fclaude-code)\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@svara\u002Fwork3?style=for-the-badge&logo=npm&logoColor=white&label=npm&labelColor=18181b&color=cb3837)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@svara\u002Fwork3)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fsvaraborut\u002Fwork3?style=for-the-badge&label=license&labelColor=18181b&color=3f3f46)](https:\u002F\u002Fgithub.com\u002Fsvaraborut\u002Fwork3\u002Fblob\u002Fmain\u002FLICENSE)\n\n\u003Cpicture>\n  \u003Csource srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsvaraborut\u002Fwork3\u002Fmain\u002Fdocs\u002Fanimation.gif\" type=\"image\u002Fgif\">\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsvaraborut\u002Fwork3\u002Fmain\u002Fdocs\u002Fhero.png\" alt=\"Six Claude Code sessions running side by side, each in its own work3 worktree\" width=\"100%\">\n\u003C\u002Fpicture>\n\n\u003C\u002Fdiv>\n\nParallel agents need separate checkouts. `git worktree` gives you one, but each new worktree still needs dependencies installed, `.env` files copied, a folder name and, later, a cleanup. work3 does all of that in one command, from a config you commit once and share with your team.\n\n**The old way**\n\n```shell\ngit worktree add -b feat\u002Flogin worktrees\u002Ffeat--login main\ncd worktrees\u002Ffeat--login\nbun ci\ncp ..\u002F..\u002F.env .env\nclaude --remote-control my-app\u002Ffeat\u002Flogin\ncd ..\u002F..\ngit merge --ff-only feat\u002Flogin\ngit worktree remove worktrees\u002Ffeat--login\ngit branch -d feat\u002Flogin\n```\n\n**🚀 With work3**\n\n```shell\nwork3 open feat\u002Flogin\nwork3 fold feat\u002Flogin -rd\n```\n\n## Features\n\n- 🚀 **One command per branch** - worktree, setup and Claude Code in one go\n- 📦 **Shared setup** - install and cleanup tasks committed with the repo\n- 📱 **Remote Control** - steer every agent from your phone\n- 🔀 **Linear history** - finished branches land fast-forward only\n- 🛡️ **Safe teardown** - uncommitted work is never deleted\n- 🖥️ **Cross-platform** - same tasks on Windows, macOS and Linux\n- 🧭 **No hidden state** - git is the only source of truth\n\n## Install\n\nRequires [Bun](https:\u002F\u002Fbun.sh) 1.2.21 or newer, git, and [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code) on your `PATH`.\n\n```shell\nbun add -g @svara\u002Fwork3\nwork3 --help\n```\n\n## Quick start\n\n```shell\ncd my-project\nwork3 init                   # writes worktree.json and ignores \u002Fworktrees\u002F\nwork3 open feat\u002Flogin        # create, set up and start claude\nwork3 ls                     # see all worktrees and their status\nwork3 fold feat\u002Flogin -rd    # fast-forward main, remove worktree and branch\nwork3 rm feat\u002Flogin -d       # or discard: run destroy tasks, remove worktree and branch\n```\n\n## Commands\n\n### `work3 init`\n\nSets up a repository for work3 in one step. It writes a `worktree.json` with sensible defaults that you commit and share with your team, and it never overwrites a config that already exists.\n\n- `--yaml` - write `worktree.yaml` instead\n\n### `work3 open \u003Cbranch>`\n\nTakes you from a branch name to a running agent in a fully set up workspace. A new branch gets its own worktree, your setup tasks and a Claude Code session you can steer from your phone. A branch you have worked on before reopens exactly where you left it, with no setup to wait for.\n\n- `--from \u003Cref>` - start a new branch from another ref, for example `origin\u002Fmain`\n- `--no-claude` - set up the worktree without starting Claude and print its path\n\n### `work3 list`\n\nShows every agent workspace at a glance: its branch, its folder, and whether it is `clean`, `dirty` with work not yet committed, or `missing` because its folder was deleted.\n\n### `work3 remove \u003Cbranch>`\n\nThrows away a worktree you no longer need and runs your cleanup tasks. The branch is kept, so the commits stay available.\n\n> [!TIP]\n> Uncommitted work is never lost by accident: a worktree with changes is refused before anything is touched.\n\n- `-d, --delete-branch` - delete the branch too\n- `-f, --force` - discard uncommitted changes and push through failing cleanup tasks\n\n### `work3 fold \u003Cbranch>`\n\nLands a finished branch on `main` with a clean, linear history: fast-forward only, never a merge commit, rebase or push. The files in your main checkout move forward too, ready to test or push.\n\n> [!TIP] \n> A branch with uncommitted work, or one that has fallen behind `main`, is refused with a hint to rebase it first. If cleanup fails after folding, your commits are still landed and `work3 rm \u003Cbranch>` finishes the job.\n\n- `--into \u003Cref>` - land on another branch instead of `base`\n- `-r, --remove` - remove the worktree once landed\n- `-d, --delete-branch` - with `-r`, delete the branch too\n- `-f, --force` - with `-r`, push through failing cleanup tasks\n\n## Configuration\n\nwork3 reads its config from the root of the main checkout, looking for `worktree.json`, `worktree.yaml` or `worktree.yml`. If more than one exists, work3 warns and uses the first. Commit the config so the whole team shares the same augmented workflow.\n\n```json\n{\n  \"location\": \"worktrees\",\n  \"base\": \"main\",\n  \"initialize\": [\n    { \"name\": \"install\", \"cmd\": \"bun ci\" },\n    { \"name\": \"env\", \"cmd\": \"cp $WORK3_ROOT\u002F.env .env\" }\n  ],\n  \"destroy\": [\n    { \"name\": \"cleanup\", \"cmd\": \"echo removing $WORK3_BRANCH\" }\n  ]\n}\n```\n\n| Key | Type | Default | Description |\n|---|---|---|---|\n| `location` | string | `\"worktrees\"` | Folder for worktrees, relative to the repository root |\n| `base` | string | `\"main\"` | Ref new branches start from, overridable with `--from` |\n| `initialize` | task[] | `[]` | Tasks run once, right after a worktree is created |\n| `destroy` | task[] | `[]` | Tasks run before a worktree is removed |\n\nEach task is `{ \"name\"?: string, \"cmd\": string }`. `name` is shown in the output, `cmd` is shown when `name` is missing.\n\n### Tasks\n\nTasks run one after another, inside the worktree folder, through [Bun Shell](https:\u002F\u002Fbun.sh\u002Fdocs\u002Fruntime\u002Fshell). Built-ins such as `cp`, `rm`, `mkdir` and `echo` behave the same on every OS. These environment variables are available in addition to your own:\n\n| Variable | Value |\n|---|---|\n| `WORK3_ROOT` | Path of the main checkout |\n| `WORK3_PATH` | Path of the worktree |\n| `WORK3_BRANCH` | Branch name |\n\n## Contributing\n\n```shell\ngit clone https:\u002F\u002Fgithub.com\u002Fsvaraborut\u002Fwork3.git && cd work3\nbun install\nbun run build && bun link   # puts your local build on PATH as work3\nbun run dev -- --help       # run from source without building\nbun test\nbun run typecheck\n```\n\nReleases are automatic and follow [Conventional Commits](https:\u002F\u002Fwww.conventionalcommits.org): `!` or `BREAKING CHANGE:` bumps the major, anything else the minor. Pushing to `main` tags `vX.Y.Z`, publishes to npm as `latest` and creates a GitHub release with the changelog, pushing to `stage` publishes a `X.Y.Z-rcN` release candidate under the `rc` tag (`bun add -g @svara\u002Fwork3@rc`).\n\n## License\n\n[MIT](LICENSE) © Borut Svara\n",2,"2026-11-24 04:54:41","CREATED_QUERY"]