Skip to content
Maxwell CollinsContact

An organisation of AI agents run like a software company

Maxwell built this supervisor program and AI-agent organisation, run like a software company, to build his software.

What it achieved

His AI agents write software overnight with nobody watching; no agent's word counts until the code proves it.

The short version

Maxwell built this organisation of AI agents to write software overnight with nobody watching, where no agent's word counts until the code on disk proves it. Under his direction it built a six-product property software suite in 64 days, its agents writing every line. It works like a software company: lead agents plan, specialist agents build, fresh agents review, and a read-only "CTO" agent advises. Each agent has one bounded job and leaves a written record. A supervisor program (suite) runs it, handing each job to a short-lived agent and refusing any report the disk does not back. It runs unattended overnight inside a sandbox.

The problem

An orchestrating agent inside a chat is believed too easily: it will say work is fine when it isn't, and report that its helpers succeeded without reading their reports. "I ran it and it worked" is a claim. When agents write code faster than anyone can read it line by line, an unchecked claim is the most dangerous thing in a project.

In use

  1. He gives suite a job, such as a feature to build, a review or a list of open tasks.
  2. suite hands each piece to a short-lived agent with a brief that carries every rule it must follow, word for word.
  3. When the agent reports, suite checks the report against what is actually on disk and refuses anything that doesn't match.
  4. Each result joins a chain of records he can re-verify himself, and one command undoes exactly one run's changes.
  5. Overnight it runs unattended inside a sandbox.

What it achieved

  • It built a six-product property software suite in 64 days, with AI agents writing every line across 1,211 saved changes.
  • Agents did the building and reviewing: 382 jobs, 275 to builders and 107 to reviewers, each a bounded job with a written record.
  • It builds while he sleeps: one overnight run with nobody attending produced nine finished changes across 42 files in 81 minutes.
  • An agent that says its work is done is not believed until the disk shows it, and one command undoes exactly one run, so a bad run costs nothing to reverse.

The full record

On this page
In one sentence

Maxwell built the agent organisation and supervisor program of the property suite, a property-management product of 203,526 lines of application code and 260,878 lines of tests in 585 files: about 9,100 lines of organisation tooling (hooks, query servers, agent definitions and recovery tools), 7,983 lines of the suite supervisor with its sandbox and service files, 26,668 lines in 32 skills (30 of them also carried over for a second agent platform, 25,703 lines) and 12,655 lines in the testing, contract and opportunity pipelines, so that AI agents work as a company with lead orchestrators, specialist builders, fresh reviewers and a read-only CTO, each in a bounded job with a written record; suite hands each job to a short-lived agent, checks its report against what is on disk and adds the result to a chain of records he can re-verify himself, and 382 dispatches were logged and one overnight run produced nine commits in 81 minutes with nobody attending. He builds by directing AI agents.

line supervisor
7,983
agent dispatches
382
commits in 81 minutes overnight
9
skills
32

What it does

