Skip to main content
Back to Proof of Impact
04 / Case Study _03Shipped

Nobody Watching,
Nothing Taken on Trust

Built for My Own Practice · Four Unattended Nights

Claude Code agents work for hours with nobody watching, on paid work that can't vanish.

In my harness every action is a checked verb, every result is judged on its evidence, and what reaches main stays my call.

Runs over a rehearsal and four nights
170
Accepted, each with a written reason
163
Night commits merged by me
35
Pass criteria each night is judged on
11

As of October 2026

Walkthrough

How a Night Runs

Scroll to step through
Night Opens → My Merge
How a night runs: night opens, a checked verb, a brief, the night worktree, a strict return, the judge, and my merge
00/ 07
The Night
170
runs over a rehearsal and four nights

Nobody Watching,
Nothing
Taken on Trust

A team of Claude Code agents works for hours on one machine while I am away. Every action is a checked verb, every result is judged against evidence, and nothing reaches main until I merge it.

  • AgentsA commander, three group leads and their specialists, each in its own pane
  • RecordOne shared record that only one command-line tool may change
  • MorningThe night's work waits on its own branch for my merge
Claude CodeTypeScriptBungit worktreesherdr
The Record

One Record, One Writer

The agents share one record: items, orders, runs and rulings. No agent edits it. Every change goes through one command-line tool, and that tool decides who may do what.

4 RANKS · 28 VERBS · ONE WRITERREADSONE LOCKCORETHE CLIthe only writerSTATETHE RECORDitems · runs · rulingsLEGATUSCOMMANDERruns the nightPRAEFECTIGROUP LEADSintel · forge · huntCASTRORUMREVIEWERreads, gradesOWNERMY SEATrules, merges1234
  1. Agents Call Verbs

    No agent opens the record's files. It calls a verb, such as claiming an item or accepting a run, and the CLI does the writing.

  2. The Matrix Checks Rank

    One matrix lists which of four ranks may run each of 28 verbs. The router checks it before any handler runs.

  3. The Handler Checks Scope and State

    The handler then checks the caller's group and the item's state. A lead acts only inside its own group.

  4. Written Under One Lock

    Each change is applied under one file lock, stale after 60 s. A nested call fails at once, and slow work such as git and builds stays outside it.

Where It Runs

Claude Code itself also blocks direct edits to the record, so the rule holds twice. The legion runs on my own machine, in its own terminal workspace.

Dispatching work from a conversationAgent Orchestrator

Setup

The Legion, Group by Group

Three groups share one harness. Each has a lead, its own specialists and task types, its own checks and its own limits.

Intel

Job
Research and competence mining: what my own work proves, and what the market asks for.
Specialists
Three: a repo miner, a web researcher and a synthesizer.
Task Types
Mine a repo, mine recent work, scan the market, audit the site, fold the maps, write a growth brief.
Checks
Every finding cites a path, a commit or a URL actually opened. Uncited claims are cut.
Writes To
Its run folder. Accepted maps are promoted into the group's knowledge.
Limits
One run at a time. My folders are read-only.

Forge

Job
Site code and writing: changes to this site and its case studies.
Specialists
Four: a builder, a reviewer, a writer and a synthesizer.
Task Types
Make a site change, review that change, write a case study, synthesize the night.
Checks
Build and lint in the night worktree before accept, and a separate review run on each change.
Writes To
The night worktree, one writer at a time. The reviewer writes only its own run folder.
Limits
One run at a time. No web access.

Hunt

Job
Public contract postings: a shortlist of the ones that fit my work.
Specialists
Two: a posting scout and a synthesizer.
Task Types
Scan public boards, prepare a shortlisted posting, fold the finds, synthesize the night.
Checks
Every posting cites the URL actually opened. An empty list is a failed run.
Writes To
Its run folder. Accepted finds fold into one shortlist.
Limits
One run at a time. Public pages only, and nothing is sent.

One Return, as the CLI Checks It

Its shape, with placeholder values. A return that is missing, empty or malformed stays open as failed, and the run can resume with its work intact.

return.json
{  "status": "done",  "summary": "What the run did, in a few lines",  "artifacts": [{ "path": "artifacts/notes.md", "what": "What the file is" }],  "evidence": [{ "done_when_item": "One line of the brief's Done-when", "ref": "Where the proof is" }],  "lessons": [{ "text": "What to do next time", "why": "What showed it" }],  "unverified": []}

