<aside>
💡 This is the setup for having a swarm of about 24 AI agents work through your app's tickets overnight, so that by morning you have one draft pull request to review and a Discord ping telling you it is ready.
</aside>
The setup
- One command in Claude Code: you start the whole run with a single command, then go to bed.
- Linear: the tickets waiting in your backlog are the work. The agents build from real tickets, not from ideas made up on the night.
- Wave one, research agents: each one reads a ticket and scopes it, so the build agents know what to do.
- Wave two, build agents: they implement the scoped tickets. Across both waves there are about 24 agents in total.
- One draft pull request: all the work arrives as a single draft PR, so there is one thing to check in the morning.
- A Discord ping: a message tells you where to look when the run finishes.
- You decide what ships: the agents never merge anything. You review the draft PR and choose.
- Rule 1: never let agents write to main.
- Rule 2: work from real tickets.
- Rule 3: split thinking from doing. Research agents think and build agents do.
- Rule 4: report where you will see it, which here is Discord.
How to set it up
- Put your next pieces of work into Linear as proper tickets, each with a clear description of the outcome.
- Install Claude Code and open it in your app's repository.
- Write one command in Claude Code that reads the open Linear tickets and starts a first wave of research agents, one per ticket, to scope them.
- Have the same command start a second wave of build agents that implement the scoped tickets on a separate branch, never on main.
- Make every agent's work land in one draft pull request on your git host.
- Create a Discord webhook and have the command post a message with the draft PR link when the run ends.