01 · Start
A software factory methodology

Stop babysitting agents.Hire a foreman.

A foreman in Claude Code specs every ticket in a fresh session, a cheaper builder codes it, another model family reviews it, and nothing merges without its evidence.

Watch one jobYour part, and the AI’s part, from ticket to merge.
Three ways to run a jobPick one to see its loop
1Plan

Pick a ticket, then say go.In a fresh session, one line: /goal autonomous run: <opener>, until done or stoppedBefore bed, one line: /goal night shift: jobs 13, 17, until done or stopped

Reads the ticket and your code. Writes a plan.Plans, and answers its own questions with its pick.A shift manager starts each job in a fresh session.

2Build

Nothing, if Orca links the panes. Otherwise paste one line per step.Nothing: Orca passes each step to the builder.Nothing: Orca passes each step to the builder.

Small steps, each built tests first by a cheaper model.Small steps, each built tests first by a cheaper model.Small steps, each built tests first by a cheaper model.

3Check

Nothing. It carries on.Nothing. It carries on.Nothing. It carries on.

Two reviews, then proof for every requirement.Two reviews, then the proof check. Fixes what fails.Two reviews, then the proof check. Fixes what fails.

4Your OKCovered by your goalCovered by your goal

Open the PR, then merge when you’re happy with the proof.Nothing to say: your goal covers the PR, up to three automated reviews, and the merge.Covered by each job’s goal.

Opens the PR, then up to three Greptile reviews.Opens the PR, runs the reviews, merges.Opens the PR, runs the reviews, merges.

5Merged

OK the next ticket.Read the PR and the report: every answer it gave itself is listed, so you can reverse it.Read the morning report.

Saves lessons and suggests the next ticket.Closes the job and stops. Never starts the next.Closes the job. The next one starts.

Topped outEach merged job adds a floor. When the whole goal is built, the building tops out.

AIThe report

What was built and what’s left, plus three to five ideas for the next goal.

  • Idea 1
  • Idea 2
  • Idea 3
  • Idea 4
YouYou pick one

Whenever you’re ready. In every mode, the AI never picks it for you.

AIA new board

A fresh board for the new goal, and the job loop starts again.

It still stops and waits, one line saying why, on: the same check still failing after two fixes; a security problem or an unresolved critical finding; the automated review under 5/5 after three rounds; spend reaching your cap. After a stop it goes on only on your word.

Your goal never covers tracker moves, messages, edits outside the ticket’s files or migrations (unless your repo profile holds a standing grant for them), a force push, a fourth automated review, spend over the cap, or starting the next job.

The shift ends at any stop in a job, when the whole goal is built, at the spend cap, or when a job passes 16 hours. The night shift, in full ↓

The proof · one real job

What one finished job handed over

Run on its own from ticket to merge. The project’s name and feature are left out.

Merged
  • 5plan-check findings, 4 applied before building
  • 18fixes from the lens inspection, all accepted
  • 5/5Greptile review score
  • 831→848tests passing, nothing newly red
  • 18/18mutation probes caught
  • $1.34in paid calls, against a $3 cap
ticket
one feature, one branch, one PR
plan check
5 findings from a cross-family reader, 4 applied before building
build
work orders written by the foreman, built test-first by a cheaper model
inspect 1
lens inspection: 18 fixes found and accepted
inspect 2
independent review (another model family): no findings
review
Greptile 5/5
tests
831 → 848 passing; no test red at head that was green at base
probes
18 of 18 mutation probes caught (each removes a guard; the tests must fail)
merge
merged tree identical to the reviewed tree
spend
at most 1.34 USD in paid calls, against a 3 USD cap
On fileacceptance ledger, both inspections, base-vs-head runs, lessons saved as cards
Foreman
Claude Code, on your Claude subscription. Plans and checks; never writes product code.
Builder
Pi, Claude Code or Antigravity (agy), on a cheaper model. Builds; never makes design decisions.
Inspectors
Fresh review agents, then another model family: Codex, on your ChatGPT subscription. Find problems; never fix them.
Owner: you
OKs each merge, or the whole night at once.
Try it

To start: git, Node 18+, Python 3.9+, Bash and Claude Code. /f-setup checks the rest: Pi, Codex (ChatGPT), Orca, Greptile and an OpenRouter key (what you need).

  1. 1Anywhere
    git clone https://github.com/kaithoughtarchitect/toppingout
  2. 2In Claude Code, in your repo
    Read <path to the package>/skills/f-setup/SKILL.md and follow it
  3. 3Your first job

    /f-survey turns an idea into a ticket, /f-schedule cuts a big plan into tickets, or paste the first-job opener for a ticket you have.

