Commands and interfaces

Commands

create
clove new feat/loginbranch from origin/main, or check out an existing branch
clove new feat/login -x claude...and start an agent in it
clove new pr:123check out pull request #123 as branch pr/123
clove adopt ../old-worktreeturn a plain git worktree into a clone on its branch
work
clove lsclones, branch, dirty/ahead/behind, own disk
clove cd feat-loginjump to a clone; clove cd alone goes back to the main checkout
clove run feat-login -- pnpm testrun inside the clone's dev environment
clove updatein a clone: rebase onto the latest base, rerun changed setup steps
clove setupin a clone, after a pull: rerun the setup steps that changed
clean up
clove rm feat-login -Dunmount, delete, and delete the branch
clove pruneremove clones whose PR is merged, and their branches
clove logwhat clove removed, when, why, and how to get the branch back
maintain
clove refreshbring the golden image to the latest base (incremental)
clove doctorcheck the setup, with a fix for each problem
clove reposevery repo clove manages, golden state, merged clones
clove repos --candidatesgit repos in your code folders clove could manage
configure
clove config geteach setting, its value, and the file it comes from
clove 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 --json prints the clone's path, branch and timings.
  • The terminal UIclove on its own (or clove tui), with mouse support.
    • A sidebar lists every repo, its clones, and whether its golden image is fresh.
    • s settings (Enter edits or toggles, ←/→ picks the file it saves to, x resets) · g clean up · L removal history · A add 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):

  1. fetches the base
  2. rebases the clone's branch onto it (--merge merges instead; update.strategy = "merge" makes that the default)
  3. 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 add them, then clove update --continue, or clove update --abort to put the branch back.
  • It offers to resolve conflicts with ClaudeAt a terminal, clove update asks Resolve with Claude? [y/N]; --resolve skips 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, then clove update --continue, and to stop and explain anything that needs your call. It never pushes or aborts. The TUI's R and the app's "Resolve with Claude" (in your chosen terminal) do the same. update.resolver picks the command (claude --model opus, codex) or turns it off.
  • 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, U updates the selected clone (or continues once the conflicts are fixed) and X aborts; 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 cd and 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-env next to the clone's worktree, outside git, with the variables its steps use (pnpm's store, your config's env)
    • the shell loads it on cd and restores your variables on the way out
    • without it, a plain pnpm i in a clone would start an empty store and rebuild node_modules
    • only files clove wrote are loaded: each carries a per-user token, so a repo can't ship one

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 with git 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.