James Washington
writing about archive utils free game ideas replays
Automation

Agent git fleet: worktrees, sweeper, ship

Gives every AI session its own copy of the code, then automatically opens reviews for finished work and cleans up.

built Sep 2026 updated Oct 2026 Running a team of AI agents

how it works

agent-worktree makes ~/.claude/worktrees// on agent/; launchd agent-sweeper publishes quiet clean branches as PRs and reaps merged worktrees across all repos; agent-ship rebases and fast-forward pushes requested work to main, never --force.

Automation: Something that runs on a schedule by itself.

The code for this one lives in a private repo. This page explains the idea so you can build your own.

gitlaunchdmulti-agentworktrees

related

  • Git discipline for agent fleets AI skill Rules that stop many AI assistants working in the same code from trampling each other's changes.
  • agent-merge: Jev-gated self-merge for agent branches Automation The one sanctioned way an AI may merge its own work: a script that reviews it first and refuses if it didn't show its work.
  • commit_gate: no wandering off with a dirty tree Agent hook Stops an AI from finishing a task while leaving its changes uncommitted.
  • In shared checkouts, prove your deploy landed Technique When several AIs share code, 'deploy succeeded' doesn't mean your change is the one live.
  • Director: Mission Control fleet dispatch AI skill One command reads everything on the to-do board and opens a pre-briefed AI assistant for each area of work, side by side in the terminal.
← everything I've built
© 2026 James Washington
github twitter rss