Copy-on-write git worktrees with dependencies already installed
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/pierre-borckmans/cloveGuides for using ai agents skills like clove.
A ready git worktree in ~1s, with node_modules, the dev shell and every other ignored file already there.
clove.fast, with a video and the docs.
$ clove new feat/login
+ feat/login
✓ clone image 0.00s
✓ mount 0.70s
✓ checkout 0.21s
✓ setup mise-trust 0.02s
✓ setup direnv-allow 0.02s
· setup direnv unchanged since golden
· setup pnpm unchanged since golden
● feat-login ready in 1.0s ~/src/mono.clove/feat-login/mono
| On a ~35k-file monorepo | git worktree add + setup |
clove new |
|---|---|---|
| Time to a usable checkout | ~70s | ~1s |
| New disk per worktree | a few GB | ~6 MB |
~1s is a cold clone, mount included. On macOS clove keeps one clone mounted ahead of time, so the next clove new skips the mount: 61 ms on the benchmark repo.
The desktop app and the terminal UI show the same things, and the CLI does it all too.
Recorded on Linux (btrfs) with a small demo repo. On macOS, a cold clone of a big monorepo takes about a second.
brew install pierre-borckmans/tap/clove # CLI and terminal UI, macOS and Linux
brew install --cask pierre-borckmans/tap/clove-app # desktop app with a menu-bar popover, macOS
clove shell-init --install # cd into new clones, completions (zsh, bash, fish)
In a repository:
clove init # shows what it will set up, then builds the golden image (once)
clove new feat/login # a ready worktree on that branch
clove service install # remount clones at login, keep golden images fresh
clove agents install # teach Claude Code, Codex, OpenCode and Pi to use clove (optional)
The desktop app on Linux (x86_64 and arm64): a .deb and an AppImage are on the releases page. It runs the CLI for the background service, so install that too.
sudo apt install ./clove-app-v<version>-x86_64.deb # Debian, Ubuntu
chmod +x clove-app-v<version>-x86_64.AppImage # anywhere else; needs libfuse2
Without Homebrew:
npm i -g @pborck/clove, or npx @pborck/clove. Same binaries as the releases; clove upgrade only handles Homebrew, so upgrade with npm.cargo install --git https://github.com/pierre-borckmans/clove clove-clihdiutil sparse images: implemented, but untested.btrfs-progs (sudo apt install btrfs-progs, sudo pacman -S btrfs-progs), a kernel with btrfs and loop devices. The host disk can be any filesystem.
Kernel 6.7+ gives exact clone sizes (simple quotas). Older kernels use full qgroups, or report no sizes.
clove init offers to add one line to /etc/fstab, with sudo, once per repo:
~/.clove/repos/<repo>-<hash>/pool.btrfs ~/src/<repo>.clove btrfs loop,user,noauto,exec,user_subvol_rm_allowed 0 0
How clove mounts the repo's image, in order of preference (clove doctor says which one a repo uses):
<repo>.clove, from a desktop or over SSH./run/media/$USER/ (or /media/$USER/).sudo -n as a last resort.git worktree add gives you the tracked files and nothing else. On a monorepo with ~35k files, ~4.5k npm packages and a nix flake dev shell, a fresh worktree takes ~70s before anything runs:
pnpm install --offlinecopy-ignored and cp -c -R copy-on-write file by file (more in 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.pnpm install.The golden image is an APFS volume in a disk image file. clove new:
clonefile(2): one syscall whatever is inside, and no disk used until something is writtenOn the monorepo above: ~1.1s and ~6 MB of disk per clone. clove init took ~1m20s, once.
git status in the clone ~50 ms, with no rehash.More in internals.
clove new feat/x, clove new pr:123, or -x claude to start an agent in it. → CommandsCLOVE_ID, CLOVE_BRANCH and a CLOVE_PORT_OFFSET of its own keep dev servers and docker compose projects apart; teardown cleans up on removal. → Clone identityclove update rebases and reruns only the changed steps; clove rename moves folder, image and branch. → Updating, renamingclove is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by pierre-borckmans. Copy-on-write git worktrees with dependencies already installed. It has 50 GitHub stars.
clove's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/pierre-borckmans/clove" and add it to your Claude Code skills directory (see the Installation section above).
clove is primarily written in Rust. It is open-source under pierre-borckmans on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh clove against similar tools.
No comments yet. Be the first to share your thoughts!