@pborck/clove 0.1.32 → 0.1.33
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 +46 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ clove agents install # teach Claude Code, Codex, OpenCode and Pi to
|
|
|
99
99
|
- ~40s for direnv to evaluate the flake
|
|
100
100
|
- ~30s for `pnpm install --offline`
|
|
101
101
|
- a few GB of new files
|
|
102
|
-
- **Copying the ignored files over doesn't scale with file count.**
|
|
102
|
+
- **Copying the ignored files over doesn't scale with file count.** worktrunk's `copy-ignored` and `cp -c -R` copy-on-write file by file (more in [prior art](#prior-art)). That saves disk, but time grows with the number of files: that repo's ~550k ignored files take minutes, and `clonefile` on the root `node_modules` alone takes ~15s.
|
|
103
103
|
- **clove copies one disk image instead of half a million files**, so the cost doesn't depend on how many files the repo has.
|
|
104
104
|
|
|
105
105
|
## How it works
|
|
@@ -149,20 +149,64 @@ More in [internals](docs/internals.md).
|
|
|
149
149
|
- **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
150
|
- **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
151
|
- **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)
|
|
152
153
|
- **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)
|
|
153
|
-
- **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. → [Coding agents](docs/agents.md)
|
|
154
|
+
- **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. → [Coding agents](docs/agents.md)
|
|
154
155
|
- **Stays fresh on its own:** incremental refreshes, only when a step's inputs change on the base. → [Staying fresh](docs/freshness.md)
|
|
155
156
|
- **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)
|
|
156
157
|
|
|
157
158
|
Also: [limits](docs/limits.md) and [internals](docs/internals.md) (how clones are stored on macOS and Linux).
|
|
158
159
|
|
|
160
|
+
## Prior art
|
|
161
|
+
|
|
162
|
+
clove puts together ideas that already exist, and git and the file system do most of the work. Projects nearby:
|
|
163
|
+
|
|
164
|
+
**git**
|
|
165
|
+
- [`git worktree`](https://git-scm.com/docs/git-worktree): many checkouts of one repository. Every clone is one. [`clone --reference`/`--shared`](https://git-scm.com/docs/git-clone) and [sparse checkout](https://git-scm.com/docs/git-sparse-checkout) save space too, but none of them bring ignored files.
|
|
166
|
+
|
|
167
|
+
**Copy-on-write in the file system**
|
|
168
|
+
- APFS [`clonefile(2)`](https://keith.github.io/xcode-man-pages/clonefile.2.html) (`cp -c`) and [btrfs snapshots](https://btrfs.readthedocs.io/en/latest/Subvolumes.html) are what clove runs on.
|
|
169
|
+
- [ZFS clones](https://openzfs.github.io/openzfs-docs/man/master/8/zfs-clone.8.html), [overlayfs](https://docs.kernel.org/filesystems/overlayfs.html) and [Docker image layers](https://docs.docker.com/engine/storage/drivers/) share a base under a writable layer, the same idea. clove doesn't use them.
|
|
170
|
+
|
|
171
|
+
**Worktree managers that copy or set up**
|
|
172
|
+
- [worktrunk](https://github.com/max-sixty/worktrunk): worktrees for parallel agents, with hooks and `copy-ignored`, which reflinks ignored files one by one. Works on any file system; time grows with file count.
|
|
173
|
+
- [gwq](https://github.com/d-kuro/gwq), [wtp](https://github.com/satococoa/wtp), [git-worktree-runner](https://github.com/coderabbitai/git-worktree-runner): copy or symlink listed files and run setup commands after create. Plain shell and files, nothing to mount.
|
|
174
|
+
- [git-sprout](https://github.com/alltuner/git-sprout): a drop-in `git worktree add` that clones unmodified tracked files. No ignored files.
|
|
175
|
+
|
|
176
|
+
**Copy-on-write workspaces**
|
|
177
|
+
- [Grove](https://github.com/chrisbanes/grove) is the closest: a "golden copy" with warm build state, cloned with `cp -c -R`, and an experimental macOS backend on a sparsebundle disk image. Workspaces are full clones, not worktrees; Linux is planned.
|
|
178
|
+
- [rift](https://github.com/anomalyco/rift): workspaces for agents by `clonefile`, btrfs snapshots or reflinks (XFS too). Copies your current working state, uncommitted changes included; OpenCode can use it as its worktree backend.
|
|
179
|
+
- [cow](https://github.com/joeinnes/cow): one `clonefile(2)` of the whole repo, `node_modules` included. Nothing to keep fresh.
|
|
180
|
+
|
|
181
|
+
**Parallel coding agents**
|
|
182
|
+
- [Claude Code `--worktree`](https://code.claude.com/docs/en/worktrees) and the [Codex app](https://learn.chatgpt.com/docs/environments/git-worktrees): a worktree per session, `.worktreeinclude` to copy ignored files, setup left to you or a script. Claude Code's `WorktreeCreate` hook is how clove plugs in.
|
|
183
|
+
- [Conductor](https://www.conductor.build/docs/reference/scripts), [vibe-kanban](https://github.com/BloopAI/vibe-kanban), [Sculptor](https://github.com/imbue-ai/sculptor), [claude-squad](https://github.com/smtg-ai/claude-squad), [uzi](https://github.com/devflowinc/uzi), [Crystal](https://github.com/stravu/crystal): worktree per agent, a setup script per workspace in most, and far richer UIs for reviewing and merging agent work than clove has.
|
|
184
|
+
- [container-use](https://github.com/dagger/container-use) and [Codex cloud](https://learn.chatgpt.com/docs/environments/cloud-environment): a container per agent, which isolates processes and ports too. Codex caches the container after its setup script, a golden image of sorts, in the cloud.
|
|
185
|
+
|
|
186
|
+
**Warm dev environments**
|
|
187
|
+
- [nix-direnv](https://github.com/nix-community/nix-direnv), [devenv](https://devenv.sh/) and [mise](https://mise.jdx.dev/) cache shells and tools per machine; [pnpm's store](https://pnpm.io/motivation) keeps one copy of each package but still writes every `node_modules` file.
|
|
188
|
+
- [Codespaces prebuilds](https://docs.github.com/en/codespaces/prebuilding-your-codespaces/about-github-codespaces-prebuilds), [prebuilt dev containers](https://containers.dev/implementors/reference/) and [CI caches](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching) warm things ahead of time, in the cloud.
|
|
189
|
+
|
|
190
|
+
What clove adds is the combination. The golden image is one disk image (macOS) or subvolume (Linux), so a clone costs the same whatever the file count. Every clone is a regular git worktree with dependencies already installed. The image stays fresh by rerunning only the steps whose inputs changed, and the agent tooling (worktree hooks, session links, `clove ps`, checkpoints) sits around it.
|
|
191
|
+
|
|
159
192
|
## Develop
|
|
160
193
|
|
|
161
194
|
```
|
|
162
195
|
cargo test --workspace # unit tests + an end-to-end run on real disk images (macOS)
|
|
163
196
|
scripts/smoke.zsh # the CLI through the zsh integration, on a throwaway repo
|
|
197
|
+
cargo run --release -p clove-core --example bench_new # time clove new + rm, step by step
|
|
198
|
+
CLOVE_E2E=1 cargo test -p clove-cli --test e2e # the CLI end to end, one test per scenario
|
|
164
199
|
```
|
|
165
200
|
|
|
201
|
+
Benchmarks and today's numbers: [docs/benchmarks.md](docs/benchmarks.md).
|
|
202
|
+
|
|
203
|
+
The CLI scenarios are YAML files in `crates/clove-cli/tests/e2e`. Each runs
|
|
204
|
+
the real binary in its own temp HOME and unmounts what it made. CI runs them
|
|
205
|
+
on macOS and on Linux with btrfs. The format is in
|
|
206
|
+
[their README](crates/clove-cli/tests/e2e/README.md).
|
|
207
|
+
|
|
208
|
+
Rules for changes, for people and coding agents: [AGENTS.md](AGENTS.md). Building each part, code style, and adding a toolchain, agent, app or backend: [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
209
|
+
|
|
166
210
|
Releasing and signing: [RELEASING.md](RELEASING.md).
|
|
167
211
|
|
|
168
212
|
MIT licensed.
|
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.33",
|
|
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.33",
|
|
22
|
+
"@pborck/clove-darwin-x64": "0.1.33",
|
|
23
|
+
"@pborck/clove-linux-arm64": "0.1.33",
|
|
24
|
+
"@pborck/clove-linux-x64": "0.1.33"
|
|
25
25
|
}
|
|
26
26
|
}
|