/f-setup installs what’s missing, profiles your repo and asks only what it can’t find. It never overwrites or commits.

kaithoughtarchitect/toppingoutOpen source on GitHub · MIT
01

Why Topping Out

Site ruleDo not distract the builder. It only builds what’s drawn.

Named for the day a building's last beam goes on. Here, it's the day every job on a board is done: the project tops out, and the next one starts from it.

BUILDER

Cheaper

The foreman decides, so a cheap model can build.

REJECTED

Checked end to end

Two separate reviews and a checklist. “Done” has to be proven.

J11J12J13

Runs the night shift

Hand it a list at night. Wake up to merged jobs.

LOGBOOK · HANDOVER

Nothing forgotten

A new session picks up where the last one stopped.

02

Order of works

CautionInspectors on site. Do not feed.

The same job as Watch one job, step by step, with the planning before it.Waits for your word, or your /goal

Once per head: plan it, check it, cut it into tickets
  1. 01Shape the ideaForeman
  2. 02Write the planForeman
  3. 03Check the planInspectors
  4. 04Cut into ticketsForeman
Then, for every ticket: one job, one branch, one PR
  1. 05Start the shiftForeman
  2. 06BuildBuilder
  3. 07InspectInspectors
  4. 08Open the PRForeman
  5. 09Review the PRForeman
  6. 10MergeForeman
  7. 11CloseForeman
← Next job: a fresh foreman starts here
01 Shape the idea

Your idea becomes clear decisions.

RuleNo question left open.

02 Write the plan

The whole plan, before any code.

RuleEvery decision made first.

03 Check the plan

Other AI models check the plan.

RuleIt passes before it is split.

04 Cut into tickets

The plan becomes jobs, in order.

RuleNothing written until you say go.

05 Start the shift

A fresh foreman reads the notes, then the code.

RuleWhere they disagree, the code wins.

06 Build

One small task at a time, test first.

RuleA test that breaks stops the work.

07 Inspect

Two reviews: a fresh AI session, then an AI from another company.

RuleBoth run, always.

08 Open the PR

The work goes up as a pull request.

RuleOnly on your word, or your /goal.

09 Review the PR

Greptile reviews it; findings get fixed.

RuleThree rounds at most.

10 Merge

Merged, then checked against what was reviewed.

RuleOnly on your word, or your /goal.

11 Close

Every requirement checked, notes left for the next job.

RuleNothing left for later.

30 skills, 14 agents: every one has its own page →

03

The night shift

List the jobs before bed. Wake up to merged work. On a server of your own, your computer can sleep too.

22:30 · Before bedYou type one line/goal night shift: jobs 11, 12, 13
07:00 · Morning3 jobs mergedThe links, and anything only you can decide.

Name the jobs, or say 3 jobs, auto-pick and it picks them. How it works →

07:00 · The morning report

3 PRs merged while you slept

An example morning, from a made-up project.
  1. J41 · board 11: sign-in with a magic linkevery ledger row PASS · Greptile 5/5Merged
  2. J42 · board 12: magic-link emails, retried and loggedevery ledger row PASS · Greptile 5/5Merged
  3. J43 · board 13: sessions that expire and renewevery ledger row PASS · Greptile 5/5Merged
🚧 Your callJ43 picked one default without you

Sessions renew for 14 days. A cold second opinion agreed, and it stays inside the board's entry.

  • ★ Keep it
  • Reverse it in a follow-up job
Night shift rulesAll workers · every night
  • Any problem stops the shift and says why. A usage limit only pauses it.
  • Done means merged, never "done" in the chat.
  • Nothing outside the ticket: no messages, migrations, force pushes or spend over the cap.
  • Start small: two or three jobs a night.
04

Nothing is lost

Site recordLessons forgotten on this site000

Sessions forget. Topping Out writes down what each job learned and where it stopped, and the next session starts there.

