LOOPS
Self-pacing agent workflows. Copy a loop, paste it into your agent, let it run.
Compatible tools
Works with your agent
What are loops
Autonomous agent workflows that iterate until done
A loop is a structured prompt that tells an AI coding agent (Claude Code, Cursor, Codex, Gemini CLI) to repeat a task autonomously until a measurable exit condition is met. Instead of prompting, inspecting, re-prompting manually — you define the goal, the check command, and the exit condition, then let the agent self-pace.
How it works
The loop execution cycle
Assumption Mapper
Extract and rank risky assumptions from a spec. Loop until each has a validation method assigned.
Metric Definer
Define north star + input metrics for a feature. Loop until metrics are measurable, attributed, and baselined.
Problem-Worth-Solving Gate
Validate a problem has evidence before coding. Loop until problem statement has user signals, data, and cost-of-inaction.
Build Until Green
HardenedRun production build, fix compile/bundle errors, repeat until exit 0.
Context-Window Packer
Compress context into minimal tokens before handing to an agent. Loop until agent succeeds on first pass.
Harness Tightener
After agent run, review for drift from spec. Tighten constraints and re-run until output matches intent.
Ship PR Until Green
HardenedImplement, test, push, open PR, fix CI until all checks pass.
Type-Safe Refactor
Rename/restructure with TypeScript as guardrail. Loop until tsc exits 0 with no any escape hatches.
Changelog Generator
From commits since last tag, generate user-facing changelog. Loop until all changes categorized.
Deploy Canary Watch
HardenedAfter deploying, monitor error rates and latency. Loop until canary is stable or rollback triggered.
Feature Flag Cleanup
Find stale flags (>30 days, 100% rolled out). Remove them one by one until none remain.
Coverage Until Threshold
HardenedAdd focused tests until coverage target met (default 80%).
E2E Until Green
HardenedRun Playwright end-to-end tests, fix failures, repeat until suite passes.
Mutation Testing Pass
Run mutation tests, fix surviving mutants until mutation score meets threshold.
Visual Regression Fixer
Run visual diff tests, fix CSS regressions until all screenshots match baselines.
Accessibility Audit Loop
Run axe/lighthouse, fix a11y violations one by one until score meets threshold.
Bundle Diet
Analyze bundle size, remove/replace heavy deps until budget met.
De-Sloppify Pass
HardenedRemove debug code, tighten naming, delete dead branches. Loop until clean.
Security Scan Loop
HardenedRun SAST/dependency audit, fix vulnerabilities until clean.
Agent Output Validator
Run agent, validate output against schema/checklist, feed corrections back. Loop until passes.
Context Compression Loop
Iteratively summarize/compress project context until it fits target token budget.
Multi-Agent Coordinator
Orchestrate parallel agent tasks. Loop until all subtasks complete and merge cleanly.
Prompt Regression Suite
Run prompt against test cases, fix regressions until all pass.