loop-engineering (cobusgreyling/loop-engineering)

Searching Database…

What is this?Loop Engineering is a pattern library and set of CLI tools for designing automated loops where AI coding agents discover work, act on it, verify the result, and persist state in the repo, instead of you typing the next prompt yourself.
Is this a framework or just a bunch of CLI tools?It is mainly a documented pattern library (Daily Triage, PR Babysitter, CI Sweeper, etc.) plus companion CLI tools like loop-audit, loop-init and loop-cost, and GitHub Actions templates that implement those patterns — not a one-click code rewriter.
Which coding agents does it work with?Examples and a --tool flag cover Claude Code (including a plugin), Grok, Codex, OpenClaw, and Opencode; Claude is the default if you don't specify one.
Does it run my agents fully unattended out of the box?No — you're meant to roll out gradually from L1 (report-only) to L2 (assisted) to L3 (unattended) only after the verifier has been proven right for a week; an old STATE.md file doesn't count as being ready for L3.
What patterns does the library include?Eight documented jobs cover common repo maintenance: Daily Triage, Thin loop, PR Babysitter, CI Sweeper, Dependency Sweeper, Changelog Drafter, Post-Merge Cleanup and Issue Triage, each with a suggested cadence, starting safety level, and rough cost.
What CLI tools come with the project?Older standalone tools like loop-init, loop-audit, loop-cost, loop-sync, loop-context and loop-gate are still supported, and are now unified under a single npx @cobusgreyling/loop command.
Why was loop engineering created?It formalizes the idea of designing the system around an AI coding agent instead of writing one-off prompts, building on ideas from Addy Osmani and Boris Cherny, and is cited as the community reference implementation in a 2026 academic paper on agent loop adoption.
What's the biggest risk when running these loops?The README warns that loop engineering amplifies judgment, so token costs can explode and an unattended loop can make unattended mistakes — you're expected to actually read what the loop ships.
Size
7.5 MB
Stars
11.8K
Age
5mo
Commits · 90 Days