The organisation is measured from the repository on dev (1,217 commits on all branches; 1,211 of them in the 64 days of the build). Each count is lines of text in the files named, counting scripts with no file ending.

  • suite, the master orchestrator (bin/suite, 114 lines of shell; scripts/lib/orchestrator/, 22 files, 3,220 lines; scripts/orchestrate/, 12 files, 2,819 lines; scripts/orchestrator-test/, 3 files, 876 lines). One command with twelve verbs. status reports the ledger. remediate works through the list of open tasks. build-feature, review-source and qa wrap the pipelines. fix-cycle couples testing to repair. verify rechecks the record. revert undoes exactly one run's files. kill stops a run. schedule and deploy run it unattended. Its library holds the ledger (runs, dispatches, actions, cursors, findings and schedules tables), the dispatch ledger, the session store, the hash chain, the dispatcher, the footer schema and check, git state and git helpers, commit trailers, cost telemetry, the kill switch, the heartbeat, the lock, a cron parser, the scheduler and its daemon, routine definitions, the secret scanner, skill contracts and a managed-agents path. Each step is a new short-lived agent, so no conversation carries trust from one step to the next. Its tests are checks of the library, of its properties and of its substrate.
  • The footer and the write-set check. A dispatched agent must end with a report in a fixed form naming every file it changed. The program checks that list against the paths the job was authorised to touch and confirms each file exists. A commit that fails the check is reverted automatically. The form is specified in docs/orchestrator/footer-spec.md, with a paragraph for each skill to carry in skill-footer-addendum.md, and a commit-trailer specification ties each commit to its dispatch.
  • AAT, the Agent Audit Trail (aat-chain.ts, session-store.ts, docs/orchestrator/aat-spec.md). Every event in a session is put in a standard form, hashed and chained to the one before, in a table that only accepts additions. Each record carries a trust level from L0 to L4: a claim backed by a file ranks below a claim backed by a commit. suite verify recomputes the chain, so a record rewritten after the fact shows up by its position. He can run it himself.
  • The sandbox (scripts/sandbox/, 8 files, 607 lines: container definition, per-dispatch runner, firewall, credential proxy configuration and start script, read-deny list, version pin and entry point). For unattended runs, five barriers: the real credential stays outside behind a proxy, each dispatch gets a fresh copy of the code as its only writable place, credential folders are unreadable, the agent program is pinned to one version, and the container drops its privileges with outbound network traffic limited to an allowed list. Secrets are scanned for at four separate points, before dispatch, at the gate twice and at run time.
  • Unattended running (infrastructure/orchestrator/, 5 files, 347 lines, and docs/orchestrator/deploy.md). A supervised system service and timer, an example schedule and a three-layer liveness check: the process, a heartbeat file that goes stale after 30 minutes, and a daily check. Scheduled routines state what happens to a missed run.
  • Eight query services (.claude/mcp-servers/, six servers written for the project, 2,680 lines of Python, plus two graph servers). One orients, and the others cover memory (577 lines), memory analysis (713), CTO decisions (457), QA findings (316), the dispatch ledger (297) and the two knowledge graphs. All of them only read. The orient call returns the branch, the four finish-line criteria, the last three decisions, open dispatches and a findings summary in about 2.5 KB.
  • Two knowledge graphs, rebuilt on every commit. One of the rules (4,605 nodes, 5,156 edges, 22 themes, over 49 domain-rule files) and one of the code (11,321 nodes, 26,060 edges, 279 communities), so an agent asks what calls a thing or which rules govern it. The rules graph is rebuilt through scripts/rules-graph-rebuild.py, with results cached by content hash so unchanged files cost nothing.
  • Memory that examines itself. 267 memory notes are indexed, and a local analyser clusters them and proposes pairs that contradict or replace one another. It never calls a model: it hands the candidates back for a fresh agent to judge.
  • The hooks (31 shell scripts, 5,094 lines, with a shared library of five files; 37 files and 5,236 lines in the folder). git-guard blocks 16 destructive version-control operations and more than 50 command patterns; its header records the incident behind it. Others block direct changes to the database's structure, destructive database commands over the query services, edits to protected files through them, and side copies of the repository. A dispatch guard enforces the roles. A post-agent review hook, a classifier hook, a time-budget hook and the Stop hooks watch behaviour. Start-up, pre-summarisation, telemetry, formatting and structure-check hooks keep the rest in line, with test scripts for the state machine, the reviewer parser, dispatch recording and the stop gate.
  • About 26 hooks, 48 hookify rules, 32 skills and a permission table make up the rule layer; the 48 hookify rules are in hookify.* files, each forbidding one mistake: for example deleting test files, skipping tests, empty exception handlers, random values in production, timestamps without time zones, vague test names, and editing existing database changes.
  • The agents and skills. Three reviewer agents (specifications, quality and domain rules, 573 lines) and the roles dispatched under them: test-architect, implementer, test-attacker, qa-auditor and the CTO agent. 32 skills in 81 files and 26,668 lines, covering architecture, building, review, fixing, contracts, QA discovery and verification, testing, design, and the CTO's decisions.
  • The anti-pattern catalogue (682 lines). Twenty-two categories of agent misbehaviour, from time-budget rationalisation and routing technical decisions back to the owner, through fabricated evidence and gaslighting, to test-signal masking with mocks, which the classifier reads an agent's closing message against.
  • The contract pipeline (scripts/contract-feature*.ts and its library, 2,329 lines). Each costly stage can be resumed on its own, with a rules injector and a layer-brief injector.
  • The testing system (8,924 lines in 29 qa-* programs and shell files, 69 flow files, 67 of them flow definitions, in 3,416 lines). Fuzz inputs, a state walk, a time-zone sweep, visual diffs, a triager, finding reconcile, contract checks and a collector for the testers' reports, with test checks of its own.
  • The opportunity scout (1,402 lines). Searches for demand signals and puts its findings through three auditors.
  • The owner-portal completion ledger (12 files, 2,321 lines, with generator, checker and schema, and a path-to-screen map). A tracker of every screen of the owner's product, what each one requires and what was found against it, with generated views and a check for drift.
  • Compiled briefs (.claude/scripts/, scripts/refresh-briefs.py). A program assembles the exact working set for an area (its active rules, the decisions that touch it, its known defects, what depends on it) so that a helper reads one artifact once.
  • Recovery tools (.claude/recovery/, 390 lines, and docs/RECOVERY.md). One replays an agent's file writes from a session's record; another rebuilds the conversation. Every commit backs itself up: a hook on each commit pushes, rebuilds the graphs and copies the state that version control does not hold, and a written recovery procedure covers the loss of the machine; scripts/backup-to-icloud.sh and its restore script carry the copy.
  • A benchmark of 12 tasks (scripts/benchmark/, 13 files, 1,323 lines) with a scoring script, for measuring how the agent setup performs.
  • The operating record. About 60 operating records of the layer-by-layer build: for each layer a map of what was built, an independent verification of that map, a review and, where needed, a second review (64 wave-1 files in the state folder, 80 notes there, 37 handoff and owner-portal shipping documents); 47 handoff and session-state documents; a 3,943-line report (docs/ai-operating-environment.md) describing the whole operating environment, surveyed by six agents in parallel; a 688-line master design for suite; 1,529 lines of orchestrator specifications.
  • The engineering standard every agent is held to (CLAUDE.md, AGENTS.md, 334 lines, and .claude/docs/constitution.md, 203 lines, with cto-briefing.md, 375 lines). Agents are told they are the sole maintainer and that technical decisions are theirs to make; the owner judges the result by its gates and recorded proof. The bar is an acquirer's technical due-diligence rubric: 90 out of 100 or better. It is made mechanical: every query carries the organisation and soft-delete conditions, money is whole cents in a 64-bit integer column, every timestamp has a time zone, a fetch across organisations answers "not found" and never "forbidden", no source file passes 500 code lines and no function 200, and no input schema accepts "anything". The constitution has eight rules marked non-negotiable: complete parity with the old system, time-ordered identifiers everywhere, temporal consistency, architecture boundaries, source-first building from the domain rules, file size, immutable data and a mobile-ready base.
  • Four finish-line criteria, locked. The product is done only when every user journey works in a real browser, the full gate passes, the QA auditor reports zero blockers, and the code scores 90 or more on the rubric. The fourth is independent of the other three.
  • Domain rules are truth (.claude/docs/domain-rules/, 48 files, 20,662 lines, 3,862 rules). They are the input to every build; where the rules and the code disagree, the code is wrong, and a mechanical check reads the references between them.
  • The skill iteration protocol (.claude/docs/skill-iteration-protocol.md, 173 lines, the sole source of truth for what to do when a skill produces wrong output). It is a nine-step protocol whose principle is never to modify something that is not broken, with every changed line justified and every untouched line in the area given a reason it stays.
  • A control plane of written constraints (.claude/docs/control-plane/, four files). Each non-regression constraint is mapped to how it is enforced: by a hook, by a schema, by a workflow or by a migration checklist. Among them: no background agents that carry state, no direct writes to state files, no placeholder state accepted as valid, no completion by prose alone (the session stop gate demands a valid, current reviewer artifact), no merged build and audit stages and no rewrite of a proven skill without a side-by-side comparison.
  • 41 structural code rules (.ast-grep/, 44 files) that scan the source for forbidden patterns, run after every edit by a hook, beside the full gate command.
  • The permission table (.claude/settings.json): 33 allowed and 55 denied command patterns, and hooks on eight points in an agent's life (before a tool, after a tool, after a failed tool, at session start, at stop, before summarisation, and when a working copy is made or removed).
  • A second agent platform served from the same files. AGENTS.md is generated from CLAUDE.md for a different coding agent, with the rule that the shared .claude/ folders keep their names; 30 skills are mirrored under .agents/skills/ (78 files, 25,703 lines).
  • The master design of suite, version 2 (docs/plans/master-orchestrator-design-v2.md, 688 lines, 20 sections). It was written by a single fresh orchestrator session after reading the failure documentation, four reviewer papers, the four existing orchestrators, 26 hooks and 12 memory files, and then dispatching 14 research agents in parallel whose 14 papers are each cited for the decision they carry: the agent SDK as the base, one local database for the ledger, hash-chained records, the five sandbox barriers, a pinned model version for every job, termination caps, commit trailers, recovery after a crash, cost control and property-based tests as a fourth layer of checking. It sets out the schema (sessions, session events, runs, dispatches, actions, cursors, findings, schedules), a section on what v2 changed from v1 and why (sixteen rows), a table that pairs each anti-fabrication mechanism with the failure it prevents, the failure-mode matrix mapping each documented failure to what now makes it impossible, a list of what the design explicitly does not do, and six build phases from an attended first version to optional managed-agent migration. Later papers re-fetched the sources behind the research, so invented case-study figures were caught before they reached the design.
  • Model routing and cost control as written policy. Design judgment (contract, specification, architecture, CTO decisions) goes to the strongest model, building and review to a faster one, and mechanical jobs to the smallest; each is pinned by exact version because an alias that re-pointed once multiplied a shop's bill by 2.4. Costs per dispatch are forecast by model and size, a daily ceiling is read from a telemetry collector before each dispatch, a per-dispatch turn and budget limit sits beside it, and the system refuses to dispatch when the collector cannot be reached.
  • Commit trailers. Each dispatch's commit carries a 12-key trailer (14 lines with the repeatable constraint and rejected-alternative lines): tool and model, a co-author line, dispatch and run identifiers, cost, wall-clock time, the constraints honoured, alternatives rejected with the reason, confidence, scope of risk, reversibility, what was tested and what was not. The secret scanner can refuse the commit, files are staged by name from the write set and never all at once, and a force is never used.
  • Approval gates kept few on purpose. Production database changes, framework version edits, external calls with side effects, merges and deployments, work outside the project folder, a cost threshold, spawning beyond depth 3 or 20 children, a run of tool denials and cross-organisation fetches always wait for a person; the design records why the list is not allowed to grow.
  • Four agent factories on one kernel: the testing system, the contract pipeline, suite and the opportunity scout. In each a fixed program owns every step and an AI does only bounded work that something else checks.

