Examples

AI loop examples

The best AI loop examples are repetitive work patterns with clear evidence and a stop condition: code repair, source QA, browser testing, support follow-up, and pre-publish checks.

Curated wall of abstract AI loop pattern cards

Current library snapshot

68total loop patterns
10categories
21engineering loops
10operating domains

All examples

LoopCategoryDifficultyCadenceVerification
Longform to Asset PackContentIntermediateAfter publishing or recording a substantial essay, talk, podcast, demo, or research noteEach drafted asset traces to the source, preserves the original claim, strips private details, and stays unpublished until approved.
One Post a Week ExperimentContentBeginnerWeekly for six weeksWinner is supported by comparable replies, saves, and questions, not just likes.
Pre-Publish Source CheckContentIntermediateBefore publishing factual workEvery checkable claim is supported by a current source or visibly flagged for an editor.
Recurring Question to FAQContentBeginnerWeekly, or whenever the same question appears three times across email, chat, calls, comments, or onboardingThe loop produces a source-backed answer, suggested placement, support macro, and measurement hook; nothing is published, sent, or promised externally without approval.
Release Notes Truth SweepContentIntermediateBefore publishing release notes or changelog updatesEvery public note maps to shipped user-visible behavior, and unverifiable or sensitive claims are cut, narrowed, or queued for approval.
Social Source to InsightContentIntermediateAfter saving a high-signal sourceSource captured, takeaways extracted, draft angles written, and no public post is published without approval.
Accessibility RepairDesignAdvancedBefore launch or when audits failNo confirmed accessibility blocker remains in the agreed pages, components, or tasks.
Design Token Drift LoopDesignIntermediateWeekly scheduled pass on the primary product UI package; also trigger after a design-system release or a large UI feature mergeAfter each change, (1) token lint or grep count of banned hard-coded color/spacing values in the scoped paths drops or stays flat with zero new hits, (2) component story/example pages render without console token errors, and (3) before/after screenshots for the same viewport show the intended visual with no unintended layout shift.
Error Message RewriteDesignIntermediateWhen users hit confusing errorsEvery in-scope user-visible error is accounted for, rewritten or blocked, and verified in a reachable state.
Visual Feedback RepairDesignBeginnerAfter AI-generated UI changes or visual bug reportsBefore/after screenshots, console state, and responsive checks show the visual issue is fixed without breaking adjacent states.
API Contract DriftEngineeringIntermediateAfter API changes or SDK releasesServer behavior, client types, examples, and docs agree on request/response contracts.
Acceptance Scenario LockstepEngineeringIntermediateBefore and during ambiguous feature workThe same scenarios written before implementation pass after the change, and any scope expansion is explicitly approved.
Agent Instructions After-ActionEngineeringBeginnerAfter a successful or painful agent coding sessionRepo instructions contain only reusable, source-grounded lessons and the next similar task can start without rediscovering the same trap.
Architecture Rubric RefactorEngineeringAdvancedWhen architecture work has a defined scopeScoped module meets the written rubric, tests pass, and unresolved objections are explicit.
Behavior Ladder TDDEngineeringIntermediateWhen implementing logic-heavy featuresEach behavior test fails before implementation, passes after the smallest change, and remains green through final refactor.
Bug Report to Repro KitEngineeringIntermediateWhenever a customer, teammate, or monitor surfaces a bug that is too vague to fix safelyThe kit contains a minimal repro path, environment notes, expected versus actual behavior, captured evidence, and either a failing test/script or a clearly marked blocker; no customer reply, public issue, or production change is sent without approval.
CI OptimizationEngineeringAdvancedMonthly or when CI is painfulCI p50/p95 improves against the same workflow without weakening tests or hiding failures.
Claude Code Repo ReadinessEngineeringBeginnerBefore major agent workRepo has agent instructions, documented commands, architecture notes, risk areas, and a docs/loops scaffold.
Cold Load TrimEngineeringAdvancedWhen first visit feels heavyInitial screen downloads fewer bytes while screenshots and behavior remain unchanged.
Completion Promise LoopEngineeringIntermediateFor scoped implementation tasks where half-finished output is the main riskEvery acceptance criterion is checked with tests, browser evidence, logs, screenshots, or a clear blocker report before the agent stops.
Feature Flag Retirement SweepEngineeringIntermediateMonthly or after a rollout stabilizesEach reviewed flag has an owner, purpose, current state, and retirement decision; removed flags pass tests and require approval before production config changes.
Fresh Clone OnboardingEngineeringIntermediateBefore onboardingA clean machine reaches the documented ready state using only the README.
Parallel Agent Worktree SweepEngineeringAdvancedWhen several independent repo improvements can run at onceEach agent branch has isolated scope, passing checks, a summary, and no conflicting files before integration review.
Project Docs FreshnessEngineeringBeginnerNightly or after meaningful code changesChanged behavior, APIs, CLI commands, config, and workflows are reflected in docs. Docs checks pass.
Reference Oracle ImplementationEngineeringAdvancedBefore implementing tricky behavior with an external source of truthGenerated outputs match the reference oracle across the agreed fixture set, with tolerances documented for legitimate differences.
Schema Migration Dry RunEngineeringAdvancedBefore production database migrations or bulk data changesMigration runs cleanly on a recent snapshot or staging clone, row counts and sample records match expectations, rollback is documented, and production execution remains approval-gated.
Spec to Task ShardsEngineeringIntermediateBefore multi-file feature work or migrationsA written spec, non-goals, acceptance checks, and ordered task shards exist before implementation begins.
Test Flake StabilizerEngineeringIntermediateWhen tests are inconsistentThe repaired test and full suite pass for the required consecutive-run streak.
Test and Logging CoverageEngineeringIntermediateWeekly or before releaseCritical flows have useful tests and structured logs for representative success and failure paths.
Trace-First DebuggingEngineeringIntermediateWhen an agent is tempted to patch a bug from a hunchThe bug is reproduced, the root cause is evidenced by traces or tests, and the fix includes a regression check.
Webhook Replay HarnessEngineeringIntermediateWhen webhook integrations fail, drift, or need safer changesA captured or synthetic payload replays through a non-production handler, expected state changes match assertions, idempotency is proven, and live provider/customer side effects remain approval-gated.
Adversarial PR ReviewEvaluationAdvancedFor meaningful PRsAn independent critic approves the unchanged version or only accepted findings remain.
Agent Merge Queue ReviewEvaluationAdvancedAfter multiple agent-generated PRs or branches accumulateOnly branches with passing checks, clear intent, non-conflicting scope, and human-readable evidence are merged or promoted.
Browser Quality StreakEvaluationIntermediateBefore releaseN realistic scenarios pass consecutively, and earlier failures have regression coverage.
Model Output Drift WatchEvaluationIntermediateWeekly or after model, prompt, retrieval, or tool changesRepresentative outputs are compared against a baseline, regressions are classified with evidence, and risky changes are rolled back or queued for approval.
Prompt Regression SuiteEvaluationIntermediateBefore changing a production prompt, agent instruction, or model settingMust-pass cases stay green, known failure cases do not regress, and any changed behavior is documented with an accept or reject decision.
RAG Grounding AuditEvaluationIntermediateBefore shipping or refreshing a retrieval-backed assistantRepresentative answers cite the right source chunks, abstain when retrieval is weak, and expose no private or stale material.
Customer Proof PacketGrowthIntermediateBefore publishing a case study, testimonial, sales claim, or investor/customer proof pointEach public-safe claim maps to approved evidence, private details are redacted, and anything using a name, logo, metric, or quote is queued for explicit approval.
Paid Ads Copy Variant LoopGrowthIntermediateEvery 2–3 days while spend is live; weekly when spend is lowEach active variant has enough spend or impressions for a decision rule, losers are paused, winners keep or increase budget share, and every copy/creative change is logged with the metric that justified it.
Product Feedback to Measure LoopGrowthAdvancedWeekly product tick; bug/uptime work stays in a separate reliability loopTop pain themes are ranked with evidence, one feature or UX change is prototyped or shipped behind a flag, a pre-chosen KPI (activation, retention, NPS, revenue proxy) is measured after the window, and bug/uptime work was not mixed into this cycle.
Promise to ProofGrowthIntermediateBefore launch or campaign refreshEvery high-risk customer promise is supported, narrowed, or awaiting an explicit decision.
SEO Monthly Rank ExperimentGrowthIntermediateMonthly (or every 2 weeks); not continuous thrashOne reversible change set is applied, Search Console (or equivalent) rank/click metrics for the target queries are recorded before and after the waiting window, the experiment log is updated, and if rank fell the change is queued for undo.
SEO/GEO VisibilityGrowthIntermediateMonthlyPriority pages are indexable, answer-ready, internally linked, and no high-impact benchmark gaps remain.
Talk to Five BuyersGrowthIntermediateBefore major landing-page rewriteProposed copy traces to repeated anonymized buyer objections across approved interviews.
Memory Bank ContinuityKnowledgeBeginnerAt the start and end of multi-session agent workProject brief, active context, decisions, tech constraints, and progress are current enough for a fresh agent to continue safely.
Open Loop and Stale Memory CleanupKnowledgeBeginnerWeeklyNo current open loop is contradicted by recent daily or project notes.
Research to ArtifactKnowledgeIntermediateWhenever research must support a decisionThe artifact meets acceptance criteria, traces important claims to sources, and states uncertainty plainly.
Source Library Ingestion QAKnowledgeIntermediateAfter each source captureMetadata complete, transcript/article state honest, useful takeaways present, and qmd retrieval verified or refreshed.
Agent Cost Budget LoopOperationsIntermediateManual trial, then scheduled if it proves usefulEvery high-cost run maps to an outcome, cap, and future adjustment.
Agent Handoff ContinuityOperationsIntermediateBefore pausing or switching agentsA new agent can state goal, current state, proof, blockers, and next action without reading the whole transcript.
Agent Toolchain Health CheckOperationsBeginnerWeekly or before a heavy agent runCritical tools authenticate, return sane output, and have a known fallback or blocker owner.
CRM Hygiene LoopOperationsIntermediateManual trial, then scheduled if it proves usefulNo high-value account lacks owner, next action, stage, or stale-date flag.
Incident Timeline ReconstructionOperationsIntermediateDuring incidents, after outages, or before writing a postmortemA timestamped timeline separates facts from guesses, names owners for open questions, and gates any customer-facing update for approval.
Living StoryOperationsIntermediateWeekly or per project windowEvery prior thread is carried forward, closed with evidence, or flagged stale/needs-review.
Notebook to Repeatable PipelineOperationsIntermediateWhen an ad hoc analysis, spreadsheet, or notebook needs to run againA clean run reproduces the expected output from named inputs, assumptions and owners are documented, and any scheduled sends or external updates are approval-gated.
Production Error SweepOperationsAdvancedDaily or after incidentActionable errors are fixed with reproduction or tests, or explicitly classified as noise.
Side-Effect Dry Run GateOperationsBeginnerBefore giving an agent tools that can change external stateEvery side-effecting action has an exact preview, risk level, required approval, and rollback or fallback; no live action runs until authorized.
Support Macro Learning LoopOperationsIntermediateManual trial, then scheduled if it proves usefulTop repeated issue has a macro/doc/product action with evidence.
Calendar Promise ProofPersonal OpsBeginnerDaily or before week planningEvery calendar-derived promise has an owner, due date, evidence, or explicit drop decision.
Inbox Decision TriagePersonal OpsBeginnerDaily or before deep workEvery sampled message is archived, labeled, delegated, converted to a task, or left with a drafted reply; no external message is sent without approval.
Meeting Transcript Action MinerPersonal OpsBeginnerAfter recorded meetings or dense callsDecisions, commitments, owners, due dates, and unresolved questions are captured with source evidence; no external follow-up is sent without approval.
Stakeholder Briefing PacketPersonal OpsBeginnerBefore high-leverage meetings, calls, or relationship-sensitive updatesThe packet states objective, context, open asks, risks, likely questions, and recommended stance with source links; no message, agenda, or document is shared externally without approval.
Support Refund Follow-UpPersonal OpsBeginnerUntil terminal stateRefund is received, or no approved next step remains and a blocker is named.
Dependency CVE BurndownSecurityAdvancedAfter security scanNo exploitable high or critical CVE remains without an explicit risk decision.
Permission Scope MinimizerSecurityIntermediateBefore launching an integration, agent tool, or automation with account accessThe workflow succeeds with the narrowest tested permissions, unused scopes are documented for removal, and any live credential changes remain approval-gated.
Sandboxed YOLO ProbeSecurityAdvancedBefore allowing autonomous shell-heavy agent runsThe agent can run needed commands inside the sandbox, cannot reach forbidden files/secrets, and produces a replayable diff or report before host-side changes.
Vendor Security Packet BuilderSecurityIntermediateBefore answering vendor security questionnaires or procurement due diligenceEvery answer maps to an approved source, uncertain claims are queued for review, and nothing is sent externally without approval.
Loop Hiring ManagerStrategyIntermediateWhen a project accumulates recurring choresAt most three candidates fill proven recurring gaps, with one recommended safe manual trial.

How to choose

If the work is…Start with…
Code or repo maintenanceCoding agent loops
Fact checking or researchPre-Publish Source Check or Research to Artifact
Quality assuranceVerification loops
Recurring personal follow-upCalendar Promise Proof