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. OpenTools classifies it as a developer resource because it teaches loop engineering patterns for AI coding agents.
loop-engineering
Key Takeaways#
- loop-engineering is a practical resource for loop engineering with AI coding agents.
- The durable source reviewed by OpenTools is the GitHub repository at https://github.com/cobusgreyling/loop-engineering.
- Builders should use it as a pattern library and starter kit, then test every loop in a small workspace before using it on client or production work.
What this resource covers#
loop-engineering collects patterns, starters, and command-line examples for designing feedback loops around AI coding agents. The upstream description says: 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.. OpenTools classifies it as a resource because it teaches and packages repeatable practices rather than acting as a single hosted AI product.
Loop engineering is the practice of giving an agent a task, an evaluation path, a way to compare outputs, and a rule for when to continue or stop. It matters because one prompt rarely produces the best answer on the first try. A loop can ask the agent to plan, build, review, repair, compare, and report what changed. That turns agent work from a black-box generation step into a process that can be inspected.
Why builders should care#
Coding agents are useful, but they are easy to over-trust. A loop gives teams a simple control system: define the goal, define a quality bar, collect evidence, and repeat only when the next pass is likely to help. For software teams, that can mean fewer unreviewed patches. For solo builders, it can mean a reusable way to ask an agent to critique its own output before asking for human attention.
The repository mentions practical starters and CLI tools such as loop-audit, loop-init, and loop-cost. Those names point to a useful evaluation style: start a loop intentionally, check the output, and watch the cost of repeated attempts. Cost checks matter because agent loops can spend tokens or wall-clock time quickly when the stop condition is vague.
How to evaluate it#
Start by reading the repository README and examples. Pick one low-risk task, such as improving a test file, reviewing a short design note, or generating a migration checklist. Run the smallest loop first. Record the prompt, the output, the review step, and the final result. If the loop makes the task clearer without hiding important decisions, it may be worth adapting to your team.
Do not begin with private code, customer data, or production credentials. Agent loops often copy context between steps. Builders should verify what files are read, where logs are written, and whether any connected model provider receives sensitive text. A good first rollout uses synthetic examples, local branches, and clear rollback steps.
Source notes#
GitHub metadata during this run showed 10236 stars · 1390 forks · updated 2026-08-12. Those numbers are only signals. They do not replace checking the current README, license, open issues, and examples. Repository health can change quickly, so treat this page as an entry point rather than a frozen manual.
README excerpt reviewed#
Loop Engineering > Stop prompting. Design the loop. Get a score. loop init (or loop-init) scaffolds skills, state, and budget files, then prints your Loop Ready score and first loop command. loop doctor combines audit + sync + file checks into top-3 next actions. Swap --tool for claude, codex, or opencode. Use --with-foundry when you want the loop as a composable runtime stack. See docs/cli-front-door.md. Loop engineering replaces you as the person who prompts the agent — you design the system that does it instead. New here? Quickstart (5 min) · Interactive picker For developers using Grok, Claude Code, Codex, Cursor, and other AI coding agents. → Interactive showcase + pattern picker · Essay · Addy Osmani ## Contents - Quickstart (5 min) - Quick Links - Why This Matters - The Five Building Blocks + Memory - Patterns - Getting Started (5 minutes) - Examples by Tool - Operating & Safety - Caveats - Help wanted - Contributing - Sources - License ## Quick Lin
Suggested next steps#
- Read the current README and inspect the commands before running anything.
- Choose one small task with a visible success condition.
- Run the loop in a disposable branch or workspace.
- Compare the first output with the loop-improved output.
- Keep the prompt, cost, and failure notes if the pattern becomes part of your team workflow.
Who should use it#
This resource is best for developers, engineering managers, prompt engineers, and AI tooling teams that already use coding agents. It is less useful for people looking for a finished no-code application. The main value is the pattern language: how to design loops that make agent work easier to judge.