@pborck/clove 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -146,17 +146,43 @@ More in [internals](docs/internals.md).
|
|
|
146
146
|
- **Checkpoints, rewind and fork:** freeze a clone mid-work in ~0.05s, put it back in ~1.5s, or fork it into new clones with its uncommitted state. → [Checkpoints](docs/design/checkpoints.md)
|
|
147
147
|
- **Agent sessions, linked to their clone:** clove reads Claude Code, Codex, pi and Antigravity logs on your machine to show which sessions made or worked in each clone. Read one as a conversation, follow a live one, or resume it in a terminal. → [Agent sessions](docs/commands.md#agent-sessions)
|
|
148
148
|
- **Sees what runs in a clone:** shells, dev servers, editors and agents, with their ports; `clove ps` lists them, and removing a clone stops them first. → [Processes](docs/commands.md#processes-using-a-clone)
|
|
149
|
+
- **Each clone knows who it is:** setup steps, `clove run` and your shell get `CLOVE_CLONE`, `CLOVE_BRANCH`, a `CLOVE_PORT_OFFSET` of its own and a `CLOVE_ID` that survives renames and the trash, so dev servers and `docker compose -p clove-$CLOVE_ID` don't clash; `teardown` commands clean up before a clone is removed. → [Clone identity and teardown](docs/configuration.md#clone-identity-and-teardown)
|
|
149
150
|
- **Renames clones:** `clove rename` moves the folder, the image and the branch when it was named after the clone. → [Renaming a clone](docs/commands.md#renaming-a-clone)
|
|
150
151
|
- **Brings clones up to date:** `clove update` rebases onto the latest base and reruns only the setup steps that changed; conflicts stop cleanly, with `--continue` or `--abort`. → [Updating a clone](docs/commands.md#updating-a-clone)
|
|
151
152
|
- **Works next to plain git worktrees:** lists them, removes them safely, or adopts them as clones. → [Plain git worktrees](docs/commands.md#plain-git-worktrees)
|
|
152
|
-
- **Flags PRs that need attention:** failing checks, requested changes, open review threads and conflicts show on the clone in the TUI and the app, `clove prs` lists them with the agent session that owns each clone, and Claude Code and Pi are told on their next prompt or tool call. → [PRs that need attention](docs/commands.md#prs-that-need-attention)
|
|
153
|
+
- **Flags PRs that need attention:** failing checks, requested changes, open review threads and conflicts show on the clone in the TUI and the app, `clove prs` lists them with the agent session that owns each clone, and Claude Code and Pi are told on their next prompt or tool call, also about clones their session made, and once when the PR is merged or closed. → [PRs that need attention](docs/commands.md#prs-that-need-attention)
|
|
153
154
|
- **Cleans up after merged PRs,** squash merges included, by hand or automatically, with a history to get any branch back. → [Cleaning up](docs/cleanup.md)
|
|
154
|
-
- **
|
|
155
|
+
- **Removed clones go to a trash:** `clove rm`, prune and auto-prune move a clone aside instead of deleting it, so `clove restore` brings it back with its uncommitted and ignored files and its checkpoints for 7 days (`trash.keep`); the TUI and the app offer Undo. → [The trash](docs/cleanup.md#the-trash)
|
|
156
|
+
- **Built for coding agents:** one command teaches Claude Code, Codex, OpenCode and Pi to use clones. Claude Code and OpenCode use clones for native worktrees in repos clove manages. OpenCode and Pi also get `clove_new`, `clove_list` and `clove_remove` tools. After a clove upgrade, what it installed is brought up to date on the next run. → [Coding agents](docs/agents.md)
|
|
155
157
|
- **Stays fresh on its own:** incremental refreshes, only when a step's inputs change on the base. → [Staying fresh](docs/freshness.md)
|
|
156
158
|
- **Detects your toolchain:** mise, direnv + nix, pnpm, bun, yarn, npm, deno, uv, Poetry, PDM, Bundler, Composer, Go, Gradle, Maven, .NET, Dart/Flutter, Mix, SwiftPM, CocoaPods, Zig and cargo, plus your own steps and local files like `.env`. → [Configuration](docs/configuration.md)
|
|
157
159
|
|
|
158
160
|
Also: [limits](docs/limits.md) and [internals](docs/internals.md) (how clones are stored on macOS and Linux).
|
|
159
161
|
|
|
162
|
+
Every command, flag and setting, generated from the code: [commands reference](docs/reference/commands.md), [configuration reference](docs/reference/configuration.md).
|
|
163
|
+
|
|
164
|
+
## FAQ
|
|
165
|
+
|
|
166
|
+
#### How do I run several Claude Code or Codex agents in parallel on one repo?
|
|
167
|
+
|
|
168
|
+
Give each agent its own clone. `clove new feat/x -x claude` makes one and starts Claude Code in it. After `clove agents install`, `claude --worktree` and Claude Code's subagent worktrees become clones on their own, and Codex, OpenCode and Pi get instructions to use clones. Clones are isolated: one agent's installs, builds and edits don't touch the others. → [Coding agents](docs/agents.md)
|
|
169
|
+
|
|
170
|
+
#### Why not plain `git worktree add`?
|
|
171
|
+
|
|
172
|
+
It checks out the tracked files and nothing else, so every new worktree reinstalls `node_modules`, rebuilds its dev shell and needs its `.env` again. On a ~35k-file monorepo that is ~70s and a few GB per worktree. clove clones a golden image where that work is already done: ~1s and ~6 MB. On the [benchmark](docs/benchmarks.md) repo, `clove new` takes 926 ms, or 61 ms when a spare clone is mounted ahead of time.
|
|
173
|
+
|
|
174
|
+
#### Does it work with pnpm, uv, cargo and monorepos?
|
|
175
|
+
|
|
176
|
+
Yes. clove detects pnpm, bun, yarn, npm, uv, Poetry, cargo and more in each directory, including nested projects with their own lockfile, and warms them in the golden image. Python virtualenvs and cargo's `target/` record the absolute path they were built at, so those rebuild in a clone. → [Configuration](docs/configuration.md), [limits](docs/limits.md)
|
|
177
|
+
|
|
178
|
+
#### Does it run on macOS and Linux?
|
|
179
|
+
|
|
180
|
+
Both. On macOS it uses APFS disk images; on Linux, btrfs in a loop-mounted image file, so the host disk can be any filesystem. The CLI, the terminal UI and the desktop app run on both. See [Requirements](#install).
|
|
181
|
+
|
|
182
|
+
#### How is it different from other worktree tools?
|
|
183
|
+
|
|
184
|
+
Most copy ignored files one by one or run a setup script per worktree, so the time grows with the repo. clove copies one disk image (macOS) or snapshots one subvolume (Linux), so a clone costs the same whatever the file count. The tools it builds on and sits next to are listed in [prior art](#prior-art).
|
|
185
|
+
|
|
160
186
|
## Prior art
|
|
161
187
|
|
|
162
188
|
clove puts together ideas that already exist, and git and the file system do most of the work. Projects nearby:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pborck/clove",
|
|
3
3
|
"description": "Copy-on-write git worktrees with dependencies already installed",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.34",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/pierre-borckmans/clove",
|
|
7
7
|
"repository": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@pborck/clove-darwin-arm64": "0.1.
|
|
22
|
-
"@pborck/clove-darwin-x64": "0.1.
|
|
23
|
-
"@pborck/clove-linux-arm64": "0.1.
|
|
24
|
-
"@pborck/clove-linux-x64": "0.1.
|
|
21
|
+
"@pborck/clove-darwin-arm64": "0.1.34",
|
|
22
|
+
"@pborck/clove-darwin-x64": "0.1.34",
|
|
23
|
+
"@pborck/clove-linux-arm64": "0.1.34",
|
|
24
|
+
"@pborck/clove-linux-x64": "0.1.34"
|
|
25
25
|
}
|
|
26
26
|
}
|