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. Gates check the code before you merge it.

Each product has two repositories. The app holds the code. The hub holds what the product is and the work to do: the positioning, the decisions, the rules and one file for each task. Agents run in the hub, so each session reads the same facts.

#The loop

Each change goes through the same 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

Each step runs in its own session, and it stops when it is done. You start the next step with a button in the Factory panel.

#What you get

new-project sets up each of these for a new product.

PartWhat it does
The hubHolds the context and the tasks. It has the skills intake, probe, explore, build, triage and accept.
FlowGives the agents the docs, the skills and the lint rules for an AdonisJS app, and the lenses of the review.
CIRuns lint, types and tests on each pull request, on AWS CodeBuild.
The Flow reviewReviews each new pull request on AWS CodeBuild, and posts each finding on its line.
The Factory panelShows the tasks, the pull requests and the sessions in Herdr, and starts each step.
Interface skillsGive the agents rules for layout, type, motion and web platform features.

#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 changes three parts of that setup.

In factories-hubIn factory-kitReason
Paseo and a macOS workerHerdr and a panelIt runs on Linux. A person starts each step.
GitHub ActionsAWS CodeBuildThe checks do not need GitHub billing.
The hosted Flow reviewerThe flow-code-review skill and reviewdog on CodeBuildThis is the path that the code review guide of Flow gives.