Skip to content

Build.psm1

Source file factory2/lib/Build.psm1. This page is generated from the file’s own help comment when the site is built.

The agent steps of scripts/factory.ps1: plan, then implement (the same step again with the failure text on every later cycle).
Everything runs on the owner's machine with the owner's own Claude login. The agents can read the repo and edit only the
files the plan lists. There are no caps: no turn limit, no timeout, no limit on cycles.
  • Set-BuildLog
  • Write-BuildLog
  • Format-Prompt
  • Select-PlanPath
  • Invoke-Git
  • Get-Tail
  • Write-Text
  • ConvertTo-PlainLine
  • Get-AgentText
  • Read-JsonFile
  • Get-Prop
  • Invoke-AgentStep
  • Add-EditsToIndex
  • Get-StagedPaths
  • Get-ImplementFailure
  • New-BuildContext
  • Get-PromptText
  • Invoke-PlanStep
  • Get-CommonValues
  • Invoke-ImplementStep
  • Write-PatchFile
  • Get-TotalCost