For agents

This repo is built to be read by humans and agents. If you are an AI agent working in or learning from this repo, start here.

What this repo is

A handbook for loop engineering: running an AI coding agent in a governed, verifiable loop until a clearly defined goal is met. It ships a guide, a copy-paste prompt library, and seven worked examples that include the logs, the cost ledgers, and the real output of each run.

Machine-readable entry points

How to run the tests

# one-time per session
npm --prefix tools/preview install     # markdown renderer + static server
npm --prefix tests/e2e install         # @playwright/test
pip install -r tools/requirements.txt  # openpyxl, matplotlib, jsonschema, pytest, Pillow

# unit (per section)
python tools/validate/all.py           # runs every validator + the preview unit test

# integration (per stage) -- run from the repo root with an explicit config,
# or `cd tests/e2e && npx playwright test <spec>`
npx --prefix tests/e2e playwright test --config tests/e2e/playwright.config.ts tests/e2e/stage0-harness.spec.ts

Conventions you must follow