v5.1.0
Immutable
release. Only release title and notes can be modified.
Minor Changes
- c3ca559: Rework the
initwizard: multi-repository setup, mode-aware prompts, and a self-documenting generated config.- Multiple repositories in one run. The wizard now loops with an "Add another repository?" prompt, so a monorepo-sibling setup (the common multi-repo case) can be scaffolded in a single
initinstead of hand-editing the file afterwards. - Mode-first prompts. Each repository asks
worktreevscloneup front, then only the fields that apply to that mode:bareRepoDirfor worktree mode; optionalbranchand shallowdepthfor clone mode. Clone-mode entries are emitted withmode: "clone"and never leak worktree-only fields. - Removed the run-once question. The wizard always generates a scheduled config;
runOncestays available as a CLI flag / manual config field for one-shot runs. - Self-documenting output. The generated file appends a commented cheatsheet of the most common advanced options (
branchMaxAge,branchInclude/branchExclude,sparseCheckout,updateExistingWorktrees, clonebranch/depth,parallelism,hooks,debug) with a link to the full reference. - CLI discoverability.
sync-worktrees --init/--list(flag forms of the subcommands) now fail with a hint pointing tosync-worktrees init/listinstead of a bare "unknown argument" error. - MCP auto-registration. After writing the config,
initdetects installed AI CLIs (Claude Code, Codex) and, for any that don't already have the server, offers to register it via<tool> mcp add sync-worktrees -- npx -y -p sync-worktrees sync-worktrees-mcp(auto-detect mode — no config path is bound). Best-effort: it's TTY-gated, only prompts when it can confirm the server is missing (skips tools that are absent, already registered, or whose state can't be determined), and never failsinit.
- Multiple repositories in one run. The wizard now loops with an "Add another repository?" prompt, so a monorepo-sibling setup (the common multi-repo case) can be scaffolded in a single