What it achieved

  • 382 logged dispatches: 275 to builders and 107 to reviewers.
  • One overnight run with nobody attending: nine commits across 42 files and 6,547 added lines in 81 minutes, after 14 research agents working in parallel had produced 14 papers for its design.
  • 1,211 commits in 64 days, with 80 on the busiest day.
  • 1,217 commits on all branches, 1,211 of them on dev, in a repository of 4,078 tracked files.
  • 48 hookify rules, 41 structural code rules, 33 allowed and 55 denied command patterns and 8 hook points, all in force before a line is written.
  • The orient call returns about 2.5 KB in place of about 30 KB of re-reading on every dispatch.

The problem it solves

  • An orchestrator that lives inside a chat is believed too easily, and will say work is fine when it is not. The orchestrating role had to leave the conversation and become a program with nothing to say that is not on the record.
  • "I ran it and it worked" from an agent is a claim. Without an independent check there is no way to tell a true report from an invented one.
  • An agent will report that its helpers succeeded without reading their reports. Reading the report has to be forced.
  • An agent given a skill to follow will be handed, or will write for itself, wording that lets it skip the skill.
  • A helper agent starts knowing nothing its parent knows. Whatever it must obey has to travel in the brief, word for word.
  • Agents spend most of their attention finding out where things are. Reading the files costs 5,000 to 30,000 tokens where asking a question costs about 200.
  • Sessions end and summaries lose things, and a single version-control command can wipe many commits. What an agent did has to be recoverable from the record of the session itself.
  • An unattended agent with its permission prompts turned off needs real walls. An outside incident, in which an autonomous loop used a reachable credential to delete a database volume in nine seconds, set the requirement.
  • The fault is often in the model's behaviour and not in its file edits: putting things off, inflating the task, winding down early. Rules in prose cannot hold those, so he pointed enforcement at the agent's own closing message.

