Longshot
An overnight build system: 40 agent sessions, no human
- 40agent sessions in one run
- 10hours unattended
- 4agents at once
- 8safety hooks
About
Longshot is how I build large features overnight. Before I go to bed, one session interviews me until every decision is made, and writes the plan. Then an orchestrator runs that plan alone: it splits the work into batches, runs up to four coding agents in parallel, tests and reviews what they make, and keeps a log I read in the morning. It never deploys to production.
Its first big run rebuilt the launches part of clish: about ten hours and forty agent sessions.
Stack
- Agents
- Claude CodeSkillsSubagents
- Guardrails
- Hooks in Python and BashInfisical
- State
- git worktreesA plan file and an append-only log
Technical challenges
Ask everything up front
The first step reads the code, finds the decisions and the one-way doors, checks every credential the run will need, and asks me one question at a time, so the run never stops to wait for me.
All state in two files
A run is a plan and an append-only log, so it can pick up after any crash. A hook enforces that, because a rule written in markdown is only a suggestion.
Budget, not headcount
A run is scoped to time and spend rather than a fixed number of agents, and the orchestrator decides how to split the work inside that.
Guardrails as hooks
Hooks keep secrets out of transcripts, give agents a read-only development token, block jobs that would run the machine out of memory, and stop work being left unmerged.
Blind review for visual work
For anything visual, a builder agent works against a reference while fresh critics see only the reference and two renders and pick the closer one.

