Build
Execute a build plan inside a Docker container.
The build domain is the headless execution surface: a plan file (the output of the planning cycle) is walked task-by-task by an AI agent inside the isolated goga container, with an optional external review pass. Which tasks it solves:
- Run plans unattended —
goga build plan.mdprepares the environment, validates preconditions (Docker, config, agent wrappers), and delegates to the build engine running in-container. - Keep state persistent — the build state survives across runs of the same plan on the same branch;
--cleanwipes it for a fresh run. - Separate the reviewer from the executor — a run with review on is always two passes: tasks on the
build.agentwrapper, then review on the review agent's wrapper (build.review.agent, inheritingbuild.agentwhen unset, with its own env layer underbuild.review.envthat never inherits the root env). - Scope the review diff —
build.review.base_refoverrides the review's default-branch detection;build.review.additional.patiencestops the external review after N unchanged rounds. - Gate and observe runs — tools subscribed to
build/validate_buildread the resolved run facts and may veto the run before any pass; four notifications (build_started,pass_started,pass_completed,build_completed) carry the run's facts to reporting tools (see Hooks).
The interactive, stage-by-stage counterpart of this domain is Pipelines; the SDD cycle that produces the plans is covered in Workflow.
In this directory
- CLI — the full
goga buildcommand reference - Configuration — the
build:section of.goga/config.yml - Hooks — hook points for tool packages
- API — the
goga.buildpackage facade