Three Tools to Level Up Claude Code: Swarm, Nightshift, cmux πŸ”₯

Yo, fam, single Claude Code sessions? That's like using a flip phone in 2024. Powerful, but you're stuck waiting on one brain while your codebase begs for parallel work and overnight TLC. These three toolsβ€”Swarm, Nightshift, and cmuxβ€”turn your solo dev into a non-stop team. Installed in 15 mins. Codebase never sleeps again. Let's break it down.

WHY This Stack Exists πŸ‘‡

The pain before:

  • Sequential hell: Refactor auth? Tests wait. No parallelism.
  • Token waste: Midnight reset, half your budget unused.
  • Chaos: Agents trip over git states, context windows blind.

The fix: Parallel agents during day, auto-maintenance at night, real-time dashboard. Tokens work overtime, debt melts away.

PROBLEM (Solo Claude) ❌        SOLUTION (This Stack) βœ…
═══════════════════════        ═══════════════════════
Sequential tasks                Parallel + Overnight
Token waste                     Full utilization
Git fights                      Isolated worktrees
One pane chaos                  Multi-pane control

Big Picture: The Stack Flow πŸš€

You ──► /swarm (day agents) ──┐
         β”‚                     β”‚ Parallel work
         β–Ό                     β”‚
cmux (watch all) ──────────────┼──► Nightshift (2AM cleanup)
                              β”‚
                              β–Ό
                         PRs + Clean code
  • Swarm: Multi-agent boss for parallel tasks.
  • Nightshift: Roomba for code debt.
  • cmux: Mission control terminal.

1️⃣ Swarm: Multi-Agent Orchestration 🀯

WHY?

Solo Claude = one task at a time. Swarm = lead agent delegates to specialists in isolated git worktrees. No clobbering changes.

Big Picture

Lead spawns teammates via Claude's TeammateTool (built-in). 1700-line skill teaches 5 patterns:

  1. Parallel specialists (FE/BE/tests)
  2. Pipeline (one feeds next)
  3. Self-organizing queue
  4. Research β†’ build
  5. Plan β†’ approve β†’ execute

How It Works (Step-by-Step)

  1. Type /swarm in Claude Code + describe: "Refactor auth, update tests, docs."
  2. Lead agent spawns 3 specialists.
  3. Each gets own git worktree.
  4. Coordinate via tasks/dependencies.
  5. Lead merges results.
Lead ───► Specialist 1 (auth)
  β”‚       β”‚
  β”‚       β”œβ”€β”€β”€ Worktree 1
  β”‚       └─── Tests
  β–Ό
Merge ───► Main branch βœ…

Details/Edges: Global skill in ~/.claude/commands/swarm.md (grab from gist). Handles conflicts automatically.

TL;DR: Burn this in
Swarm = Claude team in parallel worktrees. /swarm and chill. πŸ’€ Sequential? Never again.

2️⃣ Nightshift: Overnight Code Roomba 😴

WHY?

Code debt piles up: dead code, bad docs, security holes. You ship features, ignore maintenance. Nightshift uses leftover tokens at 2AM, files safe PRs.

Big Picture

CLI scans 20+ issue types (lint, docs, tests). Runs on schedule, never touches main. Wake up to PRs.

How It Works

  1. nightshift setup β†’ config repos/budget/schedule.
  2. nightshift preview β†’ see issues.
  3. nightshift run β†’ overnight magic.
  4. Review/merge PRs on GitHub.

Config snippet:

schedule: "0 2 * * *"  # 2AM
budget: 75% daily
projects: ~/your/repo
tasks: lint-fix, docs-backfill

Details/Edges: Claude auth reuse. Dry-run mode. nightshift doctor checks setup.

TL;DR: Lock it in
Nightshift = auto-cleanup PRs while you sleep. Tokens don't expire wasted. 🎯

3️⃣ cmux: Agent Control Terminal ⚑

WHY?

Multiple agents? Terminal tabs suck. cmux = macOS multiplexer for Claude sessions. See all panes, get pings.

Big Picture

Ghostty-based: vertical tabs, progress bars, notifications. Swarm's 5 agents? 5 panes. Nightshift done? Ping!

How It Works

  1. brew install --cask cmux
  2. Launch: All sessions in one view.
  3. Tabs track progress live.

Details/Edges: v0.62.2. macOS only. Perfect for swarm/nightshift combo.

TL;DR: Brain burner
cmux = dashboard for agent chaos. No more alt-tabbing hell. πŸ˜‚

Install: 3 Brews, 2 Files (15 Mins) βœ…

1. brew install --cask cmux
   brew install marcus/tap/nightshift

2. mkdir ~/.claude/commands
   gh gist view [ID] > swarm.md
   (Copy nightshift.md wrapper)

3. nightshift setup

You're live. Test: /swarm in Claude, nightshift preview, cmux.

What Changed? From one-brain grind to 24/7 team. Zero excuses. You tracking, bro? πŸš€

← All notes