Hal turns product requirements into repeatable AI coding iterations with explicit state, validation, review, reporting, and archive workflows.
Prerequisites
Install Hal first:
brew tap j-yw/tap && brew install --cask hal
Use Hal in a repository where you want product requirements to drive a sequence of coding-agent implementation iterations.
Manual workflow
hal init
hal plan
hal convert
hal validate
hal run
What each step does
hal initcreates the project workflow files.hal plangenerates or captures a PRD.hal convertturns markdown requirements into structured runtime state.hal validatechecks the workflow quality before execution.hal runexecutes implementation iterations.
When to use the loop
Use this workflow when a feature has multiple steps, when you want the coding agent to work from product requirements, and when every iteration should leave behind reviewable state.
Troubleshooting
- If Hal is unavailable after install, open a new terminal session.
- If validation fails, fix the PRD or structured state before running the coding loop.
- If a coding agent output is not acceptable, review the iteration artifacts before continuing.
FAQ
Which Hal commands start a PRD-driven loop?
The workflow described by ReScience Lab uses hal init, hal plan, hal convert, hal validate, and hal run as the core manual loop.
Related pages
Next step
Run autonomous PRD-driven coding loops with AI agents.
View Hal on GitHub