ONE SESSIONEVERY JOBPERMANENTwritesreadsJ13 · NEXTJ11 · MERGEDJ12 · NOW132BOARD4SITE OFFICELOGBOOKINDEXLINKS5ITS TOOLSFIRM RULESAGENTS.md · CLAUDE.md · RULES.md6ARCHIVE7end of job: /f-signoff/f-shift loadsthe cards in force/f-card/f-board/f-distillwith your OK/f-archivepast 250/f-archive-searchevery sessionreads them
or tap any outlined part to see what it keeps and who reads it
Lasts: the job1 / 12

J12, being built

the job file

The plan, the decisions and the work orders, kept current as the job runs.

Written by
The foreman, all through the job.
Read by
/f-signoff, to write the cards and the handover.
Lasts: one session2 / 12

The handover

foreman/handovers/

Where the job ended, what is owed, and a short quiz.

Written by
/f-signoff, every job.
Read by
The next foreman, which answers the quiz cold.
Lasts: one session3 / 12

The next opener

foreman/handovers/OPENER-JOB-<N>.txt

Six lines that start the next job.

Written by
/f-signoff, every job.
Read by
A fresh session: you paste it, or the night shift does.
Lasts: the project4 / 12

The board

foreman/projects/<slug>/BOARD.json

Every job's state, and which job comes next.

Written by
/f-board, one event at a time.
Read by
You, on board.html; each close, to pick the next job.
How a card is made5 / 12

From lesson to card

skills/f-card/ and /f-signoff step 3.2

A lesson is found, checked for a twin, shown to you, then filed.

Who
/f-card any time; /f-signoff at the close.
Never
Filed without your yes.
  1. 1MineThe job's key discoveries, its work-order reviews, its inspections and the dev report's learnings. Or one lesson, mid-job.
  2. 2Type itINSIGHT for a gotcha or principle, METHOD for a repeatable procedure, BUILD for a record of what was built. Each has its template.
  3. 3Check for a twinSearch the Logbook for the same lesson. Over 80% overlap: the evidence goes on the old card instead.
  4. 4Score itEvery section filled, the evidence, a concrete example. Confidence from evidence: one instance 75%, two or more 85%, measured 95%. Under 75 of 100, it goes back.
  5. 5Show youThe whole card as a preview. Nothing is written until you say yes.
  6. 6File itThe card file, a row in the index, its links, and the counts recounted from the files.
Lasts: the project6 / 12

The Logbook

foreman/logbook/

Every lasting lesson as a card, with its evidence.

Written by
/f-card any time; /f-signoff at the close.
Read by
/f-shift at every job start; /f-search any time.
logbook_index.md every live card: its type, summary, impact and clusterlogbook_links.md the typed links between them
cluster: billingcluster: test-runsderived-fromrefinescontradictsrelatessupersedesrelatesI-05INSIGHT2 linksI-11INSIGHT3 linksB-06BUILD1 linkarchived firstI-17INSIGHT3 linksNEWM-09METHOD2 linksM-04METHOD1 linkarchived first
Past 250 cards, /f-archive keeps the best-linked and most recent cards live, so the faded ones go first. An example, not a real Logbook.
A Logbook tool8 / 12

/f-context

skills/f-context/

A cold read of a repo, with its matching cards.

When
New to a repo, or before re-planning.
Note
/f-shift already does this for each job.
A Logbook tool9 / 12

/f-catchup

skills/f-catchup/

Writes cards for past jobs that never got any.

When
By itself at every close, up to three past jobs; by hand to seed many.
Note
By hand: waits for your yes.
A Logbook tool10 / 12

/f-dream

skills/f-dream/

Merges repeated lessons and spots repeat mistakes.

When
By itself every 10th close; by hand any time.
Note
Only safe merges by itself, never a critical card; every change can be undone.
Lasts: for good11 / 12

The foundations

AGENTS.md or CLAUDE.md, and RULES.md

Lessons that keep coming back, made firm rules.

Written by
/f-distill, with your approval: a preview waits for you every 10th close.
Read by
Every session, before any work.
Lasts: for good, out of the way12 / 12

The archive

foreman/logbook/archived/

Old cards moved aside, with an index to find them.

Written by
/f-archive, by itself past 250 cards.
Read by
/f-archive-search, when a search finds nothing.
The Logbook in full: the cards, their life, the tools, the files →
05

But why not just…?

Not accepted“Trust me, it’s done” is not a test result.

Site officeQuery 01 of 09

Why not one agent for everything?

The agent that made a mistake would be the one judging it.

ProofSo an AI from another company checks the work cold. It once caught a race condition the foreman had passed.

