loop-engineering
Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani
What is loop-engineering?
Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.
Overview of loop-engineering
What it is
Loop Engineering is a practical collection of patterns, starters, and CLI tools for designing systems that prompt and orchestrate AI coding agents. Instead of typing the next prompt yourself, you build a loop that discovers work, hands it to agents, verifies results, and persists state. The project is inspired by Addy Osmani and Boris Cherny, and includes CLI commands such as loop-audit, loop-init, and loop-cost. It is intended for developers who want to operate agents around a codebase rather than manually rewriting modules.
Key features
- Provides a pattern library with multiple loop designs such as Daily Triage, Thin Loop, PR Babysitter, CI Sweeper, Dependency Sweeper, Changelog Drafter, Post-Merge Cleanup, and Issue Triage.
- Includes a unified CLI front door via
npx @cobusgreyling/loopwith subcommandsinit,doctor,status,audit, andcost. - Supports multiple AI coding tools: Claude Code, Grok, Codex, OpenClaw, and Opencode.
- Offers a safety progressive rollout model: L1 report only → L2 assisted → L3 unattended, activated only after the verifier has been correct for a week.
- Weighs recent runs heavier than files on disk for determining loop readiness.
- Comes with an interactive pattern picker and a registry at
patterns/registry.yaml.
Use cases
- Keeping a repository healthy by triaging issues, monitoring CI, and managing dependencies.
- Landing and babysitting pull requests to ensure they are reviewed and merged.
- Running a thin automation loop in GitHub Actions with minimal configuration.
- Shipping a feature or refactoring code by converting todos into small PRs.
Getting started
bashnpx @cobusgreyling/loop init . --pattern daily-triage --tool claudenpx @cobusgreyling/loop doctor .npx @cobusgreyling/loop cost --pattern daily-triage --level L1If the --tool flag is omitted, it defaults to claude. Week one is report-only. New users are directed to the quickstart, refactor path, and thin GitHub Action loop documentation in the repository README.
License and pricing
This project is open source under the MIT license. No pricing information is provided.
Based on the project's public README and repository metadata.