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

43total loop patterns
10categories
17engineering loops
10operating domains
Full reference

All examples

LoopCategoryDifficultyCadenceVerification
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.
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.
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.
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.
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.
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.
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.
Promise to ProofGrowthIntermediateBefore launch or campaign refreshEvery high-risk customer promise is supported, narrowed, or awaiting an explicit decision.
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 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.
Living StoryOperationsIntermediateWeekly or per project windowEvery prior thread is carried forward, closed with evidence, or flagged stale/needs-review.
Production Error SweepOperationsAdvancedDaily or after incidentActionable errors are fixed with reproduction or tests, or explicitly classified as noise.
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.
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.
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.
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