Source: Foreman Playbook, "The one idea"

Site officeQuery 02 of 09

Why not just write better prompts?

A prompt asks. A check proves.

ProofEach test must fail before the code and pass after it, and every requirement needs evidence before the job closes.

Source: METHOD.md sections 7 and 10

Site officeQuery 03 of 09

Why does it need my OK?

Merging and pushing reach beyond your machine.

ProofThey wait for you. On a night shift, your /goal line is the OK, for those jobs only.

Source: RULES.md, "Acts that need the owner's exact word"

Site officeQuery 04 of 09

Isn't it slow and costly?

More steps per job. Less of your time.

ProofA cheap model on a flat subscription does the building, the checks catch problems first, and jobs run while you sleep.

Source: the Requirements page; the night shift above

Site officeQuery 05 of 09

Am I locked in?

No. It is plain text files in your own repo.

ProofStop using it, and the plans, the lessons and the board stay.

Source: SETUP.md, "What Topping Out adds to your repo"

Site officeQuery 06 of 09

What if it breaks at night?

The shift stops, and says why.

ProofA red check, a failed walkthrough or a security finding halts it.

Source: the night shift above

Site officeQuery 07 of 09

What if the builder cuts corners?

Its report is never taken on its word.

ProofEvery requirement needs a pass with evidence, or the job does not close.

Source: METHOD.md section 10, the acceptance ledger

Site officeQuery 08 of 09

Will it fit my project?

Yes. It adds files and overwrites nothing.

ProofSetup adds the skills and agents under .claude/, one foreman/ folder with a short profile of your project, and a few scripts.

Source: SETUP.md section 1

Site officeQuery 09 of 09

Does it work on Mac or Linux?

Linux, yes, on a server of your own. Mac: expected, not yet verified.

ProofIt is built on Windows 11, and runs on a Linux server through Orca (the Cloud setup sheet). The installer and checks are Node and Python, and the work orders are Bash.

Source: SETUP.md sections 8b and 9

06

Requirements

Site accessAuthorised plant only. Bring your own, and you maintain it.

My own setup, shared as it is. I can only support what I use.

My setup Inspected, in use

  • Windows 11the machine
  • Git Bashthe shell
  • PowerShellthe other shell
  • Linux serverthe cloud option
  • Claude CodeClaude subscription
  • CodexChatGPT subscription
  • AntigravityAntigravity subscription
  • Pithe plan check's readers
  • Orcathe workspace
  • Claude Sonnet 5.5the builder, in Claude Code
  • Claude Haiku 5.5the builder, in Claude Code
  • Gemini Hydrogenthe builder, in Antigravity
  • GPT-6.2 Solthe builder, in Pi
  • GPT-6.2 Terrathe builder, in Pi
  • GLM 5.3the builder, on subscription
  • Greptilethe review rounds
  • OpenRouterthe key
  • Gitthe records
  • GitHub and ghthe merge
  • Nodethe installer
  • Python 3the board

Tested on

Windows 11, with Claude Code as the foreman. macOS and desktop Linux are expected to work, not yet verified.

CloudRun it on a server while you sleep →

Make it yours

It’s all plain text. Fork it, swap any part, and it’s your setup.

Fork it on GitHub ↗
Every tool, in detailWhat each one does here, and the builders I’ve used
/f-setup

Update later: replaces the files your repo didn't adapt and lists the ones it did; it waits while a job is open.

Prefer to copy the files by hand?

This is the installer from SETUP.md section 1, the same on Windows, macOS and Linux. Fill in the two paths, run the dry run, then the install. It copies only what is missing and writes an install receipt.

PKG="<path to the Topping Out package>"; REPO="<path to your records repo>"
node "$PKG/skills/f-setup/install.mjs" --repo "$REPO" --dry-run   # what it would copy, and what it keeps
node "$PKG/skills/f-setup/install.mjs" --repo "$REPO"             # copy what's missing, never overwrite

Then write the repo profile (templates/REPO-PROFILE.md) and the test adapter, and check the install:

python .claude/skills/f-board/test_render_board.py

Every folder it adds, and where a job's files go →

Optional add-on

Deep Agents

Only for an AI agent built on LangChain, LangGraph or Deep Agents. /f-setup asks first, and installs it only on yes. Topping Out itself needs none of it.

Needs

Python 3.11+Deep Agents requires it.

