Enforce all checks before agent stop

Run verification commands until all pass, preventing Check Agent from stopping prematurely.

prompt
→ Claude Code
# Ralph Loop Quality enforcement mechanism for Check Agent. --- ## Overview Ralph Loop prevents Check Agent from stopping until all verification commands pass. ┌─────────────────────────────────────────────────────────────────────────┐ │ RALPH LOOP │ │ │ │ Check Agent completes │ │ │ │ │ ▼ │ │ SubagentStop hook fires ──► ralph-loop.py runs │ │ │ │ │ ▼ │ │ ┌─────────────────────────────────────────────────────────────────┐ │ │ │ Run verify commands from worktree.yaml: │ │ │ │ │ │ │ │ pnpm lint → exit 0 ✓ │ │ │ │ pnpm typecheck → exit 0
claude-code

Source: LonelyHerbivore ↗graded C · 70/100 — how grades work →

More ci loops

Get the build green

Loop/goalcommunityB

Run the build, fix the first error, and repeat until npm run build exits 0, with a 10-turn cap.

prompt
→ Claude Code
/goal `npm run build` exits 0 — run the build, fix the first error, repeat until it succeeds; stop after 10 turns

Get the build green, every time

Loop/goalGitHubB

Work through each task in .toh/plan.md, fix blockers, until the build command succeeds or you hit 40 turns.

prompt
→ Claude Code
/goal every task in .toh/plan.md is checked and the build command exits 0 — or stop after 40 turns . A Haiku evaluator judges the condition FROM THE TRANSCRIPT — one more reason the QC gate quotes actual output: unquoted results are invisible to the evaluator. |

Get lint and E2E tests passing

Loop/goalGitHubA

Execute work from PLAN.md until npm run lint and npm run test:e2e pass, scoping changes per AGENTS.md.

prompt
→ Claude Code
/goal Implement the work described in PLAN.md. Stop only when npm run lint and npm run test:e2e pass. Follow AGENTS.md, keep changes scoped, and report verification evidence Stop after 25 turns even if the goal is not reached.
cimedium risk