ループとは正確には何ですか?
ループは、目標、進捗を客観的に検証する検査コマンド、退出条件、最大反復回数の4つで構成される、AI コーディングエージェント向けの再利用可能なワークフローです。起動プロンプトをエージェントに貼り付ければ、退出条件を満たすまで検査コマンドを再実行しながら自律的にタスクを進めます。
コーディングエージェントがタスクを完了するまで自律的に進められる、再利用可能なプロンプトと段階的なワークフロー。
Run the production build, fix compile and bundling errors, and loop until the build succeeds.
Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.
Hook that runs tests before git commit commands to block commits when the suite is red.
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.
Hook-based loop that runs related tests after file edits to catch regressions early.
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.
Test-first loop: write a failing test, implement the minimum code to pass, refactor, and repeat.
Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implementer's rationale.
Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.
Run Playwright or Percy visual snapshots on UI changes; fix unintended diffs until baselines match intentionally.
Run lint and typecheck, fix reported issues, and loop until the codebase is clean.
Run end-to-end tests, fix UI and integration failures, and loop until the E2E suite passes.
AI コーディングエージェント向けの再利用可能な Loops に関するよくある質問
ループは、目標、進捗を客観的に検証する検査コマンド、退出条件、最大反復回数の4つで構成される、AI コーディングエージェント向けの再利用可能なワークフローです。起動プロンプトをエージェントに貼り付ければ、退出条件を満たすまで検査コマンドを再実行しながら自律的にタスクを進めます。
通常のプロンプトは1ターンの1つの指示です。ループは繰り返されるターンを取り巻くシステムで、エージェントに自分の作業をどう検証し、いつ停止するかを伝えます。そのため、毎回プロンプトを入力し直さなくても作業を継続できます。この手法は Loop Engineering と呼ばれます。
このページのほとんどのループは特定のエージェントに依存しません——起動プロンプトはただのテキストなので、Claude Code、Cursor、Codex など任意のコーディングエージェントに貼り付けて使えます。各ループの詳細ページには、専用に構築・テストされたエージェントが記載されています。