Commands
create
clove new feat/loginbranch from origin/main, or check out an existing branchclove new feat/login -x claude...and start an agent in itclove new pr:123check out pull request #123 as branch pr/123clove adopt ../old-worktreeturn a plain git worktree into a clone on its branchwork
clove lsclones, branch, dirty/ahead/behind, own diskclove cd feat-loginjump to a clone; clove cd alone goes back to the main checkoutclove run feat-login -- pnpm testrun inside the clone's dev environmentclove updatein a clone: rebase onto the latest base, rerun changed setup stepsclove setupin a clone, after a pull: rerun the setup steps that changedclean up
clove rm feat-login -Dunmount, delete, and delete the branchclove pruneremove clones whose PR is merged, and their branchesclove logwhat clove removed, when, why, and how to get the branch backmaintain
clove refreshbring the golden image to the latest base (incremental)clove doctorcheck the setup, with a fix for each problemclove reposevery repo clove manages, golden state, merged clonesclove repos --candidatesgit repos in your code folders clove could manageconfigure
clove config geteach setting, its value, and the file it comes fromclove config set fetch falsechange one setting (--layer team|all; default: you, this repo)clove config --editopen your settings for this repo (--edit team, --edit all)Interfaces
Every feature is in three places:
- The CLIabove. Every command takes
--json;clove new --jsonprints the clone's path, branch and timings. - The terminal UI
cloveon its own (orclove tui), with mouse support.- A sidebar lists every repo, its clones, and whether its golden image is fresh.
ssettings (Enter edits or toggles, ←/→ picks the file it saves to,xresets) ·gclean up ·Lremoval history ·Aadd a repo · Enter quits into the selected clone.
- The Mac appthe same sidebar, settings, cleanup and history, plus a menu-bar popover.
Updating a clone
clove update [clone] (or --all):
- fetches the base
- rebases the clone's branch onto it (
--mergemerges instead;update.strategy = "merge"makes that the default) - reruns only the setup steps whose inputs changed, so a new lockfile or proto change comes with it
- Uncommitted changes are refusedunless
--autostash, which sets them aside and reapplies them after. - On a conflict it stopsin git's usual state and lists the files. Fix them and
git addthem, thenclove update --continue, orclove update --abortto put the branch back. - It offers to resolve conflicts with ClaudeAt a terminal,
clove updateasksResolve with Claude? [y/N];--resolveskips the question, or starts it on a clone already stopped. Claude runs interactively in the clone, told to resolve only what's clear, regenerate lockfiles and generated code rather than merge them, build or test what it touched, thenclove update --continue, and to stop and explain anything that needs your call. It never pushes or aborts. The TUI'sRand the app's "Resolve with Claude" (in your chosen terminal) do the same.update.resolverpicks the command (claude --model opus,codex) or turns itoff. - With
--alla conflict in one clone doesn't stop the others. - It never pushesAfter rebasing a branch that was already pushed, it reminds you to push with
--force-with-lease. - In the terminal UI,
Uupdates the selected clone (or continues once the conflicts are fixed) andXaborts; the Mac app has the same in the clone's menu. All three show a clone stopped on conflicts.
Shell integration
clove shell-init --install:
- lets
clove new,clove cdand the terminal UI change your directory - completes clone and branch names
- gives your shell each clone's environment while you're in it:
- clove writes a
.clove-envnext to the clone's worktree, outside git, with the variables its steps use (pnpm's store, your config'senv) - the shell loads it on
cdand restores your variables on the way out - without it, a plain
pnpm iin a clone would start an empty store and rebuildnode_modules - only files clove wrote are loaded: each carries a per-user token, so a repo can't ship one
- clove writes a
Shells without the integration can use clove run <clone> -- <command>.
Plain git worktrees
Worktrees made before clove, or by an agent's git worktree add, show up in clove ls too.
clove rm <path or folder name>removes one withgit worktree remove, never forced. A locked or modified worktree stays, and so does a detached one holding commits on no branch.clove adoptturns one into a clone on the same branch, and puts it back if that fails. Ignored files in it (build output,.env) aren't carried over.