Factory
Pages

Introduction

The factory is a way to build a product with coding agents. You decide what the product does. Agents write the code. Checks test the code before you merge it.

This guide takes you from an empty computer to a daily routine. Read the pages in order. Each page says what to do, what you should see, and how you know that you are done. The examples build one small product, fieldnote, an app where field officers log their visits.

#The path

PageWhat you doWhat you have at the end
1. Set up your computerInstall the toolsThe commands work
2. Set up AWS and GitHubConnect the accounts, onceYour account is ready for CI and reviews
3. Create the productRun one commandA hub, an app and the panel
4. Set the directionAnswer an agent's questionsWhat the product is, and a short list of next work
5. Build your first taskPress the buttons for one small changeA merged pull request, and proof that the checks work
6. ExploreRun research and designAnswers to your open questions
7. Plan the workReview a list with an agentMilestones and tasks
8. Your daily routineFollow the same order each dayA product that moves

Pages 1 and 2 happen once. Pages 3 to 7 happen once for each product. Page 8 is most of the work.

#Six words

You need these words for the rest of the guide.

WordIt means
AppThe repository with the code of your product.
HubA second repository. It holds what the product is, and the work to do. Agents run here.
Change taskOne file in the hub that describes one change. Its code ends in one pull request.
ExplorationOne folder in the hub that answers one question. It changes no code in the app.
SessionOne run of Claude Code that does one step. It stays open until you close it.
PanelA tab in the Herdr app. It shows the hub, and has a button for each step.

#The loop

After setup, each change goes through the same six steps. The steps in colour need you. Agents do the others with nobody there.

  1. IntakeTurns an input into a task
  2. ProbeYou settle each open question
  3. BuildAn agent builds it and opens a pull request
  4. GatesCI and the Flow review
  5. MergeYou merge on GitHub
  6. AcceptFacts go to the context

You press a button for each step. A step never starts the next one by itself.

#Where it comes from

The factory is built from factories-hub, the software factory of Harminder Virk. His article A practical look at software factories explains the ideas. These docs describe factory-kit, which uses Herdr in place of Paseo, and AWS CodeBuild in place of GitHub Actions and the hosted reviewer.

#Next

Start with 1. Set up your computer.