How he built it

  • Roles with walls. A lead orchestrator plans, dispatches and reconciles. test-architect writes tests and cannot touch product code. implementer writes product code and cannot touch tests. test-attacker writes hostile tests. qa-auditor drives the browser and can change nothing. Three reviewer agents check specifications, quality and domain rules, and the CTO agent reads and decides. A hook enforces each wall at the moment an agent is dispatched.

  • No agent touches source without a skill. The dispatch guard holds a list of allowed dispatches and a state machine: no new area while the current one has a rejected review, and no reviewer before a builder's work has been verified. A second hook rejects any brief containing wording that would let the helper skip its skill.

  • The post-agent review gate. When a helper's report shows two or more signs of trouble, the orchestrator is made to read it and acknowledge it before it can go on.

  • suite, the master orchestrator. One command with twelve verbs. Among them remediate works through the list of open tasks, build-feature, review-source and qa wrap the pipelines, fix-cycle couples testing to repair, verify rechecks the record, revert undoes exactly one run's files, kill stops a run, schedule and deploy run it unattended, and status reports. Each step is a new short-lived agent, so no conversation carries trust from one step to the next.

  • The structured footer and the write-set check. A dispatched agent must end with a report in a fixed form naming every file it changed. The program checks that list against the paths the job was authorised to touch and confirms each file exists. A commit that fails the check is reverted automatically.

  • AAT, the Agent Audit Trail. Every event in a session is put in a standard form, hashed and chained to the one before, in a table that only accepts additions. Each record carries a trust level: a claim backed by a file ranks below a claim backed by a commit. suite verify recomputes the chain, so a record rewritten after the fact shows up by its position. He can run it himself.

  • The sandbox. For unattended runs, five barriers: the real credential stays outside behind a proxy, each dispatch gets a fresh copy of the code as its only writable place, credential folders are unreadable, the agent program is pinned to one version, and the container drops its privileges with outbound network traffic limited to an allowed list.

  • The MCP-first protocol and orient. Eight query services are the way into the project's state: one for orientation, and others for memory, decisions, findings, the dispatch ledger and two knowledge graphs. Every session and every helper begins with one orient call that returns the branch, the four finish-line criteria, the last three decisions, open dispatches and a findings summary. All of them only read.

  • The dispatch envelope. The protocol is pasted word for word into every helper's brief, because a helper inherits none of it.

  • Compiled briefs. A program assembles the exact working set for an area (its active rules, the decisions that touch it, its known defects, what depends on it) so that a helper reads one artifact once.

  • Two knowledge graphs, rebuilt on every commit. One of the rules (4,605 nodes in 22 themes) and one of the code (11,321 nodes), so an agent asks what calls a thing or which rules govern it.

  • Memory that examines itself. 267 memory notes are indexed, and a local analyser clusters them and proposes pairs that contradict or replace one another. It never calls a model: it hands the candidates back for a fresh agent to judge.

  • Guard hooks. git-guard blocks 16 destructive version-control operations and more than 50 command patterns. Others block direct changes to the database's structure, destructive database commands, edits to protected files and the creation of side copies of the repository.

  • Stop hooks on behaviour. A classifier reads an agent's closing message against a catalogue of 20 anti-patterns. A second hook catches the listed time-and-budget phrases. A third refuses to let a session end while a tracked error is unresolved. The anti-gaslighting Stop hook demands numbers from disk for any claim about testing.

  • Continuity as an engineered thing. A start-up hook gives every new or resumed session the orient-first protocol, and after a summarisation it puts the essential rules back by reference. The transcript is backed up before any summarisation. A recovery tool replays an agent's file writes from a session's record, and another rebuilds the conversation.

  • Every commit backs itself up. A hook on each commit pushes, rebuilds the graphs and copies the state that version control does not hold; a written recovery procedure covers the loss of the machine.

  • One way to launch an agent, everywhere. A single dispatch idiom, with output streamed to a file, a timer that ends a stuck agent, and partial output kept on failure, is used by every launcher in the project.

  • Model routing as policy. The strongest model for architecture, discovery and CTO judgement, a faster one for building and review, each named by its exact version and never by an alias. Where a model's habits argue for an exception, the exception is written down with the run that showed it.

  • Instructions placed where the model obeys them. An agent's role is delivered as its first message and not as a background setting, because text given as a setting is followed only in part.

  • Nothing already done is lost to a kill. Findings are written the moment they are seen, each costly stage of the contract pipeline can be resumed on its own, and the orchestrator's ledger is append-only. One lock design keeps two long runs from colliding, and it is used in every subsystem.

  • One exit-code language. Every program reports clean, findings, misuse, panel failure or could not run in the same codes, which is how the higher commands wrap the lower ones.

  • Kill switch, cost record and schedule. A run can be stopped mid-dispatch from the ledger, each dispatch records its cost and tool use, and scheduled routines state what happens to a missed run.

  • Persistence and the time-framing ban. The standing instructions forbid scope-shrinking language: 14 listed phrases such as "this is too large to attempt in one pass", "out of scope for now" and "let's defer", and tell the agent that a task is made of edits and that the next edit is always available. A separate rule says an error is either fixed or stopped on and reported, never carried silently, and a zero-deferral rule says a documented finding is resolved before its domain closes and findings only ever add requirements.

  • Facts come from disk. Instructions say the file system and tool output are truth, chat history is not, memory is only a hint, and capability claims must be checked against documents read in that session.

  • Superseded, not deleted. A replaced plan, specification or rule gets a dated marker in its first five lines naming its successor, and a hook reads that marker so agents are not anchored on a stale list of next tasks.

  • Commit cadence. Every uncommitted file is committed, specific files are staged by name, and the commit hooks are never bypassed.

  • Skill fixes follow the nine-step protocol. When a skill produces a defect, the skill is the root cause and only the broken lines may change, each with its justification.

  • Design by parallel research. Before the supervisor was built, 14 research agents each produced a paper, a later round re-fetched sources and caught invented figures, and the design records which figures were dropped. The build then proceeds in the design's order, each file ending with the gate passing and a commit, and a phase that fails the gate does not ship.

  • Orchestrator output with no commentary. The status verb renders ledger rows and structured data only, with [INFERRED], [CONFIRMED] and [UNVERIFIED] labels on claims, so the orchestrator cannot become a new place for the chat-style reassurance it replaced.

  • Fresh copy, not a shared working copy. Each sandboxed dispatch is a shallow clone of the repository in its own folder, removed afterwards, because the git guard hook bans git worktree.

  • Revert checks first. revert stops with a finding if a file is dirty and was not committed by the run being reverted, so it cannot overwrite the owner's concurrent edits; it is the only verb that asks.

  • Checks that are not a gate. The wall-clock and tool-use anomaly signals are logged for calibration against labelled runs, and the language-model judge is used to sort findings and never to decide re-dispatch, which is left to mechanical checks.

Named concepts

The named concepts, defined

suite · orient · MCP-first protocol · The dispatch envelope · AAT, the Agent Audit Trail · suite verify · Trust levels · The structured footer · Write-set verification · The sandbox · git-guard · The post-agent review gate · No agent touches source without a skill · The anti-gaslighting Stop hook · Time-budget anti-prompts · Compiled briefs · test-architect, implementer, test-attacker, qa-auditor · The CTO agent · Four finish-line criteria · Domain rules are truth · The skill iteration protocol · Acquisition-grade quality bar · Two-option rule · Zero-deferral · Four agent factories on one kernel

What it shows

He can run software production as an organisation of AI agents at scale, and he knows where such an organisation will deceive its owner well enough to have designed the record that prevents it.