Installed for you on yes

  • Deep AgentsDeep AgentsLangChainLangChainLangGraphLangGraphdeepagents 0.7.40, pinned. Brings LangChain and LangGraph with it.

Optional

  • LangSmithLangSmithA free account for tracing and LangGraph Studio; paid hosting later. The add-on needs none of it.

Works with LangChain’s open-source tools. The logos are LangChain’s own, shown as supplied; no partnership or endorsement is implied. The docs and the package the add-on cites are fetched at install, not shipped.

Enforced, or only instructed from the README

Most of the method is instructions the agents follow; a few checks are scripts that refuse.

  • Gated acts (push, merge, messages) wait for your wordInstruction

    HowInstruction (RULES.md), plus your coding tool's own permission prompts. The package ships no hook that blocks a gated act.

    What it doesn’t stopAn agent with push rights and pre-allowed commands can push; nothing in the package blocks it technically. SETUP.md §5 suggests a hook for migrations only, and SETUP.md §7 asks you to pre-allow git push, gh pr create and gh pr merge for an autonomous run.

  • A voice message never stands in for your wordIn part

    HowA script in the voice add-on, plus instruction. Topping Out Gaffer refuses to send a message that is only a gated act ("merge", "push", "open the PR", "greploop") and marks every message it sends [voice] (addons/gaffer/brain.ts); RULES.md says a [voice] message is never the owner's word.

    What it doesn’t stopThe refusal covers only a message that is the gated act alone; any other [voice] message reaches the session, where only the instruction stops it.

  • What merged is what was reviewedEnforced

    HowA check the foreman runs. The merged commit's tree must equal the reviewed and tested tree (METHOD.md §10 step 3), and skills/f-signoff/endgame.mjs verify-merge refuses a close whose merge isn't on the main branch.

    What it doesn’t stopWith one lane the tree comparison is not scripted (in lane mode snippets/land_tested.sh refuses to push a merge whose tree differs from the proven head's, and its verify checks the landed merge), and verify-merge checks only that the merge commit is on main (and runs because /f-signoff calls it); an edit after the final re-run invalidates the acceptance and is caught only if the foreman re-runs, as the rules require.

  • Nothing new starts until a closed job's end game is doneEnforced

    HowA script the skills run. endgame.mjs keeps a lock file (one per lane with two lanes); the planning skills and work order 1 run its check and stop while it exists.

    What it doesn’t stopAn agent that skips the check call isn't stopped.

  • The review is independentWhen used

    HowA script, when used. scripts/cross-review-dispatch.mjs seats the reviewer on another vendor's CLI, in a separate process, from a brief (/pack-review).

    What it doesn’t stopThe foreman writes the brief, so it chooses what the reviewer is pointed at and told (the reviewer can also read the checkout, read-only); seats exist only for Claude and codex foremen; this is separation, not adversarial isolation.

  • The whole ask is doneInstruction

    HowInstruction plus a record. The acceptance ledger lists every requirement and check with its evidence, and /f-signoff refuses unless every row is PASS. A change to the ask is recorded in the owner's own words (METHOD.md §2).

    What it doesn’t stopThe ledger is written and checked by agents; a wrong PASS is caught only by the reviews or by you.

  • Builder names stay out of the recordsEnforced

    HowA script the foreman runs. skills/f-signoff/names-check.mjs checks every staged record at the records push and exits non-zero on a hit.

    What it doesn’t stopIt runs only when the foreman calls it at the records push; it checks only the names in your names file, and skips allowed contexts and rendered board pages.

Known gaps
  • The example board is synthetic: a made-up project, labelled as one.
07

See it

CautionViewing platform. Mind your head.

Top out your first job.

Two lines: install, then set up.

1Anywhere
git clone https://github.com/kaithoughtarchitect/toppingout
2In Claude Code, in your repo
Read <path to the package>/skills/f-setup/SKILL.md and follow it
kaithoughtarchitect/toppingoutOpen source on GitHub · MIT What you need ↑

Each floor is a section of this page: pick one to go back to it.

Floor 01: Why Topping Out01 Why Topping OutFloor 02: Order of works02 Order of worksFloor 03: The night shift03 The night shiftFloor 04: Nothing is lost04 Nothing is lostFloor 05: Why not just…?05 Why not just…?Floor 06: Requirements06 RequirementsFloor 07: See it07 See itTOPPED OUT
Topping OutMIT licencetoppingout.dev