Clove is a tool for creating separate Git worktrees for developers and coding agents without the usual setup delay. A normal worktree contains tracked files but not installed dependencies, development shells, or local configuration, so each workspace may require lengthy installs or improvised links to another checkout. Clove keeps a warmed “golden image” of the base branch with those ingredients, then makes copy-on-write clones that remain ordinary Git worktrees. It uses APFS disk-image cloning on macOS and btrfs snapshots on Linux, and refreshes the image after fetches or pulls, rerunning only setup steps whose inputs changed. In a cited monorepo with about 35,000 files, 4,500 npm packages, and a Nix shell, the comparison is 72 seconds and 3.1 GB per worktree versus roughly one second and 6 MB.
The tool detects common language runtimes, package managers, environment tools, and local files, while teams can define extra setup, warm-up, and teardown steps in a shared configuration. Its command-line interface, terminal UI, and desktop app also support rebasing worktrees with an agent to resolve conflicts, pruning merged pull requests with recovery from trash, and saving, restoring, or branching from checkpoints. Clove integrates with several coding agents, links their sessions to worktrees, and can derive recurring setup fixes from session histories. It also tracks processes and assigns clone-specific port offsets so services can be stopped cleanly when a worktree is removed.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.