ub-agents v0.1.15
Commands · ub-agents cleanup

Commands

ub-agents cleanup

Run ub-agents cleanup to preview worktrees and local branches left by stopped runs on this machine, and --apply to remove the ones that are safe to remove. After a normal run the launcher already removes its worktree, running the cleanup hook first, so this command is for leftovers.

$ ub-agents help cleanup
usage: ub-agents cleanup [options]

Preview stale owned worktrees and local branches. Use after stopped runs;
--apply removes eligible artifacts after rechecking ownership.

options:
  --apply                remove eligible artifacts after rechecking
  --config PATH          project configuration (default: ub-agents.yaml)
  -h, --help             show this help

examples:
  ub-agents cleanup
  ub-agents cleanup --apply