Skip to content

Patterns

Loop Patterns

Named, reusable loop designs. Each pattern states what the loop watches, what it may do, how it verifies its own output, and where a human stays in the…

Named, reusable loop designs. Each pattern states what the loop watches, what it may do, how it verifies its own output, and where a human stays in the decision.

A loop pattern is a proven arrangement of the six parts — heartbeat, body, spine, stopping condition, checker, and human gate — for one recurring job. Start from the pattern closest to your problem, then adapt it. Every pattern here has a matching runnable kit in starters/.

Review and delivery

PatternWhat it does
PR babysitterWatches an open PR and drives it to mergeable
Spec → dev → reviewSplits authoring and reviewing across separate agents
Clodex adversarial reviewSecond agent argues against the first
Codex completion contractHolds an agent to a written definition of done
Ticket to PR-readyTakes a ticket to a reviewable pull request

Repository hygiene

PatternWhat it does
CI sweeperClears failing checks on a heartbeat
Docs sweepKeeps documentation in step with code
Post-merge cleanupTidies branches and artifacts after merge
Repo cleanup loopLong-running structural tidying
Stale-safe batch releaseBatches releases without shipping stale work

Dependencies and security

PatternWhat it does
Dependency sweeperKeeps dependencies current
Dependency CVE burndownWorks a vulnerability backlog down
Prod error sweepTriages production errors into fixes

Testing and quality

PatternWhat it does
Test coverage loopRaises coverage toward a target
Test stabilizer loopHunts and fixes flaky tests
Loop harness verificationVerifies the loop machinery itself
Page load loopDrives a performance budget

Triage and reporting

PatternWhat it does
Issue triageLabels, routes, and de-duplicates issues
Daily triageOne scheduled pass over what changed
Changelog drafterDrafts release notes from merged work

Machine-readable index: registry.yaml · Runnable kits: starters/ · Back to the course.