Longshot

An overnight build system: 40 agent sessions, no human

In daily useNov 2026

  • 40agent sessions in one run
  • 10hours unattended
  • 4agents at once
  • 8safety hooks
Longshot: aim in the evening, fire overnight, read the log in the morning No human needed between aim and morning Evening Overnight Morning aimreads the codeasks every decision,one question at a timechecks credentialswrites the plan plan fire orchestratorsplits the plan into batches Up to 4 coding agents in parallel, each in its own git worktree Agent 1 Agent 2 Agent 3 Agent 4 Tests andreview Merge next batch Never deploys to production Log: every step appends Charlesreads the log Hooks guard the whole run: secrets, memory, unmerged work
Longshot: aim in the evening, fire overnight, read the log in the morningEvening aimreads the codeasks every decision,one question at a timechecks credentialswrites the plan plan Overnight fire orchestratorsplits the plan into batches Up to 4 coding agents in parallel, each in its own git worktree Agent 1 Agent 2 Agent 3 Agent 4 Tests and review Merge next batch Never deploys to production Log: every step appends Morning Charlesreads the log Hooks guard the run secrets, memory, unmerged work No human needed between aim and morning

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.

Gallery

An excerpt of a Longshot run log for the clish launches redesign: batches landing, test suites verified and the branch merged.
The clish launch page that the Longshot run built, with posts for three channels and linked tickets.