Learning HubACFS Academy
Progress
0%
0 of 3333 remaining
  • 1
    Welcome & Overview5 min
  • 2
    Linux Navigation8 min
  • 3
    SSH & Persistence6 min
  • 4
    tmux Basics7 min
  • 5
    Git Essentials10 min
  • 6
    GitHub CLI8 min
  • 7
    Agent Commands10 min
  • 8
    NTM Command Center8 min
  • 9
    NTM Prompt Palette6 min
  • 10
    The Flywheel Loop10 min
  • 11
    Keeping Updated4 min
  • 12
    UBS: Code Quality Guardrails8 min
  • 13
    Agent Mail Coordination10 min
  • 14
    CASS: Learning from History8 min
  • 15
    The Memory System8 min
  • 16
    Beads: Issue Tracking8 min
  • 17
    Safety Tools: SLB & CAAM6 min
  • 18
    The Art of Agent Direction12 min
  • 19
    Case Study: cass-memory15 min
  • 20
    Case Study: SLB12 min
  • 21
    RU: Multi-Repo Mastery10 min
    NOW
  • 22
    DCG: Pre-Execution Safety8 min
  • 23
    Meta Skill: Local Skills10 min
  • 24
    SRPS: System Protection8 min
  • 25
    JFP: Prompt Library6 min
  • 26
    APR: Automated Plan Reviser8 min
  • 27
    PT: Process Triage6 min
  • 28
    XF: X Archive Search6 min
  • 29
    RCH: Remote Compilation8 min
  • 30
    WA: WezTerm Automata8 min
  • 31
    Brenner Bot: Research10 min
  • 32
    GIIL: Cloud Image Downloads6 min
  • 33
    S2P: Source to Prompt6 min
Back to Home
Back
21/33
Lesson 21
10 min

RU: Multi-Repo Mastery

Sync repos and automate commits with AI

New to ACFS?

Complete the setup wizard first to get the most from these lessons.

Go to Choose Your OS
Goal

Master multi-repo synchronization and AI-driven commit automation with RU.

What Is 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.

Parallel Sync

Work-stealing queue syncs repos 4x faster

Agent Sweep

AI-driven commit automation

Resume Support

Pick up where you left off

Git Plumbing

No string parsing, locale-safe

Essential Commands

Start with these core commands. They cover 90% of daily usage.

Clone missing + pull all repos
Parallel sync with 4 workers
Stash local changes before pull
Check all repo states
Fetch + show ahead/behind
Show all repo paths
Health check RU installation
Pro Tip
Use ru sync --resume if sync was interrupted. RU remembers progress!

Agent Sweep: AI Automation

Agent Sweep is RU's killer feature. It uses Claude Code to automatically commit dirty repos with intelligent commit messages.

Three-Phase Workflow
# Phase 1: Understand
# Agent reads AGENTS.md, explores codebase, learns conventions
# Phase 2: Plan
# Agent produces JSON commit plan (files, messages)
# RU validates: no secrets, file size limits, schema check
# Phase 3: Execute
# RU executes validated plan with deterministic git commands
Preview what would happen
Process 4 repos simultaneously
Include version bumps and tags
Continue interrupted sweep
Warning
Always run --dry-run first to preview the commit plan!

AI Code Review

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.

Review uncommitted changes in current repo
Create detailed review plan first
Review all dirty repos
Focus on security issues
Pro Tip
Combine with ubs for comprehensive coverage: run ubs . for static analysis, then ru review for semantic understanding.

Configuration

RU follows XDG conventions. Configure once, sync everywhere.

~/.config/ru/config
# Base directory for repositories
PROJECTS_DIR=/data/projects
# Parallel workers (1-8)
PARALLEL=4
# Update strategy: ff-only | rebase | merge
UPDATE_STRATEGY=ff-only
# Auto-stash local changes before pull
AUTOSTASH=false
~/.config/ru/repos.d/public.txt
# Shorthand
Dicklesworthstone/ntm
Dicklesworthstone/beads_viewer
# With branch
owner/repo@develop
# Custom local name
owner/repo as my-fork
# SSH URL
git@github.com:owner/repo.git as myrepo
Pro Tip
Run ru init --example to create starter config files.

Tool Integration

RU becomes more powerful when combined with other flywheel tools.

RU + NTM

Agent Sweep uses NTM robot mode to spawn Claude sessions. NTM manages the tmux panes, RU orchestrates the workflow.

RU + BV

After syncing repos, use BV to check beads across all projects. Combine ru status with bv --robot-triage.

RU + Mail

Agents can claim repos via Mail to prevent conflicts during parallel agent-sweep runs.

Exit Codes

RU uses meaningful exit codes for scripting and automation.

0Success
1Partial failure (some repos failed)
2Conflicts (manual resolution needed)
5Interrupted (use --resume)

Ready to level up?

Mark complete to track your learning progress.

Previous
Case Study: SLB
Next
DCG: Pre-Execution Safety