Loop designs for coding agents

Reusable, tool-agnostic blueprints for agent loops — the recurring systems that prompt your agents instead of you prompting them task by task. Stop prompting. Start designing loops.

What is loop engineering? →

8 loops

Triage fan-out·L4 Triage fan-out

Daily Triage Fan-out

Wakes up each morning, finds the day's broken CI, issues, and stale PRs, drafts a fix for each in its own worktree, and has a second agent review before opening PRs

Dev / CICode Quality Medium risk
Generator·L3 Maintenance

Dependency Security Monitor

Checks your dependencies against vuln databases every day and reports only what newly changed — with a draft bump PR ready

SecurityDev / CI Low risk
Poller·L1 Poller

Deploy Poller

Watches a deploy you just kicked off and tells you the moment it finishes — or breaks

Dev / CI Low risk
Poller·L3 Maintenance

Doc Drift Detector

Compares the codebase to its docs on a schedule and reports where they've drifted apart — undocumented APIs, stale examples, dead links

DocsCode Quality Low risk
Collector·L2 Verify-until-done

Flaky Test Finder

Runs the suite again and again across days, records every result, and surfaces the tests that fail without any code change

Code QualityDev / CI Low risk
Maintenance·L3 Maintenance

Maintenance Loop

A standing janitor: finishes in-progress work, tends the open PR, and runs cleanup passes when idle

Dev / CICode Quality Medium risk
Babysitter·L2 Verify-until-done

PR Babysitter

Keeps one pull request green: fixes failing CI and answers review comments until it's mergeable

Dev / CICode Quality Medium risk
Ralph·L2 Verify-until-done

Ralph Build Loop

The canonical Ralph: feed the agent one spec file over and over until the whole thing is built and the checklist is empty

Code QualityDev / CI Medium risk