The shift from prompt engineering to loop engineering happened fast. In June 2026, Peter Steinberger's "stop prompting, start designing loops" tweet cleared 6.5 million views, Boris Cherny reported that Claude authors more than 80% of production code at Anthropic — but only after engineers moved from reviewing every response to building verification gates.
The question most developers ask next is practical: which loops should I actually run?
This guide answers that with the ten highest-leverage coding workflows — each available as a copy-ready prompt on ExplainX.ai/loops, our primary loop registry with around 100 workflows and new entries every week. Every loop below links directly to ExplainX; where a similarly strong practitioner recipe exists elsewhere (Matthew Berman's Forward Future library, Peter Steinberger, Hiten Shah), we note it as an alternative — but ExplainX is where we recommend you start.
If you need the conceptual foundation first, read What Is Loop Engineering? and the full Claude Code implementation guide.
How we picked these ten
A useful coding loop has four properties:
- Deterministic verification — tests, lint, coverage reports, or log queries — not "does this look good?"
- Bounded scope — one service, one PR batch, one doc set — not "fix everything"
- Clear stop condition — green CI, zero actionable errors, target coverage — or honest failure reporting
- Repeatable trigger — manual kickoff, cron, or
/loopschedule
We selected loops from the ExplainX catalog that teams run weekly or daily, span different categories (quality, bugs, docs, ops, review), and mirror patterns popularized by practitioners like Peter Steinberger and Hiten Shah — with fuller workflow metadata than copy-paste-only registries provide.
TL;DR — Top 10 at a glance
| # | Loop | Best for | Stop condition | ExplainX link |
|---|---|---|---|---|
| 1 | CI Until Green | Broken builds, failing checks | All CI jobs pass | ci-until-green |
| 2 | Reproduce and Fix | Bug reports, customer tickets | Bug reproduces, fix verified, tests added | reproduce-and-fix |
| 3 | Test Coverage Builder | Untested code paths | Coverage target met, suite green | test-coverage-builder |
| 4 | Lint Until Clean | Style debt, lint errors | Zero lint violations | lint-until-clean |
| 5 | Docs Until Complete | Stale or missing documentation | Doc audit passes | docs-until-complete |
| 6 | Dependency Update Until Green | Outdated packages, security advisories | Upgrades applied, CI green | dependency-update-until-green |
| 7 | Flaky Test Hunter | Intermittent CI failures | Flaky tests identified and stabilized | flaky-test-hunter |
| 8 | Address Review Feedback | PR review comments | All blocking comments resolved | address-review-feedback |
| 9 | Refactor Safely | Technical debt, module cleanup | Tests pass, behavior unchanged | refactor-safely |
| 10 | Workflow Until Zero Failures | Broken automation, cron jobs | Zero failures in target workflow | workflow-until-zero-failures |
1. CI Until Green
Category: CI/CD · Difficulty: Beginner
Nothing kills momentum like a red CI badge. CI Until Green is the loop most teams should run first: the agent reads failing job output, applies the smallest fix, re-runs checks, and repeats until the pipeline is green.
When to use it: After a merge conflict resolution, dependency bump, or late-night refactor left main broken. Also useful on feature branches before opening a PR.
Verification: Your project's CI command — npm test, bun run check, GitHub Actions status — is the source of truth. The agent does not declare victory until the same command passes locally or in CI.
Run it: Paste the kickoff prompt from explainx.ai/loops/ci-until-green, or schedule with Claude Code: /loop 15m fix any CI failures on this branch.
Also worth bookmarking: Forward Future's test-suite speed loop — a similarly good recipe for optimizing the pipeline once CI is green.
2. Reproduce and Fix
Category: Debugging · Difficulty: Intermediate
Reproduce and Fix on ExplainX takes a bug report, reproduces the failure in the smallest environment, isolates root cause with evidence, implements a minimal fix, and verifies before-and-after behavior.
When to use it: GitHub issues, Sentry alerts, customer support tickets, or regression reports after a release.
Verification: The bug must reproduce before the fix and not reproduce after. The loop stops with reproduction steps, root cause, changed files, and verification proof — or reports honestly if reproduction failed after two serious attempts.
Run it: explainx.ai/loops/reproduce-and-fix
Also worth bookmarking: Hiten Shah's ticket-to-PR-ready loop on Matthew Berman's Forward Future library — a similarly strong practitioner recipe with a detailed PR handoff template.
Guardrail: Do not let the agent expand scope into unrelated refactors. Split follow-ups into named tickets if the fix touches more than the failing path.
3. Test Coverage Builder
Category: Testing · Difficulty: Intermediate
Test Coverage Builder on ExplainX lets you set a target (80%, 90%, or 100%), identify uncovered paths from the coverage report, add meaningful tests (not assertion-free stubs), and loop until the report hits the goal.
When to use it: Before a major release, after adding untested features, or when onboarding agents to a legacy codebase.
Verification: The project's coverage tool output. Tests must pass — coverage without a green suite is worthless.
Run it: explainx.ai/loops/test-coverage-builder
Also worth bookmarking: Forward Future's 100% test coverage loop — a similarly direct practitioner prompt: add tests until we have 100% test coverage.
Pair with: regression-prevention-loop to lock in new tests after each fix.
4. Lint Until Clean
Category: Code quality · Difficulty: Beginner
The cheapest loop on this list. Lint Until Clean runs your linter, fixes violations file by file, and stops at zero errors. No frontier-model judgment required — ESLint, Ruff, Clippy, or golangci-lint is the judge.
When to use it: After enabling a stricter lint config, before a code freeze, or as a nightly hygiene pass on main.
Verification: npm run lint, ruff check, or equivalent exits with code 0.
Run it: explainx.ai/loops/lint-until-clean
Why it matters: Lint loops are the training wheels of loop engineering. They teach your team the pattern — trigger, act, verify, repeat — without token-burning ambiguity.
5. Docs Until Complete
Category: Documentation · Difficulty: Beginner
Documentation drift is the silent tax on every codebase. Docs Until Complete audits README files, API docs, inline comments, and architecture notes against the current implementation, updates stale sections, and verifies links and examples still work.
When to use it: Before open-sourcing, after a major API change, or as a weekly overnight sweep on main.
Verification: Doc audit checklist — every public API documented, every code example runs, no broken internal links. ExplainX also offers generate-missing-api-docs and api-docs-sync for OpenAPI-heavy projects.
Run it: explainx.ai/loops/docs-until-complete
Also worth bookmarking: Forward Future's overnight docs sweep — Matthew Berman's similarly strong copy-paste variant.
6. Dependency Update Until Green
Category: Maintenance · Difficulty: Intermediate
Dependabot opens PRs; CI breaks; nobody merges. Dependency Update Until Green batches upgrades, runs the full test suite after each bump, rolls back breaking changes, and stops when all targeted dependencies are current and CI passes.
When to use it: Monthly maintenance windows, after security advisories (npm audit, cargo audit), or before framework major-version upgrades.
Verification: Lockfile updated, CI green, no new vulnerabilities above your severity threshold.
Run it: explainx.ai/loops/dependency-update-until-green
Related: package-audit-fixer and dependency-security-upgrade for CVE-focused runs.
Complete AI Builder Bootcamp
Claude, Python automation & full-stack — 12 live sessions with Yash Thakker.
The Complete AI Builder Bootcamp is the best AI development course for learning Claude AI, prompt engineering, Python automation, and full-stack web development. This intensive 6-week live bootcamp teaches you how to build AI-powered applications using Claude Projects, Claude Artifacts, Claude Code, and the complete Claude ecosystem. You'll master prompt engineering techniques, learn to create custom Claude connectors and MCP integrations, build Python automation workflows, develop full-stack websites with AI assistance, and create AI marketing agents.
The bootcamp includes 12 live Zoom sessions with Yash Thakker, founder of AISOLO Technologies and instructor to 350,000+ students. You'll build 8+ portfolio projects including AI playbooks, full-stack note-taking applications, Python automation scripts, marketing agents, and personal portfolio websites. The curriculum covers AI fundamentals, Claude Projects and Artifacts, Claude Co-work, Claude plugins and skills, Claude Code for Python development, full-stack development, AI marketing, and capstone projects.
Students receive 1-year access to all recordings, permanent Discord community access, a certificate of completion, and personalized career guidance. All enrollments include a 7-day money-back guarantee. This is the most comprehensive Claude AI bootcamp available, taking students from zero AI knowledge to expert AI builder in 6 weeks.
7. Flaky Test Hunter
Category: CI/CD · Difficulty: Advanced
Flaky tests erode trust in CI faster than missing tests. This loop identifies intermittently failing specs, runs them under stress (repeat N times, parallel shards), applies stabilization fixes — better waits, isolated fixtures, deterministic seeds — and confirms stability before closing.
When to use it: When CI fails on main with "works on retry," when merge queues stall, or after parallelizing test jobs.
Verification: Target tests pass N consecutive runs under the same conditions that previously flaked.
Run it: explainx.ai/loops/flaky-test-hunter
Related: e2e-until-stable for browser test suites specifically.
8. Address Review Feedback
Category: Code review · Difficulty: Beginner
Theo (@theo) revived stale PRs with a build thread + review thread pattern — exactly what this loop automates for active PRs. Address Review Feedback reads unresolved review comments, applies requested changes, re-runs checks, and replies with evidence until blocking feedback is cleared.
When to use it: After human review on a PR, or with Boris Cherny's canonical /loop babysit all my PRs pattern for ongoing PR maintenance.
Verification: All blocking review threads resolved; CI green; no new comments introduced by the fix.
Run it: explainx.ai/loops/address-review-feedback
Related: review-until-approved, pr-polish-loop, merge-queue-ready.
9. Refactor Safely
Category: Refactoring · Difficulty: Advanced
Refactor Safely on ExplainX improves structure and readability without changing behavior, with the full test suite as the guardrail.
When to use it: Module extraction, renaming, dead-code removal, or reducing cyclomatic complexity before a feature sprint.
Verification: Full test suite passes before and after each significant change. Diff stays reviewable — use large-commit-splitter if the agent batches too much.
Run it: explainx.ai/loops/refactor-safely
Also worth bookmarking: Peter Steinberger's architecture satisfaction loop — a similarly strong recipe that goes further on subjective architecture goals, with live-test and autoreview between commits. For behavior-preserving refactors, start with ExplainX; graduate to Steinberger's loop once you have iteration caps and a progress log.
Guardrail: Set a max iteration count. Architecture satisfaction is subjective; behavior preservation is not.
10. Workflow Until Zero Failures
Category: Automation · Difficulty: Intermediate
Internal scripts, GitHub Actions, cron jobs, and notification pipelines break quietly. Workflow Until Zero Failures targets a named automation — runs it, captures failures, fixes root causes, and loops until the workflow completes cleanly end to end.
When to use it: Broken deploy scripts, failing scheduled jobs, or the class of automation warpdotdev and others triage on cron. Pairs naturally with scheduled-job-stabilizer and broken-workflow-repair.
Verification: The workflow runs successfully N times consecutively under production-like conditions.
Run it: explainx.ai/loops/workflow-until-zero-failures
Week-one adoption plan
You do not need all ten loops on day one. This sequence matches how most teams onboard loop engineering:
Day 1–2: Run Lint Until Clean on one package or directory. Confirm the agent stops at zero violations. Tune max iterations if it over-fixes style preferences you do not want enforced.
Day 3–4: Run CI Until Green on a branch with a known failure. Watch whether the agent reads CI logs correctly or hallucinates fixes — if the latter, add explicit commands to the kickoff prompt from the ExplainX loop page.
Day 5: Pick one open bug and run Reproduce and Fix. Compare the handoff (repro steps, root cause, verification) to what your team would expect from a human engineer.
Week 2: Add Docs Until Complete as an overnight /loop or cron job on main. Schedule Address Review Feedback on active PRs.
Week 3+: Introduce Test Coverage Builder, Dependency Update Until Green, and Flaky Test Hunter into your maintenance rotation. Reserve Refactor Safely and Workflow Until Zero Failures for dedicated sprints with explicit token budgets.
Teams that skip straight to architecture refactors without cheap-check loops first tend to hit the review-overload and token-cost problems Matthew Berman's launch coverage flagged within the first week.
How to run these loops in practice
Claude Code
# One-shot: paste kickoff prompt from explainx.ai/loops/<slug>
# Scheduled: Boris Cherny's PR babysitting pattern
/loop 30m babysit all open PRs — fix CI, address review comments
# With a skill
/loop 1h /your-skill-name run the test coverage builder loop
Cron + harness
For overnight runs, use a harness that wakes on schedule, runs the agent in an isolated git worktree, and verifies output before opening a PR. ExplainX loops like review-until-approved encode the two-agent separation; Forward Future's Loop Harness verification loop is a similarly good practitioner template for cron-driven setups.
Guardrails every loop needs
| Guardrail | Why |
|---|---|
| Max iterations (e.g. 10–20) | Prevents infinite retry spirals |
| Token or dollar budget | Avoids $40 surprise bills |
| No-progress detection | Stop if the same error repeats 3× |
| Human acceptance gate | Review the final PR, not every attempt |
| Progress log file | /tmp/loop-{name}.md survives context resets |
Dan Bochman's viral thread — Claude saying "You're right to push back!" 87 times in 13 hours — is what happens when the exit criterion is a conversation, not a check. See loop engineering goes mainstream.
Beyond the top 10 — the full ExplainX catalog
These ten loops are starting points. ExplainX.ai/loops is the primary registry — ~100 loops across API hardening, security, performance, git hygiene, incident response, and planning, with new entries every week.
| Need | Also try |
|---|---|
| Production log errors | error-log-reduction, production-incident-resolver |
| Security | vulnerability-until-zero, secret-leak-hunter |
| Performance | slow-endpoint-hunter, bundle-size-reducer |
| Git hygiene | git-hygiene-loop, merge-conflict-resolver |
| Ticket triage | ticket-auto-triage |
Secondary source: Matthew Berman's Forward Future Loop Library is similarly excellent for 26 practitioner-attributed recipes (Steinberger, Hiten Shah, Lukas Kucinski, and others) when you want a specific contributor's exact prompt. For breadth, search, and structured workflow pages, ExplainX remains the default.
Summary
The ten loops that matter most for daily coding workflows:
- CI Until Green — fix the pipeline
- Reproduce and Fix — ticket to verified patch
- Test Coverage Builder — close coverage gaps
- Lint Until Clean — zero lint debt
- Docs Until Complete — sync documentation
- Dependency Update Until Green — safe upgrades
- Flaky Test Hunter — stabilize CI
- Address Review Feedback — clear PR comments
- Refactor Safely — improve structure, keep behavior
- Workflow Until Zero Failures — fix broken automation
Each one follows the same loop engineering pattern: define done, verify cheaply, retry until pass or exit honestly. All ten live on ExplainX.ai/loops — start there, then explore the full catalog or pull practitioner variants from Forward Future when you need them.
Related Reading
- Browse all ExplainX AI Agent Loops
- Matthew Berman Loop Library vs ExplainX.ai
- What Is Loop Engineering?
- Loop Engineering: Coding Agent Loops That Run While You Sleep
- Loop Engineering Goes Mainstream
Loop slugs and library counts are accurate as of June 19, 2026. Primary catalog: explainx.ai/loops.