Back
21/65
Lesson 21
10 min
RU: Multi-Repo Mastery
Sync repos and automate commits with AI
Ready to level up?
Mark complete to track your learning progress.
Sync repos and automate commits with AI
Mark complete to track your learning progress.
Master multi-repo synchronization and AI-driven commit automation with RU.
RU (Repo Updater) is your command center for managing dozens of GitHub repositories. One command syncs everything. AI automation commits your dirty repos intelligently.
Without RU, you'd manually cd into each repo and run git pull. With 20+ repos, that's tedious and error-prone. RU handles it all with parallel workers.
Work-stealing queue syncs repos 4x faster
Group dirty worktrees into conventional commits
Pick up where you left off
No string parsing, locale-safe
10 repos synced with 4 workers
Waiting for sync to start...
Start with these core commands. They cover 90% of daily usage.
ru sync --resume if sync was interrupted. RU remembers progress!After a swarm session you are left with dirty worktrees across many repos.ru commit-sweep groups the changes in each repo into logical conventional commits. It is a dry-run by default: you see the plan first and apply it with --execute.
# Phase 1: Scan# RU finds every repo with uncommitted changes# Phase 2: Plan (default, no git writes)# Changes are grouped into logical conventional commits# Manually staged files stay their own group with --respect-staging# Phase 3: Execute# ru commit-sweep --execute runs the planned commits with plain git
--execute: the sweep commits everything it grouped, in every matching repo.RU can orchestrate AI-assisted code reviews across your repos using ru review. The review system integrates with ntm's robot mode to spawn Claude agents for thorough analysis.
ubs for comprehensive coverage: run ubs . for static analysis, then ru review for semantic understanding.RU follows XDG conventions. Configure once, sync everywhere.
# Base directory for repositoriesPROJECTS_DIR=/data/projects# Parallel workers (1-8)PARALLEL=4# Update strategy: ff-only | rebase | mergeUPDATE_STRATEGY=ff-only# Auto-stash local changes before pullAUTOSTASH=false
# ShorthandDicklesworthstone/ntmDicklesworthstone/beads_viewer# With branchowner/repo@develop# Custom local nameowner/repo as my-fork# SSH URLgit@github.com:owner/repo.git as myrepo
ru init --example to create starter config files.RU becomes more powerful when combined with other flywheel tools.
ru review --mode=ntm drives its Claude sessions through NTM. NTM manages the tmux panes, RU orchestrates the review workflow.
After syncing repos, use BV to check beads across all projects. Combine ru status with bv --robot-triage.
Agents can claim repos via Mail to prevent conflicts during parallel ru review sessions.
RU uses meaningful exit codes for scripting and automation.
0Success1Partial failure (some repos failed)2Conflicts (manual resolution needed)5Interrupted (use --resume)