The Night Is Reviewed by a Separate Seat

At wind-down a separate reviewer seat grades the night's report against 11 pass criteria: every run traces to an order, nothing is stuck, my checkout is untouched, code is checked rather than reported. Missing evidence is a fail, and the night passes only if all 11 pass.

The Hard Parts

What a Night Must Not Lose

A night runs with nobody watching, so each of these fails quietly when it is wrong. The harness holds each one, never an agent's good behaviour.

01

Paid Work

The Rule
Every run is paid for, so a run that stops short must keep what it did.
How It Breaks
A run that hits its turn limit writes no return. Treat that as a reject and the work is thrown away, and nothing says so.
What Stops the Agent
A missing or malformed return stays open as failed. Every return commits the worktree and writes a patch from the run's base, so a resume keeps the whole diff. Runs left open are swept and committed at start and at wind-down.
02

The Shared Record

The Rule
Items, orders, runs and rulings live in one record that many agents use at once.
How It Breaks
Two writers race, or a slow call holds the lock past its stale time and a second writer breaks in. The record goes wrong with no error.
What Stops the Agent
Agents call verbs, and one lock serializes every write. Git, builds and agent wakes stay outside it, and a nested call fails at once.
03

My Checkout

The Rule
My working tree and main are mine. A night's work stays on its own branch until I merge it.
How It Breaks
A check walks up to my own task runner and builds my tree, or an unjudged commit rides into main with the merge.
What Stops the Agent
A check refuses to run in a worktree without its own task runner. Orphaned and rejected writers are reset off the branch. My merge refuses while any run is unjudged, a window is open or main is dirty, runs build and lint, and never pushes.
04

The Machine Itself

The Rule
The loop has to keep running for hours on a laptop nobody touches.
How It Breaks
A wind-down step fails, or a pane closes mid-turn, and the night stops before its report and review are written.
What Stops the Agent
Every wind-down step is logged and skipped if it fails, with cleanup that always runs. A busy pane closes only when its turn ends.

What Broke and Was Fixed

What Broke
On one live night the Mac slept mid-review. The loop exited before the reviews were written, the keep-awake process died with it, and a lid closed on battery put the machine to sleep.
The Fix
The loop now stays awake after the window until both reviews are written, and start refuses to run on battery.
Results

What Runs Today

170

170 runs over a rehearsal and four unattended nights, as of October 2026.

163

163 runs accepted and 6 rejected, each with a written reason.

35

35 night commits merged into main by me, after build and lint passed. Nothing was pushed.

21

21 faults found and fixed by reviews and live nights. The reviewer seat failed every night on 1 to 3 of its 11 criteria, and each failure became a fix.

For Your Team

Plug In Your Agents

None of this is specific to my practice. It is six things I set up around your agents and three I tune to your work.

What I Set Up

  1. One CLI Over StateAgents change shared state only through verbs, never by editing files.
  2. A Rank MatrixOne table of who may run which verb, checked before any handler.
  3. One LockEvery write serialized, with slow work kept outside it.
  4. Strict ReturnsA fixed result shape with evidence per Done-when item, committed on return.
  5. A Night LoopStarts clean, wakes agents only when there is news, winds down step by step.
  6. A Reviewer SeatA separate agent that grades each night against written pass criteria.

What I Tune

  1. Groups and Task TypesShaped to your work: research, code, writing or operations.
  2. LimitsHow many runs at once, per group and per window, and how long each may take.
  3. Pass CriteriaWhat a good night means for you, with missing evidence a fail.
Contact

Need something like this built?

Currently accepting 1-2 new engagements

Let's talk on LinkedIn
ReferenceTechnical StackShow
Layer
Technology
Agents
Claude Code: lead seats and background subagents, each seat in its own pane
Harness CLI
TypeScript, Bun (no build step)
Isolation
git: one branch and worktree per night, one writer at a time
Terminal
herdr terminal multiplexer (adapter)
Concurrency
O_EXCL file lock (stale 60 s, retry 10 s)
Power
caffeinate; start refuses on battery
Tests
bun test: 32 test files, temp git repo, fake clock, fake panes