cy0307 commited on
Commit
549e098
·
verified ·
1 Parent(s): bc45d6d

Publish dataset mirror with resource sheet

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Community pattern discussion
4
+ url: https://github.com/ChaoYue0307/awesome-loop-engineering/issues/1
5
+ about: Share real-world Loop Engineering patterns, examples, and lessons learned.
6
+ - name: Open a pull request
7
+ url: https://github.com/ChaoYue0307/awesome-loop-engineering/compare
8
+ about: If you already know where the resource belongs, a pull request is preferred.
9
+ - name: Support guide
10
+ url: https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/SUPPORT.md
11
+ about: Choose the right support, correction, translation, or security channel.
.github/ISSUE_TEMPLATE/pattern-suggestion.yml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Loop pattern suggestion
2
+ description: Suggest a recurring AI-agent loop pattern for the pattern library.
3
+ title: "[Pattern]: "
4
+ labels:
5
+ - pattern-suggestion
6
+ body:
7
+ - type: input
8
+ id: name
9
+ attributes:
10
+ label: Pattern name
11
+ description: Short name for the loop pattern.
12
+ placeholder: PR babysitter
13
+ validations:
14
+ required: true
15
+ - type: textarea
16
+ id: objective
17
+ attributes:
18
+ label: Objective
19
+ description: What outcome should this loop optimize for?
20
+ placeholder: Keep an open PR moving toward merge readiness without repeated human polling.
21
+ validations:
22
+ required: true
23
+ - type: textarea
24
+ id: trigger
25
+ attributes:
26
+ label: Trigger
27
+ description: What starts the loop?
28
+ placeholder: Schedule, webhook, failed check, new review comment, release event, or manual bootstrap command.
29
+ validations:
30
+ required: true
31
+ - type: textarea
32
+ id: intake
33
+ attributes:
34
+ label: Discover / intake
35
+ description: Where does the loop find work?
36
+ placeholder: GitHub PR comments, CI failures, Linear tickets, logs, alerts, feedback streams.
37
+ validations:
38
+ required: true
39
+ - type: textarea
40
+ id: delegation
41
+ attributes:
42
+ label: Agents and delegation
43
+ description: Which agent roles are involved and how is work handed off?
44
+ placeholder: Explorer identifies blockers, Implementer patches, Reviewer checks scope, Judge decides next action.
45
+ validations:
46
+ required: true
47
+ - type: textarea
48
+ id: verification
49
+ attributes:
50
+ label: Verification gates
51
+ description: What says yes or no?
52
+ placeholder: Required checks pass, examples run, dashboard thresholds hold, reviewer approves, trace grader passes.
53
+ validations:
54
+ required: true
55
+ - type: textarea
56
+ id: state
57
+ attributes:
58
+ label: Durable state
59
+ description: What survives the next run?
60
+ placeholder: Progress file, issue comment, database checkpoint, trace, status report, processed IDs.
61
+ validations:
62
+ required: true
63
+ - type: textarea
64
+ id: budget
65
+ attributes:
66
+ label: Budget and exit
67
+ description: When should the loop stop?
68
+ placeholder: Max retries, max runtime, success condition, stop-without-success condition.
69
+ validations:
70
+ required: true
71
+ - type: textarea
72
+ id: escalation
73
+ attributes:
74
+ label: Escalation
75
+ description: When should a human take over and where should the loop report?
76
+ placeholder: Missing credentials, architecture judgment, production approval, repeated failure, unclear ownership.
77
+ validations:
78
+ required: true
79
+ - type: checkboxes
80
+ id: checklist
81
+ attributes:
82
+ label: Checklist
83
+ options:
84
+ - label: This is a recurring AI-agent loop, not a one-off prompt or generic automation.
85
+ required: true
86
+ - label: The pattern includes trigger, intake, delegation, verification, durable state, budget, escalation, and exit.
87
+ required: true
88
+ - label: The pattern has at least one concrete verification gate stronger than model self-assessment.
89
+ required: true
90
+ - label: Sensitive actions are human-approved or explicitly out of scope.
91
+ required: true
.github/ISSUE_TEMPLATE/resource-suggestion.yml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Resource suggestion
2
+ description: Suggest a paper, blog, note, tool, benchmark, or critique for the list.
3
+ title: "[Resource]: "
4
+ labels:
5
+ - resource-suggestion
6
+ body:
7
+ - type: input
8
+ id: title
9
+ attributes:
10
+ label: Resource title
11
+ description: The title of the resource.
12
+ placeholder: Loop Engineering
13
+ validations:
14
+ required: true
15
+ - type: input
16
+ id: url
17
+ attributes:
18
+ label: URL
19
+ description: Public, stable URL for the resource.
20
+ placeholder: https://example.com
21
+ validations:
22
+ required: true
23
+ - type: dropdown
24
+ id: category
25
+ attributes:
26
+ label: Suggested category
27
+ options:
28
+ - Start Here
29
+ - Core Loop Primitives
30
+ - Official Runtime Guides
31
+ - Research Foundations
32
+ - Agent Workflow Patterns
33
+ - Coding-Agent Loop Systems
34
+ - Verification And Feedback Gates
35
+ - State, Memory, And Context Persistence
36
+ - Orchestration And Multi-Agent Delegation
37
+ - Benchmarks And Evaluation
38
+ - Operations Playbooks
39
+ - Templates And Patterns
40
+ - Critiques, Risks, And Limitations
41
+ - Adjacent Awesome Lists
42
+ - Not sure
43
+ validations:
44
+ required: true
45
+ - type: dropdown
46
+ id: source_type
47
+ attributes:
48
+ label: Resource type
49
+ options:
50
+ - 📄 Paper
51
+ - 📝 Blog
52
+ - 📚 Docs
53
+ - 🧰 Tool
54
+ - 🧪 Benchmark
55
+ - 🔁 Pattern
56
+ - 🧾 Template
57
+ - 🧭 List
58
+ - ⚠️ Critique
59
+ - Other
60
+ validations:
61
+ required: true
62
+ - type: dropdown
63
+ id: quality_label
64
+ attributes:
65
+ label: Quality label
66
+ description: Choose the strongest reason this source is useful.
67
+ options:
68
+ - Primary source
69
+ - Official docs
70
+ - Implementation-heavy
71
+ - Foundational
72
+ - Cautionary
73
+ - Adjacent
74
+ - Not sure
75
+ validations:
76
+ required: true
77
+ - type: textarea
78
+ id: relevance
79
+ attributes:
80
+ label: Why it belongs
81
+ description: Explain how this resource helps people design recurring agent systems above prompt, context, and harness engineering.
82
+ placeholder: This belongs because...
83
+ validations:
84
+ required: true
85
+ - type: dropdown
86
+ id: evidence_quality
87
+ attributes:
88
+ label: Evidence quality
89
+ description: Prefer primary, practical, and implementation-oriented sources.
90
+ options:
91
+ - Tier A - primary source or official docs
92
+ - Tier B - practitioner write-up with implementation detail
93
+ - Tier C - curated survey or high-quality explainer
94
+ - Tier D - commentary or news coverage
95
+ - Not sure
96
+ validations:
97
+ required: true
98
+ - type: checkboxes
99
+ id: checklist
100
+ attributes:
101
+ label: Checklist
102
+ options:
103
+ - label: This is about AI/coding-agent Loop Engineering or a direct foundation for recurring agent systems.
104
+ required: true
105
+ - label: If this is adjacent prompt, context, or harness content, it clearly connects to repeated runs, state, verification, or escalation.
106
+ required: true
107
+ - label: This is not about unrelated event loops, growth loops, or generic automation.
108
+ required: true
109
+ - label: I checked that the resource is not already listed.
110
+ required: true
.github/ISSUE_TEMPLATE/translation.yml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Translation proposal
2
+ description: Propose a new translation or volunteer to maintain one.
3
+ title: "[Translation]: "
4
+ labels:
5
+ - translation
6
+ body:
7
+ - type: input
8
+ id: language
9
+ attributes:
10
+ label: Language
11
+ description: Which language do you want to add or maintain?
12
+ placeholder: Japanese
13
+ validations:
14
+ required: true
15
+ - type: input
16
+ id: file
17
+ attributes:
18
+ label: Proposed file name
19
+ description: See TRANSLATIONS.md for suggested names.
20
+ placeholder: README.ja.md
21
+ validations:
22
+ required: true
23
+ - type: textarea
24
+ id: scope
25
+ attributes:
26
+ label: Translation scope
27
+ description: What will you translate first?
28
+ placeholder: Introduction, Loop Contract, maturity model, contribution instructions...
29
+ validations:
30
+ required: true
31
+ - type: checkboxes
32
+ id: checklist
33
+ attributes:
34
+ label: Checklist
35
+ options:
36
+ - label: I will preserve the narrow AI/coding-agent scope.
37
+ required: true
38
+ - label: I will link back to the canonical English README.
39
+ required: true
40
+ - label: I will keep resource URLs unchanged.
41
+ required: true
.github/pull_request_template.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Pull Request
2
+
3
+ ## What Changed
4
+
5
+ Select all that apply.
6
+
7
+ - [ ] Added or updated resource entries
8
+ - [ ] Added or updated a loop pattern
9
+ - [ ] Added or updated a translation
10
+ - [ ] Improved docs, templates, or repository presentation
11
+ - [ ] Fixed links, typos, or formatting
12
+
13
+ ## Resource Summary
14
+
15
+ List the resources, patterns, or translation files changed.
16
+
17
+ - Title and URL:
18
+
19
+ ## Relevance To Loop Engineering
20
+
21
+ Explain how this PR relates to the new AI/coding-agent meaning of Loop Engineering: the layer above prompt, context, and harness engineering where recurring systems trigger agents, provide context, bound actions, verify results, persist state, retry, and escalate.
22
+
23
+ ## Category
24
+
25
+ Which README section did you update?
26
+
27
+ - [ ] Start Here
28
+ - [ ] Core Loop Primitives
29
+ - [ ] Official Runtime Guides
30
+ - [ ] Research Foundations
31
+ - [ ] Agent Workflow Patterns
32
+ - [ ] Coding-Agent Loop Systems
33
+ - [ ] Verification And Feedback Gates
34
+ - [ ] State, Memory, And Context Persistence
35
+ - [ ] Orchestration And Multi-Agent Delegation
36
+ - [ ] Benchmarks And Evaluation
37
+ - [ ] Operations Playbooks
38
+ - [ ] Templates And Patterns
39
+ - [ ] Critiques, Risks, And Limitations
40
+ - [ ] Adjacent Awesome Lists
41
+ - [ ] Translation or repository docs
42
+
43
+ ## Source Type
44
+
45
+ - [ ] 📄 Paper
46
+ - [ ] 📝 Blog
47
+ - [ ] 📚 Docs
48
+ - [ ] 🧰 Tool
49
+ - [ ] 🧪 Benchmark
50
+ - [ ] 🔁 Pattern
51
+ - [ ] 🧾 Template
52
+ - [ ] 🧭 List
53
+ - [ ] ⚠️ Critique
54
+
55
+ ## Quality Labels
56
+
57
+ - [ ] Direct Loop Engineering source
58
+ - [ ] Paper or technical report
59
+ - [ ] Official documentation
60
+ - [ ] Engineering blog or field note
61
+ - [ ] Tool, framework, or repository
62
+ - [ ] Benchmark or evaluation resource
63
+ - [ ] Critique or limitation analysis
64
+ - [ ] Adjacent awesome list
65
+ - [ ] Primary source
66
+ - [ ] Implementation-heavy
67
+ - [ ] Foundational
68
+ - [ ] Cautionary
69
+ - [ ] Translation
70
+ - [ ] Repository maintenance
71
+
72
+ ## Evidence Quality
73
+
74
+ - [ ] Tier A: primary source or official docs
75
+ - [ ] Tier B: practitioner write-up with implementation detail
76
+ - [ ] Tier C: curated survey or high-quality explainer
77
+ - [ ] Tier D: commentary or news coverage
78
+
79
+ ## Checklist
80
+
81
+ - [ ] I searched the README for duplicates.
82
+ - [ ] The resource is public and has a stable URL.
83
+ - [ ] The entry is in the most specific category.
84
+ - [ ] The entry includes the correct resource type label, such as `📄 **Paper**` or `📚 **Docs**`.
85
+ - [ ] The annotation explains why the resource matters for loop design.
86
+ - [ ] Adjacent prompt, context, or harness resources explicitly connect to repeated agent runs, state, verification, or escalation.
87
+ - [ ] The entry follows the format: `- 📄 **Paper** [Title](https://example.com) - One sentence annotation.`
88
+ - [ ] The resource is not about unrelated event loops, growth loops, control theory, or generic automation.
89
+ - [ ] New loop patterns include trigger, discover/intake, delegation, state, verification gates, retry budget, escalation path, and loop instruction or automation artifact.
90
+ - [ ] I agree that my contribution to this repository is released under `CC0-1.0`.
91
+ - [ ] I did not copy third-party content into this repository without the right to do so.
92
+ - [ ] Any translation links back to the canonical English README.
.github/workflows/publish-package.yml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Publish package
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ release:
6
+ types: [published]
7
+
8
+ permissions:
9
+ contents: read
10
+ packages: write
11
+
12
+ concurrency:
13
+ group: publish-package
14
+ cancel-in-progress: false
15
+
16
+ jobs:
17
+ publish:
18
+ name: Publish loop-contract-schema to GitHub Packages
19
+ runs-on: ubuntu-latest
20
+ defaults:
21
+ run:
22
+ working-directory: packages/loop-contract-schema
23
+ steps:
24
+ - name: Check out repository
25
+ uses: actions/checkout@v4
26
+
27
+ - name: Set up Node
28
+ uses: actions/setup-node@v4
29
+ with:
30
+ node-version: "20"
31
+ registry-url: "https://npm.pkg.github.com"
32
+ scope: "@chaoyue0307"
33
+
34
+ - name: Validate the example contracts before publishing
35
+ run: node bin/cli.js ../../examples/pr-babysitter-loop.json
36
+
37
+ - name: Publish
38
+ run: npm publish
39
+ env:
40
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/quality.yml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Quality
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+ schedule:
9
+ - cron: "17 3 * * 1"
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ concurrency:
16
+ group: quality-${{ github.ref }}
17
+ cancel-in-progress: true
18
+
19
+ jobs:
20
+ docs:
21
+ name: Docs quality gates
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: read
25
+ issues: write
26
+ env:
27
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
28
+ steps:
29
+ - name: Check out repository
30
+ uses: actions/checkout@v4
31
+
32
+ - name: Set up Python
33
+ uses: actions/setup-python@v5
34
+ with:
35
+ python-version: "3.x"
36
+
37
+ - name: Check Markdown formatting
38
+ uses: DavidAnson/markdownlint-cli2-action@v17
39
+ with:
40
+ globs: "**/*.md"
41
+
42
+ - name: Check Awesome list standards
43
+ run: npx --yes awesome-lint
44
+
45
+ - name: Check license text
46
+ run: python scripts/check_license.py
47
+
48
+ - name: Check resource type labels
49
+ run: python scripts/check_resource_labels.py README.md
50
+
51
+ - name: Check resource dataset export
52
+ run: python scripts/export_resource_dataset.py --check
53
+
54
+ - name: Check loop contract examples
55
+ run: |
56
+ python scripts/check_loop_contract_examples.py
57
+ python scripts/preview_loop_contract.py examples/pr-babysitter-loop.json >/tmp/pr-babysitter-preview.md
58
+
59
+ - name: Check Pages metadata
60
+ run: python scripts/check_pages_metadata.py
61
+
62
+ - name: Check internal links
63
+ run: python scripts/check_internal_links.py
64
+
65
+ - name: Check translation sync markers
66
+ run: python scripts/check_translation_sync.py
67
+
68
+ - name: Check links
69
+ run: python scripts/verify_urls.py . --timeout 12 --workers 20
70
+
71
+ - name: Check main commit identity
72
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
73
+ run: python scripts/check_commit_identity.py
74
+
75
+ - name: Open an issue when a scheduled run fails
76
+ if: failure() && github.event_name == 'schedule'
77
+ env:
78
+ GH_TOKEN: ${{ github.token }}
79
+ run: |
80
+ gh issue create \
81
+ --repo "$GITHUB_REPOSITORY" \
82
+ --title "Scheduled quality run failed on $(date -u +%Y-%m-%d)" \
83
+ --body "The weekly quality workflow failed, most likely a dead link or a stale translation sync marker. See the run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
.markdownlint.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "MD013": false,
3
+ "MD033": false,
4
+ "MD041": false,
5
+ "MD060": false
6
+ }
AGENTS.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Repository Guidance For AI Agents
2
+
3
+ This repository curates resources for the new AI/coding-agent meaning of **Loop Engineering**.
4
+
5
+ ## Scope
6
+
7
+ Include resources that help readers design, run, verify, evaluate, or critique recurring AI-agent systems that sit above prompt, context, and harness engineering. A good entry should explain how a loop discovers work, delegates to agents, supplies context, bounds tools and permissions, verifies results, persists state, decides next actions, retries, or escalates.
8
+
9
+ Do not include unrelated uses of "loop":
10
+
11
+ - software event loops;
12
+ - UI/game loops;
13
+ - control theory;
14
+ - growth loops;
15
+ - generic workflow automation;
16
+ - non-AI feedback loops.
17
+
18
+ ## Editing Rules
19
+
20
+ - Keep `README.md` as the canonical English source.
21
+ - Preserve the four-layer framing when editing the intro, scope, or mental model: prompt, context, and harness engineering improve one run; Loop Engineering governs repeated agent work over time.
22
+ - Keep annotations short, specific, and builder-oriented.
23
+ - Prefer primary sources, official docs, papers, and implementation-heavy write-ups.
24
+ - If a resource is generic agent, prompt, context, or harness content, include it only when the annotation clearly explains its loop-design relevance.
25
+ - Update `README.zh-CN.md` only for translated overview content; do not let it drift into a separate resource list unless maintained.
26
+ - When adding a new category, update `README.md`, `CONTRIBUTING.md`, PR templates, and issue templates together.
27
+ - Do not add generated marketing copy or unsupported hype.
28
+
29
+ ## Commit Identity Rule
30
+
31
+ Never create commits with AI-assistant co-author trailers or any non-owner author/committer identity. All commits in this repository must be authored and committed as `ChaoYue0307 <hechaoyue0307@gmail.com>`.
32
+
33
+ When committing from an AI agent, do not use plain `git commit` if the environment may append co-author trailers. Create commits with explicit identity instead:
34
+
35
+ ```sh
36
+ git add <files>
37
+ PARENT="$(git rev-parse HEAD)"
38
+ TREE="$(git write-tree)"
39
+ NEW="$(GIT_AUTHOR_NAME='ChaoYue0307' GIT_AUTHOR_EMAIL='hechaoyue0307@gmail.com' GIT_COMMITTER_NAME='ChaoYue0307' GIT_COMMITTER_EMAIL='hechaoyue0307@gmail.com' git commit-tree "$TREE" -p "$PARENT" -m "Commit message")"
40
+ git update-ref refs/heads/main "$NEW" "$PARENT"
41
+ ```
42
+
43
+ Before pushing, verify:
44
+
45
+ ```sh
46
+ python scripts/check_commit_identity.py
47
+ ```
48
+
49
+ ## Entry Format
50
+
51
+ ```md
52
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
53
+ ```
54
+
55
+ ## Quality Preference
56
+
57
+ When two sources overlap, prefer:
58
+
59
+ 1. primary source or official docs;
60
+ 2. implementation details over commentary;
61
+ 3. stable URLs over social posts;
62
+ 4. practical loop design over broad AI-agent trend coverage.
ANTI-PATTERNS.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Loop Engineering Anti-Patterns
2
+
3
+ Use this page to reject unsafe, vague, or misleading loop designs.
4
+
5
+ ## Prompt Loop With No Contract
6
+
7
+ **Symptom:** A script repeatedly asks an agent to "keep improving" without a named objective, intake, state, verification, or exit condition.
8
+
9
+ **Why it fails:** The loop becomes a manual prompting habit disguised as automation.
10
+
11
+ **Better:** Define the loop contract before running: objective, trigger, intake, workspace, context, delegation, verification, state, budget, escalation, and exit.
12
+
13
+ ## Infinite Retry Loop
14
+
15
+ **Symptom:** The loop keeps feeding failures back to the agent indefinitely.
16
+
17
+ **Why it fails:** Cost grows, context degrades, and the loop may repeatedly damage the same files.
18
+
19
+ **Better:** Set retry budgets per blocker, stop on repeated failures, and escalate with evidence.
20
+
21
+ ## Model Self-Approval
22
+
23
+ **Symptom:** The same agent that made the change decides that the work is complete.
24
+
25
+ **Why it fails:** Models can rationalize their own mistakes and miss regressions they introduced.
26
+
27
+ **Better:** Use deterministic checks, a separate verifier agent, or human review for completion gates.
28
+
29
+ ## Hidden State
30
+
31
+ **Symptom:** The only memory is inside the conversation.
32
+
33
+ **Why it fails:** The next run cannot reliably know what was tried, what passed, what failed, or what remains.
34
+
35
+ **Better:** Persist state in files, issues, comments, checkpoints, traces, or workflow state.
36
+
37
+ ## Unsafe Production Autonomy
38
+
39
+ **Symptom:** A loop can deploy, roll back, change config, rotate secrets, or modify data without explicit approval boundaries.
40
+
41
+ **Why it fails:** A small model error can become an operational incident.
42
+
43
+ **Better:** Make sensitive actions approval-gated and document rollback, escalation, and owner rules.
44
+
45
+ ## Generic Automation Rebranded As Loop Engineering
46
+
47
+ **Symptom:** A cron job or workflow runs without agentic reasoning, context loading, verification, or stateful next-action decisions.
48
+
49
+ **Why it fails:** It blurs Loop Engineering with ordinary automation.
50
+
51
+ **Better:** Call ordinary automation ordinary automation. Use Loop Engineering when repeated agent work is actually being triggered, bounded, verified, persisted, and rerun.
52
+
53
+ ## Context Dump Loop
54
+
55
+ **Symptom:** Each run gives the agent a huge context bundle instead of a curated state contract.
56
+
57
+ **Why it fails:** The loop becomes slow, expensive, and hard to debug.
58
+
59
+ **Better:** Separate durable state from supporting context. Load only the state, docs, examples, and receipts needed for the current objective.
60
+
61
+ ## No Escalation Path
62
+
63
+ **Symptom:** The loop keeps acting even when it lacks credentials, sees ambiguous product requirements, hits flaky infrastructure, or needs architectural judgment.
64
+
65
+ **Why it fails:** The agent spends budget where a human decision is required.
66
+
67
+ **Better:** Define escalation triggers and include the evidence a human needs to take over.
68
+
69
+ ## No Receipts
70
+
71
+ **Symptom:** The loop says it is done without commands, logs, changed files, trace IDs, dashboard snapshots, reviewer decisions, or links.
72
+
73
+ **Why it fails:** Maintainers cannot audit the loop or trust its result.
74
+
75
+ **Better:** Require receipts as part of the exit gate.
CITATION.bib ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ @misc{chaoyue2026awesome_loop_engineering,
2
+ author = {He, Chaoyue},
3
+ title = {Awesome Loop Engineering},
4
+ year = {2026},
5
+ howpublished = {\url{https://github.com/ChaoYue0307/awesome-loop-engineering}},
6
+ note = {Curated resources for Loop Engineering}
7
+ }
CITATION.cff ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ message: "If this repository is useful in your work, please cite it as below."
3
+ title: "Awesome Loop Engineering"
4
+ type: software
5
+ authors:
6
+ - family-names: "He"
7
+ given-names: "Chaoyue"
8
+ repository-code: "https://github.com/ChaoYue0307/awesome-loop-engineering"
9
+ url: "https://chaoyue0307.github.io/awesome-loop-engineering/"
10
+ abstract: "Curated resources and practical patterns for Loop Engineering with AI and coding agents."
11
+ keywords:
12
+ - loop-engineering
13
+ - ai-agents
14
+ - coding-agents
15
+ - agentic-workflows
16
+ license: CC0-1.0
CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Code Of Conduct
2
+
3
+ Awesome Loop Engineering is a technical curation project. Contributors should help keep discussions accurate, specific, and useful for builders.
4
+
5
+ ## Expected Behavior
6
+
7
+ - Be respectful and assume good intent.
8
+ - Keep feedback concrete and evidence-based.
9
+ - Prefer primary sources and verifiable claims.
10
+ - Disclose caveats such as vendor bias, paywalls, unstable links, or weak evidence.
11
+ - Respect maintainers' scope decisions when a resource is not specific to AI/coding-agent Loop Engineering.
12
+
13
+ ## Unacceptable Behavior
14
+
15
+ - Harassment, insults, threats, or discriminatory language.
16
+ - Spam, link farming, or promotional submissions without technical substance.
17
+ - Posting secrets, private customer data, credentials, or internal-only links.
18
+ - Misrepresenting a source, author, benchmark, tool, or affiliation.
19
+ - Repeatedly pushing unrelated event-loop, growth-loop, control-theory, or generic automation content into scope.
20
+
21
+ ## Enforcement
22
+
23
+ Maintainers may edit, close, or remove issues, pull requests, comments, or links that violate this code of conduct or the repository scope. Serious or repeated violations may lead to blocked participation.
24
+
25
+ ## Reporting
26
+
27
+ If a discussion becomes unsafe or inappropriate, open an issue with sensitive details removed, or contact the maintainer through GitHub. For security-sensitive concerns, follow `SECURITY.md`.
COMPARISON.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Comparison Guide
2
+
3
+ Loop Engineering is easiest to understand by separating it from nearby practices.
4
+
5
+ ## Prompt Engineering vs Loop Engineering
6
+
7
+ **Prompt Engineering** asks: what should I say to the model now?
8
+
9
+ **Loop Engineering** asks: what system should discover work, delegate to agents, verify results, persist state, decide next actions, and rerun?
10
+
11
+ Prompt engineering can be part of a loop instruction, but a good prompt alone is not a loop.
12
+
13
+ ## Context Engineering vs Loop Engineering
14
+
15
+ **Context Engineering** asks: what state, memory, documents, examples, and tool results should the model see?
16
+
17
+ **Loop Engineering** asks: when should context be loaded, what state should survive across runs, and how should that state affect the next run?
18
+
19
+ Context engineering improves the input to an agent. Loop Engineering governs recurring agent work over time.
20
+
21
+ ## Harness Engineering vs Loop Engineering
22
+
23
+ **Harness Engineering** asks: what tools, permissions, sandboxes, tests, traces, and feedback surround one agent run?
24
+
25
+ **Loop Engineering** asks: how should repeated agent runs use those harnesses to act, verify, record receipts, retry, and escalate?
26
+
27
+ Harness engineering makes a run safer and more observable. Loop Engineering decides when and why that run happens again.
28
+
29
+ ## Workflow Automation vs Loop Engineering
30
+
31
+ **Workflow automation** executes predefined steps.
32
+
33
+ **Loop Engineering** coordinates agentic work that may require discovery, delegation, tool use, verification, state updates, and next-action decisions.
34
+
35
+ Many loops use workflow automation. Not every workflow automation is Loop Engineering.
36
+
37
+ ## Agent Workflow vs Loop Engineering
38
+
39
+ **Agent workflows** describe how models, tools, and agents solve a task.
40
+
41
+ **Loop Engineering** describes how work recurs: what triggers it, what state persists, what gates completion, when retry is allowed, and when humans take over.
42
+
43
+ An agent workflow can be the inner mechanism. The loop is the operating system around repeated work.
44
+
45
+ ## Evaluation Loop vs Operational Loop
46
+
47
+ **Evaluation loops** repeatedly measure and improve prompts, tools, models, or harnesses.
48
+
49
+ **Operational loops** repeatedly perform engineering work such as PR babysitting, CI repair, docs drift collection, feedback clustering, or deploy verification.
50
+
51
+ Both are valid Loop Engineering patterns when they have a clear trigger, state, verification, budget, and exit.
52
+
53
+ ## Quick Test
54
+
55
+ Ask these questions before calling something Loop Engineering:
56
+
57
+ 1. Does it run more than once by design?
58
+ 1. Does it discover or receive work from a real source?
59
+ 1. Does it delegate work to one or more agents?
60
+ 1. Does it verify results with explicit gates?
61
+ 1. Does it persist state or receipts outside the model context?
62
+ 1. Does it decide whether to repeat, report, escalate, or stop?
63
+
64
+ If the answer is mostly no, it may be prompt engineering, context engineering, harness engineering, or automation, but it is probably not Loop Engineering.
CONTRIBUTING.md ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing
2
+
3
+ Thanks for helping improve Awesome Loop Engineering.
4
+
5
+ This repository is intentionally narrow. It tracks the new AI and coding-agent meaning of **Loop Engineering**: the layer above prompt, context, and harness engineering where teams design systems that discover work, delegate to agents, verify outcomes, persist state, decide next actions, and run again on a cadence or until a goal is met.
6
+
7
+ Before submitting, read the [curation standard](meta/CURATION.md). Maintainers use it to decide whether a resource is specific, stable, and useful enough for the list.
8
+
9
+ ## Quick PR Flow
10
+
11
+ 1. Search `README.md` for the resource title, author, project, and URL.
12
+ 1. Confirm the resource is about AI/coding-agent Loop Engineering or a direct foundation for it.
13
+ 1. Pick the most specific category.
14
+ 1. Add one entry with a resource type label:
15
+
16
+ ```md
17
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
18
+ ```
19
+
20
+ 1. Open a PR using the template and explain:
21
+ - why the resource belongs;
22
+ - which category it updates;
23
+ - whether it is a primary source, official documentation, paper, tool, benchmark, playbook, critique, or adjacent list;
24
+ - the evidence quality tier and resource type label;
25
+ - any caveat such as vendor bias, paywall, early-stage status, or weak evidence.
26
+
27
+ ## License For Contributions
28
+
29
+ By contributing to this repository, you agree that your contribution to this repository's curation text, annotations, templates, patterns, metadata, and documentation is released under [CC0-1.0](LICENSE).
30
+
31
+ Do not copy third-party articles, papers, images, documentation, code, or other content into this repository unless you have the right to do so. Prefer stable links and short original annotations. External resources keep their own licenses and terms.
32
+
33
+ ## What Belongs Here
34
+
35
+ Good additions usually fit one of these groups:
36
+
37
+ - Direct explanations of Loop Engineering in the AI/coding-agent sense.
38
+ - Papers that introduce agent loops, reflection, critique, verification, planning, tool use, or memory patterns used by looped agents.
39
+ - Official docs for agent runtimes, hooks, subagents, skills, guardrails, observability, MCP, worktrees, automations, goals, or state persistence.
40
+ - Engineering blogs with concrete implementation details, failure modes, or production lessons.
41
+ - Benchmarks and eval systems for long-horizon, tool-using, or coding agents.
42
+ - Playbooks for recurring agent work such as PR babysitting, CI repair, issue triage, deploy verification, bug hunting, docs drift collection, and feedback clustering.
43
+ - Critiques that clarify when loops are risky, wasteful, or not yet justified.
44
+ - Translation improvements that make the concept accessible without changing the scope.
45
+
46
+ ## What Does Not Belong Here
47
+
48
+ Please avoid submitting:
49
+
50
+ - Software event loops, UI event loops, game loops, control theory loops, growth loops, or generic feedback-loop content unless it is explicitly applied to AI agent loops.
51
+ - Generic prompt engineering resources with no loop, tool, verification, state, or scheduling angle.
52
+ - Generic context or harness engineering resources unless they directly explain how repeated agent runs are triggered, verified, persisted, or governed.
53
+ - Resources that only improve single-turn prompts belong in prompt-engineering lists unless they show scheduling, state, verification, retries, or escalation.
54
+ - Generic agent news, product launches, or listicles without technical substance.
55
+ - Private, unstable, or paywalled sources that most readers cannot inspect.
56
+ - Duplicate resources already covered by an existing entry.
57
+ - Pure marketing pages with no reusable technical insight.
58
+
59
+ ## Evidence Quality
60
+
61
+ Prefer higher tiers when two resources cover the same idea.
62
+
63
+ | Tier | Source type | Examples |
64
+ | --- | --- | --- |
65
+ | A | Primary source or official docs | Tool docs, paper, project README, author write-up |
66
+ | B | Practitioner write-up with implementation detail | Field notes, playbooks, postmortems |
67
+ | C | Curated survey or high-quality explainer | Taxonomy, comparison, tutorial |
68
+ | D | Commentary or news coverage | Useful only when it documents origin, adoption, or debate |
69
+
70
+ If two links say the same thing, prefer the more primary, practical, stable, and implementation-oriented one.
71
+
72
+ ## Quality Labels
73
+
74
+ Use these labels in PR descriptions and issue suggestions when they help reviewers understand why a resource belongs:
75
+
76
+ - **Primary source**: written by the original author, project, vendor, or research team.
77
+ - **Official docs**: documentation for a runtime, SDK, API, benchmark, or platform.
78
+ - **Implementation-heavy**: includes code, architecture, commands, traces, or operational details.
79
+ - **Foundational**: explains a core loop mechanism such as ReAct, reflection, planning, state, or verification.
80
+ - **Cautionary**: clarifies limitations, risks, cost, safety, or when not to use loops.
81
+ - **Adjacent**: useful context from prompt, context, harness, eval, or agent engineering.
82
+
83
+ ## Category Guidance
84
+
85
+ - Use **Start Here** only for direct Loop Engineering explainers.
86
+ - Use **The Loop Contract** and **Loop Maturity Model** only for framework-level content, not individual links.
87
+ - Use **Core Loop Primitives** for automations, goals, worktrees, hooks, skills, connectors, subagents, and state files.
88
+ - Use **Official Runtime Guides** for primary-source docs from tool builders.
89
+ - Use **Research Foundations** for papers and reference implementations that explain the mechanics behind agent loops.
90
+ - Use **Agent Workflow Patterns** for general workflow architecture, durable execution, and official guidance.
91
+ - Use **Coding-Agent Loop Systems** for systems that run agents over repositories, terminals, code, or software issues.
92
+ - Use **Verification And Feedback Gates** for tests, evals, CI, tracing, guardrails, deterministic checks, and LLM-as-judge caveats.
93
+ - Use **State, Memory, And Context Persistence** for durable state, checkpoints, context, progress files, and memory.
94
+ - Use **Orchestration And Multi-Agent Delegation** for subagents, handoffs, manager-worker loops, and workflow runtimes.
95
+ - Use **Benchmarks And Evaluation** for benchmarks that measure agent behavior over multi-step tasks.
96
+ - Use **Operations Playbooks** for recurring engineering jobs run by agents.
97
+ - Use **Templates And Patterns** for reusable pattern docs hosted in this repository.
98
+ - Use **Critiques, Risks, And Limitations** for thoughtful warnings and failure analysis.
99
+ - Use **Adjacent Awesome Lists** for neighboring maps, not individual resources.
100
+
101
+ ## Annotation Style
102
+
103
+ Keep annotations short, specific, and builder-oriented.
104
+
105
+ Use the resource type legend from `README.md`:
106
+
107
+ - 📄 **Paper**
108
+ - 📝 **Blog**
109
+ - 📚 **Docs**
110
+ - 🧰 **Tool**
111
+ - 🧪 **Benchmark**
112
+ - 🔁 **Pattern**
113
+ - 🧾 **Template**
114
+ - 🧭 **List**
115
+ - ⚠️ **Critique**
116
+
117
+ Prefer:
118
+
119
+ ```md
120
+ - 🔁 **Pattern** [Autonomous Loops](https://example.com) - Shows how to combine task files, stop hooks, limits, and kill switches into a self-continuing agent loop.
121
+ ```
122
+
123
+ Avoid:
124
+
125
+ ```md
126
+ - 📝 **Blog** [Cool Agent Article](https://example.com) - Interesting article about AI.
127
+ ```
128
+
129
+ ## Adding A Loop Pattern
130
+
131
+ For a practical loop pattern, use [`templates/loop-pattern.md`](templates/loop-pattern.md), optionally structure it with [`schemas/loop-contract.schema.json`](schemas/loop-contract.schema.json), and place the finished pattern in [`patterns/`](patterns/). A good pattern names:
132
+
133
+ - objective;
134
+ - trigger;
135
+ - intake source;
136
+ - agents and roles;
137
+ - workspace and permissions;
138
+ - verification gates;
139
+ - durable state;
140
+ - budget and exit conditions;
141
+ - escalation path;
142
+ - loop instruction, automation spec, hook config, or scheduled command;
143
+ - failure modes.
144
+
145
+ Pattern PRs should be concrete enough that a reader can adapt them to an agent runtime without guessing the loop contract. If you want feedback before writing the full pattern, open a loop pattern suggestion issue.
146
+
147
+ ## Translation Contributions
148
+
149
+ See [TRANSLATIONS.md](TRANSLATIONS.md).
150
+
151
+ Translation PRs should:
152
+
153
+ - link back to the canonical English README;
154
+ - preserve the narrow AI/coding-agent scope;
155
+ - keep resource URLs unchanged;
156
+ - update language navigation if a new language file is added;
157
+ - explain who can help maintain the translation.
158
+
159
+ ## Issues
160
+
161
+ If you do not want to open a PR, use the resource suggestion issue template. Please include:
162
+
163
+ - title and URL;
164
+ - suggested category;
165
+ - resource type label;
166
+ - evidence quality tier;
167
+ - why it is relevant to Loop Engineering;
168
+ - whether it is a direct Loop Engineering source, official docs, paper, engineering note, tool, benchmark, critique, or translation.
169
+
170
+ ## Review Standard
171
+
172
+ Maintainers may ask for stronger relevance, a more precise category, a better annotation, or removal of promotional language. The goal is to keep the list useful for people designing real agent loops, not to collect every AI-agent link on the internet.
DEFINITION.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Canonical Definition
2
+
3
+ Use this page when you need a short, stable definition of Loop Engineering.
4
+
5
+ ## Short Definition
6
+
7
+ **Loop Engineering** is the AI and coding-agent practice of designing recurring systems that discover work, delegate it to agents, verify results, persist state, decide next actions, and run again on a cadence, event, or until a verifiable goal is reached.
8
+
9
+ ## One-Sentence Positioning
10
+
11
+ Prompt engineering improves what you ask the model, context engineering improves what the model can see, harness engineering improves the environment around one agent run, and Loop Engineering governs repeated agent work over time.
12
+
13
+ ## Longer Definition
14
+
15
+ Loop Engineering sits above prompt, context, and harness engineering. It turns agent work from turn-by-turn human prompting into a reviewable operating contract: what starts the loop, where work comes from, which agents act, what context and tools they receive, how results are verified, what state survives, when retry is allowed, and when a human takes over.
16
+
17
+ ## Minimal Loop Test
18
+
19
+ A system is probably practicing Loop Engineering when it can answer:
20
+
21
+ 1. What triggers the loop?
22
+ 1. How does it discover or receive work?
23
+ 1. What context and tools does it give the agent?
24
+ 1. What is the workspace and permission boundary?
25
+ 1. What verifies success or failure?
26
+ 1. What state persists across runs?
27
+ 1. What budget limits retries, time, or cost?
28
+ 1. What causes escalation?
29
+ 1. What condition ends the loop?
30
+
31
+ ## Citation Note
32
+
33
+ If you cite this repository, use the BibTeX entry in [`README.md`](README.md#citation) or [`CITATION.bib`](CITATION.bib). If you quote the concept definition, prefer linking to this page so readers can see the scope boundary.
LICENSE ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
MANIFESTO.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Loop Engineering Manifesto
2
+
3
+ Loop Engineering is the practice of designing recurring AI-agent systems that sit above prompt, context, and harness engineering.
4
+
5
+ Prompt engineering improves what you ask the model. Context engineering improves what the model can see. Harness engineering improves the tools, permissions, sandboxes, and checks around one agent run. Loop Engineering connects those layers over time: it defines when agents run, what work they discover, how work is delegated, how results are verified, what state survives, and when the system repeats, reports, or escalates.
6
+
7
+ ## Why It Exists
8
+
9
+ The leverage point in agent work is moving from writing better one-off prompts to designing better recurring systems. A useful loop can notice work, load the right context, act in an isolated workspace, verify against explicit gates, record receipts, and continue later without relying on a human to remember every intermediate step.
10
+
11
+ This does not remove engineering judgment. It moves judgment into the loop contract: objective, trigger, intake, workspace, context, delegation, verification, state, budget, escalation, and exit.
12
+
13
+ ## Core Commitments
14
+
15
+ - **Design the system, not just the next prompt.** The human should specify the operating contract, not manually steer every turn.
16
+ - **Make state external.** Progress files, issue comments, traces, checkpoints, and dashboards should outlive the model context.
17
+ - **Separate maker from checker.** The system that acts should not be the only system that decides whether the work is done.
18
+ - **Prefer deterministic gates.** Tests, typechecks, evals, dashboards, trace graders, and reviewer decisions are stronger than "looks good".
19
+ - **Bound autonomy.** Loops need budgets, allowed actions, disallowed actions, stop conditions, and escalation paths.
20
+ - **Keep receipts.** A loop should explain what it saw, what it changed, what it ran, what passed, what failed, and why it stopped.
21
+ - **Stay responsible.** A loop can delegate work, but ownership of quality, safety, and product judgment remains human.
22
+
23
+ ## What It Is Not
24
+
25
+ Loop Engineering is not a new name for every agent, cron job, workflow, or feedback system. It is not software event loops, growth loops, control theory, or generic automation. It is also not prompt engineering with repetition. A loop needs a trigger, work intake, durable state, verification, budget, and exit condition.
26
+
27
+ ## Success Standard
28
+
29
+ A Loop Engineering artifact is useful when another builder can answer:
30
+
31
+ 1. What starts the loop?
32
+ 1. How does it discover work?
33
+ 1. Which agent or role does what?
34
+ 1. What context and tools are available?
35
+ 1. What can it change safely?
36
+ 1. What verifies success or failure?
37
+ 1. What state is persisted for the next run?
38
+ 1. What is the retry budget?
39
+ 1. When does it escalate?
40
+ 1. When is it done?
41
+
42
+ If those answers are visible, the loop can be reviewed, shared, improved, and trusted.
QUOTES.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sourced Signals And Quotes
2
+
3
+ This page records short sourced signals around the emerging Loop Engineering concept. It is not a substitute for the original sources. Use it to understand provenance, then read the linked material directly.
4
+
5
+ ## Addy Osmani
6
+
7
+ Source: [Loop Engineering](https://addyosmani.com/blog/loop-engineering/)
8
+
9
+ > "Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead."
10
+
11
+ Why it matters: This is a direct definition of the shift from manual prompting to designing the recurring system that prompts, checks, and continues.
12
+
13
+ The same article states:
14
+
15
+ > "Loop engineering sits one floor above the harness."
16
+
17
+ Why it matters: This anchors the repository's four-layer framing: prompt, context, and harness engineering improve agent runs; Loop Engineering governs repeated agent work over time.
18
+
19
+ ## Peter Steinberger
20
+
21
+ Source: Addy Osmani's [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) article reports this statement from Peter Steinberger.
22
+
23
+ > "You shouldn’t be prompting coding agents anymore. You should be designing loops that prompt your agents."
24
+
25
+ Why it matters: This is one of the clearest formulations of the human role moving from turn-by-turn prompting to loop design.
26
+
27
+ ## Boris Cherny
28
+
29
+ Source: [I Now Just Write Loops To Prompt Claude Code: Claude Code Creator Boris Cherny](https://officechai.com/ai/i-now-just-write-loops-to-prompt-claude-code-claude-code-creator-boris-cherny/)
30
+
31
+ > "Now it’s actually leveled up, I think, again, to the next wave of abstraction where I don’t prompt Claude anymore. I have loops that are running. They’re the ones that are prompting Claude and figuring out what to do. My job is to write loops."
32
+
33
+ Why it matters: This is the practical workflow claim behind the concept: the developer designs the system that prompts, evaluates, and decides what to do next.
34
+
35
+ ## Anthropic
36
+
37
+ Source: [Building effective agents](https://www.anthropic.com/engineering/building-effective-agents)
38
+
39
+ > "Consistently, the most successful implementations use simple, composable patterns rather than complex frameworks."
40
+
41
+ Why it matters: Loop Engineering should stay contract-driven and composable. The goal is not to add complexity for its own sake.
42
+
43
+ The same article also states:
44
+
45
+ > "When building applications with LLMs, we recommend finding the simplest solution possible, and only increasing complexity when needed."
46
+
47
+ Why it matters: This supports a conservative maturity path: start with explicit state and verification before adding multi-agent orchestration or production autonomy.
README.de.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">Beim Übersetzen helfen</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">Landingpage</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging-Face-Spiegel</a>
21
+ </p>
22
+
23
+ > Eine kuratierte, umsetzungsorientierte Liste für **Loop Engineering**: die Ebene oberhalb von Prompt Engineering, Context Engineering und Harness Engineering zum Entwerfen wiederkehrender KI-Agenten-Systeme.
24
+
25
+ Prompt Engineering verbessert, was man dem Modell sagt. Context Engineering verbessert, was das Modell sehen kann. Harness Engineering verbessert Werkzeuge, Berechtigungen, Sandboxes und Prüfungen rund um einen einzelnen Agentenlauf. **Loop Engineering liegt über allen drei Ebenen**: Es entwirft Systeme, die Agenten auslösen, überwachen, Ergebnisse prüfen, Zustand speichern und erneut laufen.
26
+
27
+ Ein Loop entdeckt Arbeit, übergibt sie an einen oder mehrere Agenten, prüft das Ergebnis, speichert Zustand, entscheidet den nächsten Schritt und läuft erneut nach Zeitplan oder bis ein überprüfbares Ziel erreicht ist.
28
+
29
+ Dieses Repository behandelt die neue Bedeutung von Loop Engineering im Kontext von KI-Agenten und Coding Agents. Es geht nicht um Software-Event-Loops, Regelungstechnik, Growth Loops, generische Automatisierung oder nicht-KI-bezogene Feedback-Loops.
30
+
31
+ Neben der Liste bietet dieses Repository 15 Loop-Patterns, einen schemavalidierten Loop-Contract pro Pattern, 6 ausführbare Loop-Vorlagen, eine Community-Galerie und 8 Sprachen.
32
+
33
+ ## Mentales Modell
34
+
35
+ - Prompt Engineering fragt: Was soll ich dem Modell sagen?
36
+ - Context Engineering fragt: Welchen Zustand und welches Wissen soll das Modell sehen?
37
+ - Harness Engineering fragt: Welche Werkzeuge, Berechtigungen, Tests, Sandboxes und Feedback-Signale sollen den Agenten umgeben?
38
+ - Loop Engineering fragt: Welches wiederkehrende System soll Arbeit entdecken, an Agenten delegieren, Ergebnisse prüfen, Zustand speichern, nächste Aktionen entscheiden und erneut laufen?
39
+
40
+ Prompt, Context und Harness Engineering verbessern einen einzelnen Lauf. Loop Engineering macht Agentenarbeit über Zeit wiederholbar, beobachtbar und steuerbar.
41
+
42
+ ## Loop Contract
43
+
44
+ Ein nützlicher Loop macht normalerweise diese Bestandteile sichtbar:
45
+
46
+ | Teil | Designfrage | Typisches Artefakt |
47
+ | ----------------- | ------------------------------------------------ | ----------------------------------------------------------- |
48
+ | Objective | Was soll der Loop optimieren? | Goal, issue, PRD, runbook |
49
+ | Trigger | Wann läuft der Loop? | Schedule, webhook, `/loop`, `/goal`, automation |
50
+ | Discover / Intake | Wie findet der Loop Arbeit? | GitHub query, Linear filter, CI failure, feedback stream |
51
+ | Workspace | Wo kann der Agent sicher handeln? | Worktree, sandbox, branch, container |
52
+ | Context | Welches dauerhafte Wissen wird geladen? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
53
+ | Delegation | Welcher Agent übernimmt welche Aufgabe? | Explorer, implementer, reviewer, judge |
54
+ | Verification | Was entscheidet über Erfolg oder Fehler? | Tests, typecheck, lint, evals, trace graders |
55
+ | State | Was bleibt für den nächsten Lauf erhalten? | Progress file, checkpoint, trace, issue comment |
56
+ | Budget | Wann soll der Loop aufhören zu verbrauchen? | Max turns, max retries, token budget, time box |
57
+ | Escalation | Wann übernimmt ein Mensch? | PR, issue, Slack alert, triage inbox |
58
+ | Exit | Woher weiß der Loop, dass er fertig ist? | Acceptance criteria, passing checks, no work found |
59
+
60
+ ## Reifegradmodell
61
+
62
+ | Stufe | Name | Beschreibung |
63
+ | ----- | -------------------------- | --------------------------------------------------------------------------------------------- |
64
+ | 0 | Manual prompting | Ein Mensch liest den Zustand und schreibt den nächsten Prompt. |
65
+ | 1 | Scripted retry | Ein Skript gibt Fehler an den Agenten zurück. |
66
+ | 2 | Scheduled loop | Der Agent läuft nach Zeitplan und berichtet Ergebnisse. |
67
+ | 3 | Stateful loop | Fortschritt bleibt über Dateien, Issues, Checkpoints oder Traces erhalten. |
68
+ | 4 | Self-verifying loop | Deterministische Checks oder Evaluator-Agenten blockieren falsche Abschlüsse. |
69
+ | 5 | Multi-agent loop | Spezialisierte Agenten teilen Discovery, Implementierung, Review und Urteil auf. |
70
+ | 6 | Production-supervised loop | Observability, Budgets, Freigaben, Rollback und menschliche Eskalation sind zentral. |
71
+
72
+ ## Erste Lektüre
73
+
74
+ Die vollständige Ressourcenliste bleibt im kanonischen englischen README: [README.md](README.md).
75
+
76
+ Empfohlene Einstiege:
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Direkte Definition des Wechsels von manuellem Prompting zu Systemen, die prompten, prüfen und fortsetzen.
79
+ - [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - Praktischer Leitfaden für plan-edit-test-observe-repair-document-repeat.
80
+ - [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - Offizielle Mechanik für `/loop`, geplante Aufgaben und wiederkehrende Prompts.
81
+ - [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - Komponierbare Patterns für Workflows und Agenten.
82
+
83
+ ## Beitragen
84
+
85
+ Beiträge sind willkommen. Bitte lies [CONTRIBUTING.md](CONTRIBUTING.md), bevor du einen Pull Request öffnest.
86
+
87
+ Schneller Ablauf:
88
+
89
+ 1. Prüfe, ob die Ressource Loop Engineering für KI-Agenten/Coding Agents oder eine direkte Grundlage dafür behandelt.
90
+ 1. Suche im README, um Duplikate zu vermeiden.
91
+ 1. Wähle die spezifischste Kategorie.
92
+ 1. Füge einen Eintrag in diesem Format hinzu:
93
+
94
+ ```md
95
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
96
+ ```
97
+
98
+ 1. Erkläre im PR Relevanz, Kategorie, Ressourcentyp und Nutzen für Builders.
99
+
100
+ ## Übersetzungen
101
+
102
+ Wenn du eine Sprache pflegen oder hinzufügen möchtest, lies [TRANSLATIONS.md](TRANSLATIONS.md). Übersetzungen müssen den engen Scope bewahren und dürfen Event Loops, Growth Loops oder generische Automatisierung nicht in den Umfang ziehen.
README.es.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">Ayudar a traducir</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">Página de inicio</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Espejo en Hugging Face</a>
21
+ </p>
22
+
23
+ > Una lista curada y orientada a la implementación para **Loop Engineering**: la capa por encima de prompt, context y harness engineering para diseñar sistemas recurrentes de agentes de IA.
24
+
25
+ Prompt engineering mejora lo que le pides al modelo. Context engineering mejora lo que el modelo puede ver. Harness engineering mejora las herramientas, permisos, sandboxes y verificaciones alrededor de una ejecución de agente. **Loop Engineering está por encima de las tres**: diseña sistemas que activan agentes, los supervisan, verifican resultados, guardan estado y vuelven a ejecutarse.
26
+
27
+ Un loop descubre trabajo, lo delega a uno o más agentes, verifica el resultado, registra estado, decide la siguiente acción y vuelve a ejecutarse con una cadencia o hasta alcanzar un objetivo verificable.
28
+
29
+ Este repositorio se centra en el significado nuevo de Loop Engineering para agentes de IA y coding agents. No trata sobre event loops de software, teoría de control, growth loops, automatización genérica o feedback loops no relacionados con IA.
30
+
31
+ Además de la lista, este repositorio incluye 15 patrones de loop, un loop contract validado por esquema para cada patrón, 6 plantillas de loop ejecutables, una galería comunitaria y 8 idiomas.
32
+
33
+ ## Modelo Mental
34
+
35
+ - Prompt engineering pregunta: ¿qué debería decirle al modelo?
36
+ - Context engineering pregunta: ¿qué estado y conocimiento debería ver el modelo?
37
+ - Harness engineering pregunta: ¿qué herramientas, permisos, pruebas, sandboxes y feedback deberían rodear al agente?
38
+ - Loop engineering pregunta: ¿qué sistema recurrente debería descubrir trabajo, delegarlo a agentes, verificar resultados, persistir estado, decidir siguientes acciones y volver a ejecutarse?
39
+
40
+ Prompt, context y harness engineering mejoran una ejecución. Loop Engineering hace que el trabajo de agentes sea repetible, observable y gobernable en el tiempo.
41
+
42
+ ## Loop Contract
43
+
44
+ Un loop útil normalmente necesita estas partes:
45
+
46
+ | Parte | Pregunta de diseño | Artefacto común |
47
+ | ----------------- | ------------------------------------------ | ----------------------------------------------------------- |
48
+ | Objective | ¿Qué debe optimizar el loop? | Goal, issue, PRD, runbook |
49
+ | Trigger | ¿Cuándo se ejecuta? | Schedule, webhook, `/loop`, `/goal`, automation |
50
+ | Discover / Intake | ¿Cómo encuentra trabajo? | GitHub query, Linear filter, CI failure, feedback stream |
51
+ | Workspace | ¿Dónde puede actuar el agente con cuidado? | Worktree, sandbox, branch, container |
52
+ | Context | ¿Qué conocimiento durable debe cargar? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
53
+ | Delegation | ¿Qué agente hace cada parte? | Explorer, implementer, reviewer, judge |
54
+ | Verification | ¿Qué decide éxito o fallo? | Tests, typecheck, lint, evals, trace graders |
55
+ | State | ¿Qué sobrevive a la siguiente iteración? | Progress file, checkpoint, trace, issue comment |
56
+ | Budget | ¿Cuándo debe dejar de gastar? | Max turns, max retries, token budget, time box |
57
+ | Escalation | ¿Cuándo interviene una persona? | PR, issue, Slack alert, triage inbox |
58
+ | Exit | ¿Cómo sabe que terminó? | Acceptance criteria, passing checks, no work found |
59
+
60
+ ## Modelo de Madurez
61
+
62
+ | Nivel | Nombre | Descripción |
63
+ | ----- | -------------------------- | ----------------------------------------------------------------------------------------- |
64
+ | 0 | Manual prompting | Una persona lee el estado y escribe el siguiente prompt. |
65
+ | 1 | Scripted retry | Un script devuelve errores al agente. |
66
+ | 2 | Scheduled loop | El agente corre con una cadencia y reporta resultados. |
67
+ | 3 | Stateful loop | El progreso sobrevive mediante archivos, issues, checkpoints o traces. |
68
+ | 4 | Self-verifying loop | Verificaciones deterministas o evaluadores bloquean un cierre incorrecto. |
69
+ | 5 | Multi-agent loop | Agentes especializados dividen descubrimiento, implementación, revisión y juicio. |
70
+ | 6 | Production-supervised loop | Observabilidad, presupuestos, aprobaciones, rollback y escalación humana son centrales. |
71
+
72
+ ## Por Dónde Empezar
73
+
74
+ La lista completa de recursos vive en el README canónico en inglés: [README.md](README.md).
75
+
76
+ Recursos iniciales recomendados:
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Definición directa del cambio desde prompting manual hacia sistemas que prompt, verifican y continúan.
79
+ - [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - Guía práctica para ciclos plan-edit-test-observe-repair-document-repeat.
80
+ - [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - Mecánica oficial para `/loop`, tareas programadas y prompts recurrentes.
81
+ - [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - Patrones composables para workflows y agentes.
82
+
83
+ ## Contribuir
84
+
85
+ Las contribuciones son bienvenidas. Lee [CONTRIBUTING.md](CONTRIBUTING.md) antes de abrir un pull request.
86
+
87
+ Proceso rápido:
88
+
89
+ 1. Confirma que el recurso trata de Loop Engineering para agentes de IA/coding agents o de una base directa para ello.
90
+ 1. Busca en el README para evitar duplicados.
91
+ 1. Elige la categoría más específica.
92
+ 1. Añade una entrada con este formato:
93
+
94
+ ```md
95
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
96
+ ```
97
+
98
+ 1. Explica en el PR la relevancia, la categoría, el tipo de recurso y por qué ayuda a builders.
99
+
100
+ ## Traducciones
101
+
102
+ Para mantener o añadir un idioma, lee [TRANSLATIONS.md](TRANSLATIONS.md). Las traducciones deben conservar el alcance estrecho: no mezclar event loops, growth loops ni automatización genérica.
README.fr.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">Aider à traduire</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">Page d'accueil</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Miroir Hugging Face</a>
21
+ </p>
22
+
23
+ > Une liste organisée et orientée implémentation pour **Loop Engineering** : la couche au-dessus du prompt engineering, du context engineering et du harness engineering pour concevoir des systèmes récurrents d'agents IA.
24
+
25
+ Le prompt engineering améliore ce que l'on demande au modèle. Le context engineering améliore ce que le modèle peut voir. Le harness engineering améliore les outils, permissions, sandboxes et vérifications autour d'une exécution d'agent. **Loop Engineering se situe au-dessus des trois** : il conçoit des systèmes qui déclenchent des agents, les supervisent, vérifient les résultats, persistent l'état et relancent le travail.
26
+
27
+ Un loop découvre du travail, le délègue à un ou plusieurs agents, vérifie le résultat, enregistre l'état, décide de l'action suivante et se relance selon une cadence ou jusqu'à atteindre un objectif vérifiable.
28
+
29
+ Ce dépôt concerne le nouveau sens de Loop Engineering dans le contexte des agents IA et coding agents. Il ne concerne pas les event loops logiciels, la théorie du contrôle, les growth loops, l'automatisation générique ou les feedback loops non liés à l'IA.
30
+
31
+ Au-delà de la liste, ce dépôt fournit 15 patterns de loop, un loop contract validé par schéma pour chaque pattern, 6 modèles de loop exécutables, une galerie communautaire et 8 langues.
32
+
33
+ ## Modèle Mental
34
+
35
+ - Prompt engineering demande : que faut-il dire au modèle ?
36
+ - Context engineering demande : quel état et quelles connaissances le modèle doit-il voir ?
37
+ - Harness engineering demande : quels outils, permissions, tests, sandboxes et signaux de feedback doivent entourer l'agent ?
38
+ - Loop engineering demande : quel système récurrent doit découvrir le travail, déléguer aux agents, vérifier les résultats, persister l'état, décider des prochaines actions et se relancer ?
39
+
40
+ Prompt, context et harness engineering améliorent une exécution. Loop Engineering rend le travail des agents répétable, observable et gouvernable dans le temps.
41
+
42
+ ## Loop Contract
43
+
44
+ Un loop utile rend généralement visibles ces éléments :
45
+
46
+ | Élément | Question de conception | Artefact courant |
47
+ | ----------------- | -------------------------------------------- | ----------------------------------------------------------- |
48
+ | Objective | Que doit optimiser le loop ? | Goal, issue, PRD, runbook |
49
+ | Trigger | Quand le loop s'exécute-t-il ? | Schedule, webhook, `/loop`, `/goal`, automation |
50
+ | Discover / Intake | Comment le loop trouve-t-il le travail ? | GitHub query, Linear filter, CI failure, feedback stream |
51
+ | Workspace | Où l'agent peut-il agir en sécurité ? | Worktree, sandbox, branch, container |
52
+ | Context | Quelles connaissances durables charger ? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
53
+ | Delegation | Quel agent fait quoi ? | Explorer, implementer, reviewer, judge |
54
+ | Verification | Qu'est-ce qui décide succès ou échec ? | Tests, typecheck, lint, evals, trace graders |
55
+ | State | Qu'est-ce qui survit au prochain passage ? | Progress file, checkpoint, trace, issue comment |
56
+ | Budget | Quand faut-il arrêter de consommer ? | Max turns, max retries, token budget, time box |
57
+ | Escalation | Quand une personne doit-elle reprendre ? | PR, issue, Slack alert, triage inbox |
58
+ | Exit | Comment sait-on que le loop est terminé ? | Acceptance criteria, passing checks, no work found |
59
+
60
+ ## Modèle de Maturité
61
+
62
+ | Niveau | Nom | Description |
63
+ | ------ | -------------------------- | ------------------------------------------------------------------------------------------- |
64
+ | 0 | Manual prompting | Une personne lit l'état et écrit le prompt suivant. |
65
+ | 1 | Scripted retry | Un script renvoie les erreurs à l'agent. |
66
+ | 2 | Scheduled loop | L'agent s'exécute selon une cadence et rapporte ses résultats. |
67
+ | 3 | Stateful loop | Le progrès survit via fichiers, issues, checkpoints ou traces. |
68
+ | 4 | Self-verifying loop | Des vérifications déterministes ou évaluateurs empêchent une fausse validation. |
69
+ | 5 | Multi-agent loop | Des agents spécialisés séparent découverte, implémentation, revue et jugement. |
70
+ | 6 | Production-supervised loop | Observabilité, budgets, approbations, rollback et escalade humaine sont de premier ordre. |
71
+
72
+ ## Premières Lectures
73
+
74
+ La liste complète des ressources reste dans le README canonique en anglais : [README.md](README.md).
75
+
76
+ Ressources recommandées pour commencer :
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Définition directe du passage du prompting manuel à des systèmes qui promptent, vérifient et continuent.
79
+ - [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - Guide pratique pour des cycles plan-edit-test-observe-repair-document-repeat.
80
+ - [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - Mécanismes officiels pour `/loop`, tâches planifiées et prompts récurrents.
81
+ - [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - Patterns composables pour workflows et agents.
82
+
83
+ ## Contribuer
84
+
85
+ Les contributions sont bienvenues. Lis [CONTRIBUTING.md](CONTRIBUTING.md) avant d'ouvrir une pull request.
86
+
87
+ Processus rapide :
88
+
89
+ 1. Vérifie que la ressource concerne Loop Engineering pour agents IA/coding agents ou une base directe.
90
+ 1. Recherche dans le README pour éviter les doublons.
91
+ 1. Choisis la catégorie la plus spécifique.
92
+ 1. Ajoute une entrée dans ce format :
93
+
94
+ ```md
95
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
96
+ ```
97
+
98
+ 1. Explique dans la PR la pertinence, la catégorie, le type de ressource et l'intérêt pour les builders.
99
+
100
+ ## Traductions
101
+
102
+ Pour maintenir ou ajouter une langue, lis [TRANSLATIONS.md](TRANSLATIONS.md). Les traductions doivent préserver le périmètre : ne pas inclure les event loops, growth loops ou automatisations génériques.
README.ja.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">翻訳に協力する</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">ランディングページ</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging Face ミラー</a>
21
+ </p>
22
+
23
+ > **Loop Engineering** のための、実装志向のキュレーションリストです。Loop Engineering は prompt、context、harness engineering の上位レイヤーとして、繰り返し実行される AI-agent システムを設計します。
24
+
25
+ Prompt engineering はモデルに何を依頼するかを改善します。Context engineering はモデルが何を見られるかを改善します。Harness engineering は 1 回の agent 実行を取り巻くツール、権限、sandbox、検証を改善します。**Loop Engineering はその上位にあります**。agent を起動し、監督し、結果を検証し、状態を保存し、再実行するシステムを設計する実践です。
26
+
27
+ Loop は作業を発見し、1 つ以上の agents に委任し、結果を確認し、状態を記録し、次の行動を決め、一定の cadence または検証可能な目標に到達するまで再実行されます。
28
+
29
+ このリポジトリは AI agents / coding agents における新しい意味の Loop Engineering に限定しています。software event loop、制御理論、growth loop、一般的な workflow automation、非 AI の feedback loop は対象外です。
30
+
31
+ リストに加えて、本リポジトリは 15 個の loop パターン、各パターンに対応する schema 検証済み loop contract、6 個の実行可能な loop テンプレート、コミュニティ gallery、8 言語を提供します。
32
+
33
+ ## メンタルモデル
34
+
35
+ - Prompt engineering: モデルに何を言うべきか?
36
+ - Context engineering: モデルはどの状態や知識を見るべきか?
37
+ - Harness engineering: agent の周囲にどのツール、権限、テスト、sandbox、feedback を置くべきか?
38
+ - Loop engineering: 人間が内側のループから離れたとき、どの反復システムが作業を発見し、agent に委任し、結果を検証し、状態を永続化し、次の行動を決め、再実行するべきか?
39
+
40
+ Prompt、context、harness engineering は 1 回の実行を良くします。Loop Engineering は agent の仕事を時間をまたいで反復可能、観測可能、統治可能にします。
41
+
42
+ ## Loop Contract
43
+
44
+ 有用な loop には通常、次の要素が必要です。
45
+
46
+ | 要素 | 設計上の問い | 一般的な成果物 |
47
+ | ----------------- | --------------------------------------------- | ----------------------------------------------------------- |
48
+ | Objective | loop は何を最適化するのか? | Goal, issue, PRD, runbook |
49
+ | Trigger | いつ実行されるのか? | Schedule, webhook, `/loop`, `/goal`, automation |
50
+ | Discover / Intake | どのように作業を発見するのか? | GitHub query, Linear filter, CI failure, feedback stream |
51
+ | Workspace | agent はどこで安全に行動できるのか? | Worktree, sandbox, branch, container |
52
+ | Context | どの永続的な知識を読み込むのか? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
53
+ | Delegation | どの agent が何を担当するのか? | Explorer, implementer, reviewer, judge |
54
+ | Verification | 何が成功または失敗を判断するのか? | Tests, typecheck, lint, evals, trace graders |
55
+ | State | 次回の実行に何を残すのか? | Progress file, checkpoint, trace, issue comment |
56
+ | Budget | いつ消費を止めるのか? | Max turns, max retries, token budget, time box |
57
+ | Escalation | いつ人間に引き継ぐのか? | PR, issue, Slack alert, triage inbox |
58
+ | Exit | loop はどう完了を判断するのか? | Acceptance criteria, passing checks, no work found |
59
+
60
+ ## 成熟度モデル
61
+
62
+ | レベル | 名称 | 説明 |
63
+ | ------ | -------------------------- | -------------------------------------------------------------------------------------------- |
64
+ | 0 | Manual prompting | 人間が状態を読み、次の prompt を書く。 |
65
+ | 1 | Scripted retry | script がエラーを agent に戻す。 |
66
+ | 2 | Scheduled loop | agent が一定の cadence で実行され、結果を報告する。 |
67
+ | 3 | Stateful loop | ファイル、issue、checkpoint、trace によって進捗が残る。 |
68
+ | 4 | Self-verifying loop | 決定的な check や evaluator agent が誤った完了を防ぐ。 |
69
+ | 5 | Multi-agent loop | 専門 agents が discovery、implementation、review、judgment を分担する。 |
70
+ | 6 | Production-supervised loop | observability、budget、approval、rollback、人間への escalation が一級の要素になる。 |
71
+
72
+ ## はじめに読むもの
73
+
74
+ 完全なリソース一覧は英語の canonical README にあります: [README.md](README.md)。
75
+
76
+ おすすめの入口:
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - 手動 prompt から、prompt・検証・継続を行うシステム設計への移行を定義します。
79
+ - [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - plan-edit-test-observe-repair-document-repeat の実践的な runbook。
80
+ - [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - `/loop`、scheduled tasks、recurring prompts の公式メカニクス。
81
+ - [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - workflow と agents の composable patterns。
82
+
83
+ ## 貢献
84
+
85
+ Pull request は歓迎です。まず [CONTRIBUTING.md](CONTRIBUTING.md) を読んでください。
86
+
87
+ 最短手順:
88
+
89
+ 1. そのリソースが AI/coding-agent 文脈の Loop Engineering、またはその直接的な基盤であることを確認する。
90
+ 1. README を検索して重複を避ける。
91
+ 1. 最も具体的なカテゴリを選ぶ。
92
+ 1. 次の形式で 1 行追加する。
93
+
94
+ ```md
95
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
96
+ ```
97
+
98
+ 1. PR で関連性、カテゴリ、リソース種別、builders にとっての価値を説明する。
99
+
100
+ ## 翻訳
101
+
102
+ 新しい言語を追加または維持したい場合は [TRANSLATIONS.md](TRANSLATIONS.md) を読んでください。翻訳では scope boundary を守り、event loop、growth loop、一般的な automation を混ぜないでください。
README.ko.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">번역 돕기</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">랜딩 페이지</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging Face 미러</a>
21
+ </p>
22
+
23
+ > **Loop Engineering** 을 위한 구현 중심 큐레이션 목록입니다. Loop Engineering 은 prompt, context, harness engineering 위의 레이어로, 반복 실행되는 AI-agent 시스템을 설계합니다.
24
+
25
+ Prompt engineering 은 모델에게 무엇을 요청할지 개선합니다. Context engineering 은 모델이 무엇을 볼 수 있는지 개선합니다. Harness engineering 은 한 번의 agent 실행을 둘러싼 도구, 권한, sandbox, 검증을 개선합니다. **Loop Engineering 은 이 세 레이어 위에 있습니다**. agent 를 실행하고, 감독하고, 결과를 검증하고, 상태를 저장하고, 다시 실행하는 시스템을 설계하는 실천입니다.
26
+
27
+ Loop 는 작업을 발견하고, 하나 이상의 agents 에게 위임하고, 결과를 확인하고, 상태를 기록하고, 다음 행동을 결정한 뒤, 일정 cadence 또는 검증 가능한 목표에 도달할 때까지 다시 실행됩니다.
28
+
29
+ 이 저장소는 AI agents / coding agents 맥락의 새로운 Loop Engineering 의미에만 집중합니다. software event loop, control theory, growth loop, 일반적인 workflow automation, 비 AI feedback loop 는 범위에 포함하지 않습니다.
30
+
31
+ 목록 외에도 이 저장소는 15개의 loop 패턴, 각 패턴에 대한 스키마 검증 loop contract, 6개의 실행 가능한 loop 템플릿, 커뮤니티 gallery, 8개 언어를 제공합니다.
32
+
33
+ ## 멘탈 모델
34
+
35
+ - Prompt engineering: 모델에게 무엇을 말해야 하는가?
36
+ - Context engineering: 모델이 어떤 상태와 지식을 봐야 하는가?
37
+ - Harness engineering: agent 주변에 어떤 도구, 권한, 테스트, sandbox, feedback 이 있어야 하는가?
38
+ - Loop engineering: 사람이 내부 루프에 있지 않을 때 어떤 반복 시스템이 작업을 발견하고, agents 에게 위임하고, 결과를 검증하고, 상태를 저장하고, 다음 행동을 결정하고, 다시 실행해야 하는가?
39
+
40
+ Prompt, context, harness engineering 은 한 번의 실행을 더 좋게 만듭니다. Loop Engineering 은 agent 작업을 시간에 걸쳐 반복 가능하고, 관찰 가능하고, 거버넌스 가능하게 만듭니다.
41
+
42
+ ## Loop Contract
43
+
44
+ 유용한 loop 는 보통 다음 요소를 명확히 해야 합니다.
45
+
46
+ | 요소 | 설계 질문 | 일반적인 산출물 |
47
+ | ----------------- | ---------------------------------------------- | ----------------------------------------------------------- |
48
+ | Objective | loop 는 무엇을 최적화하는가? | Goal, issue, PRD, runbook |
49
+ | Trigger | 언제 실행되는가? | Schedule, webhook, `/loop`, `/goal`, automation |
50
+ | Discover / Intake | 어떻게 작업을 발견하는가? | GitHub query, Linear filter, CI failure, feedback stream |
51
+ | Workspace | agent 는 어디에서 안전하게 행동하는가? | Worktree, sandbox, branch, container |
52
+ | Context | 어떤 지속 지식을 로드해야 하는가? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
53
+ | Delegation | 어떤 agent 가 무엇을 담당하는가? | Explorer, implementer, reviewer, judge |
54
+ | Verification | 무엇이 성공 또는 실패를 판단하는가? | Tests, typecheck, lint, evals, trace graders |
55
+ | State | 다음 실행까지 무엇이 남아야 하는가? | Progress file, checkpoint, trace, issue comment |
56
+ | Budget | 언제 비용 소비를 멈춰야 하는가? | Max turns, max retries, token budget, time box |
57
+ | Escalation | 언제 사람이 개입해야 하는가? | PR, issue, Slack alert, triage inbox |
58
+ | Exit | loop 는 어떻게 완료를 판단하는가? | Acceptance criteria, passing checks, no work found |
59
+
60
+ ## 성숙도 모델
61
+
62
+ | 레벨 | 이름 | 설명 |
63
+ | ---- | -------------------------- | -------------------------------------------------------------------------------------------- |
64
+ | 0 | Manual prompting | 사람이 상태를 읽고 다음 prompt 를 작성합니다. |
65
+ | 1 | Scripted retry | script 가 오류를 agent 에게 다시 전달합니다. |
66
+ | 2 | Scheduled loop | agent 가 일정 cadence 로 실행되고 결과를 보고합니다. |
67
+ | 3 | Stateful loop | 파일, issue, checkpoint, trace 로 진행 상황이 유지됩니다. |
68
+ | 4 | Self-verifying loop | 결정적 check 또는 evaluator agent 가 잘못된 완료를 막습니다. |
69
+ | 5 | Multi-agent loop | 전문 agents 가 discovery, implementation, review, judgment 를 나눕니다. |
70
+ | 6 | Production-supervised loop | observability, budget, approval, rollback, human escalation 이 핵심 요소가 됩니다. |
71
+
72
+ ## 시작하기
73
+
74
+ 전체 리소스 목록은 영어 canonical README 에 있습니다: [README.md](README.md).
75
+
76
+ 추천 시작 자료:
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - 수동 prompting 에서 prompt, 검증, 지속을 수행하는 시스템 설계로 이동하는 흐름을 정의합니다.
79
+ - [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - plan-edit-test-observe-repair-document-repeat 작업을 위한 실용 runbook.
80
+ - [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - `/loop`, scheduled tasks, recurring prompts 의 공식 메커니즘.
81
+ - [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - workflows 와 agents 를 위한 composable patterns.
82
+
83
+ ## 기여하기
84
+
85
+ Pull request 를 환영합니다. 먼저 [CONTRIBUTING.md](CONTRIBUTING.md) 를 읽어 주세요.
86
+
87
+ 빠른 절차:
88
+
89
+ 1. 리소스가 AI/coding-agent 맥락의 Loop Engineering 또는 직접적인 기반인지 확인합니다.
90
+ 1. README 에서 중복 여부를 검색합니다.
91
+ 1. 가장 구체적인 카테고리를 선택합니다.
92
+ 1. 다음 형식으로 한 줄을 추가합니다.
93
+
94
+ ```md
95
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
96
+ ```
97
+
98
+ 1. PR 에서 관련성, 카테고리, 리소스 타입, builders 에게 주는 가치를 설명합니다.
99
+
100
+ ## 번역
101
+
102
+ 새 언어를 추가하거나 유지하고 싶다면 [TRANSLATIONS.md](TRANSLATIONS.md) 를 읽어 주세요. 번역은 scope boundary 를 지켜야 하며 event loop, growth loop, 일반 automation 을 범위에 섞지 않아야 합니다.
README.md ADDED
@@ -0,0 +1,688 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ language:
4
+ - en
5
+ pretty_name: Awesome Loop Engineering Resource Index
6
+ tags:
7
+ - tabular
8
+ - text
9
+ - loop-engineering
10
+ - ai-agents
11
+ - coding-agents
12
+ - agentic-workflows
13
+ - awesome-list
14
+ - software-engineering
15
+ - llm-agents
16
+ configs:
17
+ - config_name: resources
18
+ data_files:
19
+ - split: train
20
+ path: data/resources.csv
21
+ ---
22
+
23
+ <p align="center">
24
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
25
+ </p>
26
+
27
+ <h1 align="center">Awesome Loop Engineering</h1>
28
+
29
+ <p align="center">
30
+ <img src="assets/awesome-loop-engineering-logo.svg" alt="Awesome Loop Engineering logo" width="112">
31
+ </p>
32
+
33
+ <p align="center">
34
+ Curated resources and practical patterns for designing recurring, stateful, verified AI-agent loops.
35
+ </p>
36
+
37
+ <p align="center">
38
+ <a href="https://github.com/sindresorhus/awesome"><img src="https://awesome.re/badge.svg" alt="Awesome"></a>
39
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/actions/workflows/quality.yml"><img src="https://img.shields.io/github/actions/workflow/status/ChaoYue0307/awesome-loop-engineering/quality.yml?branch=main&label=validate" alt="validate"></a>
40
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/"><img src="https://img.shields.io/badge/project-site-38bdf8" alt="project site"></a>
41
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering"><img src="https://img.shields.io/badge/HF-dataset-ffcc4d" alt="Hugging Face dataset"></a>
42
+ <img src="https://img.shields.io/badge/resources-250%2B-a78bfa" alt="resources">
43
+ <img src="https://img.shields.io/badge/patterns-15-38bdf8" alt="patterns">
44
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-CC0--1.0-64748b" alt="license"></a>
45
+ <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-22c55e" alt="PRs welcome"></a>
46
+ </p>
47
+
48
+ <p align="center">
49
+ <a href="README.md">English</a> |
50
+ <a href="README.zh-CN.md">中文</a> |
51
+ <a href="README.es.md">Español</a> |
52
+ <a href="README.fr.md">Français</a> |
53
+ <a href="README.de.md">Deutsch</a> |
54
+ <a href="README.ja.md">日本語</a> |
55
+ <a href="README.ko.md">한국어</a> |
56
+ <a href="README.pt-BR.md">Português</a> |
57
+ <a href="TRANSLATIONS.md">Help translate</a> |
58
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">Landing page</a> |
59
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging Face dataset</a>
60
+ </p>
61
+
62
+ Awesome Loop Engineering is a curated, implementation-oriented field guide to **Loop Engineering**: the layer above prompt, context, and harness engineering for designing recurring AI-agent systems.
63
+
64
+ Prompt engineering improves what you ask the model. Context engineering improves what the model can see. Harness engineering improves the tools, permissions, sandboxes, and checks around one agent run. **Loop Engineering sits above all three**: it is the emerging AI and coding-agent practice of moving from manually prompting agents turn by turn to designing loops that do the prompting, supervision, verification, state updates, and re-triggering for you.
65
+
66
+ A loop discovers work, hands it to one or more agents, checks the result, records state, decides what should happen next, and runs again on a cadence or until a verifiable goal is reached.
67
+
68
+ This repository is about the new AI-agent meaning of Loop Engineering. It is **not** about software event loops, control theory, growth loops, generic workflow automation, or non-AI feedback systems.
69
+
70
+ **Quick orientation for first-time visitors:**
71
+
72
+ - **What it is:** Loop Engineering is the practice of designing recurring AI-agent and coding-agent systems—how work is discovered, delegated, verified, retried, and escalated over time, not just for a single run.
73
+ - **Why it matters now:** As coding agents move from one-off prompts to background automation, the design challenge shifts from "what do I ask?" to "how does the system keep working reliably?" This list exists because no existing collection focused on that layer.
74
+ - **Who this is for:** builders of AI agents, coding agents, and orchestration systems; reliability and eval engineers; teams adding recurring agent loops to production infrastructure.
75
+ - **Where to start:** Canonical Definition, Loop Contract, Start Here, then Pattern Library.
76
+
77
+ ## Contents
78
+
79
+ - [Why This Repo Exists](#why-this-repo-exists)
80
+ - [Mental Model](#mental-model)
81
+ - [How To Use This List](#how-to-use-this-list)
82
+ - [Reading Paths](#reading-paths)
83
+ - [Choose Your Loop](#choose-your-loop)
84
+ - [Canonical Definition](#canonical-definition)
85
+ - [Concept Guides](#concept-guides)
86
+ - [Maintainer Picks](#maintainer-picks)
87
+ - [Repository Highlights](#repository-highlights)
88
+ - [Resource Type Legend](#resource-type-legend)
89
+ - [Start Here](#start-here)
90
+ - [Scope Boundary](#scope-boundary)
91
+ - [The Loop Contract](#the-loop-contract)
92
+ - [Loop Design Checklist](#loop-design-checklist)
93
+ - [Loop Maturity Model](#loop-maturity-model)
94
+ - [Core Loop Primitives](#core-loop-primitives)
95
+ - [Official Runtime Guides](#official-runtime-guides)
96
+ - [Research Foundations](#research-foundations)
97
+ - [Agent Workflow Patterns](#agent-workflow-patterns)
98
+ - [Coding-Agent Loop Systems](#coding-agent-loop-systems)
99
+ - [Verification And Feedback Gates](#verification-and-feedback-gates)
100
+ - [Securing Unattended Loops](#securing-unattended-loops)
101
+ - [State, Memory, And Context Persistence](#state-memory-and-context-persistence)
102
+ - [Orchestration And Multi-Agent Delegation](#orchestration-and-multi-agent-delegation)
103
+ - [Benchmarks And Evaluation](#benchmarks-and-evaluation)
104
+ - [Operations Playbooks](#operations-playbooks)
105
+ - [Templates And Patterns](#templates-and-patterns)
106
+ - [Examples And Schema](#examples-and-schema)
107
+ - [Community Gallery](#community-gallery)
108
+ - [Discovery And Distribution](#discovery-and-distribution)
109
+ - [Roadmap And Discussion](#roadmap-and-discussion)
110
+ - [Pattern Library](#pattern-library)
111
+ - [Critiques, Risks, And Limitations](#critiques-risks-and-limitations)
112
+ - [Adjacent Awesome Lists](#adjacent-awesome-lists)
113
+ - [Citation](#citation)
114
+
115
+ ## Why This Repo Exists
116
+
117
+ Loop Engineering is becoming a distinct craft because the leverage point is moving from better single prompts, richer context, and stronger harnesses to recurring systems that decide when and how agents should run. Mature agent workflows now combine goals, state, work isolation, tool permissions, feedback gates, retries, escalation, and receipts. This list exists to make that craft easier to learn, compare, and practice without mixing it with unrelated loop concepts or generic AI-agent hype.
118
+
119
+ ## Mental Model
120
+
121
+ Prompt engineering asks: **what should I say to the model?**
122
+
123
+ Context engineering asks: **what state and knowledge should the model see?**
124
+
125
+ Harness engineering asks: **what tools, permissions, tests, sandboxes, and feedback should surround the agent?**
126
+
127
+ Loop engineering asks: **what recurring system should discover work, delegate to agents, verify results, persist state, decide next actions, and re-run when the human is no longer in the inner loop?**
128
+
129
+ Prompt, context, and harness engineering make one agent run better. Loop Engineering makes agent work repeatable, observable, and governable over time.
130
+
131
+ <p align="center">
132
+ <img src="assets/loop-engineering-stack.svg" alt="Loop Engineering stack" width="100%">
133
+ </p>
134
+
135
+ Loop shape:
136
+
137
+ ```text
138
+ Objective
139
+ -> Trigger / cadence
140
+ -> Discover / intake work
141
+ -> Delegate to agents
142
+ -> Act in an isolated workspace
143
+ -> Verify with tests, evals, traces, or reviewers
144
+ -> if failed: feed back the evidence and retry
145
+ -> if passed: persist state and decide what happens next
146
+ -> Repeat, report, open a PR, or escalate to a human
147
+ ```
148
+
149
+ <p align="center">
150
+ <img src="assets/loop-lifecycle.svg" alt="Loop Engineering lifecycle: Intake, Delegate, Act, Verify, Persist, Decide; Decide retries by feeding evidence back, escalates to a human, or exits when the goal is met" width="100%">
151
+ </p>
152
+
153
+ ## How To Use This List
154
+
155
+ Start with the first-read resources and the Loop Contract if the term is new. For implementation work, move through core primitives, runtime guides, templates, and patterns. For reliability work, focus on verification gates, state persistence, critiques, and limitations. Contributions should prefer primary sources, official docs, papers, and implementation-heavy write-ups.
156
+
157
+ ## Reading Paths
158
+
159
+ Choose a path based on your intent.
160
+
161
+ - Learn the concept: canonical definition, mental model, comparison guide, and the Loop Contract.
162
+ - Implement a loop: core primitives, official runtime guides, the pattern library, and examples.
163
+ - Improve reliability or evals: verification gates, benchmarks, critiques, and limitations.
164
+ - Contribute: the community gallery, templates, and contribution guide.
165
+
166
+ ## Choose Your Loop
167
+
168
+ Start from the problem you have, not the pattern you want. Find the pattern name below, then open its full write-up in the Pattern Library section, or compare every pattern in the [pattern matrix](patterns/MATRIX.md), which also links each one by symptom.
169
+
170
+ | When you say... | Reach for the loop |
171
+ | -------------------------------- | -------------------------- |
172
+ | "My PR is stuck" | PR babysitter |
173
+ | "CI keeps failing" | CI repair loop |
174
+ | "The docs may be stale" | Docs drift collector |
175
+ | "A deploy needs monitoring" | Deploy verifier |
176
+ | "Feedback is noisy" | Feedback clusterer |
177
+ | "Dependency updates pile up" | Dependency triage loop |
178
+ | "Agent evals regressed" | Evaluation regression loop |
179
+ | "Sensitive changes need review" | Security review loop |
180
+ | "Agent spend is rising" | Cost-control loop |
181
+ | "I need recurring bug discovery" | Bug hunting loop |
182
+ | "A change needs sign-off" | Enterprise approval loop |
183
+ | "An incident just paged" | Incident response loop |
184
+ | "A dataset keeps drifting" | Data-quality loop |
185
+ | "Release notes are a chore" | Release-note loop |
186
+ | "Model choice is ad hoc" | Model-routing loop |
187
+
188
+ Not sure which runtime should run it? See the [runtime selection guide](meta/RUNTIME_SELECTION.md).
189
+
190
+ ## Canonical Definition
191
+
192
+ **Loop Engineering** is the AI and coding-agent practice of designing recurring systems that discover work, delegate it to agents, verify results, persist state, decide next actions, and run again on a cadence, event, or until a verifiable goal is reached.
193
+
194
+ ## Concept Guides
195
+
196
+ These repository-native guides define the concept, boundaries, and practical artifacts without relying on vendor-specific terminology.
197
+
198
+ - 🧾 **Template** [Canonical Definition](DEFINITION.md) - Short definition, positioning, minimal loop test, and citation note.
199
+ - 🧾 **Template** [Loop Engineering Manifesto](MANIFESTO.md) - Concise statement of the concept, commitments, non-goals, and success standard.
200
+ - 🧾 **Template** [Loop Engineering Taxonomy](TAXONOMY.md) - Classification by trigger, intake, verification, state model, topology, and operating domain.
201
+ - ⚠️ **Critique** [Loop Engineering Anti-Patterns](ANTI-PATTERNS.md) - Common failure modes such as prompt loops with no contract, infinite retries, model self-approval, hidden state, and unsafe autonomy.
202
+ - 🧾 **Template** [Comparison Guide](COMPARISON.md) - Distinguishes Loop Engineering from prompt engineering, context engineering, harness engineering, workflow automation, agent workflows, and evaluation loops.
203
+ - 🧾 **Template** [Sourced Signals And Quotes](QUOTES.md) - Short sourced signals from linked public materials that anchor the emerging concept.
204
+ - 🧾 **Template** [Outreach Kit](meta/OUTREACH.md) - Conservative messages for inviting corrections, sources, and real-world loop patterns.
205
+
206
+ ## Maintainer Picks
207
+
208
+ A compact path through the repository. Each resource is linked in full in the section named in parentheses.
209
+
210
+ - Concept: Addy Osmani's Loop Engineering essay frames the practice (Start Here), and the Canonical Definition and Manifesto fix the scope and principles (Concept Guides).
211
+ - Practice: the Codex long-horizon runbook and Claude's scheduled-task docs cover the core mechanics (Core Loop Primitives), then the PR babysitter and CI repair patterns turn the contract into operating models (Pattern Library).
212
+ - Reliability: "Give It Backpressure" and "Building Effective Agents" make verification the learning signal (Verification And Feedback Gates), with the Anti-Patterns guide listing failure modes to avoid (Concept Guides).
213
+ - Reusable artifacts: the loop contract schema and validated example specs make the contract concrete (Examples And Schema), and the Loop Gallery is the format for sharing real or anonymized loops (Community Gallery).
214
+
215
+ ## Repository Highlights
216
+
217
+ Beyond the curated list, this repository ships its own artifacts: 15 operational loop patterns, a schema-validated loop contract for every pattern, 6 runnable loop templates, a community gallery, eight language entry points, a standalone landing page, a Hugging Face dataset mirror with tabular exports, and an active discussion thread for real or anonymized Loop Engineering patterns.
218
+
219
+ ## Resource Type Legend
220
+
221
+ - 📄 **Paper**: academic paper, preprint, or technical report.
222
+ - 📝 **Blog**: essay, field note, article, or practitioner write-up.
223
+ - 📚 **Docs**: official product, API, SDK, or platform documentation.
224
+ - 🧰 **Tool**: repository, framework, SDK, runtime, or implementation.
225
+ - 🧪 **Benchmark**: benchmark, eval suite, leaderboard, or evaluation dataset.
226
+ - 🔁 **Pattern**: real-world loop pattern, operational playbook, or reusable workflow.
227
+ - 🧾 **Template**: template, checklist, schema, repository guide, or contribution artifact.
228
+ - 🧭 **List**: adjacent awesome list, ecosystem map, or curated collection.
229
+ - ⚠️ **Critique**: risk analysis, limitation, caveat, or skeptical take.
230
+
231
+ ## Start Here
232
+
233
+ Direct resources about the new AI/coding-agent meaning of Loop Engineering.
234
+
235
+ - 📝 **Blog** [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Addy Osmani's framing of loop engineering as the layer above manually prompting coding agents, with concrete primitives across Codex and Claude Code.
236
+ - 📝 **Blog** [Loop Engineering](https://addyo.substack.com/p/loop-engineering) - Substack version of the same essay; useful for the original discussion trail and quotations from Peter Steinberger and Boris Cherny.
237
+ - 📝 **Blog** [Loop Engineering](https://cobusgreyling.substack.com/p/loop-engineering) - Concise explanation of the shift from prompting agents to designing loops that discover work, delegate, verify, persist, and continue.
238
+ - 📝 **Blog** [Loop Engineering: The Guide for AI Agents](https://lushbinary.com/blog/loop-engineering-ai-coding-agents-guide/) - Practical guide that breaks the pattern into automations, worktrees, skills, connectors, subagents, and state.
239
+ - 🔁 **Pattern** [Codex Loops: What Boris Cherny Gets Right About Managing Agent Work](https://www.developersdigest.tech/blog/codex-loops-boris-cherny-agent-routines) - Engineering note on recurring agent loops for PR babysitting, CI repair, deploy verification, and feedback clustering.
240
+ - 📝 **Blog** [I Now Just Write Loops To Prompt Claude Code: Claude Code Creator Boris Cherny](https://officechai.com/ai/i-now-just-write-loops-to-prompt-claude-code-claude-code-creator-boris-cherny/) - Coverage of Boris Cherny's "my job is to write loops" workflow.
241
+ - 📝 **Blog** [My Lord! AI Programming Undergoes Another Major Shift](https://eu.36kr.com/en/p/3844224911346184) - Broad coverage of the Boris Cherny and Peter Steinberger discussion, including the distinction between cold-start scripts and persistent agent loops.
242
+ - 📝 **Blog** [Peter Steinberger on designing loops](https://x.com/steipete/status/2063697162748260627) - The June 2026 post - "you shouldn't be prompting coding agents anymore, you should be designing loops that prompt your agents" - that catalyzed the current discussion.
243
+ - 📝 **Blog** [The Anthropic leader who built Claude Code ditched prompting - now he writes loops](https://thenewstack.io/loop-engineering/) - The New Stack's report on Boris Cherny's shift from prompting to loop writing and what it changes about developer workflow.
244
+ - 📝 **Blog** [Stop Prompting. Design the Loop.](https://www.pulumi.com/blog/stop-prompting-design-the-loop/) - Practical breakdown of loop building blocks - automations, worktrees, skills, connectors, subagents - plus external memory and verification through oracles such as tests and builds.
245
+ - 📝 **Blog** [Boris Cherny: five tips for running Opus autonomously for hours or days](https://x.com/bcherny/status/2063792263067754658) - The Claude Code creator's compact loop recipe: auto-mode permissions, dynamic workflows, `/goal` or `/loop`, the cloud runner, and end-to-end self-verification.
246
+
247
+ ## Scope Boundary
248
+
249
+ | In scope | Out of scope |
250
+ | ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
251
+ | AI/coding-agent loops that coordinate prompts, context, harnesses, verification, and state over repeated agent runs | Software event loops, UI/game loops, or control theory loops |
252
+ | Scheduled, goal-driven, or event-triggered agent work | Generic cron jobs with no agentic reasoning or verification |
253
+ | Agent loops with durable state, worktrees, checkpoints, traces, or progress files | One-off prompt examples with no loop, state, or feedback signal |
254
+ | Verification loops using tests, CI, evals, reviewers, or deterministic gates | Pure AI news, generic product pages, or marketing copy |
255
+ | Multi-agent maker/checker/delegation patterns | Broad agent lists without specific loop-design relevance |
256
+
257
+ ## The Loop Contract
258
+
259
+ A useful loop has a contract. If one of these is missing, the loop usually becomes either a manual prompt habit or an unsafe background automation. Prompt, context, and harness choices are ingredients; the loop contract is the operating layer that connects them over time.
260
+
261
+ <p align="center">
262
+ <img src="assets/loop-contract-cards.svg" alt="Loop Contract cards" width="100%">
263
+ </p>
264
+
265
+ | Part | Design question | Common artifact |
266
+ | ----------------- | -------------------------------------- | ------------------------------------------------------------ |
267
+ | Objective | What should the loop optimize for? | Goal, issue, PRD, runbook |
268
+ | Trigger | When does the loop run? | Schedule, webhook, `/loop`, `/goal`, automation |
269
+ | Discover / Intake | How does the loop find work? | GitHub queries, Linear filters, CI failures, feedback stream |
270
+ | Workspace | Where can the agent act safely? | Worktree, sandbox, branch, container |
271
+ | Context | What durable knowledge should it load? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
272
+ | Delegation | Which agent does which job? | Explorer, implementer, reviewer, judge |
273
+ | Verification | What says "yes" or "no"? | Tests, typecheck, lint, evals, trace graders |
274
+ | State | What survives the next run? | Progress file, database checkpoint, trace, issue comment |
275
+ | Budget | When should it stop spending? | Max turns, max retries, token budget, time box |
276
+ | Escalation | When does a human take over? | PR, issue, Slack alert, triage inbox |
277
+ | Exit | How does the loop know it is done? | Acceptance criteria, passing checks, no work found |
278
+
279
+ Good loop documentation should make the contract visible. A reader should be able to tell what triggers the loop, what state it reads, what it is allowed to change, how it verifies progress, and when it stops.
280
+
281
+ ## Loop Design Checklist
282
+
283
+ | Check | Question |
284
+ | ------------------------------- | ---------------------------------------------------------------------------------------------------- |
285
+ | Name one objective | Does the loop optimize for a specific outcome instead of a vague goal such as "improve the repo"? |
286
+ | Define the intake | Where does work enter: PR comments, CI failures, issues, logs, eval failures, feedback, or schedule? |
287
+ | Isolate execution | Does the agent act in a worktree, sandbox, branch, container, or read-only mode? |
288
+ | Write the feedback signal first | Do tests, typechecks, lint, evals, policy checks, or trace graders exist before retries begin? |
289
+ | Persist state outside the model | Does progress survive in files, issue comments, checkpoints, traces, or a database? |
290
+ | Separate maker and checker | Does something other than the acting agent decide whether the work is done? |
291
+ | Put a budget on autonomy | Are runtime, turns, retries, token spend, and concurrent workers capped? |
292
+ | Design escalation | Is it clear when the loop should open a PR, file an issue, ask a human, or stop? |
293
+ | Keep receipts | Are commands, evidence, changed files, and stop reasons recorded? |
294
+
295
+ ## Loop Maturity Model
296
+
297
+ | Level | Name | Description |
298
+ | ----- | -------------------------- | ---------------------------------------------------------------------------------- |
299
+ | 0 | Manual prompting | A human reads state and writes the next prompt. |
300
+ | 1 | Scripted retry | A shell/script loop feeds errors back to an agent. |
301
+ | 2 | Scheduled loop | The agent runs on a cadence and reports findings. |
302
+ | 3 | Stateful loop | Progress survives across sessions through files, issues, checkpoints, or traces. |
303
+ | 4 | Self-verifying loop | Deterministic checks or evaluator agents gate completion. |
304
+ | 5 | Multi-agent loop | Specialized agents split discovery, implementation, review, and judgment. |
305
+ | 6 | Production-supervised loop | Observability, budgets, approvals, rollback, and human escalation are first-class. |
306
+
307
+ Most teams should climb this model slowly. A reliable Level 3 loop with clear state and deterministic checks is usually more valuable than a flashy Level 5 loop with vague goals.
308
+
309
+ ## Core Loop Primitives
310
+
311
+ These are the building blocks that make a loop more than a repeated prompt.
312
+
313
+ - 📚 **Docs** [Automations - Codex app](https://developers.openai.com/codex/app/automations) - Codex background automations for recurring tasks, triage inboxes, skills, and worktree isolation.
314
+ - 📚 **Docs** [Follow a goal - Codex use cases](https://developers.openai.com/codex/use-cases/follow-goals) - Official guidance for durable objectives with stopping conditions, validation commands, checkpoints, and progress logs.
315
+ - 📚 **Docs** [Worktrees - Codex app](https://developers.openai.com/codex/app/worktrees) - Codex worktree model for isolated parallel tasks and handoffs between local and background workspaces.
316
+ - 📚 **Docs** [Prompting - Codex](https://developers.openai.com/codex/prompting) - Explains the Codex loop, threads, context, and `/goal` mode.
317
+ - 📚 **Docs** [Customization - Codex](https://developers.openai.com/codex/concepts/customization) - Maps `AGENTS.md`, memories, skills, MCP, and subagents into a coherent customization stack.
318
+ - 📚 **Docs** [Agent Skills - Codex](https://developers.openai.com/codex/skills) - Official skill format for reusable workflows, scripts, MCP dependencies, invocation policy, and plugin packaging.
319
+ - 📚 **Docs** [Plugins - Codex](https://developers.openai.com/codex/plugins) - Bundles skills, app integrations, and MCP servers into reusable loop capabilities.
320
+ - 🧰 **Tool** [dotskills](https://github.com/vincentkoc/dotskills) - A `.skills` registry of curated Codex and OpenClaw skills, framed as an "ADE Loop" (Agent Development Environment to registry to Skills Gym) where reusable skills are developed, shared, and evaluated across runs.
321
+ - 📚 **Docs** [Slash commands in Codex CLI](https://developers.openai.com/codex/cli/slash-commands) - CLI commands for switching agent threads, browsing skills, inspecting MCP tools, and using subagent workflows.
322
+ - 🔁 **Pattern** [Autonomous Loops](https://claudecodeguide.dev/docs/patterns/autonomous-loops) - Claude Code pattern using task files, stop hooks, restart behavior, hard limits, and a kill switch.
323
+ - 📚 **Docs** [Claude Code Glossary](https://code.claude.com/docs/en/glossary.md) - Defines the agentic loop, hooks, subagents, skills, MCP, and related primitives in Claude Code terminology.
324
+ - 📚 **Docs** [Keep Claude working toward a goal](https://code.claude.com/docs/en/goal) - `/goal` runs turn after turn until a completion condition is met by a verifier.
325
+ - 📚 **Docs** [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - `/loop`, scheduled tasks, reminders, monitor tools, and session-scoped recurring prompts.
326
+ - 📚 **Docs** [Automate work with routines](https://code.claude.com/docs/en/routines) - Claude Code routines: persistent cloud automations triggered by schedules, API calls, or GitHub events, with connectors, scoped environments, and branch-push limits.
327
+ - 📚 **Docs** [Desktop scheduled tasks](https://code.claude.com/docs/en/desktop-scheduled-tasks) - Local recurring runs on your own machine, with the persistence, file-access, permission, worktree, and missed-run trade-offs that distinguish them from `/loop` and cloud routines.
328
+ - 📚 **Docs** [Run parallel sessions with worktrees](https://code.claude.com/docs/en/worktrees) - Worktree isolation for parallel sessions and subagents so concurrent edits do not collide.
329
+ - 📚 **Docs** [Automate actions with hooks](https://code.claude.com/docs/en/hooks-guide) - Claude Code hooks guide for deterministic lifecycle control around model actions.
330
+ - 📚 **Docs** [Hooks reference](https://code.claude.com/docs/en/hooks.md) - Event-level reference for session, turn, tool-call, and subagent hooks.
331
+ - 📚 **Docs** [Common workflows - Claude Code](https://code.claude.com/docs/en/common-workflows) - Practical workflows for worktrees, subagents, CI, batch processing, planning, and resuming prior work.
332
+ - 📚 **Docs** [Manage multiple agents with agent view](https://code.claude.com/docs/en/agent-view.md) - Dashboard for dispatching, monitoring, and attaching to background agent sessions.
333
+ - 📚 **Docs** [Run agents in parallel](https://code.claude.com/docs/en/agents.md) - Compares agent view, subagents, agent teams, worktrees, tasks, and workflows for parallel work.
334
+ - 📚 **Docs** [Orchestrate subagents at scale with dynamic workflows](https://code.claude.com/docs/en/workflows) - Moves loop state and branching into workflow scripts so large tasks do not overload the conversation context.
335
+ - 📚 **Docs** [Create plugins](https://code.claude.com/docs/en/plugins) - Packaging model-invoked skills, agents, hooks, MCP servers, monitors, and settings as shareable loop components.
336
+ - 📚 **Docs** [Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro) - Standard protocol for exposing tools and data sources to agent loops.
337
+ - 📚 **Docs** [Allowing GitHub Copilot CLI to work autonomously](https://docs.github.com/en/copilot/concepts/agents/copilot-cli/autopilot) - Copilot CLI autopilot mode plus `/every` and `/after` scheduling, turning the CLI into an unattended loop that runs steps until a task is complete.
338
+
339
+ ## Official Runtime Guides
340
+
341
+ Primary-source docs from agent runtime vendors and framework builders.
342
+
343
+ - 📚 **Docs** [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - OpenAI's runbook for plan-edit-test-observe-repair-document-repeat work, including specs, plans, status logs, and validation gates.
344
+ - 📚 **Docs** [Best practices - Codex](https://developers.openai.com/codex/learn/best-practices) - Official best practices for context, `AGENTS.md`, MCP, skills, subagents, and automations.
345
+ - 📚 **Docs** [Agents SDK](https://developers.openai.com/api/docs/guides/agents) - OpenAI guide for agent orchestration, tool execution, approvals, state, guardrails, and observability.
346
+ - 📚 **Docs** [Agents - OpenAI Agents SDK](https://openai.github.io/openai-agents-python/agents/) - SDK primitives for agents, tools, handoffs, guardrails, and runner-managed loops.
347
+ - 📚 **Docs** [Running agents](https://developers.openai.com/api/docs/guides/agents/running-agents) - OpenAI guide to turns, state, approvals, sessions, and continuation in the SDK runtime loop.
348
+ - 📚 **Docs** [Integrations and observability](https://developers.openai.com/api/docs/guides/agents/integrations-observability) - OpenAI guide to MCP wiring and traces as the basis for debugging and evaluation loops.
349
+ - 📚 **Docs** [Sandbox Agents](https://developers.openai.com/api/docs/guides/agents/sandboxes) - Splits the harness control plane from the sandbox execution plane for long-running file and command work.
350
+ - 📚 **Docs** [Guardrails and human review](https://developers.openai.com/api/docs/guides/agents/guardrails-approvals) - Approval and validation boundaries for sensitive agent actions.
351
+ - 📚 **Docs** [Building agents with the Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md) - Claude SDK overview for tool-using agents, subagents, state, permissions, and streaming.
352
+ - 📚 **Docs** [How the agent loop works](https://code.claude.com/docs/en/agent-sdk/agent-loop) - Official walkthrough of the inner agent loop that outer recurring loops build on.
353
+ - 📚 **Docs** [Extend Claude with skills](https://code.claude.com/docs/en/skills) - Claude Code skill system for reusable loop instructions and assets.
354
+ - 📚 **Docs** [Create custom subagents](https://code.claude.com/docs/en/sub-agents) - Claude Code custom subagents with isolated context, model choice, and tool permissions.
355
+ - 📚 **Docs** [GitHub Agentic Workflows](https://github.github.com/gh-aw/) - Repository automation that runs coding agents in GitHub Actions on events or schedules with guardrails.
356
+ - 📝 **Blog** [GitHub Agentic Workflows technical preview](https://github.blog/changelog/2026-02-13-github-agentic-workflows-are-now-in-technical-preview/) - Changelog announcement for Markdown-defined agentic workflows in GitHub Actions.
357
+ - 📚 **Docs** [Continuous AI](https://githubnext.com/projects/continuous-ai/) - GitHub Next's umbrella framing for CI/CD-style AI automation across the software lifecycle, the category that agentic workflows demonstrate.
358
+ - 📝 **Blog** [Automate repository tasks with GitHub Agentic Workflows](https://github.blog/ai-and-ml/automate-repository-tasks-with-github-agentic-workflows/) - Official walkthrough of writing Markdown-defined agentic workflows with guardrails for triage, QA, and docs chores.
359
+ - 📝 **Blog** [Continuous AI in practice: What developers can automate today with agentic CI](https://github.blog/ai-and-ml/generative-ai/continuous-ai-in-practice-what-developers-can-automate-today-with-agentic-ci/) - Concrete agentic-CI automations available today, with recurring patterns for triage, review, and documentation upkeep.
360
+ - 📚 **Docs** [About GitHub Copilot coding agent](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent) - GitHub's autonomous coding agent: assign an issue, the agent works in an isolated Actions-powered workspace, and a reviewable pull request comes back.
361
+ - 📝 **Blog** [GitHub Copilot: Meet the new coding agent](https://github.blog/news-insights/product-news/github-copilot-meet-the-new-coding-agent/) - Launch overview of the issue-to-PR delegation loop, including iteration on review feedback.
362
+ - 📚 **Docs** [Jules](https://jules.google/docs) - Google's asynchronous coding agent that plans, executes tasks in isolated cloud VMs, and returns reviewable diffs.
363
+ - 📚 **Docs** [Cursor cloud agents](https://cursor.com/docs/cloud-agent) - Remote agents that work asynchronously in isolated environments and hand results back for review.
364
+ - 📚 **Docs** [Devin Docs](https://docs.devin.ai/get-started/devin-intro) - Documentation for a long-running autonomous software engineer with sessions, playbooks, knowledge, and review boundaries.
365
+ - 📚 **Docs** [Writing effective tools for AI agents](https://www.anthropic.com/engineering/writing-tools-for-agents) - Anthropic's guidance on evaluating and improving tool specs using agentic loops and realistic tasks.
366
+ - 📚 **Docs** [Introducing advanced tool use on the Claude Developer Platform](https://www.anthropic.com/engineering/advanced-tool-use?e45d281a_page=3) - Tool search, programmatic tool calling, and tool-use examples for scaling large tool libraries without flooding context.
367
+ - 📚 **Docs** [Effective harnesses for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents) - Anthropic's guidance for agents that work across many context windows: durable progress artifacts, environment setup, and self-verification.
368
+ - 📚 **Docs** [Claude Code best practices](https://code.claude.com/docs/en/best-practices) - Widely cited workflow guidance that underlies many recurring Claude Code loops.
369
+
370
+ ## Research Foundations
371
+
372
+ Loop Engineering is new as a practice name, but it builds on years of agent-loop, feedback, planning, and self-correction research.
373
+
374
+ - 📄 **Paper** [ReAct: Synergizing Reasoning and Acting in Language Models](https://arxiv.org/abs/2210.03629) - Foundational reason-act-observe loop for tool-using language agents.
375
+ - 📄 **Paper** [Reflexion: Language Agents with Verbal Reinforcement Learning](https://arxiv.org/abs/2303.11366) - Converts environment feedback into written reflections stored in memory for future attempts.
376
+ - 📄 **Paper** [Self-Refine: Iterative Refinement with Self-Feedback](https://arxiv.org/abs/2303.17651) - Generate-feedback-refine loop where a model improves outputs over repeated passes.
377
+ - 📄 **Paper** [CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing](https://arxiv.org/abs/2305.11738) - Uses tools to ground critique and correction rather than relying only on introspection.
378
+ - 📄 **Paper** [Tree of Thoughts](https://arxiv.org/abs/2305.10601) - Search over multiple reasoning branches; relevant when loop design needs exploration before committing.
379
+ - 📄 **Paper** [Graph of Thoughts](https://arxiv.org/abs/2308.09687) - Generalizes thought structures beyond chains and trees, useful for complex loop planning and aggregation.
380
+ - 📄 **Paper** [Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models](https://arxiv.org/abs/2310.04406) - Combines search, action, and environment feedback for language agents.
381
+ - 📄 **Paper** [Voyager: An Open-Ended Embodied Agent with Large Language Models](https://arxiv.org/abs/2305.16291) - Demonstrates lifelong skill acquisition through iterative exploration, feedback, and a skill library.
382
+ - 📄 **Paper** [Generative Agents: Interactive Simulacra of Human Behavior](https://arxiv.org/abs/2304.03442) - Introduces reflection and memory mechanisms for long-running agent behavior.
383
+ - 📄 **Paper** [Measuring AI Ability to Complete Long Software Tasks](https://arxiv.org/abs/2503.14499) - METR's task-length time horizon metric; grounds why loop budgets, checkpoints, and escalation matter as autonomous work gets longer.
384
+ - 📝 **Blog** [Measuring AI Ability to Complete Long Tasks](https://metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks/) - Accessible summary of the 50% task-completion time horizon and its doubling trend.
385
+ - 📄 **Paper** [Reflection-Driven Control for Trustworthy Code Agents](https://arxiv.org/abs/2512.21354) - Elevates reflection from an external pass to an internal control loop that monitors the agent's decision path during generation and constrains risky steps with low overhead.
386
+ - 📄 **Paper** [PARC: An Autonomous Self-Reflective Coding Agent for Robust Execution of Long-Horizon Tasks](https://arxiv.org/abs/2512.03549) - Hierarchical plan-execute-assess loops that detect and correct strategic errors during multi-hour autonomous runs.
387
+ - 📄 **Paper** [When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents](https://arxiv.org/abs/2603.17104) - Measures how agents drift from intent when specifications arrive incrementally across a long loop, and proposes a mitigation that recovers most of the loss.
388
+ - 🧰 **Tool** [Reflexion code](https://github.com/noahshinn/reflexion) - Reference implementation and experiments for verbal reinforcement loops.
389
+
390
+ ## Agent Workflow Patterns
391
+
392
+ These resources are included when they help design the higher-level loop around agents, not merely because they describe agents in general.
393
+
394
+ - 📚 **Docs** [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - Anthropic's canonical guide to workflows and agents, including evaluator-optimizer and orchestrator-workers patterns.
395
+ - 📝 **Blog** [How we built our multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system) - Detailed orchestrator-worker system with planning, memory, subagents, citation passes, and iterative research loops.
396
+ - 📄 **Paper** [Building Effective AI Agents: Architecture Patterns and Implementation Frameworks](https://resources.anthropic.com/hubfs/Building%20Effective%20AI%20Agents-%20Architecture%20Patterns%20and%20Implementation%20Frameworks.pdf) - PDF overview of agent architecture patterns, including generator-evaluator loops.
397
+ - 📝 **Blog** [AI Agent Architectures](https://hld.handbook.academy/curriculum/ai-ml-system-design/ai-agent-architectures/) - System-design overview of ReAct, reflection, planning, tool use, memory, and control strategies.
398
+ - 📝 **Blog** [What Are Agentic Workflows?](https://weaviate.io/blog/what-are-agentic-workflows) - Accessible taxonomy of planning, tool use, reflection, and memory patterns.
399
+ - 📝 **Blog** [Agent Planning & Reflection Patterns](https://learnaivisually.com/tracks/ai-agents/planning-reflection) - Visual explanation of plan-execute, observe, reflect, retry, and stop patterns.
400
+ - 📝 **Blog** [Agentic Design Patterns](https://addyosmani.com/agents/04-agentic-design-patterns/) - Practical overview of ReAct, reflection, tool use, planning, and how to combine them in real-world agents.
401
+ - 🔁 **Pattern** [12 Factor Agents](https://github.com/humanlayer/12-factor-agents) - Operating principles for production agents, including explicit prompts, state ownership, and pause-resume behavior.
402
+ - 🔁 **Pattern** [Durable Execution for Agentic Workflows](https://arizenai.com/durable-execution/) - Explains checkpointing, event-sourced journals, replay, and recovery for long-running agent workflows.
403
+ - 📄 **Paper** [Code as Agent Harness](https://arxiv.org/abs/2605.18747) - Organizes agent infrastructure into harness interface, feedback-driven control, and multi-agent scaling for executable, verifiable, stateful systems; maps the harness layer that loops build on.
404
+ - 📄 **Paper** [Agentic Agile-V: From Vibe Coding to Verified Engineering](https://arxiv.org/abs/2605.20456) - Proposes a task-level SCOPE-V loop (Specify, Constrain, Orchestrate, Prove, Evolve, Verify) with human approval gates, arguing agentic coding needs process control and independent verification, not better prompts.
405
+ - 📄 **Paper** [Harness Engineering for Language Agents: The Harness Layer as Control, Agency, and Runtime](https://www.preprints.org/manuscript/202603.1756) - Decomposes the harness layer that loops build on into control, agency, and runtime, audits 63 harness works, and proposes a HarnessCard so reported agent gains can be separated from harness effects.
406
+
407
+ ## Coding-Agent Loop Systems
408
+
409
+ - 🧰 **Tool** [SWE-agent](https://github.com/SWE-agent/SWE-agent) - Agent-computer interface and autonomous software engineering agent for repository tasks.
410
+ - 📄 **Paper** [SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering](https://arxiv.org/abs/2405.15793) - Paper behind SWE-agent and its interface design.
411
+ - 🧰 **Tool** [mini-SWE-agent](https://mini-swe-agent.com/latest/) - Minimal coding agent that is useful for understanding the core loop without a large framework.
412
+ - 🧰 **Tool** [OpenHands](https://github.com/All-Hands-AI/OpenHands) - Open platform for AI software developers as generalist agents.
413
+ - 📄 **Paper** [OpenHands: An Open Platform for AI Software Developers as Generalist Agents](https://arxiv.org/abs/2407.16741) - Paper describing OpenHands, CodeActAgent, benchmarks, and generalist agent evaluation.
414
+ - 🧰 **Tool** [Agentless](https://github.com/OpenAutoCoder/Agentless) - Workflow-based approach for software issue resolution using localization, repair, and patch validation.
415
+ - 📄 **Paper** [Agentless: Demystifying LLM-based Software Engineering Agents](https://arxiv.org/abs/2407.01489) - Useful contrast case: strong results through structured workflow rather than a fully open-ended agent.
416
+ - 🧰 **Tool** [AutoCodeRover](https://github.com/AutoCodeRoverSG/auto-code-rover) - Autonomous program improvement system for issue localization, patch generation, and validation.
417
+ - 📄 **Paper** [AutoCodeRover: Autonomous Program Improvement](https://arxiv.org/abs/2404.05427) - Paper on autonomous code repair loops over real repositories.
418
+ - 🔁 **Pattern** [Ralph](https://ghuntley.com/ralph/) - Geoffrey Huntley's original Ralph technique: run one agent in a bare loop with fresh context per iteration and the filesystem plus specs as memory.
419
+ - 🔁 **Pattern** [everything is a ralph loop](https://ghuntley.com/loop/) - Follow-up essay arguing the loop, not the agent, is the durable engineering unit: one task per iteration, deterministic context, and verification inside the loop.
420
+ - 🧰 **Tool** [how-to-ralph-wiggum](https://github.com/ghuntley/how-to-ralph-wiggum) - Reference repository documenting the Ralph Wiggum technique end to end, from the bare loop script to guardrails and conventions.
421
+ - 📝 **Blog** [A Brief History of Ralph](https://www.humanlayer.dev/blog/brief-history-of-ralph) - Traces how the bare-loop technique spread from a provocation to a production practice among early adopters.
422
+ - 🔁 **Pattern** [Ralph Copilot](https://github.com/giocaizzi/ralph-copilot/tree/e5b2813cc876c73a8c9d3398c0115da0d15f63cf) - Language-agnostic Ralph loop implementation using fresh context, filesystem memory, `PRD.md`, and `PROGRESS.md`.
423
+ - 🔁 **Pattern** [Compound Engineering](https://every.to/guides/compound-engineering) - Every's named plan-work-review-compound loop, where each run feeds lessons back into `AGENTS.md`-style memory so the next loop is easier; the self-improving counterpart to Ralph.
424
+ - 🧰 **Tool** [Gas Town](https://github.com/steveyegge/gastown) - Steve Yegge's multi-agent orchestrator that runs 20-30 parallel coding agents with coordinator, worker, and merge-queue roles; the structured-orchestration end of the spectrum that Ralph anchors with bare iteration.
425
+ - 🧰 **Tool** [Amp](https://ampcode.com/) - Agentic coding tool built around threads, subagents, and an opinionated harness, with an owner's manual that documents loop-style operating practices.
426
+ - 🧰 **Tool** [karl](https://github.com/kayoslab/karl) - Autonomous multi-agent development loop with planner, reviewer, architect, tester, developer, deployment, and retry phases.
427
+ - 🔁 **Pattern** [joelclaw agent-loop skill](https://github.com/joelhooks/joelclaw/blob/main/skills/agent-loop/SKILL.md) - Durable Planner-Implementor-Reviewer-Judge coding loops via Inngest events and progress files.
428
+ - 🧭 **List** [SWE-bench reading list](https://github.com/SWE-bench/reading-list) - Maintained map of software engineering agent systems and related papers.
429
+ - 📄 **Paper** [TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code](https://arxiv.org/abs/2602.06875) - ICSE'26 observe-analyze-repair loop with instrumentation, analysis, and repair agents, a history-learning mechanism, and a rollback to the last good state; iteration alone drives most of the gain.
430
+ - 📄 **Paper** [The Kitchen Loop: User-Spec-Driven Development for a Self-Evolving Codebase](https://arxiv.org/abs/2603.25697) - A production loop where an agent exercises a spec surface as a synthetic power user behind ground-truth tests and quality gates, sustaining 285+ self-correcting iterations and 1,000+ merged PRs with zero detected regressions.
431
+
432
+ ## Verification And Feedback Gates
433
+
434
+ These resources include harness and observability mechanisms that loops compose into exit gates, receipts, and retry signals.
435
+
436
+ - 📝 **Blog** [Why Agentic Systems Must Produce Deterministic Outputs to Scale](https://streamzero.com/blog/posts/deep-dives-tools-technologies-architectures/agentic-patterns/why-agentic-systems-must-produce-deterministic-outputs-to-scale) - Argues for deterministic boundaries, contracts, and execution gates around probabilistic agent reasoning.
437
+ - 🔁 **Pattern** [Stop Babysitting Your Coding Agent. Give It Backpressure.](https://generativeprogrammer.com/p/stop-babysitting-your-coding-agent) - Explains how to turn tests, linters, builds, traces, and other signals into feedback loops for coding agents.
438
+ - 🔁 **Pattern** [How to Build a Self-Verification Loop in Claude Code](https://dev.to/shipwithaiio/how-to-build-a-self-verification-loop-in-claude-code-3-layers-20-minutes-m1p) - Uses hooks to enforce syntax, intent, and regression checks before an agent can finish.
439
+ - 📝 **Blog** [How to build a better agent harness with traces and evals](https://arize.com/blog/improve-ai-agents-traces-evals-harness/) - Trace-evaluate-debug-refine loop for improving agent behavior from real runs.
440
+ - 📝 **Blog** [Better Harness: A Recipe for Harness Hill-Climbing with Evals](https://www.langchain.com/blog/better-harness-a-recipe-for-harness-hill-climbing-with-evals) - LangChain's recipe for using evals as the learning signal for harness improvement.
441
+ - 📝 **Blog** [Improving Deep Agents with harness engineering](https://www.langchain.com/blog/improving-deep-agents-with-harness-engineering) - Practical discussion of self-verification, traces, middleware, and loop detection for coding agents.
442
+ - 📚 **Docs** [OpenAI agent evals](https://developers.openai.com/api/docs/guides/agent-evals) - Evaluation guidance for moving from traces to repeatable grading of agent workflows.
443
+ - 🧰 **Tool** [Promptfoo OpenAI Agents provider](https://www.promptfoo.dev/docs/providers/openai-agents/) - Testing and assertions for multi-turn agent workflows, tools, state, handoffs, sandboxes, and traces.
444
+ - 🧰 **Tool** [Inspect AI](https://github.com/UKGovernmentBEIS/inspect_ai) - UK AISI evaluation framework with solvers, scorers, sandboxing, tool use, MCP, and log viewing.
445
+ - 📚 **Docs** [OpenTelemetry Semantic Conventions for Generative AI Systems](https://opentelemetry.io/docs/specs/semconv/gen-ai/) - Portable tracing conventions for model calls, tool calls, and agent workflows.
446
+ - 🧰 **Tool** [AgentOps](https://github.com/AgentOps-AI/agentops) - Monitoring, replay, cost tracking, benchmarking, and tracing for agent sessions.
447
+ - 🧰 **Tool** [Langfuse](https://github.com/langfuse/langfuse) - Open-source LLM engineering platform with tracing, evaluations, and metrics that loops can read back as feedback signals.
448
+ - 🧰 **Tool** [LangSmith](https://www.langchain.com/langsmith) - Tracing, evaluation, and monitoring platform for inspecting and grading agent runs across iterations.
449
+ - 🧰 **Tool** [Arize Phoenix](https://github.com/Arize-ai/phoenix) - Open-source AI observability for tracing, evaluating, and debugging agent behavior from real runs.
450
+ - 🧰 **Tool** [Braintrust](https://www.braintrust.dev/) - Evaluation and observability platform with experiments, datasets, and CI integration for gating agent changes.
451
+ - 🧰 **Tool** [Weave](https://docs.wandb.ai/weave) - Weights & Biases toolkit for tracing, evaluating, and monitoring agent applications over time.
452
+ - 📄 **Paper** [Agentic Verification of Software Systems](https://arxiv.org/abs/2511.17330) - Pairs a coding agent with a theorem prover (AutoRocq) in a generate-and-validate loop, turning formal proof into the exit gate for trusted automatic programming.
453
+ - 📄 **Paper** [Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses](https://arxiv.org/abs/2604.25850) - A closed loop that turns each harness edit into a falsifiable contract verified against trajectory outcomes, so the harness evolves from observability instead of trial and error.
454
+
455
+ ## Securing Unattended Loops
456
+
457
+ A loop that runs while nobody watches needs stronger boundaries than an interactive session. These resources cover the main risks: untrusted intake content, over-broad permissions, and unsandboxed execution.
458
+
459
+ - ⚠️ **Critique** [The lethal trifecta for AI agents](https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/) - Simon Willison's rule of thumb: private data, untrusted content, and an exfiltration channel must never meet inside one unattended agent.
460
+ - ⚠️ **Critique** [Prompt injection series](https://simonwillison.net/series/prompt-injection/) - Ongoing series on the core unsolved vulnerability for loops whose intake includes content written by strangers.
461
+ - 📚 **Docs** [Agentic AI - Threats and Mitigations](https://genai.owasp.org/resource/agentic-ai-threats-and-mitigations/) - OWASP threat model for agentic systems, useful when reviewing intake, memory, tool, and delegation boundaries.
462
+ - 📚 **Docs** [Designing AI agents to resist prompt injection](https://openai.com/index/designing-agents-to-resist-prompt-injection/) - OpenAI's official defense-in-depth guidance: least privilege, sandboxed tools, output verification, and human confirmation for the high-impact actions an unattended loop might take.
463
+ - 🧰 **Tool** [sandbox-runtime](https://github.com/anthropic-experimental/sandbox-runtime) - Anthropic's OS-level filesystem and network sandboxing for arbitrary processes without requiring a container.
464
+ - 🧰 **Tool** [E2B](https://github.com/e2b-dev/E2B) - Open-source isolated cloud sandboxes for running untrusted, AI-generated code inside agent loops.
465
+ - 📚 **Docs** [Modal Sandboxes](https://modal.com/docs/guide/sandboxes) - Secure sandboxed execution for agent-driven code with resource limits and network controls.
466
+ - 🧰 **Tool** [Daytona](https://www.daytona.io/) - Infrastructure for running AI-generated code in fast, isolated sandboxes.
467
+
468
+ ## State, Memory, And Context Persistence
469
+
470
+ This section focuses on durable loop state and cross-run context. For context-window design as its own lower layer, see the adjacent Context Engineering lists.
471
+
472
+ - 📚 **Docs** [Effective Context Engineering for AI Agents](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) - Anthropic guide to context as managed runtime state rather than a prompt dump.
473
+ - 📝 **Blog** [Agent Harnesses: the Infrastructure Layer Your LLM Agent Actually Needs](https://ninadpathak.com/blog/agent-harnesses/) - Covers execution loops, state, checkpointing, observers, and replayability.
474
+ - 📝 **Blog** [The Agent Loop Is the New OS](https://www.harness.io/blog/agent-loop-new-os) - Frames the agent loop as an OS-like boundary with context as RAM and tools as I/O.
475
+ - 📝 **Blog** [Harness engineering for coding agent users](https://martinfowler.com/articles/harness-engineering.html) - Martin Fowler article on feedforward, feedback, and outer harnesses for coding agents.
476
+ - 📝 **Blog** [Context Engineering](https://simonwillison.net/2025/Jun/27/context-engineering/) - Simon Willison's framing of context engineering, useful for distinguishing context state from loop orchestration.
477
+ - 📝 **Blog** [Agentic Coding in 2026](https://sourcegraph.com/blog/agentic-coding) - Sourcegraph on supplying deterministic, large-codebase context and code intelligence so recurring agent runs reuse durable repository state instead of rediscovering it each time.
478
+ - 📝 **Blog** [Agentic AI State Management with ScyllaDB and LangGraph](https://www.scylladb.com/2026/04/08/agentic-ai-state-management-with-scylladb-and-langgraph/) - Durable agent state with checkpointers, write-ahead logs, and time-travel branching.
479
+ - 🧰 **Tool** [Mem0](https://github.com/mem0ai/mem0) - Open-source memory layer for retaining user, session, and agent state across repeated agent sessions.
480
+ - 🧰 **Tool** [Letta](https://github.com/letta-ai/letta) - Stateful agent framework from the MemGPT line with persistent, self-editing memory across runs.
481
+ - 🧰 **Tool** [Zep](https://github.com/getzep/zep) - Temporal knowledge graph memory that tracks how facts about users and systems change across sessions.
482
+ - 🧰 **Tool** [LangMem](https://github.com/langchain-ai/langmem) - SDK for extracting, consolidating, and retrieving long-term agent memory between loop runs.
483
+ - 🧰 **Tool** [Beads](https://github.com/steveyegge/beads) - Git-plus-SQLite issue and memory store that agents read and write with a `bd` CLI, giving recurring loops durable task state and progress that survives context resets.
484
+ - 📄 **Paper** [ARC: Active and Reflection-driven Context Management for Long-Horizon Agents](https://arxiv.org/abs/2601.12030) - Treats context as a managed runtime artifact, reorganizing the working context when degradation or context rot is detected across a long run.
485
+ - 📄 **Paper** [Memory for Autonomous LLM Agents: Mechanisms, Evaluation, and Emerging Frontiers](https://arxiv.org/abs/2603.07670) - Formalizes agent memory as a write-manage-read loop and surveys compression, retrieval, reflective self-improvement, and policy-learned management across recurring runs.
486
+ - 📄 **Paper** [Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineering](https://arxiv.org/abs/2604.08224) - Reviews how durable state, reusable skills, protocols, and the harness move out of model weights into external infrastructure, the substrate that lets loops persist progress and reuse capability across runs.
487
+
488
+ ## Orchestration And Multi-Agent Delegation
489
+
490
+ - 🧰 **Tool** [AutoGen](https://github.com/microsoft/autogen) - Multi-agent programming framework for conversations, tool use, and orchestration; active development has moved to the Microsoft Agent Framework.
491
+ - 🧰 **Tool** [Microsoft Agent Framework](https://github.com/microsoft/agent-framework) - Microsoft's successor to AutoGen and Semantic Kernel for building and orchestrating multi-agent workflows in Python and .NET.
492
+ - 🧰 **Tool** [LangGraph](https://github.com/langchain-ai/langgraph) - Graph-based framework for controllable agent workflows, persistence, and human-in-the-loop steps.
493
+ - 🧰 **Tool** [CrewAI](https://github.com/crewAIInc/crewAI) - Framework for multi-agent workflows organized around roles, tasks, and crews.
494
+ - 📚 **Docs** [LlamaIndex Workflows](https://developers.llamaindex.ai/python/llamaagents/workflows/) - Event-driven workflow abstraction for agentic applications.
495
+ - 📚 **Docs** [OpenAI Agents SDK handoffs](https://openai.github.io/openai-agents-python/handoffs/) - First-class delegation between specialized agents.
496
+ - 📚 **Docs** [Agent Protocol](https://agentprotocol.ai/) - API protocol for agent interaction, useful for separating loop managers from agent runtimes.
497
+ - 🧰 **Tool** [AgentKit](https://github.com/inngest/agent-kit) - TypeScript toolkit for durable, event-driven agents on workflow infrastructure.
498
+ - 🧰 **Tool** [deepagents](https://github.com/langchain-ai/deepagents) - LangChain project for deeper, longer-running agents with middleware and harness patterns.
499
+ - 📚 **Docs** [Temporal for AI](https://temporal.io/solutions/ai) - Durable execution for long-running agent workflows: crash-proof state, automatic retries, and human-in-the-loop signals.
500
+ - 🧰 **Tool** [Restate](https://restate.dev/) - Durable execution runtime for building resilient, stateful agents and workflows that survive failures mid-loop.
501
+ - 🧰 **Tool** [DBOS](https://www.dbos.dev/) - Lightweight Postgres-backed durable execution library for crash-proof agent workflows, queues, and scheduled triggers.
502
+ - 🧰 **Tool** [Composio Agent Orchestrator](https://github.com/ComposioHQ/agent-orchestrator) - Orchestrates parallel coding agents in isolated worktrees that plan tasks, fix CI failures, respond to reviews, and manage their own PR lifecycle.
503
+ - 🧰 **Tool** [Omnigent](https://github.com/omnigent-ai/omnigent) - Databricks' open-source meta-harness and control plane that runs Claude Code, Codex, Cursor, and Pi under shared policies, with budget caps and human-approval gates enforced at the harness layer rather than in prompts.
504
+ - 📄 **Paper** [From Agent Loops to Structured Graphs: A Scheduler-Theoretic Framework for LLM Agent Execution](https://arxiv.org/abs/2604.11378) - Replaces opaque agent loops with immutable plan-version DAGs and a planning-execution-recovery split, giving inspectable scheduling, deterministic recovery, escalation, and termination guarantees.
505
+ - 🧰 **Tool** [Eve](https://github.com/vercel/eve) - Vercel's TypeScript-native agent framework with durable execution, sandboxed compute, and OpenTelemetry tracing built in, so recurring agent work persists, replays, and is observable across runs by default.
506
+ - 📄 **Paper** [Verified Multi-Agent Orchestration: A Plan-Execute-Verify-Replan Framework](https://arxiv.org/abs/2603.11445) - Decomposes work into a dependency-aware DAG, runs domain agents in parallel, and uses an LLM verifier to drive adaptive replanning with configurable stop conditions, the verify-and-replan core of a reliable loop.
507
+
508
+ ## Benchmarks And Evaluation
509
+
510
+ - 🧪 **Benchmark** [SWE-bench](https://www.swebench.com/) - Benchmark for resolving real GitHub issues through code editing and tests.
511
+ - 📄 **Paper** [SWE-bench: Can Language Models Resolve Real-World GitHub Issues?](https://arxiv.org/abs/2310.06770) - Original SWE-bench paper.
512
+ - 📄 **Paper** [SWE-bench Goes Live](https://arxiv.org/abs/2505.23419) - Dynamic benchmark designed to reduce overfitting to static issue sets.
513
+ - 🧪 **Benchmark** [Terminal-Bench](https://www.tbench.ai/) - Benchmark for agents operating in terminal environments.
514
+ - 🧰 **Tool** [Terminal-Bench repository](https://github.com/harbor-framework/terminal-bench) - Open-source benchmark and harness for hard terminal tasks.
515
+ - 📄 **Paper** [AgentBench](https://arxiv.org/abs/2308.03688) - Multi-environment benchmark for evaluating LLMs as agents.
516
+ - 📄 **Paper** [WebArena](https://arxiv.org/abs/2307.13854) - Realistic web environment for autonomous agents.
517
+ - 📄 **Paper** [OSWorld](https://arxiv.org/abs/2404.07972) - Benchmark for multimodal agents operating full computer environments.
518
+ - 📄 **Paper** [ToolBench](https://arxiv.org/abs/2307.16789) - Tool-use benchmark and dataset for tool-augmented agents.
519
+ - 📄 **Paper** [GAIA](https://arxiv.org/abs/2311.12983) - Benchmark for general AI assistants requiring reasoning, tool use, and multi-step work.
520
+ - 📄 **Paper** [Tau-bench](https://arxiv.org/abs/2406.12045) - Benchmark for tool-agent-user interactions in realistic domains.
521
+ - 📄 **Paper** [VisualWebArena](https://arxiv.org/abs/2401.13649) - Visually grounded web-agent benchmark extending WebArena.
522
+ - 📄 **Paper** [AppWorld](https://arxiv.org/abs/2407.18901) - Benchmark of interactive app tasks with state-based and execution-based evaluation.
523
+ - 📄 **Paper** [Vending-Bench](https://arxiv.org/abs/2502.15840) - Benchmark for long-term coherence of autonomous agents; documents how small errors compound over very long loop horizons.
524
+ - 🧪 **Benchmark** [Vending-Bench leaderboard](https://andonlabs.com/evals/vending-bench) - Live long-horizon coherence results from Andon Labs.
525
+ - 📄 **Paper** [SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios](https://arxiv.org/abs/2512.18470) - Release-note-derived evolution tasks where agents score far below isolated-issue benchmarks, quantifying the long-horizon gap loops must manage.
526
+ - 📄 **Paper** [EvoSkills: Self-Evolving Agent Skills via Co-Evolutionary Verification](https://arxiv.org/abs/2604.01687) - A skill generator and a co-evolving surrogate verifier improve multi-file skill packages over iterations, evaluated on the SkillsBench benchmark of structured skill bundles.
527
+ - 📄 **Paper** [SaaSBench: Coding Agents in Long-Horizon Enterprise SaaS Engineering](https://arxiv.org/abs/2605.17526) - Benchmark for agents on multi-dependency, interactive enterprise tasks, with automated evaluation that probes where long-horizon loops break down.
528
+ - 📄 **Paper** [RoadmapBench: Evaluating Long-Horizon Agentic Software Development Across Version Upgrades](https://arxiv.org/abs/2605.15846) - 115 real version-upgrade tasks across 17 repositories requiring multi-file changes (median ~3,700 lines), stressing how far agent loops sustain coherent, large-scale work.
529
+ - 📄 **Paper** [SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks](https://arxiv.org/abs/2603.24755) - Quantifies structural erosion and verbosity creep across iteration checkpoints in native harnesses like Claude Code and Codex, evidence for why loops need verification and budgets.
530
+ - 📄 **Paper** [LongCLI-Bench: A Preliminary Benchmark for Long-horizon Agentic Programming in Command-Line Interfaces](https://arxiv.org/abs/2602.14337) - Long-horizon CLI tasks where most runs stall below 30% completion, mapping where unattended loops break down.
531
+
532
+ ## Operations Playbooks
533
+
534
+ - 📝 **Blog** [Agentic Engineering: The Agent Loop](https://junpingyi.com/books/agentic-engineering/agent-loop/) - Minimal mental model for the loop underlying agent operation.
535
+ - 📝 **Blog** [The agent loop: ReAct, plan-and-execute, reflection](https://www.kunwar.page/chapter/067-the-agent-loop-react-plan-and-execute-reflection) - Practical walkthrough of the base loop and common variants.
536
+ - 📝 **Blog** [How to Build an Agent](https://ampcode.com/how-to-build-an-agent) - Thorsten Ball's demystification of the inner agent loop: a model, a loop, and enough tokens.
537
+ - 📝 **Blog** [Agentic Coding Recommendations](https://lucumr.pocoo.org/2025/6/12/agentic-coding/) - Armin Ronacher's field notes on which practices hold up when agents do most of the work.
538
+ - 📝 **Blog** [Coding Agents 101: The Art of Actually Getting Things Done](https://devin.ai/agents101) - Practical delegation guidance from the Devin team on scoping tasks agents can actually finish.
539
+ - 📝 **Blog** [How Anthropic teams use Claude Code](https://claude.com/blog/how-anthropic-teams-use-claude-code) - Cross-team field report of real recurring agent workflows in engineering, security, and data science.
540
+ - 📝 **Blog** [How Boris Uses Claude Code](https://howborisusesclaudecode.com/) - Unofficial but concrete compilation of Boris Cherny's autonomous setups: parallel worktrees, auto mode, `/loop`, `/schedule`, dynamic workflows, and `/goal` completion conditions.
541
+ - 📝 **Blog** [Agent of the Day: Copilot Agent PR Analysis](https://github.github.com/gh-aw/blog/2026-05-26-agent-of-the-day/) - Official walkthrough of a daily scheduled agentic workflow that ingests PR data, analyzes it, and publishes findings to a Discussion, a concrete recurring loop with trigger, intake, analysis, and output.
542
+
543
+ ## Templates And Patterns
544
+
545
+ Reusable patterns that contributors can turn into future examples, templates, or playbooks.
546
+
547
+ - 🧾 **Template** [Resource entry template](templates/resource-entry.md) - Format for adding a single resource with evidence quality and category fit.
548
+ - 🧾 **Template** [Loop pattern template](templates/loop-pattern.md) - Template for documenting an operational loop such as PR babysitting, CI repair, or feedback clustering.
549
+ - 🧾 **Template** [Loop contract schema](schemas/loop-contract.schema.json) - Machine-readable schema for portable loop specs.
550
+ - 🧾 **Template** [Loop contract preview script](scripts/preview_loop_contract.py) - Dependency-free demo that validates and renders a loop contract JSON file.
551
+ - 🧾 **Template** [Translation guide](TRANSLATIONS.md) - How to add or maintain a language translation without drifting from the canonical English list.
552
+ - 🧾 **Template** [Pattern library index](patterns/README.md) - Practical loop patterns with triggers, state, verification gates, budgets, and escalation paths.
553
+
554
+ Additional loop patterns worth documenting include PR babysitting, CI repair, feedback clustering, deploy verification, and docs drift collection.
555
+
556
+ ## Examples And Schema
557
+
558
+ Concrete examples make the loop contract easier to adapt to real repositories.
559
+
560
+ - 🔁 **Pattern** [Example loop specs](examples/README.md) - Human-readable walkthroughs for PR babysitting, CI repair, and docs drift collection.
561
+ - 🧾 **Template** [Loop contract library](examples/README.md#contract-library) - Schema-validated loop contracts for every pattern-library loop, from PR babysitting to model routing.
562
+ - 🧾 **Template** [Runnable test-repair loop](examples/runnable/test-repair-loop.sh) - Dependency-light reference loop script with a verification gate, retry budget, durable progress log, repeat-failure detection, and escalation exit.
563
+ - 🧾 **Template** [Runnable loop guide](examples/runnable/README.md) - Maps the script line by line to the Loop Contract and shows how to drive it with Claude Code, Codex CLI, or any agent CLI.
564
+
565
+ Preview an example locally:
566
+
567
+ ```sh
568
+ python3 scripts/preview_loop_contract.py examples/pr-babysitter-loop.json
569
+ ```
570
+
571
+ ## Community Gallery
572
+
573
+ The gallery is for real-world or realistic loop examples contributed by the community.
574
+
575
+ **Running a real loop?** Share it, real or anonymized, in the patterns discussion linked under Roadmap And Discussion below. Use the [minimum useful case study](gallery/README.md#minimum-useful-case-study) and [anonymization](gallery/README.md#safe-anonymization-checklist) checklists so others can learn from it safely.
576
+
577
+ - 🧾 **Template** [Loop gallery guide](gallery/README.md) - Quality bar for contributed loop examples with receipts and lessons learned.
578
+ - 🧾 **Template** [Loop gallery template](gallery/template.md) - Markdown template for sharing a loop's trigger, intake, state, verification, escalation, and safety notes.
579
+ - 🔁 **Pattern** [PR babysitter reference loop](gallery/pr-babysitter-reference.md) - Reference gallery entry for keeping a pull request moving.
580
+ - 🔁 **Pattern** [CI repair reference loop](gallery/ci-repair-reference.md) - Reference gallery entry for turning failing CI into a verified patch or escalation.
581
+ - 🔁 **Pattern** [Docs drift reference loop](gallery/docs-drift-reference.md) - Reference gallery entry for recurring docs/code consistency checks.
582
+
583
+ ## Discovery And Distribution
584
+
585
+ This repository includes a lightweight GitHub Pages landing page for search and social previews:
586
+
587
+ - 🧾 **Template** [Landing page](https://chaoyue0307.github.io/awesome-loop-engineering/) - SEO-friendly entry point for the repository.
588
+ - 🧭 **List** [Hugging Face dataset mirror](https://huggingface.co/datasets/cy0307/awesome-loop-engineering) - Synced dataset repo with the full project plus generated `data/resources.csv` and `data/resources.jsonl` resource sheets.
589
+ - 🧾 **Template** [Landing page source](docs/index.html) - Source for the static landing page.
590
+ - 🧾 **Template** [Sitemap](docs/sitemap.xml) - Crawl hints for the landing page and core repository pages.
591
+ - 🧾 **Template** [Robots file](docs/robots.txt) - Allows indexing and points crawlers to the sitemap.
592
+
593
+ For launch copy and backlink strategy, use the [distribution checklist](meta/DISTRIBUTION.md).
594
+
595
+ ## Roadmap And Discussion
596
+
597
+ - 🧾 **Template** [Roadmap](ROADMAP.md) - Near-term work, pattern priorities, gallery goals, and open questions.
598
+ - 🧾 **Template** [Launch article](posts/launch.md) - Shareable explanation of the concept and repository.
599
+ - 🧾 **Template** [Discussion guide](meta/DISCUSSIONS.md) - Suggested discussion categories, starter prompts, and moderation standard.
600
+ - 🔁 **Pattern** [Show your Loop Engineering patterns](https://github.com/ChaoYue0307/awesome-loop-engineering/discussions/2) - Community discussion for real or anonymized loop examples.
601
+
602
+ ## Pattern Library
603
+
604
+ Practical loop patterns translate the abstract contract into runnable operating models. Each pattern documents the trigger, discover/intake step, agents, workspace, state, verification gates, retry budget, escalation path, and loop instruction.
605
+
606
+ - 🔁 **Pattern** [PR babysitter](patterns/pr-babysitter.md) - Repeatedly checks review comments, CI, merge conflicts, stale threads, and readiness to merge.
607
+ - 🔁 **Pattern** [CI repair loop](patterns/ci-repair-loop.md) - Reproduces failing checks, patches narrowly, reruns evidence, and escalates when failures are outside scope.
608
+ - 🔁 **Pattern** [Docs drift collector](patterns/docs-drift-collector.md) - Finds mismatches between docs and code, proposes small patches, and verifies examples.
609
+ - 🔁 **Pattern** [Deploy verifier](patterns/deploy-verifier.md) - Watches rollout signals, compares them with release expectations, and stops on anomalies.
610
+ - 🔁 **Pattern** [Feedback clusterer](patterns/feedback-clusterer.md) - Periodically groups GitHub, Linear, Slack, support, or social feedback into actionable themes.
611
+ - 🔁 **Pattern** [Dependency triage loop](patterns/dependency-triage-loop.md) - Classifies dependency updates, applies safe groups, verifies them, and escalates risky upgrades.
612
+ - 🔁 **Pattern** [Evaluation regression loop](patterns/evaluation-regression-loop.md) - Investigates degraded agent evals with baseline traces, targeted reruns, and repair proposals.
613
+ - 🔁 **Pattern** [Security review loop](patterns/security-review-loop.md) - Reviews sensitive diffs with evidence-backed findings, safe permissions, and human approval boundaries.
614
+ - 🔁 **Pattern** [Cost-control loop](patterns/cost-control-loop.md) - Monitors agent workflow spend, identifies waste, proposes scoped savings, and preserves quality gates.
615
+ - 🔁 **Pattern** [Bug hunting loop](patterns/bug-hunting-loop.md) - Discovers, reproduces, minimizes, and reports bugs with concrete evidence.
616
+ - 🔁 **Pattern** [Enterprise approval loop](patterns/enterprise-approval-loop.md) - Drives a permissioned change through required gates and approvers with a full audit trail.
617
+ - 🔁 **Pattern** [Incident response loop](patterns/incident-response-loop.md) - Triages an alert into an owned, evidence-backed incident with a postmortem seed.
618
+ - 🔁 **Pattern** [Data-quality loop](patterns/data-quality-loop.md) - Validates each dataset refresh against quality rules and quarantines bad versions.
619
+ - 🔁 **Pattern** [Release-note loop](patterns/release-note-loop.md) - Drafts release notes from merged commits, issues, and PRs with linked evidence.
620
+ - 🔁 **Pattern** [Model-routing loop](patterns/model-routing-loop.md) - Routes tasks across models on measured quality, latency, privacy, and cost.
621
+
622
+ ## Critiques, Risks, And Limitations
623
+
624
+ - ⚠️ **Critique** [Most Developers Do Not Need Agent Loops Yet](https://alphasignalai.substack.com/p/most-developers-do-not-need-agent) - Useful caution against adopting loops before the task, signal, and economics justify them.
625
+ - ⚠️ **Critique** [Engineering Agentic Systems for Reliability](https://pruningmypothos.com/systems/engineering-agentic-systems-for-reliability/) - Cautions that agentic systems fail at boundaries when permissions, verification, traceability, and escalation are weak.
626
+ - ⚠️ **Critique** [Self-Correcting Agents: Reflexion, CRITIC, and ReAct Loops Compared](https://callsphere.ai/blog/self-correcting-agents-reflexion-critic-react-loops-compared-2026) - Compares self-correction patterns and their cost/failure tradeoffs.
627
+ - ⚠️ **Critique** [How to Build an AI Agent Harness: A 2026 Complete Guide](https://atlan.com/know/how-to-build-ai-agent-harness/) - Broad guide with useful warnings on data readiness, permissions, context management, and evaluation.
628
+ - ⚠️ **Critique** [Harness Engineering vs Prompt Engineering vs Context Engineering Explained](https://medium.com/@visrow/harness-engineering-vs-prompt-engineering-vs-context-engineering-explained-0423b692c87d) - Adjacent framing that helps avoid confusing loop engineering with the surrounding harness discipline.
629
+
630
+ ## Adjacent Awesome Lists
631
+
632
+ - 🧭 **List** [Awesome Harness Engineering](https://github.com/ai-boost/awesome-harness-engineering) - Comprehensive list for the agent harness layer that Loop Engineering builds on.
633
+ - 🧭 **List** [Awesome Harness Engineering](https://github.com/walkinglabs/awesome-harness-engineering) - High-signal harness list with strong categories for context, guardrails, specs, evals, runtimes, and benchmarks.
634
+ - 🧭 **List** [Awesome Agent Harness](https://github.com/AutoJunjie/awesome-agent-harness) - Curated tools and resources for environments, constraints, and feedback around coding agents.
635
+ - 🧭 **List** [Awesome Context Engineering](https://github.com/Meirtz/Awesome-Context-Engineering) - Survey-style list for context engineering across LLMs and agents.
636
+ - 🧭 **List** [Awesome Prompt Engineering](https://github.com/promptslab/Awesome-Prompt-Engineering) - Classic adjacent list for prompt techniques and prompting resources.
637
+ - 🧭 **List** [Awesome LLM Agents](https://github.com/kaushikb11/awesome-llm-agents) - General list of LLM agent papers, frameworks, and applications.
638
+ - 🧭 **List** [Awesome AI Agents](https://github.com/e2b-dev/awesome-ai-agents) - Broad AI agent ecosystem map.
639
+ - 🧭 **List** [Awesome CLI Coding Agents](https://github.com/bradAGI/awesome-cli-coding-agents) - Directory of terminal-native coding agents, parallel runners, autonomous loops, and the harnesses that orchestrate them.
640
+ - 🧭 **List** [Awesome Self-Evolving Agents](https://github.com/XMUDeepLIT/Awesome-Self-Evolving-Agents) - Survey-style list of agents that improve themselves over repeated runs, an adjacent angle on long-running loops with memory and verification.
641
+ - 🧭 **List** [Awesome AI Agent Papers](https://github.com/VoltAgent/awesome-ai-agent-papers) - Curated 2026 research collection across agent engineering, memory, evaluation, workflows, and autonomous systems, a paper-level feeder for loop-design foundations.
642
+
643
+ ## Contributing
644
+
645
+ Contributions are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.
646
+
647
+ This repository uses a strict [curation standard](meta/CURATION.md) to keep the list focused, verifiable, and useful for builders. Maintainers can use the [maintenance guide](meta/MAINTENANCE.md) for link checks, identity checks, and periodic refreshes.
648
+
649
+ For community expectations and support channels, see [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md), [SUPPORT.md](SUPPORT.md), and [SECURITY.md](SECURITY.md).
650
+
651
+ Fast path for adding a resource:
652
+
653
+ - Check that it is about AI/coding-agent Loop Engineering or a direct foundation for it.
654
+ - Search the README to avoid duplicates.
655
+ - Pick the most specific category.
656
+ - Add one entry using this format:
657
+
658
+ ```md
659
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
660
+ ```
661
+
662
+ - Open a pull request and explain the category fit, source type, and why builders should care.
663
+
664
+ Fast path for contributing a loop pattern: start from the loop pattern template or loop contract schema, include trigger, discover/intake, delegation, workspace, context, verification, durable state, budget, escalation, and exit, then open a pattern suggestion issue if you want feedback before writing the full pattern.
665
+
666
+ Good submissions should answer three questions:
667
+
668
+ 1. Is this about the new AI/coding-agent meaning of Loop Engineering or a direct foundation for it?
669
+ 2. Does it help someone design, run, verify, evaluate, or critique recurring agent systems that coordinate prompting, context, harnesses, verification, and state?
670
+ 3. Is the source stable, public, and specific enough to be useful?
671
+
672
+ ## Citation
673
+
674
+ If this repository is useful in your work, please cite it with:
675
+
676
+ ```bibtex
677
+ @misc{chaoyue2026awesome_loop_engineering,
678
+ author = {He, Chaoyue},
679
+ title = {Awesome Loop Engineering},
680
+ year = {2026},
681
+ howpublished = {\url{https://github.com/ChaoYue0307/awesome-loop-engineering}},
682
+ note = {Curated resources for Loop Engineering}
683
+ }
684
+ ```
685
+
686
+ **Reusable blurb** (for blog posts, talks, internal docs, or community posts):
687
+
688
+ > Loop Engineering is the practice of designing recurring AI-agent and coding-agent systems that discover work, delegate to agents, verify results, persist state, and retry or escalate on a cadence or until a goal is reached. *Awesome Loop Engineering* is a curated, implementation-focused resource collection for this practice: [github.com/ChaoYue0307/awesome-loop-engineering](https://github.com/ChaoYue0307/awesome-loop-engineering)
README.pt-BR.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">Ajudar a traduzir</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">Página inicial</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Espelho no Hugging Face</a>
21
+ </p>
22
+
23
+ > Uma lista curada e orientada à implementação para **Loop Engineering**: a camada acima de prompt, context e harness engineering para projetar sistemas recorrentes de agentes de IA.
24
+
25
+ Prompt engineering melhora o que você pede ao modelo. Context engineering melhora o que o modelo consegue ver. Harness engineering melhora ferramentas, permissões, sandboxes e verificações ao redor de uma execução de agente. **Loop Engineering fica acima das três**: projeta sistemas que acionam agentes, supervisionam, verificam resultados, persistem estado e executam novamente.
26
+
27
+ Um loop descobre trabalho, delega para um ou mais agentes, verifica o resultado, registra estado, decide a próxima ação e executa novamente em uma cadência ou até atingir um objetivo verificável.
28
+
29
+ Este repositório trata do novo significado de Loop Engineering no contexto de AI agents e coding agents. Ele não trata de event loops de software, teoria de controle, growth loops, automação genérica ou feedback loops não relacionados a IA.
30
+
31
+ Além da lista, este repositório inclui 15 patterns de loop, um loop contract validado por schema para cada pattern, 6 templates de loop executáveis, uma galeria comunitária e 8 idiomas.
32
+
33
+ ## Modelo Mental
34
+
35
+ - Prompt engineering pergunta: o que devo dizer ao modelo?
36
+ - Context engineering pergunta: que estado e conhecimento o modelo deve ver?
37
+ - Harness engineering pergunta: quais ferramentas, permissões, testes, sandboxes e feedback devem cercar o agente?
38
+ - Loop engineering pergunta: que sistema recorrente deve descobrir trabalho, delegar para agentes, verificar resultados, persistir estado, decidir próximas ações e rodar de novo?
39
+
40
+ Prompt, context e harness engineering melhoram uma execução. Loop Engineering torna o trabalho de agentes repetível, observável e governável ao longo do tempo.
41
+
42
+ ## Loop Contract
43
+
44
+ Um loop útil normalmente precisa deixar estes elementos visíveis:
45
+
46
+ | Parte | Pergunta de design | Artefato comum |
47
+ | ----------------- | ------------------------------------------ | ---------------------------------------------------------- |
48
+ | Objective | O que o loop deve otimizar? | Goal, issue, PRD, runbook |
49
+ | Trigger | Quando o loop roda? | Schedule, webhook, `/loop`, `/goal`, automation |
50
+ | Discover / Intake | Como o loop encontra trabalho? | GitHub query, Linear filter, CI failure, feedback stream |
51
+ | Workspace | Onde o agente pode agir com segurança? | Worktree, sandbox, branch, container |
52
+ | Context | Que conhecimento durável deve carregar? | `AGENTS.md`, `CLAUDE.md`, `SKILL.md`, docs |
53
+ | Delegation | Qual agente faz qual parte? | Explorer, implementer, reviewer, judge |
54
+ | Verification | O que decide sucesso ou falha? | Tests, typecheck, lint, evals, trace graders |
55
+ | State | O que sobrevive para a próxima execução? | Progress file, checkpoint, trace, issue comment |
56
+ | Budget | Quando deve parar de gastar? | Max turns, max retries, token budget, time box |
57
+ | Escalation | Quando uma pessoa assume? | PR, issue, Slack alert, triage inbox |
58
+ | Exit | Como o loop sabe que terminou? | Acceptance criteria, passing checks, no work found |
59
+
60
+ ## Modelo de Maturidade
61
+
62
+ | Nível | Nome | Descrição |
63
+ | ----- | -------------------------- | ---------------------------------------------------------------------------------------- |
64
+ | 0 | Manual prompting | Uma pessoa lê o estado e escreve o próximo prompt. |
65
+ | 1 | Scripted retry | Um script devolve erros ao agente. |
66
+ | 2 | Scheduled loop | O agente roda em uma cadência e reporta resultados. |
67
+ | 3 | Stateful loop | O progresso sobrevive por arquivos, issues, checkpoints ou traces. |
68
+ | 4 | Self-verifying loop | Checks determinísticos ou evaluator agents bloqueiam conclusões erradas. |
69
+ | 5 | Multi-agent loop | Agentes especializados dividem discovery, implementation, review e judgment. |
70
+ | 6 | Production-supervised loop | Observabilidade, budgets, approvals, rollback e escalonamento humano são centrais. |
71
+
72
+ ## Primeiras Leituras
73
+
74
+ A lista completa de recursos fica no README canônico em inglês: [README.md](README.md).
75
+
76
+ Leituras recomendadas:
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Define a mudança de prompting manual para sistemas que promptam, verificam e continuam.
79
+ - [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - Runbook prático para plan-edit-test-observe-repair-document-repeat.
80
+ - [Run prompts on a schedule](https://code.claude.com/docs/en/scheduled-tasks) - Mecânica oficial para `/loop`, scheduled tasks e prompts recorrentes.
81
+ - [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) - Patterns componíveis para workflows e agentes.
82
+
83
+ ## Contribuir
84
+
85
+ Contribuições são bem-vindas. Leia [CONTRIBUTING.md](CONTRIBUTING.md) antes de abrir um pull request.
86
+
87
+ Fluxo rápido:
88
+
89
+ 1. Confirme que o recurso trata de Loop Engineering para AI/coding agents ou de uma base direta para isso.
90
+ 1. Pesquise no README para evitar duplicatas.
91
+ 1. Escolha a categoria mais específica.
92
+ 1. Adicione uma entrada neste formato:
93
+
94
+ ```md
95
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
96
+ ```
97
+
98
+ 1. Explique no PR a relevância, a categoria, o tipo de recurso e por que ele ajuda builders.
99
+
100
+ ## Traduções
101
+
102
+ Para manter ou adicionar um idioma, leia [TRANSLATIONS.md](TRANSLATIONS.md). As traduções devem preservar o escopo estreito: não incluir event loops, growth loops ou automação genérica.
README.zh-CN.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ <!-- last-synced: 2026-06-19 -->
4
+
5
+ <p align="center">
6
+ <img src="assets/awesome-loop-engineering-cover.png" alt="Awesome Loop Engineering cover" width="100%">
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="README.md">English</a> |
11
+ <a href="README.zh-CN.md">中文</a> |
12
+ <a href="README.es.md">Español</a> |
13
+ <a href="README.fr.md">Français</a> |
14
+ <a href="README.de.md">Deutsch</a> |
15
+ <a href="README.ja.md">日本語</a> |
16
+ <a href="README.ko.md">한국어</a> |
17
+ <a href="README.pt-BR.md">Português</a> |
18
+ <a href="TRANSLATIONS.md">帮助翻译</a> |
19
+ <a href="https://chaoyue0307.github.io/awesome-loop-engineering/">落地页</a> |
20
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging Face 镜像</a>
21
+ </p>
22
+
23
+ > 面向 **Loop Engineering** 的精选资源列表:它位于 prompt、context 和 harness engineering 之上,关注如何设计可重复运行的 AI-agent 系统。
24
+
25
+ Prompt engineering 改进你对模型说什么。Context engineering 改进模型能看到什么。Harness engineering 改进单次 agent 运行周围的工具、权限、沙箱和检查。**Loop Engineering 位于三者之上**:人不再逐轮手动提示 agent,而是设计一个循环系统,让它负责提示、监督、验证、更新状态并再次触发 agents。
26
+
27
+ 一个 loop 会发现工作、分派给一个或多个 agents、检查结果、记录状态、决定下一步,并按照节奏或直到满足可验证目标为止持续运行。
28
+
29
+ 本仓库不收录软件事件循环、控制论、增长循环、通用 workflow automation 或非 AI feedback loop。
30
+
31
+ 除资源列表外,本仓库还提供 15 个 loop 模式、为每个模式配套经 schema 校验的 loop contract、6 个可运行的 loop 模板、社区 gallery,以及 8 个语言入口。
32
+
33
+ ## 一句话定位
34
+
35
+ - Prompt engineering 关注:我应该对模型说什么?
36
+ - Context engineering 关注:模型应该看到什么状态和知识?
37
+ - Harness engineering 关注:agent 周围应该有什么工具、权限、测试、沙箱和反馈?
38
+ - Loop engineering 关注:当人不在内循环里时,什么系统负责发现工作、分派给 agents、验证结果、持久化状态、决定下一步并重新运行?
39
+
40
+ Prompt、context 和 harness engineering 让单次 agent 运行更好。Loop Engineering 让 agent 工作能跨时间重复、观察和治理。
41
+
42
+ ## Loop Contract
43
+
44
+ 一个有效的 loop 通常需要这些部分:
45
+
46
+ | 部分 | 设计问题 | 常见产物 |
47
+ | ----------------- | -------------- | ----------------------------------------------------- |
48
+ | Objective | loop 要优化什么? | goal、issue、PRD、runbook |
49
+ | Trigger | 什么时候运行? | schedule、webhook、`/loop`、`/goal`、automation |
50
+ | Discover / Intake | 如何发现工作? | GitHub query、Linear filter、CI failure、feedback stream |
51
+ | Workspace | agent 在哪里安全行动? | worktree、sandbox、branch、container |
52
+ | Context | 哪些知识应该长期存在? | `AGENTS.md`、`CLAUDE.md`、`SKILL.md`、docs |
53
+ | Delegation | 哪个 agent 负责什么? | explorer、implementer、reviewer、judge |
54
+ | Verification | 什么机制判断通过或失败? | tests、typecheck、lint、evals、trace graders |
55
+ | State | 下一轮需要保留什么? | progress file、checkpoint、trace、issue comment |
56
+ | Budget | 何时停止消耗? | max turns、max retries、token budget、time box |
57
+ | Escalation | 何时交给人? | PR、issue、Slack alert、triage inbox |
58
+ | Exit | loop 如何知道完成? | acceptance criteria、passing checks、no work found |
59
+
60
+ ## 成熟度模型
61
+
62
+ | 等级 | 名称 | 描述 |
63
+ | --- | -------------------------- | --------------------------------------------------------------- |
64
+ | 0 | Manual prompting | 人读取状态并写下一条 prompt。 |
65
+ | 1 | Scripted retry | 脚本把错误反馈给 agent。 |
66
+ | 2 | Scheduled loop | agent 按固定节奏运行并报告结果。 |
67
+ | 3 | Stateful loop | 通过文件、issue、checkpoint 或 trace 保留进度。 |
68
+ | 4 | Self-verifying loop | 用确定性检查或 evaluator agent 阻止错误完成。 |
69
+ | 5 | Multi-agent loop | discovery、implementation、review、judgment 由不同 agents 分工。 |
70
+ | 6 | Production-supervised loop | observability、budget、approval、rollback、human escalation 都是一等公民。 |
71
+
72
+ ## 必读入口
73
+
74
+ 完整资源列表以英文 README 为准:[README.md](README.md)。
75
+
76
+ 建议从这些直接讨论 Loop Engineering 的资料开始:
77
+
78
+ - [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Addy Osmani 对 Loop Engineering 的核心定义和 Codex / Claude Code primitives 对照。
79
+ - [Loop Engineering](https://addyo.substack.com/p/loop-engineering) - 同文 Substack 版本,包含 Peter Steinberger 和 Boris Cherny 的相关引用。
80
+ - [Loop Engineering](https://cobusgreyling.substack.com/p/loop-engineering) - 简明解释从 prompt agents 到 design loops 的转变。
81
+ - [Loop Engineering: The Guide for AI Agents](https://lushbinary.com/blog/loop-engineering-ai-coding-agents-guide/) - 面向实践的 guide,拆解 automations、worktrees、skills、connectors、subagents 和 state。
82
+ - [Codex Loops: What Boris Cherny Gets Right About Managing Agent Work](https://www.developersdigest.tech/blog/codex-loops-boris-cherny-agent-routines) - 关于 PR babysitting、CI repair、deploy verification 和 feedback clustering 的 loop 思路。
83
+
84
+ ## 如何贡献内容
85
+
86
+ 欢迎提交 PR。请先阅读 [CONTRIBUTING.md](CONTRIBUTING.md)。
87
+
88
+ 最快流程:
89
+
90
+ 1. 确认资源属于 AI/coding-agent 语境的 Loop Engineering,或是它的直接基础。
91
+ 1. 在 README 中搜索,避免重复。
92
+ 1. 选择最具体的分类。
93
+ 1. 按这个格式添加一行:
94
+
95
+ ```md
96
+ - 📄 **Paper** [Title](https://example.com) - One sentence explaining the resource's contribution to Loop Engineering.
97
+ ```
98
+
99
+ 1. 在 PR 中说明:为什么相关、属于哪个分类、资源类型是什么、为什么对 builders 有用。
100
+
101
+ ## 翻译
102
+
103
+ 如果你想维护新的语言版本,请阅读 [TRANSLATIONS.md](TRANSLATIONS.md)。翻译应该保留概念边界:不要把 event loop、growth loop 或普通 automation 翻译进来。
104
+
105
+ ## 许可证
106
+
107
+ 本仓库中的原创整理文字、注释、模板、模式文档和仓库元数据使用 [CC0-1.0](LICENSE) 发布。
108
+
109
+ 本仓库链接到的第三方论文、博客、文档、工具、benchmark、图片和其他外部资源仍遵循其原作者或发布方各自的许可证和使用条款。本仓库只是索引和链接它们,并不重新授权这些外部内容。
ROADMAP.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Roadmap
2
+
3
+ This roadmap keeps Awesome Loop Engineering focused on useful, verifiable work for an emerging practice.
4
+
5
+ ## Near Term
6
+
7
+ - Collect more direct Loop Engineering sources as the term stabilizes.
8
+ - Add real or anonymized gallery entries from practitioners running recurring agent loops.
9
+ - Grow the runnable loop directory beyond the test-repair reference loop, including scheduled-trigger variants per runtime.
10
+ - Add more translations for the introduction, mental model, Loop Contract, and contribution guide.
11
+ - Continue replacing weak or unstable links with primary sources, official docs, papers, and implementation-heavy write-ups.
12
+
13
+ ## Pattern Library
14
+
15
+ Completed reference patterns now cover PR babysitting, CI repair, docs drift, deploy verification, feedback clustering, dependency triage, evaluation regression, security review, cost-control, and bug hunting. Every pattern now ships a schema-validated loop contract in `examples/`.
16
+
17
+ Next pattern-library work should focus on variants backed by operational evidence:
18
+
19
+ - enterprise approval loops for permissioned agents;
20
+ - incident response loops with pager handoff and postmortem evidence;
21
+ - data-quality loops for repeated dataset or knowledge-base refresh;
22
+ - release-note loops that connect commits, issues, docs, and changelogs;
23
+ - model-routing loops that balance quality, latency, privacy, and cost.
24
+
25
+ ## Gallery
26
+
27
+ The gallery should grow from reference examples into public or anonymized case studies. Good entries should include:
28
+
29
+ - the runtime or agent tool used;
30
+ - trigger and intake source;
31
+ - verification gates;
32
+ - durable state artifact;
33
+ - budget and escalation rules;
34
+ - receipts or anonymized evidence;
35
+ - lessons learned after real use.
36
+
37
+ ## Quality And Governance
38
+
39
+ - Keep CI dependency-light and easy for contributors to run locally.
40
+ - Keep all resource annotations tied to recurring agent systems, not generic AI-agent interest.
41
+ - Keep public claims conservative: this repository is an early curated field guide, not a finished standard.
42
+ - Preserve clean owner-only commit identity for `main`.
43
+
44
+ ## Open Questions
45
+
46
+ - Which loop primitives become common across Codex, Claude Code, GitHub Agentic Workflows, and custom runtimes?
47
+ - What is the right schema shape for portable loop contracts?
48
+ - Which verification gates are strong enough for unattended or semi-attended loops?
49
+ - How should maintainers evaluate submitted real-world loop examples without exposing private data?
SECURITY.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Security Policy
2
+
3
+ This repository is a curated documentation and resource list. It does not ship a production service, package, or runtime. Security concerns can still appear in examples, scripts, links, or contribution material.
4
+
5
+ ## Please Report
6
+
7
+ - A linked resource that appears malicious or impersonates another project.
8
+ - A script or example that could cause unsafe actions if copied directly.
9
+ - Accidentally committed credentials, tokens, private URLs, or sensitive data.
10
+ - Guidance that could encourage unsafe production autonomy without approvals or escalation.
11
+
12
+ ## How To Report
13
+
14
+ Open a private security advisory if GitHub offers that option for this repository. If not, open an issue with sensitive details removed and ask for a maintainer response.
15
+
16
+ Do not post secrets, private customer data, exploit details, or internal URLs in public issues or pull requests.
17
+
18
+ ## Security Review Standard
19
+
20
+ Loop Engineering examples should be conservative:
21
+
22
+ - sensitive actions require human approval;
23
+ - production actions should be read-only by default unless explicitly scoped;
24
+ - credentials and secrets must never be included in examples;
25
+ - loops should have retry budgets, exit conditions, and escalation paths;
26
+ - verification should rely on concrete evidence, not only model self-assessment.
SUPPORT.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Support
2
+
3
+ This repository is maintained as a public field guide and curated resource list for Loop Engineering.
4
+
5
+ ## Best Channels
6
+
7
+ - **Resource suggestions**: use the resource suggestion issue template.
8
+ - **Loop patterns**: use the loop pattern suggestion issue template or the pinned community pattern issue.
9
+ - **Corrections**: open a pull request when the fix is clear, or open an issue if it needs discussion.
10
+ - **Translations**: use the translation proposal issue template and follow `TRANSLATIONS.md`.
11
+ - **Security concerns**: follow `SECURITY.md`.
12
+
13
+ ## What Maintainers Can Help With
14
+
15
+ - deciding whether a resource fits the narrow AI/coding-agent meaning of Loop Engineering;
16
+ - improving annotations, categories, and source quality;
17
+ - reviewing loop pattern contracts for trigger, intake, verification, state, budget, escalation, and exit;
18
+ - fixing broken links or replacing unstable sources.
19
+
20
+ ## What Is Out Of Scope
21
+
22
+ - product support for third-party agent tools;
23
+ - private consulting on proprietary loops;
24
+ - generic prompt engineering questions with no loop, state, verification, or recurring system angle;
25
+ - unrelated software event loops, growth loops, control theory loops, or generic automation.
TAXONOMY.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Loop Engineering Taxonomy
2
+
3
+ This taxonomy gives contributors a shared vocabulary for classifying AI-agent loops.
4
+
5
+ ## By Trigger
6
+
7
+ - **Scheduled loop**: runs on a cadence such as hourly, daily, weekly, or during a rollout window.
8
+ - **Event-triggered loop**: starts from a webhook, failed check, new comment, issue label, release event, or alert.
9
+ - **Goal-driven loop**: continues until a verifiable goal is met, such as passing tests or resolving all blocking comments.
10
+ - **Manual bootstrap loop**: starts from a human command, then follows a repeatable contract with state, verification, and exit rules.
11
+
12
+ ## By Work Intake
13
+
14
+ - **Queue loop**: consumes work from issues, PRs, tickets, alerts, feedback streams, or triage inboxes.
15
+ - **Scan loop**: periodically searches a repository, dashboard, logs, docs, or benchmark output for new work.
16
+ - **Reactive loop**: responds to a specific failure signal such as CI, eval regression, deploy anomaly, or user report.
17
+
18
+ ## By Verification
19
+
20
+ - **Deterministic loop**: uses tests, typechecks, lint, schemas, dashboards, or threshold checks as the main gate.
21
+ - **Evaluator loop**: uses a second model, rubric, reviewer, or judge agent to evaluate output.
22
+ - **Human-supervised loop**: requires human approval before sensitive actions or before completion is accepted.
23
+ - **Receipt-based loop**: records evidence such as commands, logs, trace IDs, screenshots, PR links, or issue comments.
24
+
25
+ ## By State Model
26
+
27
+ - **Stateless retry loop**: feeds immediate failure evidence back into one session. Useful but fragile.
28
+ - **File-backed loop**: stores progress in `PROGRESS.md`, task files, runbooks, or generated reports.
29
+ - **Issue-backed loop**: stores progress in GitHub, Linear, Jira, Slack, or another system of record.
30
+ - **Checkpointed loop**: persists structured state in a database, workflow engine, trace store, or event log.
31
+
32
+ ## By Agent Topology
33
+
34
+ - **Single-agent loop**: one agent acts, with deterministic checks or human review.
35
+ - **Maker-checker loop**: one agent changes the artifact and another verifies it.
36
+ - **Manager-worker loop**: an orchestrator decomposes work and assigns specialized agents.
37
+ - **Adversarial loop**: reviewer, critic, or security agents try to falsify the maker's output.
38
+
39
+ ## By Operating Domain
40
+
41
+ - **Repository loop**: PR babysitting, CI repair, bug hunting, docs drift, dependency triage.
42
+ - **Release loop**: deploy verification, canary monitoring, rollback recommendation, incident handoff.
43
+ - **Feedback loop**: user feedback clustering, issue deduplication, community triage, roadmap signal collection.
44
+ - **Evaluation loop**: recurring benchmark runs, trace review, regression detection, prompt or harness hill-climbing.
45
+
46
+ ## Maturity Path
47
+
48
+ Most teams should move in this order:
49
+
50
+ 1. Manual bootstrap loop with explicit state.
51
+ 1. Scheduled or event-triggered loop with deterministic gates.
52
+ 1. Maker-checker loop with durable receipts.
53
+ 1. Multi-agent or workflow-backed loop.
54
+ 1. Production-supervised loop with observability, approvals, budgets, and rollback rules.
55
+
56
+ Higher maturity is not automatically better. The right loop is the simplest loop that can safely discover work, delegate, verify, persist state, decide the next action, and stop.
TRANSLATIONS.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translations
2
+
3
+ The canonical list is [README.md](README.md). Translations should help more readers understand Loop Engineering without drifting from the repository's scope.
4
+
5
+ ## Available
6
+
7
+ - [English](README.md)
8
+ - [中文](README.zh-CN.md)
9
+ - [Español](README.es.md)
10
+ - [Français](README.fr.md)
11
+ - [Deutsch](README.de.md)
12
+ - [日本語](README.ja.md)
13
+ - [한국어](README.ko.md)
14
+ - [Português](README.pt-BR.md)
15
+
16
+ ## Wanted
17
+
18
+ Maintainers and contributors are welcome for:
19
+
20
+ - Русский
21
+ - Italiano
22
+ - العربية
23
+ - हिन्दी
24
+
25
+ ## Translation Rules
26
+
27
+ - Preserve the narrow definition: AI/coding-agent Loop Engineering as the layer above prompt, context, and harness engineering.
28
+ - Do not translate unrelated meanings into scope: event loops, control theory, growth loops, generic automation, or non-AI feedback loops.
29
+ - Keep the English README as the source of truth for the full resource list.
30
+ - Prefer translating the introduction, mental model, Loop Contract, maturity model, and contribution instructions first.
31
+ - If you translate the full resource list, keep URLs unchanged and translate only annotations.
32
+ - Add yourself as a translation maintainer in your PR if you can help keep the file current.
33
+ - Every translation carries a `<!-- last-synced: YYYY-MM-DD -->` marker near the top. When you review a translation against the current English README, bump the date. CI fails when a marker is missing or older than 180 days.
34
+
35
+ ## Suggested File Names
36
+
37
+ - `README.de.md`
38
+ - `README.es.md`
39
+ - `README.fr.md`
40
+ - `README.ja.md`
41
+ - `README.ko.md`
42
+ - `README.pt-BR.md`
43
+ - `README.ru.md`
44
+
45
+ ## Translation PR Checklist
46
+
47
+ - [ ] The translation links back to the canonical English README.
48
+ - [ ] The language switcher has been updated in `README.md`.
49
+ - [ ] The `<!-- last-synced: YYYY-MM-DD -->` marker is present and current.
50
+ - [ ] The translation preserves the scope boundary.
51
+ - [ ] Resource URLs are unchanged.
52
+ - [ ] Technical terms are translated consistently or left in English where that is clearer.
assets/README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Assets
2
+
3
+ This directory contains visual assets used by the repository README, GitHub Pages landing page, and social previews.
4
+
5
+ - `awesome-loop-engineering-cover.png` - Wide README and repo-card cover image. It visualizes the Prompt, Context, Harness, and Loop stack.
6
+ - `awesome-loop-engineering-logo.svg` - Logo mark for the README, Hugging Face dataset card, and GitHub Pages header.
7
+ - `loop-engineering-stack.svg` - Lightweight stack diagram showing how Loop Engineering sits above prompt, context, and harness engineering.
8
+ - `loop-contract-cards.svg` - Visual card grid for the Loop Contract: objective, trigger, intake, workspace, context, delegation, verification, state, budget, escalation, and exit.
9
+ - `loop-lifecycle.svg` - One pass of a recurring loop: Intake, Delegate, Act, Verify, Persist, and Decide, where Decide retries, escalates, or exits.
10
+ - `social-preview.png` - 1280x640 ChatGPT Image-based card for GitHub social preview (Settings, Social preview) and link sharing.
11
+
12
+ Please keep assets lightweight and directly useful for repository presentation. Avoid adding screenshots or large generated files unless they improve the README or documentation experience.
assets/awesome-loop-engineering-cover.png ADDED

Git LFS Details

  • SHA256: acd8e211f411d336d27eacc80ed358effc3360e1dcf16e84c1b354778ec528b0
  • Pointer size: 131 Bytes
  • Size of remote file: 866 kB
assets/awesome-loop-engineering-logo.svg ADDED
assets/loop-contract-cards.svg ADDED
assets/loop-engineering-stack.svg ADDED
assets/loop-lifecycle.svg ADDED
assets/social-preview.png ADDED

Git LFS Details

  • SHA256: ed55ca90cabd4171e29966d37fd960a85bacdd547833954b6732bed4b200dea5
  • Pointer size: 131 Bytes
  • Size of remote file: 716 kB
data/README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset Exports
2
+
3
+ This directory contains generated tabular exports of the canonical English `README.md` resource list.
4
+
5
+ - `resources.csv` - Primary sheet for the Hugging Face Dataset Viewer.
6
+ - `resources.jsonl` - Equivalent JSON Lines export for scripts and data tooling.
7
+
8
+ Regenerate both files after changing resource entries:
9
+
10
+ ```sh
11
+ python3 scripts/export_resource_dataset.py
12
+ ```
13
+
14
+ The export is deterministic and includes one row for every README bullet that follows the repository's curated entry format: marker, resource type, title, link, annotation, section, and source line.
data/resources.csv ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ row_id,section,section_slug,resource_type,marker,title,url,url_kind,domain,annotation,source_readme,source_line,source_url
2
+ ale-0001,Concept Guides,concept-guides,Template,🧾,Canonical Definition,DEFINITION.md,local_path,,"Short definition, positioning, minimal loop test, and citation note.",README.md,176,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L176
3
+ ale-0002,Concept Guides,concept-guides,Template,🧾,Loop Engineering Manifesto,MANIFESTO.md,local_path,,"Concise statement of the concept, commitments, non-goals, and success standard.",README.md,177,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L177
4
+ ale-0003,Concept Guides,concept-guides,Template,🧾,Loop Engineering Taxonomy,TAXONOMY.md,local_path,,"Classification by trigger, intake, verification, state model, topology, and operating domain.",README.md,178,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L178
5
+ ale-0004,Concept Guides,concept-guides,Critique,⚠️,Loop Engineering Anti-Patterns,ANTI-PATTERNS.md,local_path,,"Common failure modes such as prompt loops with no contract, infinite retries, model self-approval, hidden state, and unsafe autonomy.",README.md,179,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L179
6
+ ale-0005,Concept Guides,concept-guides,Template,🧾,Comparison Guide,COMPARISON.md,local_path,,"Distinguishes Loop Engineering from prompt engineering, context engineering, harness engineering, workflow automation, agent workflows, and evaluation loops.",README.md,180,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L180
7
+ ale-0006,Concept Guides,concept-guides,Template,🧾,Sourced Signals And Quotes,QUOTES.md,local_path,,Short sourced signals from linked public materials that anchor the emerging concept.,README.md,181,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L181
8
+ ale-0007,Concept Guides,concept-guides,Template,🧾,Outreach Kit,meta/OUTREACH.md,local_path,,"Conservative messages for inviting corrections, sources, and real-world loop patterns.",README.md,182,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L182
9
+ ale-0008,Start Here,start-here,Blog,📝,Loop Engineering,https://addyosmani.com/blog/loop-engineering/,external,addyosmani.com,"Addy Osmani's framing of loop engineering as the layer above manually prompting coding agents, with concrete primitives across Codex and Claude Code.",README.md,213,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L213
10
+ ale-0009,Start Here,start-here,Blog,📝,Loop Engineering,https://addyo.substack.com/p/loop-engineering,external,addyo.substack.com,Substack version of the same essay; useful for the original discussion trail and quotations from Peter Steinberger and Boris Cherny.,README.md,214,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L214
11
+ ale-0010,Start Here,start-here,Blog,📝,Loop Engineering,https://cobusgreyling.substack.com/p/loop-engineering,external,cobusgreyling.substack.com,"Concise explanation of the shift from prompting agents to designing loops that discover work, delegate, verify, persist, and continue.",README.md,215,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L215
12
+ ale-0011,Start Here,start-here,Blog,📝,Loop Engineering: The Guide for AI Agents,https://lushbinary.com/blog/loop-engineering-ai-coding-agents-guide/,external,lushbinary.com,"Practical guide that breaks the pattern into automations, worktrees, skills, connectors, subagents, and state.",README.md,216,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L216
13
+ ale-0012,Start Here,start-here,Pattern,🔁,Codex Loops: What Boris Cherny Gets Right About Managing Agent Work,https://www.developersdigest.tech/blog/codex-loops-boris-cherny-agent-routines,external,www.developersdigest.tech,"Engineering note on recurring agent loops for PR babysitting, CI repair, deploy verification, and feedback clustering.",README.md,217,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L217
14
+ ale-0013,Start Here,start-here,Blog,📝,I Now Just Write Loops To Prompt Claude Code: Claude Code Creator Boris Cherny,https://officechai.com/ai/i-now-just-write-loops-to-prompt-claude-code-claude-code-creator-boris-cherny/,external,officechai.com,"Coverage of Boris Cherny's ""my job is to write loops"" workflow.",README.md,218,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L218
15
+ ale-0014,Start Here,start-here,Blog,📝,My Lord! AI Programming Undergoes Another Major Shift,https://eu.36kr.com/en/p/3844224911346184,external,eu.36kr.com,"Broad coverage of the Boris Cherny and Peter Steinberger discussion, including the distinction between cold-start scripts and persistent agent loops.",README.md,219,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L219
16
+ ale-0015,Start Here,start-here,Blog,📝,Peter Steinberger on designing loops,https://x.com/steipete/status/2063697162748260627,external,x.com,"The June 2026 post - ""you shouldn't be prompting coding agents anymore, you should be designing loops that prompt your agents"" - that catalyzed the current discussion.",README.md,220,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L220
17
+ ale-0016,Start Here,start-here,Blog,📝,The Anthropic leader who built Claude Code ditched prompting - now he writes loops,https://thenewstack.io/loop-engineering/,external,thenewstack.io,The New Stack's report on Boris Cherny's shift from prompting to loop writing and what it changes about developer workflow.,README.md,221,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L221
18
+ ale-0017,Start Here,start-here,Blog,📝,Stop Prompting. Design the Loop.,https://www.pulumi.com/blog/stop-prompting-design-the-loop/,external,www.pulumi.com,"Practical breakdown of loop building blocks - automations, worktrees, skills, connectors, subagents - plus external memory and verification through oracles such as tests and builds.",README.md,222,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L222
19
+ ale-0018,Start Here,start-here,Blog,📝,Boris Cherny: five tips for running Opus autonomously for hours or days,https://x.com/bcherny/status/2063792263067754658,external,x.com,"The Claude Code creator's compact loop recipe: auto-mode permissions, dynamic workflows, `/goal` or `/loop`, the cloud runner, and end-to-end self-verification.",README.md,223,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L223
20
+ ale-0019,Core Loop Primitives,core-loop-primitives,Docs,📚,Automations - Codex app,https://developers.openai.com/codex/app/automations,external,developers.openai.com,"Codex background automations for recurring tasks, triage inboxes, skills, and worktree isolation.",README.md,291,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L291
21
+ ale-0020,Core Loop Primitives,core-loop-primitives,Docs,📚,Follow a goal - Codex use cases,https://developers.openai.com/codex/use-cases/follow-goals,external,developers.openai.com,"Official guidance for durable objectives with stopping conditions, validation commands, checkpoints, and progress logs.",README.md,292,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L292
22
+ ale-0021,Core Loop Primitives,core-loop-primitives,Docs,📚,Worktrees - Codex app,https://developers.openai.com/codex/app/worktrees,external,developers.openai.com,Codex worktree model for isolated parallel tasks and handoffs between local and background workspaces.,README.md,293,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L293
23
+ ale-0022,Core Loop Primitives,core-loop-primitives,Docs,📚,Prompting - Codex,https://developers.openai.com/codex/prompting,external,developers.openai.com,"Explains the Codex loop, threads, context, and `/goal` mode.",README.md,294,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L294
24
+ ale-0023,Core Loop Primitives,core-loop-primitives,Docs,📚,Customization - Codex,https://developers.openai.com/codex/concepts/customization,external,developers.openai.com,"Maps `AGENTS.md`, memories, skills, MCP, and subagents into a coherent customization stack.",README.md,295,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L295
25
+ ale-0024,Core Loop Primitives,core-loop-primitives,Docs,📚,Agent Skills - Codex,https://developers.openai.com/codex/skills,external,developers.openai.com,"Official skill format for reusable workflows, scripts, MCP dependencies, invocation policy, and plugin packaging.",README.md,296,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L296
26
+ ale-0025,Core Loop Primitives,core-loop-primitives,Docs,📚,Plugins - Codex,https://developers.openai.com/codex/plugins,external,developers.openai.com,"Bundles skills, app integrations, and MCP servers into reusable loop capabilities.",README.md,297,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L297
27
+ ale-0026,Core Loop Primitives,core-loop-primitives,Tool,🧰,dotskills,https://github.com/vincentkoc/dotskills,external,github.com,"A `.skills` registry of curated Codex and OpenClaw skills, framed as an ""ADE Loop"" (Agent Development Environment to registry to Skills Gym) where reusable skills are developed, shared, and evaluated across runs.",README.md,298,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L298
28
+ ale-0027,Core Loop Primitives,core-loop-primitives,Docs,📚,Slash commands in Codex CLI,https://developers.openai.com/codex/cli/slash-commands,external,developers.openai.com,"CLI commands for switching agent threads, browsing skills, inspecting MCP tools, and using subagent workflows.",README.md,299,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L299
29
+ ale-0028,Core Loop Primitives,core-loop-primitives,Pattern,🔁,Autonomous Loops,https://claudecodeguide.dev/docs/patterns/autonomous-loops,external,claudecodeguide.dev,"Claude Code pattern using task files, stop hooks, restart behavior, hard limits, and a kill switch.",README.md,300,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L300
30
+ ale-0029,Core Loop Primitives,core-loop-primitives,Docs,📚,Claude Code Glossary,https://code.claude.com/docs/en/glossary.md,external,code.claude.com,"Defines the agentic loop, hooks, subagents, skills, MCP, and related primitives in Claude Code terminology.",README.md,301,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L301
31
+ ale-0030,Core Loop Primitives,core-loop-primitives,Docs,📚,Keep Claude working toward a goal,https://code.claude.com/docs/en/goal,external,code.claude.com,`/goal` runs turn after turn until a completion condition is met by a verifier.,README.md,302,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L302
32
+ ale-0031,Core Loop Primitives,core-loop-primitives,Docs,📚,Run prompts on a schedule,https://code.claude.com/docs/en/scheduled-tasks,external,code.claude.com,"`/loop`, scheduled tasks, reminders, monitor tools, and session-scoped recurring prompts.",README.md,303,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L303
33
+ ale-0032,Core Loop Primitives,core-loop-primitives,Docs,📚,Automate work with routines,https://code.claude.com/docs/en/routines,external,code.claude.com,"Claude Code routines: persistent cloud automations triggered by schedules, API calls, or GitHub events, with connectors, scoped environments, and branch-push limits.",README.md,304,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L304
34
+ ale-0033,Core Loop Primitives,core-loop-primitives,Docs,📚,Desktop scheduled tasks,https://code.claude.com/docs/en/desktop-scheduled-tasks,external,code.claude.com,"Local recurring runs on your own machine, with the persistence, file-access, permission, worktree, and missed-run trade-offs that distinguish them from `/loop` and cloud routines.",README.md,305,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L305
35
+ ale-0034,Core Loop Primitives,core-loop-primitives,Docs,📚,Run parallel sessions with worktrees,https://code.claude.com/docs/en/worktrees,external,code.claude.com,Worktree isolation for parallel sessions and subagents so concurrent edits do not collide.,README.md,306,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L306
36
+ ale-0035,Core Loop Primitives,core-loop-primitives,Docs,📚,Automate actions with hooks,https://code.claude.com/docs/en/hooks-guide,external,code.claude.com,Claude Code hooks guide for deterministic lifecycle control around model actions.,README.md,307,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L307
37
+ ale-0036,Core Loop Primitives,core-loop-primitives,Docs,📚,Hooks reference,https://code.claude.com/docs/en/hooks.md,external,code.claude.com,"Event-level reference for session, turn, tool-call, and subagent hooks.",README.md,308,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L308
38
+ ale-0037,Core Loop Primitives,core-loop-primitives,Docs,📚,Common workflows - Claude Code,https://code.claude.com/docs/en/common-workflows,external,code.claude.com,"Practical workflows for worktrees, subagents, CI, batch processing, planning, and resuming prior work.",README.md,309,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L309
39
+ ale-0038,Core Loop Primitives,core-loop-primitives,Docs,📚,Manage multiple agents with agent view,https://code.claude.com/docs/en/agent-view.md,external,code.claude.com,"Dashboard for dispatching, monitoring, and attaching to background agent sessions.",README.md,310,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L310
40
+ ale-0039,Core Loop Primitives,core-loop-primitives,Docs,📚,Run agents in parallel,https://code.claude.com/docs/en/agents.md,external,code.claude.com,"Compares agent view, subagents, agent teams, worktrees, tasks, and workflows for parallel work.",README.md,311,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L311
41
+ ale-0040,Core Loop Primitives,core-loop-primitives,Docs,📚,Orchestrate subagents at scale with dynamic workflows,https://code.claude.com/docs/en/workflows,external,code.claude.com,Moves loop state and branching into workflow scripts so large tasks do not overload the conversation context.,README.md,312,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L312
42
+ ale-0041,Core Loop Primitives,core-loop-primitives,Docs,📚,Create plugins,https://code.claude.com/docs/en/plugins,external,code.claude.com,"Packaging model-invoked skills, agents, hooks, MCP servers, monitors, and settings as shareable loop components.",README.md,313,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L313
43
+ ale-0042,Core Loop Primitives,core-loop-primitives,Docs,📚,Model Context Protocol,https://modelcontextprotocol.io/docs/getting-started/intro,external,modelcontextprotocol.io,Standard protocol for exposing tools and data sources to agent loops.,README.md,314,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L314
44
+ ale-0043,Core Loop Primitives,core-loop-primitives,Docs,📚,Allowing GitHub Copilot CLI to work autonomously,https://docs.github.com/en/copilot/concepts/agents/copilot-cli/autopilot,external,docs.github.com,"Copilot CLI autopilot mode plus `/every` and `/after` scheduling, turning the CLI into an unattended loop that runs steps until a task is complete.",README.md,315,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L315
45
+ ale-0044,Official Runtime Guides,official-runtime-guides,Docs,📚,Run long horizon tasks with Codex,https://developers.openai.com/blog/run-long-horizon-tasks-with-codex,external,developers.openai.com,"OpenAI's runbook for plan-edit-test-observe-repair-document-repeat work, including specs, plans, status logs, and validation gates.",README.md,321,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L321
46
+ ale-0045,Official Runtime Guides,official-runtime-guides,Docs,📚,Best practices - Codex,https://developers.openai.com/codex/learn/best-practices,external,developers.openai.com,"Official best practices for context, `AGENTS.md`, MCP, skills, subagents, and automations.",README.md,322,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L322
47
+ ale-0046,Official Runtime Guides,official-runtime-guides,Docs,📚,Agents SDK,https://developers.openai.com/api/docs/guides/agents,external,developers.openai.com,"OpenAI guide for agent orchestration, tool execution, approvals, state, guardrails, and observability.",README.md,323,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L323
48
+ ale-0047,Official Runtime Guides,official-runtime-guides,Docs,📚,Agents - OpenAI Agents SDK,https://openai.github.io/openai-agents-python/agents/,external,openai.github.io,"SDK primitives for agents, tools, handoffs, guardrails, and runner-managed loops.",README.md,324,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L324
49
+ ale-0048,Official Runtime Guides,official-runtime-guides,Docs,📚,Running agents,https://developers.openai.com/api/docs/guides/agents/running-agents,external,developers.openai.com,"OpenAI guide to turns, state, approvals, sessions, and continuation in the SDK runtime loop.",README.md,325,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L325
50
+ ale-0049,Official Runtime Guides,official-runtime-guides,Docs,📚,Integrations and observability,https://developers.openai.com/api/docs/guides/agents/integrations-observability,external,developers.openai.com,OpenAI guide to MCP wiring and traces as the basis for debugging and evaluation loops.,README.md,326,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L326
51
+ ale-0050,Official Runtime Guides,official-runtime-guides,Docs,📚,Sandbox Agents,https://developers.openai.com/api/docs/guides/agents/sandboxes,external,developers.openai.com,Splits the harness control plane from the sandbox execution plane for long-running file and command work.,README.md,327,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L327
52
+ ale-0051,Official Runtime Guides,official-runtime-guides,Docs,📚,Guardrails and human review,https://developers.openai.com/api/docs/guides/agents/guardrails-approvals,external,developers.openai.com,Approval and validation boundaries for sensitive agent actions.,README.md,328,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L328
53
+ ale-0052,Official Runtime Guides,official-runtime-guides,Docs,📚,Building agents with the Claude Agent SDK,https://code.claude.com/docs/en/agent-sdk/overview.md,external,code.claude.com,"Claude SDK overview for tool-using agents, subagents, state, permissions, and streaming.",README.md,329,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L329
54
+ ale-0053,Official Runtime Guides,official-runtime-guides,Docs,📚,How the agent loop works,https://code.claude.com/docs/en/agent-sdk/agent-loop,external,code.claude.com,Official walkthrough of the inner agent loop that outer recurring loops build on.,README.md,330,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L330
55
+ ale-0054,Official Runtime Guides,official-runtime-guides,Docs,📚,Extend Claude with skills,https://code.claude.com/docs/en/skills,external,code.claude.com,Claude Code skill system for reusable loop instructions and assets.,README.md,331,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L331
56
+ ale-0055,Official Runtime Guides,official-runtime-guides,Docs,📚,Create custom subagents,https://code.claude.com/docs/en/sub-agents,external,code.claude.com,"Claude Code custom subagents with isolated context, model choice, and tool permissions.",README.md,332,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L332
57
+ ale-0056,Official Runtime Guides,official-runtime-guides,Docs,📚,GitHub Agentic Workflows,https://github.github.com/gh-aw/,external,github.github.com,Repository automation that runs coding agents in GitHub Actions on events or schedules with guardrails.,README.md,333,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L333
58
+ ale-0057,Official Runtime Guides,official-runtime-guides,Blog,📝,GitHub Agentic Workflows technical preview,https://github.blog/changelog/2026-02-13-github-agentic-workflows-are-now-in-technical-preview/,external,github.blog,Changelog announcement for Markdown-defined agentic workflows in GitHub Actions.,README.md,334,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L334
59
+ ale-0058,Official Runtime Guides,official-runtime-guides,Docs,📚,Continuous AI,https://githubnext.com/projects/continuous-ai/,external,githubnext.com,"GitHub Next's umbrella framing for CI/CD-style AI automation across the software lifecycle, the category that agentic workflows demonstrate.",README.md,335,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L335
60
+ ale-0059,Official Runtime Guides,official-runtime-guides,Blog,📝,Automate repository tasks with GitHub Agentic Workflows,https://github.blog/ai-and-ml/automate-repository-tasks-with-github-agentic-workflows/,external,github.blog,"Official walkthrough of writing Markdown-defined agentic workflows with guardrails for triage, QA, and docs chores.",README.md,336,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L336
61
+ ale-0060,Official Runtime Guides,official-runtime-guides,Blog,📝,Continuous AI in practice: What developers can automate today with agentic CI,https://github.blog/ai-and-ml/generative-ai/continuous-ai-in-practice-what-developers-can-automate-today-with-agentic-ci/,external,github.blog,"Concrete agentic-CI automations available today, with recurring patterns for triage, review, and documentation upkeep.",README.md,337,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L337
62
+ ale-0061,Official Runtime Guides,official-runtime-guides,Docs,📚,About GitHub Copilot coding agent,https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent,external,docs.github.com,"GitHub's autonomous coding agent: assign an issue, the agent works in an isolated Actions-powered workspace, and a reviewable pull request comes back.",README.md,338,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L338
63
+ ale-0062,Official Runtime Guides,official-runtime-guides,Blog,📝,GitHub Copilot: Meet the new coding agent,https://github.blog/news-insights/product-news/github-copilot-meet-the-new-coding-agent/,external,github.blog,"Launch overview of the issue-to-PR delegation loop, including iteration on review feedback.",README.md,339,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L339
64
+ ale-0063,Official Runtime Guides,official-runtime-guides,Docs,📚,Jules,https://jules.google/docs,external,jules.google,"Google's asynchronous coding agent that plans, executes tasks in isolated cloud VMs, and returns reviewable diffs.",README.md,340,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L340
65
+ ale-0064,Official Runtime Guides,official-runtime-guides,Docs,📚,Cursor cloud agents,https://cursor.com/docs/cloud-agent,external,cursor.com,Remote agents that work asynchronously in isolated environments and hand results back for review.,README.md,341,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L341
66
+ ale-0065,Official Runtime Guides,official-runtime-guides,Docs,📚,Devin Docs,https://docs.devin.ai/get-started/devin-intro,external,docs.devin.ai,"Documentation for a long-running autonomous software engineer with sessions, playbooks, knowledge, and review boundaries.",README.md,342,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L342
67
+ ale-0066,Official Runtime Guides,official-runtime-guides,Docs,📚,Writing effective tools for AI agents,https://www.anthropic.com/engineering/writing-tools-for-agents,external,www.anthropic.com,Anthropic's guidance on evaluating and improving tool specs using agentic loops and realistic tasks.,README.md,343,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L343
68
+ ale-0067,Official Runtime Guides,official-runtime-guides,Docs,📚,Introducing advanced tool use on the Claude Developer Platform,https://www.anthropic.com/engineering/advanced-tool-use?e45d281a_page=3,external,www.anthropic.com,"Tool search, programmatic tool calling, and tool-use examples for scaling large tool libraries without flooding context.",README.md,344,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L344
69
+ ale-0068,Official Runtime Guides,official-runtime-guides,Docs,📚,Effective harnesses for long-running agents,https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents,external,www.anthropic.com,"Anthropic's guidance for agents that work across many context windows: durable progress artifacts, environment setup, and self-verification.",README.md,345,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L345
70
+ ale-0069,Official Runtime Guides,official-runtime-guides,Docs,📚,Claude Code best practices,https://code.claude.com/docs/en/best-practices,external,code.claude.com,Widely cited workflow guidance that underlies many recurring Claude Code loops.,README.md,346,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L346
71
+ ale-0070,Research Foundations,research-foundations,Paper,📄,ReAct: Synergizing Reasoning and Acting in Language Models,https://arxiv.org/abs/2210.03629,external,arxiv.org,Foundational reason-act-observe loop for tool-using language agents.,README.md,352,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L352
72
+ ale-0071,Research Foundations,research-foundations,Paper,📄,Reflexion: Language Agents with Verbal Reinforcement Learning,https://arxiv.org/abs/2303.11366,external,arxiv.org,Converts environment feedback into written reflections stored in memory for future attempts.,README.md,353,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L353
73
+ ale-0072,Research Foundations,research-foundations,Paper,📄,Self-Refine: Iterative Refinement with Self-Feedback,https://arxiv.org/abs/2303.17651,external,arxiv.org,Generate-feedback-refine loop where a model improves outputs over repeated passes.,README.md,354,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L354
74
+ ale-0073,Research Foundations,research-foundations,Paper,📄,CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing,https://arxiv.org/abs/2305.11738,external,arxiv.org,Uses tools to ground critique and correction rather than relying only on introspection.,README.md,355,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L355
75
+ ale-0074,Research Foundations,research-foundations,Paper,📄,Tree of Thoughts,https://arxiv.org/abs/2305.10601,external,arxiv.org,Search over multiple reasoning branches; relevant when loop design needs exploration before committing.,README.md,356,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L356
76
+ ale-0075,Research Foundations,research-foundations,Paper,📄,Graph of Thoughts,https://arxiv.org/abs/2308.09687,external,arxiv.org,"Generalizes thought structures beyond chains and trees, useful for complex loop planning and aggregation.",README.md,357,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L357
77
+ ale-0076,Research Foundations,research-foundations,Paper,📄,Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models,https://arxiv.org/abs/2310.04406,external,arxiv.org,"Combines search, action, and environment feedback for language agents.",README.md,358,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L358
78
+ ale-0077,Research Foundations,research-foundations,Paper,📄,Voyager: An Open-Ended Embodied Agent with Large Language Models,https://arxiv.org/abs/2305.16291,external,arxiv.org,"Demonstrates lifelong skill acquisition through iterative exploration, feedback, and a skill library.",README.md,359,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L359
79
+ ale-0078,Research Foundations,research-foundations,Paper,📄,Generative Agents: Interactive Simulacra of Human Behavior,https://arxiv.org/abs/2304.03442,external,arxiv.org,Introduces reflection and memory mechanisms for long-running agent behavior.,README.md,360,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L360
80
+ ale-0079,Research Foundations,research-foundations,Paper,📄,Measuring AI Ability to Complete Long Software Tasks,https://arxiv.org/abs/2503.14499,external,arxiv.org,"METR's task-length time horizon metric; grounds why loop budgets, checkpoints, and escalation matter as autonomous work gets longer.",README.md,361,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L361
81
+ ale-0080,Research Foundations,research-foundations,Blog,📝,Measuring AI Ability to Complete Long Tasks,https://metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks/,external,metr.org,Accessible summary of the 50% task-completion time horizon and its doubling trend.,README.md,362,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L362
82
+ ale-0081,Research Foundations,research-foundations,Paper,📄,Reflection-Driven Control for Trustworthy Code Agents,https://arxiv.org/abs/2512.21354,external,arxiv.org,Elevates reflection from an external pass to an internal control loop that monitors the agent's decision path during generation and constrains risky steps with low overhead.,README.md,363,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L363
83
+ ale-0082,Research Foundations,research-foundations,Paper,📄,PARC: An Autonomous Self-Reflective Coding Agent for Robust Execution of Long-Horizon Tasks,https://arxiv.org/abs/2512.03549,external,arxiv.org,Hierarchical plan-execute-assess loops that detect and correct strategic errors during multi-hour autonomous runs.,README.md,364,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L364
84
+ ale-0083,Research Foundations,research-foundations,Paper,📄,When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents,https://arxiv.org/abs/2603.17104,external,arxiv.org,"Measures how agents drift from intent when specifications arrive incrementally across a long loop, and proposes a mitigation that recovers most of the loss.",README.md,365,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L365
85
+ ale-0084,Research Foundations,research-foundations,Tool,🧰,Reflexion code,https://github.com/noahshinn/reflexion,external,github.com,Reference implementation and experiments for verbal reinforcement loops.,README.md,366,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L366
86
+ ale-0085,Agent Workflow Patterns,agent-workflow-patterns,Docs,📚,Building Effective Agents,https://www.anthropic.com/engineering/building-effective-agents,external,www.anthropic.com,"Anthropic's canonical guide to workflows and agents, including evaluator-optimizer and orchestrator-workers patterns.",README.md,372,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L372
87
+ ale-0086,Agent Workflow Patterns,agent-workflow-patterns,Blog,📝,How we built our multi-agent research system,https://www.anthropic.com/engineering/multi-agent-research-system,external,www.anthropic.com,"Detailed orchestrator-worker system with planning, memory, subagents, citation passes, and iterative research loops.",README.md,373,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L373
88
+ ale-0087,Agent Workflow Patterns,agent-workflow-patterns,Paper,📄,Building Effective AI Agents: Architecture Patterns and Implementation Frameworks,https://resources.anthropic.com/hubfs/Building%20Effective%20AI%20Agents-%20Architecture%20Patterns%20and%20Implementation%20Frameworks.pdf,external,resources.anthropic.com,"PDF overview of agent architecture patterns, including generator-evaluator loops.",README.md,374,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L374
89
+ ale-0088,Agent Workflow Patterns,agent-workflow-patterns,Blog,📝,AI Agent Architectures,https://hld.handbook.academy/curriculum/ai-ml-system-design/ai-agent-architectures/,external,hld.handbook.academy,"System-design overview of ReAct, reflection, planning, tool use, memory, and control strategies.",README.md,375,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L375
90
+ ale-0089,Agent Workflow Patterns,agent-workflow-patterns,Blog,📝,What Are Agentic Workflows?,https://weaviate.io/blog/what-are-agentic-workflows,external,weaviate.io,"Accessible taxonomy of planning, tool use, reflection, and memory patterns.",README.md,376,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L376
91
+ ale-0090,Agent Workflow Patterns,agent-workflow-patterns,Blog,📝,Agent Planning & Reflection Patterns,https://learnaivisually.com/tracks/ai-agents/planning-reflection,external,learnaivisually.com,"Visual explanation of plan-execute, observe, reflect, retry, and stop patterns.",README.md,377,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L377
92
+ ale-0091,Agent Workflow Patterns,agent-workflow-patterns,Blog,📝,Agentic Design Patterns,https://addyosmani.com/agents/04-agentic-design-patterns/,external,addyosmani.com,"Practical overview of ReAct, reflection, tool use, planning, and how to combine them in real-world agents.",README.md,378,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L378
93
+ ale-0092,Agent Workflow Patterns,agent-workflow-patterns,Pattern,🔁,12 Factor Agents,https://github.com/humanlayer/12-factor-agents,external,github.com,"Operating principles for production agents, including explicit prompts, state ownership, and pause-resume behavior.",README.md,379,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L379
94
+ ale-0093,Agent Workflow Patterns,agent-workflow-patterns,Pattern,🔁,Durable Execution for Agentic Workflows,https://arizenai.com/durable-execution/,external,arizenai.com,"Explains checkpointing, event-sourced journals, replay, and recovery for long-running agent workflows.",README.md,380,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L380
95
+ ale-0094,Agent Workflow Patterns,agent-workflow-patterns,Paper,📄,Code as Agent Harness,https://arxiv.org/abs/2605.18747,external,arxiv.org,"Organizes agent infrastructure into harness interface, feedback-driven control, and multi-agent scaling for executable, verifiable, stateful systems; maps the harness layer that loops build on.",README.md,381,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L381
96
+ ale-0095,Agent Workflow Patterns,agent-workflow-patterns,Paper,📄,Agentic Agile-V: From Vibe Coding to Verified Engineering,https://arxiv.org/abs/2605.20456,external,arxiv.org,"Proposes a task-level SCOPE-V loop (Specify, Constrain, Orchestrate, Prove, Evolve, Verify) with human approval gates, arguing agentic coding needs process control and independent verification, not better prompts.",README.md,382,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L382
97
+ ale-0096,Agent Workflow Patterns,agent-workflow-patterns,Paper,📄,"Harness Engineering for Language Agents: The Harness Layer as Control, Agency, and Runtime",https://www.preprints.org/manuscript/202603.1756,external,www.preprints.org,"Decomposes the harness layer that loops build on into control, agency, and runtime, audits 63 harness works, and proposes a HarnessCard so reported agent gains can be separated from harness effects.",README.md,383,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L383
98
+ ale-0097,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,SWE-agent,https://github.com/SWE-agent/SWE-agent,external,github.com,Agent-computer interface and autonomous software engineering agent for repository tasks.,README.md,387,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L387
99
+ ale-0098,Coding-Agent Loop Systems,coding-agent-loop-systems,Paper,📄,SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering,https://arxiv.org/abs/2405.15793,external,arxiv.org,Paper behind SWE-agent and its interface design.,README.md,388,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L388
100
+ ale-0099,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,mini-SWE-agent,https://mini-swe-agent.com/latest/,external,mini-swe-agent.com,Minimal coding agent that is useful for understanding the core loop without a large framework.,README.md,389,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L389
101
+ ale-0100,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,OpenHands,https://github.com/All-Hands-AI/OpenHands,external,github.com,Open platform for AI software developers as generalist agents.,README.md,390,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L390
102
+ ale-0101,Coding-Agent Loop Systems,coding-agent-loop-systems,Paper,📄,OpenHands: An Open Platform for AI Software Developers as Generalist Agents,https://arxiv.org/abs/2407.16741,external,arxiv.org,"Paper describing OpenHands, CodeActAgent, benchmarks, and generalist agent evaluation.",README.md,391,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L391
103
+ ale-0102,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,Agentless,https://github.com/OpenAutoCoder/Agentless,external,github.com,"Workflow-based approach for software issue resolution using localization, repair, and patch validation.",README.md,392,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L392
104
+ ale-0103,Coding-Agent Loop Systems,coding-agent-loop-systems,Paper,📄,Agentless: Demystifying LLM-based Software Engineering Agents,https://arxiv.org/abs/2407.01489,external,arxiv.org,Useful contrast case: strong results through structured workflow rather than a fully open-ended agent.,README.md,393,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L393
105
+ ale-0104,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,AutoCodeRover,https://github.com/AutoCodeRoverSG/auto-code-rover,external,github.com,"Autonomous program improvement system for issue localization, patch generation, and validation.",README.md,394,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L394
106
+ ale-0105,Coding-Agent Loop Systems,coding-agent-loop-systems,Paper,📄,AutoCodeRover: Autonomous Program Improvement,https://arxiv.org/abs/2404.05427,external,arxiv.org,Paper on autonomous code repair loops over real repositories.,README.md,395,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L395
107
+ ale-0106,Coding-Agent Loop Systems,coding-agent-loop-systems,Pattern,🔁,Ralph,https://ghuntley.com/ralph/,external,ghuntley.com,Geoffrey Huntley's original Ralph technique: run one agent in a bare loop with fresh context per iteration and the filesystem plus specs as memory.,README.md,396,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L396
108
+ ale-0107,Coding-Agent Loop Systems,coding-agent-loop-systems,Pattern,🔁,everything is a ralph loop,https://ghuntley.com/loop/,external,ghuntley.com,"Follow-up essay arguing the loop, not the agent, is the durable engineering unit: one task per iteration, deterministic context, and verification inside the loop.",README.md,397,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L397
109
+ ale-0108,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,how-to-ralph-wiggum,https://github.com/ghuntley/how-to-ralph-wiggum,external,github.com,"Reference repository documenting the Ralph Wiggum technique end to end, from the bare loop script to guardrails and conventions.",README.md,398,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L398
110
+ ale-0109,Coding-Agent Loop Systems,coding-agent-loop-systems,Blog,📝,A Brief History of Ralph,https://www.humanlayer.dev/blog/brief-history-of-ralph,external,www.humanlayer.dev,Traces how the bare-loop technique spread from a provocation to a production practice among early adopters.,README.md,399,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L399
111
+ ale-0110,Coding-Agent Loop Systems,coding-agent-loop-systems,Pattern,🔁,Ralph Copilot,https://github.com/giocaizzi/ralph-copilot/tree/e5b2813cc876c73a8c9d3398c0115da0d15f63cf,external,github.com,"Language-agnostic Ralph loop implementation using fresh context, filesystem memory, `PRD.md`, and `PROGRESS.md`.",README.md,400,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L400
112
+ ale-0111,Coding-Agent Loop Systems,coding-agent-loop-systems,Pattern,🔁,Compound Engineering,https://every.to/guides/compound-engineering,external,every.to,"Every's named plan-work-review-compound loop, where each run feeds lessons back into `AGENTS.md`-style memory so the next loop is easier; the self-improving counterpart to Ralph.",README.md,401,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L401
113
+ ale-0112,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,Gas Town,https://github.com/steveyegge/gastown,external,github.com,"Steve Yegge's multi-agent orchestrator that runs 20-30 parallel coding agents with coordinator, worker, and merge-queue roles; the structured-orchestration end of the spectrum that Ralph anchors with bare iteration.",README.md,402,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L402
114
+ ale-0113,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,Amp,https://ampcode.com/,external,ampcode.com,"Agentic coding tool built around threads, subagents, and an opinionated harness, with an owner's manual that documents loop-style operating practices.",README.md,403,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L403
115
+ ale-0114,Coding-Agent Loop Systems,coding-agent-loop-systems,Tool,🧰,karl,https://github.com/kayoslab/karl,external,github.com,"Autonomous multi-agent development loop with planner, reviewer, architect, tester, developer, deployment, and retry phases.",README.md,404,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L404
116
+ ale-0115,Coding-Agent Loop Systems,coding-agent-loop-systems,Pattern,🔁,joelclaw agent-loop skill,https://github.com/joelhooks/joelclaw/blob/main/skills/agent-loop/SKILL.md,external,github.com,Durable Planner-Implementor-Reviewer-Judge coding loops via Inngest events and progress files.,README.md,405,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L405
117
+ ale-0116,Coding-Agent Loop Systems,coding-agent-loop-systems,List,🧭,SWE-bench reading list,https://github.com/SWE-bench/reading-list,external,github.com,Maintained map of software engineering agent systems and related papers.,README.md,406,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L406
118
+ ale-0117,Coding-Agent Loop Systems,coding-agent-loop-systems,Paper,📄,TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code,https://arxiv.org/abs/2602.06875,external,arxiv.org,"ICSE'26 observe-analyze-repair loop with instrumentation, analysis, and repair agents, a history-learning mechanism, and a rollback to the last good state; iteration alone drives most of the gain.",README.md,407,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L407
119
+ ale-0118,Coding-Agent Loop Systems,coding-agent-loop-systems,Paper,📄,The Kitchen Loop: User-Spec-Driven Development for a Self-Evolving Codebase,https://arxiv.org/abs/2603.25697,external,arxiv.org,"A production loop where an agent exercises a spec surface as a synthetic power user behind ground-truth tests and quality gates, sustaining 285+ self-correcting iterations and 1,000+ merged PRs with zero detected regressions.",README.md,408,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L408
120
+ ale-0119,Verification And Feedback Gates,verification-and-feedback-gates,Blog,📝,Why Agentic Systems Must Produce Deterministic Outputs to Scale,https://streamzero.com/blog/posts/deep-dives-tools-technologies-architectures/agentic-patterns/why-agentic-systems-must-produce-deterministic-outputs-to-scale,external,streamzero.com,"Argues for deterministic boundaries, contracts, and execution gates around probabilistic agent reasoning.",README.md,414,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L414
121
+ ale-0120,Verification And Feedback Gates,verification-and-feedback-gates,Pattern,🔁,Stop Babysitting Your Coding Agent. Give It Backpressure.,https://generativeprogrammer.com/p/stop-babysitting-your-coding-agent,external,generativeprogrammer.com,"Explains how to turn tests, linters, builds, traces, and other signals into feedback loops for coding agents.",README.md,415,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L415
122
+ ale-0121,Verification And Feedback Gates,verification-and-feedback-gates,Pattern,🔁,How to Build a Self-Verification Loop in Claude Code,https://dev.to/shipwithaiio/how-to-build-a-self-verification-loop-in-claude-code-3-layers-20-minutes-m1p,external,dev.to,"Uses hooks to enforce syntax, intent, and regression checks before an agent can finish.",README.md,416,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L416
123
+ ale-0122,Verification And Feedback Gates,verification-and-feedback-gates,Blog,📝,How to build a better agent harness with traces and evals,https://arize.com/blog/improve-ai-agents-traces-evals-harness/,external,arize.com,Trace-evaluate-debug-refine loop for improving agent behavior from real runs.,README.md,417,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L417
124
+ ale-0123,Verification And Feedback Gates,verification-and-feedback-gates,Blog,📝,Better Harness: A Recipe for Harness Hill-Climbing with Evals,https://www.langchain.com/blog/better-harness-a-recipe-for-harness-hill-climbing-with-evals,external,www.langchain.com,LangChain's recipe for using evals as the learning signal for harness improvement.,README.md,418,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L418
125
+ ale-0124,Verification And Feedback Gates,verification-and-feedback-gates,Blog,📝,Improving Deep Agents with harness engineering,https://www.langchain.com/blog/improving-deep-agents-with-harness-engineering,external,www.langchain.com,"Practical discussion of self-verification, traces, middleware, and loop detection for coding agents.",README.md,419,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L419
126
+ ale-0125,Verification And Feedback Gates,verification-and-feedback-gates,Docs,📚,OpenAI agent evals,https://developers.openai.com/api/docs/guides/agent-evals,external,developers.openai.com,Evaluation guidance for moving from traces to repeatable grading of agent workflows.,README.md,420,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L420
127
+ ale-0126,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,Promptfoo OpenAI Agents provider,https://www.promptfoo.dev/docs/providers/openai-agents/,external,www.promptfoo.dev,"Testing and assertions for multi-turn agent workflows, tools, state, handoffs, sandboxes, and traces.",README.md,421,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L421
128
+ ale-0127,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,Inspect AI,https://github.com/UKGovernmentBEIS/inspect_ai,external,github.com,"UK AISI evaluation framework with solvers, scorers, sandboxing, tool use, MCP, and log viewing.",README.md,422,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L422
129
+ ale-0128,Verification And Feedback Gates,verification-and-feedback-gates,Docs,📚,OpenTelemetry Semantic Conventions for Generative AI Systems,https://opentelemetry.io/docs/specs/semconv/gen-ai/,external,opentelemetry.io,"Portable tracing conventions for model calls, tool calls, and agent workflows.",README.md,423,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L423
130
+ ale-0129,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,AgentOps,https://github.com/AgentOps-AI/agentops,external,github.com,"Monitoring, replay, cost tracking, benchmarking, and tracing for agent sessions.",README.md,424,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L424
131
+ ale-0130,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,Langfuse,https://github.com/langfuse/langfuse,external,github.com,"Open-source LLM engineering platform with tracing, evaluations, and metrics that loops can read back as feedback signals.",README.md,425,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L425
132
+ ale-0131,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,LangSmith,https://www.langchain.com/langsmith,external,www.langchain.com,"Tracing, evaluation, and monitoring platform for inspecting and grading agent runs across iterations.",README.md,426,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L426
133
+ ale-0132,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,Arize Phoenix,https://github.com/Arize-ai/phoenix,external,github.com,"Open-source AI observability for tracing, evaluating, and debugging agent behavior from real runs.",README.md,427,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L427
134
+ ale-0133,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,Braintrust,https://www.braintrust.dev/,external,www.braintrust.dev,"Evaluation and observability platform with experiments, datasets, and CI integration for gating agent changes.",README.md,428,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L428
135
+ ale-0134,Verification And Feedback Gates,verification-and-feedback-gates,Tool,🧰,Weave,https://docs.wandb.ai/weave,external,docs.wandb.ai,"Weights & Biases toolkit for tracing, evaluating, and monitoring agent applications over time.",README.md,429,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L429
136
+ ale-0135,Verification And Feedback Gates,verification-and-feedback-gates,Paper,📄,Agentic Verification of Software Systems,https://arxiv.org/abs/2511.17330,external,arxiv.org,"Pairs a coding agent with a theorem prover (AutoRocq) in a generate-and-validate loop, turning formal proof into the exit gate for trusted automatic programming.",README.md,430,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L430
137
+ ale-0136,Verification And Feedback Gates,verification-and-feedback-gates,Paper,📄,Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses,https://arxiv.org/abs/2604.25850,external,arxiv.org,"A closed loop that turns each harness edit into a falsifiable contract verified against trajectory outcomes, so the harness evolves from observability instead of trial and error.",README.md,431,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L431
138
+ ale-0137,Securing Unattended Loops,securing-unattended-loops,Critique,⚠️,The lethal trifecta for AI agents,https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/,external,simonwillison.net,"Simon Willison's rule of thumb: private data, untrusted content, and an exfiltration channel must never meet inside one unattended agent.",README.md,437,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L437
139
+ ale-0138,Securing Unattended Loops,securing-unattended-loops,Critique,⚠️,Prompt injection series,https://simonwillison.net/series/prompt-injection/,external,simonwillison.net,Ongoing series on the core unsolved vulnerability for loops whose intake includes content written by strangers.,README.md,438,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L438
140
+ ale-0139,Securing Unattended Loops,securing-unattended-loops,Docs,📚,Agentic AI - Threats and Mitigations,https://genai.owasp.org/resource/agentic-ai-threats-and-mitigations/,external,genai.owasp.org,"OWASP threat model for agentic systems, useful when reviewing intake, memory, tool, and delegation boundaries.",README.md,439,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L439
141
+ ale-0140,Securing Unattended Loops,securing-unattended-loops,Docs,📚,Designing AI agents to resist prompt injection,https://openai.com/index/designing-agents-to-resist-prompt-injection/,external,openai.com,"OpenAI's official defense-in-depth guidance: least privilege, sandboxed tools, output verification, and human confirmation for the high-impact actions an unattended loop might take.",README.md,440,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L440
142
+ ale-0141,Securing Unattended Loops,securing-unattended-loops,Tool,🧰,sandbox-runtime,https://github.com/anthropic-experimental/sandbox-runtime,external,github.com,Anthropic's OS-level filesystem and network sandboxing for arbitrary processes without requiring a container.,README.md,441,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L441
143
+ ale-0142,Securing Unattended Loops,securing-unattended-loops,Tool,🧰,E2B,https://github.com/e2b-dev/E2B,external,github.com,"Open-source isolated cloud sandboxes for running untrusted, AI-generated code inside agent loops.",README.md,442,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L442
144
+ ale-0143,Securing Unattended Loops,securing-unattended-loops,Docs,📚,Modal Sandboxes,https://modal.com/docs/guide/sandboxes,external,modal.com,Secure sandboxed execution for agent-driven code with resource limits and network controls.,README.md,443,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L443
145
+ ale-0144,Securing Unattended Loops,securing-unattended-loops,Tool,🧰,Daytona,https://www.daytona.io/,external,www.daytona.io,"Infrastructure for running AI-generated code in fast, isolated sandboxes.",README.md,444,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L444
146
+ ale-0145,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Docs,📚,Effective Context Engineering for AI Agents,https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents,external,www.anthropic.com,Anthropic guide to context as managed runtime state rather than a prompt dump.,README.md,450,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L450
147
+ ale-0146,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Blog,📝,Agent Harnesses: the Infrastructure Layer Your LLM Agent Actually Needs,https://ninadpathak.com/blog/agent-harnesses/,external,ninadpathak.com,"Covers execution loops, state, checkpointing, observers, and replayability.",README.md,451,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L451
148
+ ale-0147,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Blog,📝,The Agent Loop Is the New OS,https://www.harness.io/blog/agent-loop-new-os,external,www.harness.io,Frames the agent loop as an OS-like boundary with context as RAM and tools as I/O.,README.md,452,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L452
149
+ ale-0148,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Blog,📝,Harness engineering for coding agent users,https://martinfowler.com/articles/harness-engineering.html,external,martinfowler.com,"Martin Fowler article on feedforward, feedback, and outer harnesses for coding agents.",README.md,453,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L453
150
+ ale-0149,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Blog,📝,Context Engineering,https://simonwillison.net/2025/Jun/27/context-engineering/,external,simonwillison.net,"Simon Willison's framing of context engineering, useful for distinguishing context state from loop orchestration.",README.md,454,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L454
151
+ ale-0150,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Blog,📝,Agentic Coding in 2026,https://sourcegraph.com/blog/agentic-coding,external,sourcegraph.com,"Sourcegraph on supplying deterministic, large-codebase context and code intelligence so recurring agent runs reuse durable repository state instead of rediscovering it each time.",README.md,455,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L455
152
+ ale-0151,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Blog,📝,Agentic AI State Management with ScyllaDB and LangGraph,https://www.scylladb.com/2026/04/08/agentic-ai-state-management-with-scylladb-and-langgraph/,external,www.scylladb.com,"Durable agent state with checkpointers, write-ahead logs, and time-travel branching.",README.md,456,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L456
153
+ ale-0152,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Tool,🧰,Mem0,https://github.com/mem0ai/mem0,external,github.com,"Open-source memory layer for retaining user, session, and agent state across repeated agent sessions.",README.md,457,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L457
154
+ ale-0153,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Tool,🧰,Letta,https://github.com/letta-ai/letta,external,github.com,"Stateful agent framework from the MemGPT line with persistent, self-editing memory across runs.",README.md,458,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L458
155
+ ale-0154,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Tool,🧰,Zep,https://github.com/getzep/zep,external,github.com,Temporal knowledge graph memory that tracks how facts about users and systems change across sessions.,README.md,459,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L459
156
+ ale-0155,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Tool,🧰,LangMem,https://github.com/langchain-ai/langmem,external,github.com,"SDK for extracting, consolidating, and retrieving long-term agent memory between loop runs.",README.md,460,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L460
157
+ ale-0156,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Tool,🧰,Beads,https://github.com/steveyegge/beads,external,github.com,"Git-plus-SQLite issue and memory store that agents read and write with a `bd` CLI, giving recurring loops durable task state and progress that survives context resets.",README.md,461,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L461
158
+ ale-0157,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Paper,📄,ARC: Active and Reflection-driven Context Management for Long-Horizon Agents,https://arxiv.org/abs/2601.12030,external,arxiv.org,"Treats context as a managed runtime artifact, reorganizing the working context when degradation or context rot is detected across a long run.",README.md,462,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L462
159
+ ale-0158,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Paper,📄,"Memory for Autonomous LLM Agents: Mechanisms, Evaluation, and Emerging Frontiers",https://arxiv.org/abs/2603.07670,external,arxiv.org,"Formalizes agent memory as a write-manage-read loop and surveys compression, retrieval, reflective self-improvement, and policy-learned management across recurring runs.",README.md,463,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L463
160
+ ale-0159,"State, Memory, And Context Persistence",state-memory-and-context-persistence,Paper,📄,"Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineering",https://arxiv.org/abs/2604.08224,external,arxiv.org,"Reviews how durable state, reusable skills, protocols, and the harness move out of model weights into external infrastructure, the substrate that lets loops persist progress and reuse capability across runs.",README.md,464,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L464
161
+ ale-0160,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,AutoGen,https://github.com/microsoft/autogen,external,github.com,"Multi-agent programming framework for conversations, tool use, and orchestration; active development has moved to the Microsoft Agent Framework.",README.md,468,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L468
162
+ ale-0161,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,Microsoft Agent Framework,https://github.com/microsoft/agent-framework,external,github.com,Microsoft's successor to AutoGen and Semantic Kernel for building and orchestrating multi-agent workflows in Python and .NET.,README.md,469,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L469
163
+ ale-0162,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,LangGraph,https://github.com/langchain-ai/langgraph,external,github.com,"Graph-based framework for controllable agent workflows, persistence, and human-in-the-loop steps.",README.md,470,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L470
164
+ ale-0163,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,CrewAI,https://github.com/crewAIInc/crewAI,external,github.com,"Framework for multi-agent workflows organized around roles, tasks, and crews.",README.md,471,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L471
165
+ ale-0164,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Docs,📚,LlamaIndex Workflows,https://developers.llamaindex.ai/python/llamaagents/workflows/,external,developers.llamaindex.ai,Event-driven workflow abstraction for agentic applications.,README.md,472,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L472
166
+ ale-0165,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Docs,📚,OpenAI Agents SDK handoffs,https://openai.github.io/openai-agents-python/handoffs/,external,openai.github.io,First-class delegation between specialized agents.,README.md,473,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L473
167
+ ale-0166,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Docs,📚,Agent Protocol,https://agentprotocol.ai/,external,agentprotocol.ai,"API protocol for agent interaction, useful for separating loop managers from agent runtimes.",README.md,474,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L474
168
+ ale-0167,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,AgentKit,https://github.com/inngest/agent-kit,external,github.com,"TypeScript toolkit for durable, event-driven agents on workflow infrastructure.",README.md,475,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L475
169
+ ale-0168,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,deepagents,https://github.com/langchain-ai/deepagents,external,github.com,"LangChain project for deeper, longer-running agents with middleware and harness patterns.",README.md,476,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L476
170
+ ale-0169,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Docs,📚,Temporal for AI,https://temporal.io/solutions/ai,external,temporal.io,"Durable execution for long-running agent workflows: crash-proof state, automatic retries, and human-in-the-loop signals.",README.md,477,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L477
171
+ ale-0170,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,Restate,https://restate.dev/,external,restate.dev,"Durable execution runtime for building resilient, stateful agents and workflows that survive failures mid-loop.",README.md,478,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L478
172
+ ale-0171,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,DBOS,https://www.dbos.dev/,external,www.dbos.dev,"Lightweight Postgres-backed durable execution library for crash-proof agent workflows, queues, and scheduled triggers.",README.md,479,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L479
173
+ ale-0172,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,Composio Agent Orchestrator,https://github.com/ComposioHQ/agent-orchestrator,external,github.com,"Orchestrates parallel coding agents in isolated worktrees that plan tasks, fix CI failures, respond to reviews, and manage their own PR lifecycle.",README.md,480,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L480
174
+ ale-0173,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,Omnigent,https://github.com/omnigent-ai/omnigent,external,github.com,"Databricks' open-source meta-harness and control plane that runs Claude Code, Codex, Cursor, and Pi under shared policies, with budget caps and human-approval gates enforced at the harness layer rather than in prompts.",README.md,481,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L481
175
+ ale-0174,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Paper,📄,From Agent Loops to Structured Graphs: A Scheduler-Theoretic Framework for LLM Agent Execution,https://arxiv.org/abs/2604.11378,external,arxiv.org,"Replaces opaque agent loops with immutable plan-version DAGs and a planning-execution-recovery split, giving inspectable scheduling, deterministic recovery, escalation, and termination guarantees.",README.md,482,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L482
176
+ ale-0175,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Tool,🧰,Eve,https://github.com/vercel/eve,external,github.com,"Vercel's TypeScript-native agent framework with durable execution, sandboxed compute, and OpenTelemetry tracing built in, so recurring agent work persists, replays, and is observable across runs by default.",README.md,483,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L483
177
+ ale-0176,Orchestration And Multi-Agent Delegation,orchestration-and-multi-agent-delegation,Paper,📄,Verified Multi-Agent Orchestration: A Plan-Execute-Verify-Replan Framework,https://arxiv.org/abs/2603.11445,external,arxiv.org,"Decomposes work into a dependency-aware DAG, runs domain agents in parallel, and uses an LLM verifier to drive adaptive replanning with configurable stop conditions, the verify-and-replan core of a reliable loop.",README.md,484,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L484
178
+ ale-0177,Benchmarks And Evaluation,benchmarks-and-evaluation,Benchmark,🧪,SWE-bench,https://www.swebench.com/,external,www.swebench.com,Benchmark for resolving real GitHub issues through code editing and tests.,README.md,488,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L488
179
+ ale-0178,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,SWE-bench: Can Language Models Resolve Real-World GitHub Issues?,https://arxiv.org/abs/2310.06770,external,arxiv.org,Original SWE-bench paper.,README.md,489,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L489
180
+ ale-0179,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,SWE-bench Goes Live,https://arxiv.org/abs/2505.23419,external,arxiv.org,Dynamic benchmark designed to reduce overfitting to static issue sets.,README.md,490,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L490
181
+ ale-0180,Benchmarks And Evaluation,benchmarks-and-evaluation,Benchmark,🧪,Terminal-Bench,https://www.tbench.ai/,external,www.tbench.ai,Benchmark for agents operating in terminal environments.,README.md,491,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L491
182
+ ale-0181,Benchmarks And Evaluation,benchmarks-and-evaluation,Tool,🧰,Terminal-Bench repository,https://github.com/harbor-framework/terminal-bench,external,github.com,Open-source benchmark and harness for hard terminal tasks.,README.md,492,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L492
183
+ ale-0182,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,AgentBench,https://arxiv.org/abs/2308.03688,external,arxiv.org,Multi-environment benchmark for evaluating LLMs as agents.,README.md,493,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L493
184
+ ale-0183,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,WebArena,https://arxiv.org/abs/2307.13854,external,arxiv.org,Realistic web environment for autonomous agents.,README.md,494,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L494
185
+ ale-0184,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,OSWorld,https://arxiv.org/abs/2404.07972,external,arxiv.org,Benchmark for multimodal agents operating full computer environments.,README.md,495,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L495
186
+ ale-0185,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,ToolBench,https://arxiv.org/abs/2307.16789,external,arxiv.org,Tool-use benchmark and dataset for tool-augmented agents.,README.md,496,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L496
187
+ ale-0186,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,GAIA,https://arxiv.org/abs/2311.12983,external,arxiv.org,"Benchmark for general AI assistants requiring reasoning, tool use, and multi-step work.",README.md,497,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L497
188
+ ale-0187,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,Tau-bench,https://arxiv.org/abs/2406.12045,external,arxiv.org,Benchmark for tool-agent-user interactions in realistic domains.,README.md,498,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L498
189
+ ale-0188,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,VisualWebArena,https://arxiv.org/abs/2401.13649,external,arxiv.org,Visually grounded web-agent benchmark extending WebArena.,README.md,499,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L499
190
+ ale-0189,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,AppWorld,https://arxiv.org/abs/2407.18901,external,arxiv.org,Benchmark of interactive app tasks with state-based and execution-based evaluation.,README.md,500,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L500
191
+ ale-0190,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,Vending-Bench,https://arxiv.org/abs/2502.15840,external,arxiv.org,Benchmark for long-term coherence of autonomous agents; documents how small errors compound over very long loop horizons.,README.md,501,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L501
192
+ ale-0191,Benchmarks And Evaluation,benchmarks-and-evaluation,Benchmark,🧪,Vending-Bench leaderboard,https://andonlabs.com/evals/vending-bench,external,andonlabs.com,Live long-horizon coherence results from Andon Labs.,README.md,502,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L502
193
+ ale-0192,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios,https://arxiv.org/abs/2512.18470,external,arxiv.org,"Release-note-derived evolution tasks where agents score far below isolated-issue benchmarks, quantifying the long-horizon gap loops must manage.",README.md,503,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L503
194
+ ale-0193,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,EvoSkills: Self-Evolving Agent Skills via Co-Evolutionary Verification,https://arxiv.org/abs/2604.01687,external,arxiv.org,"A skill generator and a co-evolving surrogate verifier improve multi-file skill packages over iterations, evaluated on the SkillsBench benchmark of structured skill bundles.",README.md,504,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L504
195
+ ale-0194,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,SaaSBench: Coding Agents in Long-Horizon Enterprise SaaS Engineering,https://arxiv.org/abs/2605.17526,external,arxiv.org,"Benchmark for agents on multi-dependency, interactive enterprise tasks, with automated evaluation that probes where long-horizon loops break down.",README.md,505,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L505
196
+ ale-0195,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,RoadmapBench: Evaluating Long-Horizon Agentic Software Development Across Version Upgrades,https://arxiv.org/abs/2605.15846,external,arxiv.org,"115 real version-upgrade tasks across 17 repositories requiring multi-file changes (median ~3,700 lines), stressing how far agent loops sustain coherent, large-scale work.",README.md,506,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L506
197
+ ale-0196,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks,https://arxiv.org/abs/2603.24755,external,arxiv.org,"Quantifies structural erosion and verbosity creep across iteration checkpoints in native harnesses like Claude Code and Codex, evidence for why loops need verification and budgets.",README.md,507,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L507
198
+ ale-0197,Benchmarks And Evaluation,benchmarks-and-evaluation,Paper,📄,LongCLI-Bench: A Preliminary Benchmark for Long-horizon Agentic Programming in Command-Line Interfaces,https://arxiv.org/abs/2602.14337,external,arxiv.org,"Long-horizon CLI tasks where most runs stall below 30% completion, mapping where unattended loops break down.",README.md,508,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L508
199
+ ale-0198,Operations Playbooks,operations-playbooks,Blog,📝,Agentic Engineering: The Agent Loop,https://junpingyi.com/books/agentic-engineering/agent-loop/,external,junpingyi.com,Minimal mental model for the loop underlying agent operation.,README.md,512,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L512
200
+ ale-0199,Operations Playbooks,operations-playbooks,Blog,📝,"The agent loop: ReAct, plan-and-execute, reflection",https://www.kunwar.page/chapter/067-the-agent-loop-react-plan-and-execute-reflection,external,www.kunwar.page,Practical walkthrough of the base loop and common variants.,README.md,513,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L513
201
+ ale-0200,Operations Playbooks,operations-playbooks,Blog,📝,How to Build an Agent,https://ampcode.com/how-to-build-an-agent,external,ampcode.com,"Thorsten Ball's demystification of the inner agent loop: a model, a loop, and enough tokens.",README.md,514,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L514
202
+ ale-0201,Operations Playbooks,operations-playbooks,Blog,📝,Agentic Coding Recommendations,https://lucumr.pocoo.org/2025/6/12/agentic-coding/,external,lucumr.pocoo.org,Armin Ronacher's field notes on which practices hold up when agents do most of the work.,README.md,515,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L515
203
+ ale-0202,Operations Playbooks,operations-playbooks,Blog,📝,Coding Agents 101: The Art of Actually Getting Things Done,https://devin.ai/agents101,external,devin.ai,Practical delegation guidance from the Devin team on scoping tasks agents can actually finish.,README.md,516,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L516
204
+ ale-0203,Operations Playbooks,operations-playbooks,Blog,📝,How Anthropic teams use Claude Code,https://claude.com/blog/how-anthropic-teams-use-claude-code,external,claude.com,"Cross-team field report of real recurring agent workflows in engineering, security, and data science.",README.md,517,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L517
205
+ ale-0204,Operations Playbooks,operations-playbooks,Blog,📝,How Boris Uses Claude Code,https://howborisusesclaudecode.com/,external,howborisusesclaudecode.com,"Unofficial but concrete compilation of Boris Cherny's autonomous setups: parallel worktrees, auto mode, `/loop`, `/schedule`, dynamic workflows, and `/goal` completion conditions.",README.md,518,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L518
206
+ ale-0205,Operations Playbooks,operations-playbooks,Blog,📝,Agent of the Day: Copilot Agent PR Analysis,https://github.github.com/gh-aw/blog/2026-05-26-agent-of-the-day/,external,github.github.com,"Official walkthrough of a daily scheduled agentic workflow that ingests PR data, analyzes it, and publishes findings to a Discussion, a concrete recurring loop with trigger, intake, analysis, and output.",README.md,519,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L519
207
+ ale-0206,Templates And Patterns,templates-and-patterns,Template,🧾,Resource entry template,templates/resource-entry.md,local_path,,Format for adding a single resource with evidence quality and category fit.,README.md,525,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L525
208
+ ale-0207,Templates And Patterns,templates-and-patterns,Template,🧾,Loop pattern template,templates/loop-pattern.md,local_path,,"Template for documenting an operational loop such as PR babysitting, CI repair, or feedback clustering.",README.md,526,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L526
209
+ ale-0208,Templates And Patterns,templates-and-patterns,Template,🧾,Loop contract schema,schemas/loop-contract.schema.json,local_path,,Machine-readable schema for portable loop specs.,README.md,527,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L527
210
+ ale-0209,Templates And Patterns,templates-and-patterns,Template,🧾,Loop contract preview script,scripts/preview_loop_contract.py,local_path,,Dependency-free demo that validates and renders a loop contract JSON file.,README.md,528,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L528
211
+ ale-0210,Templates And Patterns,templates-and-patterns,Template,🧾,Translation guide,TRANSLATIONS.md,local_path,,How to add or maintain a language translation without drifting from the canonical English list.,README.md,529,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L529
212
+ ale-0211,Templates And Patterns,templates-and-patterns,Template,🧾,Pattern library index,patterns/README.md,local_path,,"Practical loop patterns with triggers, state, verification gates, budgets, and escalation paths.",README.md,530,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L530
213
+ ale-0212,Examples And Schema,examples-and-schema,Pattern,🔁,Example loop specs,examples/README.md,local_path,,"Human-readable walkthroughs for PR babysitting, CI repair, and docs drift collection.",README.md,538,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L538
214
+ ale-0213,Examples And Schema,examples-and-schema,Template,🧾,Loop contract library,examples/README.md#contract-library,local_path,,"Schema-validated loop contracts for every pattern-library loop, from PR babysitting to model routing.",README.md,539,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L539
215
+ ale-0214,Examples And Schema,examples-and-schema,Template,🧾,Runnable test-repair loop,examples/runnable/test-repair-loop.sh,local_path,,"Dependency-light reference loop script with a verification gate, retry budget, durable progress log, repeat-failure detection, and escalation exit.",README.md,540,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L540
216
+ ale-0215,Examples And Schema,examples-and-schema,Template,🧾,Runnable loop guide,examples/runnable/README.md,local_path,,"Maps the script line by line to the Loop Contract and shows how to drive it with Claude Code, Codex CLI, or any agent CLI.",README.md,541,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L541
217
+ ale-0216,Community Gallery,community-gallery,Template,🧾,Loop gallery guide,gallery/README.md,local_path,,Quality bar for contributed loop examples with receipts and lessons learned.,README.md,555,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L555
218
+ ale-0217,Community Gallery,community-gallery,Template,🧾,Loop gallery template,gallery/template.md,local_path,,"Markdown template for sharing a loop's trigger, intake, state, verification, escalation, and safety notes.",README.md,556,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L556
219
+ ale-0218,Community Gallery,community-gallery,Pattern,🔁,PR babysitter reference loop,gallery/pr-babysitter-reference.md,local_path,,Reference gallery entry for keeping a pull request moving.,README.md,557,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L557
220
+ ale-0219,Community Gallery,community-gallery,Pattern,🔁,CI repair reference loop,gallery/ci-repair-reference.md,local_path,,Reference gallery entry for turning failing CI into a verified patch or escalation.,README.md,558,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L558
221
+ ale-0220,Community Gallery,community-gallery,Pattern,🔁,Docs drift reference loop,gallery/docs-drift-reference.md,local_path,,Reference gallery entry for recurring docs/code consistency checks.,README.md,559,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L559
222
+ ale-0221,Discovery And Distribution,discovery-and-distribution,Template,🧾,Landing page,https://chaoyue0307.github.io/awesome-loop-engineering/,external,chaoyue0307.github.io,SEO-friendly entry point for the repository.,README.md,565,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L565
223
+ ale-0222,Discovery And Distribution,discovery-and-distribution,List,🧭,Hugging Face dataset mirror,https://huggingface.co/datasets/cy0307/awesome-loop-engineering,external,huggingface.co,Synced dataset repo with the full project plus generated `data/resources.csv` and `data/resources.jsonl` resource sheets.,README.md,566,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L566
224
+ ale-0223,Discovery And Distribution,discovery-and-distribution,Template,🧾,Landing page source,docs/index.html,local_path,,Source for the static landing page.,README.md,567,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L567
225
+ ale-0224,Discovery And Distribution,discovery-and-distribution,Template,🧾,Sitemap,docs/sitemap.xml,local_path,,Crawl hints for the landing page and core repository pages.,README.md,568,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L568
226
+ ale-0225,Discovery And Distribution,discovery-and-distribution,Template,🧾,Robots file,docs/robots.txt,local_path,,Allows indexing and points crawlers to the sitemap.,README.md,569,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L569
227
+ ale-0226,Roadmap And Discussion,roadmap-and-discussion,Template,🧾,Roadmap,ROADMAP.md,local_path,,"Near-term work, pattern priorities, gallery goals, and open questions.",README.md,575,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L575
228
+ ale-0227,Roadmap And Discussion,roadmap-and-discussion,Template,🧾,Launch article,posts/launch.md,local_path,,Shareable explanation of the concept and repository.,README.md,576,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L576
229
+ ale-0228,Roadmap And Discussion,roadmap-and-discussion,Template,🧾,Discussion guide,meta/DISCUSSIONS.md,local_path,,"Suggested discussion categories, starter prompts, and moderation standard.",README.md,577,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L577
230
+ ale-0229,Roadmap And Discussion,roadmap-and-discussion,Pattern,🔁,Show your Loop Engineering patterns,https://github.com/ChaoYue0307/awesome-loop-engineering/discussions/2,external,github.com,Community discussion for real or anonymized loop examples.,README.md,578,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L578
231
+ ale-0230,Pattern Library,pattern-library,Pattern,🔁,PR babysitter,patterns/pr-babysitter.md,local_path,,"Repeatedly checks review comments, CI, merge conflicts, stale threads, and readiness to merge.",README.md,584,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L584
232
+ ale-0231,Pattern Library,pattern-library,Pattern,🔁,CI repair loop,patterns/ci-repair-loop.md,local_path,,"Reproduces failing checks, patches narrowly, reruns evidence, and escalates when failures are outside scope.",README.md,585,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L585
233
+ ale-0232,Pattern Library,pattern-library,Pattern,🔁,Docs drift collector,patterns/docs-drift-collector.md,local_path,,"Finds mismatches between docs and code, proposes small patches, and verifies examples.",README.md,586,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L586
234
+ ale-0233,Pattern Library,pattern-library,Pattern,🔁,Deploy verifier,patterns/deploy-verifier.md,local_path,,"Watches rollout signals, compares them with release expectations, and stops on anomalies.",README.md,587,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L587
235
+ ale-0234,Pattern Library,pattern-library,Pattern,🔁,Feedback clusterer,patterns/feedback-clusterer.md,local_path,,"Periodically groups GitHub, Linear, Slack, support, or social feedback into actionable themes.",README.md,588,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L588
236
+ ale-0235,Pattern Library,pattern-library,Pattern,🔁,Dependency triage loop,patterns/dependency-triage-loop.md,local_path,,"Classifies dependency updates, applies safe groups, verifies them, and escalates risky upgrades.",README.md,589,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L589
237
+ ale-0236,Pattern Library,pattern-library,Pattern,🔁,Evaluation regression loop,patterns/evaluation-regression-loop.md,local_path,,"Investigates degraded agent evals with baseline traces, targeted reruns, and repair proposals.",README.md,590,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L590
238
+ ale-0237,Pattern Library,pattern-library,Pattern,🔁,Security review loop,patterns/security-review-loop.md,local_path,,"Reviews sensitive diffs with evidence-backed findings, safe permissions, and human approval boundaries.",README.md,591,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L591
239
+ ale-0238,Pattern Library,pattern-library,Pattern,🔁,Cost-control loop,patterns/cost-control-loop.md,local_path,,"Monitors agent workflow spend, identifies waste, proposes scoped savings, and preserves quality gates.",README.md,592,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L592
240
+ ale-0239,Pattern Library,pattern-library,Pattern,🔁,Bug hunting loop,patterns/bug-hunting-loop.md,local_path,,"Discovers, reproduces, minimizes, and reports bugs with concrete evidence.",README.md,593,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L593
241
+ ale-0240,Pattern Library,pattern-library,Pattern,🔁,Enterprise approval loop,patterns/enterprise-approval-loop.md,local_path,,Drives a permissioned change through required gates and approvers with a full audit trail.,README.md,594,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L594
242
+ ale-0241,Pattern Library,pattern-library,Pattern,🔁,Incident response loop,patterns/incident-response-loop.md,local_path,,"Triages an alert into an owned, evidence-backed incident with a postmortem seed.",README.md,595,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L595
243
+ ale-0242,Pattern Library,pattern-library,Pattern,🔁,Data-quality loop,patterns/data-quality-loop.md,local_path,,Validates each dataset refresh against quality rules and quarantines bad versions.,README.md,596,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L596
244
+ ale-0243,Pattern Library,pattern-library,Pattern,🔁,Release-note loop,patterns/release-note-loop.md,local_path,,"Drafts release notes from merged commits, issues, and PRs with linked evidence.",README.md,597,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L597
245
+ ale-0244,Pattern Library,pattern-library,Pattern,🔁,Model-routing loop,patterns/model-routing-loop.md,local_path,,"Routes tasks across models on measured quality, latency, privacy, and cost.",README.md,598,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L598
246
+ ale-0245,"Critiques, Risks, And Limitations",critiques-risks-and-limitations,Critique,⚠️,Most Developers Do Not Need Agent Loops Yet,https://alphasignalai.substack.com/p/most-developers-do-not-need-agent,external,alphasignalai.substack.com,"Useful caution against adopting loops before the task, signal, and economics justify them.",README.md,602,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L602
247
+ ale-0246,"Critiques, Risks, And Limitations",critiques-risks-and-limitations,Critique,⚠️,Engineering Agentic Systems for Reliability,https://pruningmypothos.com/systems/engineering-agentic-systems-for-reliability/,external,pruningmypothos.com,"Cautions that agentic systems fail at boundaries when permissions, verification, traceability, and escalation are weak.",README.md,603,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L603
248
+ ale-0247,"Critiques, Risks, And Limitations",critiques-risks-and-limitations,Critique,⚠️,"Self-Correcting Agents: Reflexion, CRITIC, and ReAct Loops Compared",https://callsphere.ai/blog/self-correcting-agents-reflexion-critic-react-loops-compared-2026,external,callsphere.ai,Compares self-correction patterns and their cost/failure tradeoffs.,README.md,604,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L604
249
+ ale-0248,"Critiques, Risks, And Limitations",critiques-risks-and-limitations,Critique,⚠️,How to Build an AI Agent Harness: A 2026 Complete Guide,https://atlan.com/know/how-to-build-ai-agent-harness/,external,atlan.com,"Broad guide with useful warnings on data readiness, permissions, context management, and evaluation.",README.md,605,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L605
250
+ ale-0249,"Critiques, Risks, And Limitations",critiques-risks-and-limitations,Critique,⚠️,Harness Engineering vs Prompt Engineering vs Context Engineering Explained,https://medium.com/@visrow/harness-engineering-vs-prompt-engineering-vs-context-engineering-explained-0423b692c87d,external,medium.com,Adjacent framing that helps avoid confusing loop engineering with the surrounding harness discipline.,README.md,606,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L606
251
+ ale-0250,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome Harness Engineering,https://github.com/ai-boost/awesome-harness-engineering,external,github.com,Comprehensive list for the agent harness layer that Loop Engineering builds on.,README.md,610,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L610
252
+ ale-0251,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome Harness Engineering,https://github.com/walkinglabs/awesome-harness-engineering,external,github.com,"High-signal harness list with strong categories for context, guardrails, specs, evals, runtimes, and benchmarks.",README.md,611,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L611
253
+ ale-0252,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome Agent Harness,https://github.com/AutoJunjie/awesome-agent-harness,external,github.com,"Curated tools and resources for environments, constraints, and feedback around coding agents.",README.md,612,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L612
254
+ ale-0253,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome Context Engineering,https://github.com/Meirtz/Awesome-Context-Engineering,external,github.com,Survey-style list for context engineering across LLMs and agents.,README.md,613,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L613
255
+ ale-0254,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome Prompt Engineering,https://github.com/promptslab/Awesome-Prompt-Engineering,external,github.com,Classic adjacent list for prompt techniques and prompting resources.,README.md,614,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L614
256
+ ale-0255,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome LLM Agents,https://github.com/kaushikb11/awesome-llm-agents,external,github.com,"General list of LLM agent papers, frameworks, and applications.",README.md,615,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L615
257
+ ale-0256,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome AI Agents,https://github.com/e2b-dev/awesome-ai-agents,external,github.com,Broad AI agent ecosystem map.,README.md,616,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L616
258
+ ale-0257,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome CLI Coding Agents,https://github.com/bradAGI/awesome-cli-coding-agents,external,github.com,"Directory of terminal-native coding agents, parallel runners, autonomous loops, and the harnesses that orchestrate them.",README.md,617,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L617
259
+ ale-0258,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome Self-Evolving Agents,https://github.com/XMUDeepLIT/Awesome-Self-Evolving-Agents,external,github.com,"Survey-style list of agents that improve themselves over repeated runs, an adjacent angle on long-running loops with memory and verification.",README.md,618,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L618
260
+ ale-0259,Adjacent Awesome Lists,adjacent-awesome-lists,List,🧭,Awesome AI Agent Papers,https://github.com/VoltAgent/awesome-ai-agent-papers,external,github.com,"Curated 2026 research collection across agent engineering, memory, evaluation, workflows, and autonomous systems, a paper-level feeder for loop-design foundations.",README.md,619,https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md#L619
data/resources.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
docs/.nojekyll ADDED
@@ -0,0 +1 @@
 
 
1
+
docs/assets/awesome-loop-engineering-logo.svg ADDED
docs/index.html ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Awesome Loop Engineering</title>
7
+ <meta name="description" content="A curated field guide to Loop Engineering: designing recurring AI-agent systems above prompt, context, and harness engineering.">
8
+ <meta name="robots" content="index,follow">
9
+ <link rel="canonical" href="https://chaoyue0307.github.io/awesome-loop-engineering/">
10
+ <link rel="icon" href="assets/awesome-loop-engineering-logo.svg" type="image/svg+xml">
11
+ <meta property="og:type" content="website">
12
+ <meta property="og:title" content="Awesome Loop Engineering">
13
+ <meta property="og:description" content="Curated resources, patterns, examples, schema, and field guides for recurring AI-agent systems.">
14
+ <meta property="og:url" content="https://chaoyue0307.github.io/awesome-loop-engineering/">
15
+ <meta property="og:image" content="https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/assets/social-preview.png">
16
+ <meta name="twitter:card" content="summary_large_image">
17
+ <meta name="twitter:title" content="Awesome Loop Engineering">
18
+ <meta name="twitter:description" content="A field guide for designing recurring AI-agent systems above prompt, context, and harness engineering.">
19
+ <meta name="twitter:image" content="https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/assets/social-preview.png">
20
+ <style>
21
+ :root {
22
+ color-scheme: dark;
23
+ --bg: #0b1020;
24
+ --bg-2: #0f172a;
25
+ --panel: rgba(17, 24, 39, 0.72);
26
+ --panel-solid: #111827;
27
+ --muted: #c2cad8;
28
+ --faint: #8b95a7;
29
+ --text: #f8fafc;
30
+ --accent: #38bdf8;
31
+ --accent-2: #a78bfa;
32
+ --border: rgba(148, 163, 184, 0.18);
33
+ --border-strong: rgba(148, 163, 184, 0.34);
34
+ --radius: 18px;
35
+ --maxw: 1140px;
36
+ }
37
+ * { box-sizing: border-box; }
38
+ html { scroll-behavior: smooth; scroll-padding-top: 84px; }
39
+ body {
40
+ margin: 0;
41
+ background:
42
+ radial-gradient(1100px 540px at 8% -6%, rgba(56, 189, 248, 0.16), transparent 70%),
43
+ radial-gradient(1000px 520px at 100% 4%, rgba(167, 139, 250, 0.16), transparent 70%),
44
+ var(--bg);
45
+ color: var(--text);
46
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
47
+ line-height: 1.62;
48
+ -webkit-font-smoothing: antialiased;
49
+ }
50
+ a { color: #8fd6fb; text-decoration: none; }
51
+ a:hover { text-decoration: underline; }
52
+ .wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
53
+
54
+ /* Header */
55
+ header.site {
56
+ position: sticky; top: 0; z-index: 50;
57
+ backdrop-filter: blur(12px);
58
+ background: rgba(11, 16, 32, 0.72);
59
+ border-bottom: 1px solid var(--border);
60
+ }
61
+ .nav { display: flex; align-items: center; gap: 18px; height: 64px; }
62
+ .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
63
+ .brand .logo { width: 28px; height: 28px; border-radius: 8px; display: block; flex: 0 0 auto; box-shadow: 0 6px 18px rgba(56, 189, 248, 0.18); }
64
+ .nav .links { display: flex; gap: 18px; margin-left: 14px; }
65
+ .nav .links a { color: var(--muted); font-size: 0.93rem; font-weight: 600; }
66
+ .nav .links a:hover { color: var(--text); text-decoration: none; }
67
+ .nav .spacer { flex: 1; }
68
+ .nav .ghs { display: flex; gap: 10px; }
69
+ .pill { border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; font-weight: 700; color: var(--text); background: rgba(15, 23, 42, 0.6); }
70
+ .pill.solid { border-color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #07101f; }
71
+ .menu-btn { display: none; }
72
+
73
+ main { padding-bottom: 80px; }
74
+ section { padding: 64px 0 8px; }
75
+ .eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
76
+ h1 { margin: 12px 0 16px; font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.045em; }
77
+ h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; margin: 0 0 8px; }
78
+ .section-intro { color: var(--muted); max-width: 760px; margin: 0 0 26px; }
79
+ .lead { color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.28rem); max-width: 720px; }
80
+
81
+ /* Hero */
82
+ .hero { padding-top: 56px; }
83
+ .hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 34px; align-items: center; }
84
+ .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
85
+ .btn { border: 1px solid var(--border-strong); border-radius: 999px; padding: 11px 19px; font-weight: 700; color: var(--text); background: rgba(15, 23, 42, 0.66); }
86
+ .btn:hover { text-decoration: none; border-color: var(--accent); }
87
+ .btn.primary { border-color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #07101f; }
88
+ .visual { border: 1px solid var(--border); border-radius: 26px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,0.34); }
89
+ .visual img { display: block; width: 100%; }
90
+
91
+ .definition { margin-top: 30px; border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 14px; background: rgba(15, 23, 42, 0.7); color: var(--muted); }
92
+ .definition strong { color: var(--text); }
93
+
94
+ /* Stats */
95
+ .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px; }
96
+ .stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--panel); text-align: center; }
97
+ .stat b { display: block; font-size: 1.9rem; letter-spacing: -0.03em; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
98
+ .stat span { color: var(--faint); font-size: 0.84rem; font-weight: 600; }
99
+
100
+ /* Generic grids and cards */
101
+ .grid { display: grid; gap: 16px; }
102
+ .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
103
+ .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
104
+ .card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--panel); transition: transform 0.16s ease, border-color 0.16s ease; }
105
+ .card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
106
+ .card h3 { margin: 0 0 8px; font-size: 1.06rem; }
107
+ .card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
108
+
109
+ .stack { display: grid; gap: 12px; }
110
+ .layer { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: rgba(15, 23, 42, 0.7); }
111
+ .layer.top { border-color: transparent; background: linear-gradient(90deg, rgba(56,189,248,0.16), rgba(167,139,250,0.16)); }
112
+ .layer strong { color: var(--text); }
113
+ .layer span { color: var(--faint); }
114
+
115
+ .wide { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: 0 26px 70px rgba(0,0,0,0.28); }
116
+ .wide img { display: block; width: 100%; }
117
+
118
+ /* Pattern cards */
119
+ .pat { display: block; border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px; background: var(--panel); transition: transform 0.16s ease, border-color 0.16s ease; }
120
+ .pat:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
121
+ .pat .sym { color: var(--faint); font-size: 0.82rem; }
122
+ .pat .name { display: block; color: var(--text); font-weight: 700; margin-top: 4px; }
123
+
124
+ /* Maturity */
125
+ .levels { display: grid; gap: 10px; }
126
+ .lvl { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; background: var(--panel); }
127
+ .lvl b { font-size: 1.4rem; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
128
+ .lvl .t { color: var(--text); font-weight: 700; }
129
+ .lvl .d { color: var(--faint); font-size: 0.9rem; }
130
+
131
+ /* Chips */
132
+ .chips { display: flex; flex-wrap: wrap; gap: 10px; }
133
+ .chip { border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 15px; font-size: 0.9rem; font-weight: 600; color: var(--muted); background: rgba(15,23,42,0.6); }
134
+ .chip:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
135
+
136
+ footer { margin-top: 70px; border-top: 1px solid var(--border); padding-top: 30px; color: var(--faint); }
137
+ footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
138
+ footer h4 { color: var(--text); margin: 0 0 10px; font-size: 0.95rem; }
139
+ footer a { color: var(--muted); display: block; padding: 3px 0; }
140
+ .cite { position: relative; border: 1px solid var(--border); border-radius: 12px; background: #0a0f1d; padding: 14px 14px; margin-top: 12px; overflow: auto; }
141
+ .cite pre { margin: 0; color: #cbd5e1; font-size: 0.8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
142
+ .copy { position: absolute; top: 10px; right: 10px; border: 1px solid var(--border-strong); background: rgba(15,23,42,0.8); color: var(--text); border-radius: 8px; padding: 4px 10px; font-size: 0.78rem; cursor: pointer; }
143
+ .legal { margin-top: 26px; font-size: 0.88rem; }
144
+
145
+ @media (max-width: 900px) {
146
+ .hero-grid { grid-template-columns: 1fr; }
147
+ .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
148
+ .stats { grid-template-columns: repeat(2, 1fr); }
149
+ footer .cols { grid-template-columns: 1fr; }
150
+ .nav .links { display: none; }
151
+ .menu-btn { display: inline-flex; }
152
+ }
153
+ @media (max-width: 560px) {
154
+ .g-3, .g-4 { grid-template-columns: 1fr; }
155
+ .lvl { grid-template-columns: 44px 1fr; }
156
+ .nav { gap: 8px; }
157
+ .brand .bt { display: none; }
158
+ .pill { padding: 6px 12px; font-size: 0.82rem; white-space: nowrap; }
159
+ h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
160
+ }
161
+ @media (prefers-reduced-motion: reduce) {
162
+ html { scroll-behavior: auto; }
163
+ .card, .pat { transition: none; }
164
+ }
165
+ </style>
166
+ <script type="application/ld+json">
167
+ {
168
+ "@context": "https://schema.org",
169
+ "@type": "CollectionPage",
170
+ "name": "Awesome Loop Engineering",
171
+ "url": "https://chaoyue0307.github.io/awesome-loop-engineering/",
172
+ "description": "A curated field guide to Loop Engineering: designing recurring AI-agent systems above prompt, context, and harness engineering.",
173
+ "keywords": ["Loop Engineering", "AI agents", "Coding agents", "Agent workflows", "Agentic loops"],
174
+ "isPartOf": {
175
+ "@type": "WebSite",
176
+ "name": "Awesome Loop Engineering",
177
+ "url": "https://github.com/ChaoYue0307/awesome-loop-engineering"
178
+ },
179
+ "license": "https://creativecommons.org/publicdomain/zero/1.0/",
180
+ "logo": "https://chaoyue0307.github.io/awesome-loop-engineering/assets/awesome-loop-engineering-logo.svg",
181
+ "author": { "@type": "Person", "name": "Chaoyue He" }
182
+ }
183
+ </script>
184
+ </head>
185
+ <body>
186
+ <header class="site">
187
+ <div class="wrap nav">
188
+ <span class="brand"><img class="logo" src="assets/awesome-loop-engineering-logo.svg" alt="" width="28" height="28"> <span class="bt">Loop Engineering</span></span>
189
+ <nav class="links" aria-label="Primary">
190
+ <a href="#concept">Concept</a>
191
+ <a href="#lifecycle">Lifecycle</a>
192
+ <a href="#choose">Choose a loop</a>
193
+ <a href="#patterns">Patterns</a>
194
+ <a href="#runtimes">Runtimes</a>
195
+ <a href="#resources">Resources</a>
196
+ </nav>
197
+ <span class="spacer"></span>
198
+ <span class="ghs">
199
+ <a class="pill" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">HF Dataset</a>
200
+ <a class="pill solid" href="https://github.com/ChaoYue0307/awesome-loop-engineering">GitHub</a>
201
+ </span>
202
+ </div>
203
+ </header>
204
+
205
+ <main>
206
+ <!-- HERO -->
207
+ <section class="hero" id="top">
208
+ <div class="wrap">
209
+ <div class="hero-grid">
210
+ <div>
211
+ <div class="eyebrow">Awesome Loop Engineering</div>
212
+ <h1>Design loops,<br>not just prompts.</h1>
213
+ <p class="lead">
214
+ Loop Engineering is the AI and coding-agent practice of designing recurring systems that discover work, delegate it to agents, verify results, persist state, decide next actions, and run again.
215
+ </p>
216
+ <div class="cta">
217
+ <a class="btn primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering#readme">Explore the list</a>
218
+ <a class="btn" href="#choose">Choose your loop</a>
219
+ <a class="btn" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/MATRIX.md">Pattern matrix</a>
220
+ </div>
221
+ </div>
222
+ <div class="visual">
223
+ <img src="https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/assets/loop-engineering-stack.svg" alt="Diagram of the engineering stack: Prompt, Context, and Harness Engineering improve one run; Loop Engineering governs recurring agent work over time.">
224
+ </div>
225
+ </div>
226
+
227
+ <div class="stats" role="list" aria-label="Repository at a glance">
228
+ <div class="stat" role="listitem"><b>15</b><span>operational patterns</span></div>
229
+ <div class="stat" role="listitem"><b>15</b><span>loop contracts</span></div>
230
+ <div class="stat" role="listitem"><b>6</b><span>runnable templates</span></div>
231
+ <div class="stat" role="listitem"><b>250+</b><span>curated entries</span></div>
232
+ <div class="stat" role="listitem"><b>8</b><span>languages</span></div>
233
+ </div>
234
+
235
+ <div class="definition">
236
+ <strong>Canonical definition.</strong>
237
+ Loop Engineering is the AI and coding-agent practice of designing recurring systems that discover work, delegate it to agents, verify results, persist state, decide next actions, and run again on a cadence, event, or until a verifiable goal is reached.
238
+ </div>
239
+ </div>
240
+ </section>
241
+
242
+ <!-- CONCEPT / STACK -->
243
+ <section id="concept">
244
+ <div class="wrap">
245
+ <div class="eyebrow">The stack</div>
246
+ <h2>Four layers, one recurring system</h2>
247
+ <p class="section-intro">Prompt, context, and harness engineering make a single agent run better. Loop Engineering sits on top and governs agent work over time.</p>
248
+ <div class="stack">
249
+ <div class="layer"><strong>Prompt Engineering</strong> &mdash; <span>what should I say to the model?</span></div>
250
+ <div class="layer"><strong>Context Engineering</strong> &mdash; <span>what state, memory, and knowledge should the model see?</span></div>
251
+ <div class="layer"><strong>Harness Engineering</strong> &mdash; <span>what tools, permissions, sandboxes, and checks surround one run?</span></div>
252
+ <div class="layer top"><strong>Loop Engineering</strong> &mdash; <span>what recurring system governs agent work over time?</span></div>
253
+ </div>
254
+ </div>
255
+ </section>
256
+
257
+ <!-- LIFECYCLE -->
258
+ <section id="lifecycle">
259
+ <div class="wrap">
260
+ <div class="eyebrow">The lifecycle</div>
261
+ <h2>One pass of a recurring loop</h2>
262
+ <p class="section-intro">Verification is a deterministic gate, not the agent's opinion. State persists outside the model. Every loop has a budget and a human exit.</p>
263
+ <div class="wide">
264
+ <img src="https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/assets/loop-lifecycle.svg" alt="Loop Engineering lifecycle: Intake, Delegate, Act, Verify, Persist, Decide; Decide retries by feeding evidence back, escalates to a human, or exits when the goal is met.">
265
+ </div>
266
+ </div>
267
+ </section>
268
+
269
+ <!-- CHOOSE YOUR LOOP -->
270
+ <section id="choose">
271
+ <div class="wrap">
272
+ <div class="eyebrow">Choose your loop</div>
273
+ <h2>Start from the problem you have</h2>
274
+ <p class="section-intro">Each card opens a ready-to-adapt pattern with a trigger, verification gate, durable state, budget, and escalation path. Compare them all in the <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/MATRIX.md">pattern matrix</a>.</p>
275
+ <div class="grid g-3">
276
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/pr-babysitter.md"><span class="sym">&ldquo;My PR is stuck&rdquo;</span><span class="name">PR babysitter</span></a>
277
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/ci-repair-loop.md"><span class="sym">&ldquo;CI keeps failing&rdquo;</span><span class="name">CI repair loop</span></a>
278
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/docs-drift-collector.md"><span class="sym">&ldquo;The docs may be stale&rdquo;</span><span class="name">Docs drift collector</span></a>
279
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/deploy-verifier.md"><span class="sym">&ldquo;A deploy needs monitoring&rdquo;</span><span class="name">Deploy verifier</span></a>
280
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/feedback-clusterer.md"><span class="sym">&ldquo;Feedback is noisy&rdquo;</span><span class="name">Feedback clusterer</span></a>
281
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/dependency-triage-loop.md"><span class="sym">&ldquo;Updates pile up&rdquo;</span><span class="name">Dependency triage loop</span></a>
282
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/evaluation-regression-loop.md"><span class="sym">&ldquo;Agent evals regressed&rdquo;</span><span class="name">Evaluation regression loop</span></a>
283
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/security-review-loop.md"><span class="sym">&ldquo;Sensitive changes need review&rdquo;</span><span class="name">Security review loop</span></a>
284
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/cost-control-loop.md"><span class="sym">&ldquo;Agent spend is rising&rdquo;</span><span class="name">Cost-control loop</span></a>
285
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/bug-hunting-loop.md"><span class="sym">&ldquo;Recurring bug discovery&rdquo;</span><span class="name">Bug hunting loop</span></a>
286
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/enterprise-approval-loop.md"><span class="sym">&ldquo;A change needs sign-off&rdquo;</span><span class="name">Enterprise approval loop</span></a>
287
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/incident-response-loop.md"><span class="sym">&ldquo;An incident just paged&rdquo;</span><span class="name">Incident response loop</span></a>
288
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/data-quality-loop.md"><span class="sym">&ldquo;A dataset keeps drifting&rdquo;</span><span class="name">Data-quality loop</span></a>
289
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/release-note-loop.md"><span class="sym">&ldquo;Release notes are a chore&rdquo;</span><span class="name">Release-note loop</span></a>
290
+ <a class="pat" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/model-routing-loop.md"><span class="sym">&ldquo;Model choice is ad hoc&rdquo;</span><span class="name">Model-routing loop</span></a>
291
+ </div>
292
+ </div>
293
+ </section>
294
+
295
+ <!-- PATTERNS / CONTRACT -->
296
+ <section id="patterns">
297
+ <div class="wrap">
298
+ <div class="eyebrow">The loop contract</div>
299
+ <h2>Every loop names the same parts</h2>
300
+ <p class="section-intro">A useful loop has a contract. If a part is missing, it becomes either a manual prompt habit or an unsafe background automation.</p>
301
+ <div class="wide">
302
+ <img src="https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/assets/loop-contract-cards.svg" alt="Loop Contract cards: objective, trigger, intake, workspace, context, delegation, verification, state, budget, escalation, and exit.">
303
+ </div>
304
+ <div class="grid g-3" style="margin-top:18px">
305
+ <div class="card"><h3>Verifiable by design</h3><p>Tests, typechecks, evals, traces, or reviewers decide done &mdash; never the acting agent alone.</p></div>
306
+ <div class="card"><h3>State outside the model</h3><p>Progress files, issues, checkpoints, and traces survive the next run and every context reset.</p></div>
307
+ <div class="card"><h3>Budgeted and bounded</h3><p>Retries, runtime, and concurrency are capped, with a clear human exit before anything risky ships.</p></div>
308
+ </div>
309
+ </div>
310
+ </section>
311
+
312
+ <!-- RUNTIMES -->
313
+ <section id="runtimes">
314
+ <div class="wrap">
315
+ <div class="eyebrow">Where loops run</div>
316
+ <h2>Pick a runtime deliberately</h2>
317
+ <p class="section-intro">The same contract can run as a session command, a scheduled cloud job, a CI workflow, or a cron wrapper. The <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/meta/RUNTIME_SELECTION.md">runtime selection guide</a> compares persistence, file access, isolation, and permissions.</p>
318
+ <div class="grid g-3">
319
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/claude-loop.md"><h3>Claude Code <code>/loop</code></h3><p>Session-scoped recurring task while you are nearby.</p></a>
320
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/claude-desktop-scheduled-task.md"><h3>Desktop scheduled task</h3><p>Local recurring runs with file access and missed-run guardrails.</p></a>
321
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/codex-automation.md"><h3>Codex automation</h3><p>Unattended background task in an isolated worktree.</p></a>
322
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/github-agentic-workflow.md"><h3>GitHub agentic workflow</h3><p>Scheduled or event-triggered loop in GitHub Actions.</p></a>
323
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/shell-cron-loop.md"><h3>Shell / cron</h3><p>Minimal wrapper that delegates to an agent CLI and records receipts.</p></a>
324
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/test-repair-loop.sh"><h3>Runnable reference</h3><p>A dependency-light test-repair loop you can run today.</p></a>
325
+ </div>
326
+ </div>
327
+ </section>
328
+
329
+ <!-- MATURITY -->
330
+ <section id="maturity">
331
+ <div class="wrap">
332
+ <div class="eyebrow">Loop maturity model</div>
333
+ <h2>Climb the model slowly</h2>
334
+ <p class="section-intro">A reliable Level 3 loop with clear state and deterministic checks is usually more valuable than a flashy Level 5 loop with vague goals.</p>
335
+ <div class="levels">
336
+ <div class="lvl"><b>0</b><div><div class="t">Manual prompting</div><div class="d">A human reads state and writes the next prompt.</div></div></div>
337
+ <div class="lvl"><b>1</b><div><div class="t">Scripted retry</div><div class="d">A shell or script loop feeds errors back to an agent.</div></div></div>
338
+ <div class="lvl"><b>2</b><div><div class="t">Scheduled loop</div><div class="d">The agent runs on a cadence and reports findings.</div></div></div>
339
+ <div class="lvl"><b>3</b><div><div class="t">Stateful loop</div><div class="d">Progress survives across sessions through files, issues, or checkpoints.</div></div></div>
340
+ <div class="lvl"><b>4</b><div><div class="t">Self-verifying loop</div><div class="d">Deterministic checks or evaluator agents gate completion.</div></div></div>
341
+ <div class="lvl"><b>5</b><div><div class="t">Multi-agent loop</div><div class="d">Specialized agents split discovery, implementation, review, and judgment.</div></div></div>
342
+ <div class="lvl"><b>6</b><div><div class="t">Production-supervised loop</div><div class="d">Observability, budgets, approvals, rollback, and escalation are first-class.</div></div></div>
343
+ </div>
344
+ </div>
345
+ </section>
346
+
347
+ <!-- RESOURCES -->
348
+ <section id="resources">
349
+ <div class="wrap">
350
+ <div class="eyebrow">The curated list</div>
351
+ <h2>Browse by category</h2>
352
+ <p class="section-intro">Primary sources, official docs, papers, benchmarks, and implementation-heavy write-ups &mdash; selective, not a dump. Jump into any section of the README.</p>
353
+ <div class="chips">
354
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#start-here">Start Here</a>
355
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#core-loop-primitives">Core Loop Primitives</a>
356
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#official-runtime-guides">Runtime Guides</a>
357
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#research-foundations">Research Foundations</a>
358
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#verification-and-feedback-gates">Verification &amp; Feedback</a>
359
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#securing-unattended-loops">Securing Unattended Loops</a>
360
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#state-memory-and-context-persistence">State &amp; Memory</a>
361
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#orchestration-and-multi-agent-delegation">Orchestration</a>
362
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#benchmarks-and-evaluation">Benchmarks</a>
363
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#critiques-risks-and-limitations">Critiques &amp; Risks</a>
364
+ <a class="chip" href="https://github.com/ChaoYue0307/awesome-loop-engineering#adjacent-awesome-lists">Adjacent Lists</a>
365
+ </div>
366
+ </div>
367
+ </section>
368
+
369
+ <!-- CONTRIBUTE -->
370
+ <section id="contribute">
371
+ <div class="wrap">
372
+ <div class="eyebrow">Contribute</div>
373
+ <h2>Bring a source or a real loop</h2>
374
+ <div class="grid g-3">
375
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/CONTRIBUTING.md"><h3>Add a resource</h3><p>Primary sources and implementation-heavy write-ups, with one specific annotation.</p></a>
376
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/gallery/README.md"><h3>Share a loop</h3><p>Use the case-study and anonymization checklists to publish a real or anonymized loop.</p></a>
377
+ <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/discussions/2"><h3>Join the discussion</h3><p>Show your Loop Engineering patterns and compare notes with other builders.</p></a>
378
+ </div>
379
+ </div>
380
+ </section>
381
+
382
+ <footer>
383
+ <div class="wrap">
384
+ <div class="cols">
385
+ <div>
386
+ <h4>Cite this repository</h4>
387
+ <div class="cite">
388
+ <button class="copy" type="button" data-copy="cite-bib">Copy</button>
389
+ <pre id="cite-bib">@misc{chaoyue2026awesome_loop_engineering,
390
+ author = {He, Chaoyue},
391
+ title = {Awesome Loop Engineering},
392
+ year = {2026},
393
+ howpublished = {\url{https://github.com/ChaoYue0307/awesome-loop-engineering}}
394
+ }</pre>
395
+ </div>
396
+ </div>
397
+ <div>
398
+ <h4>Explore</h4>
399
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/DEFINITION.md">Canonical definition</a>
400
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/MANIFESTO.md">Manifesto</a>
401
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/TAXONOMY.md">Taxonomy</a>
402
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/ANTI-PATTERNS.md">Anti-patterns</a>
403
+ </div>
404
+ <div>
405
+ <h4>Project</h4>
406
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering">GitHub repository</a>
407
+ <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging Face dataset</a>
408
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/ROADMAP.md">Roadmap</a>
409
+ <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/TRANSLATIONS.md">Translations</a>
410
+ </div>
411
+ </div>
412
+ <p class="legal">
413
+ This is an early curated map of an emerging practice, not a final standard. Original repository materials are released under CC0-1.0. Linked resources keep their own licenses.
414
+ </p>
415
+ </div>
416
+ </footer>
417
+ </main>
418
+
419
+ <script>
420
+ document.querySelectorAll('.copy').forEach(function (btn) {
421
+ btn.addEventListener('click', function () {
422
+ var el = document.getElementById(btn.getAttribute('data-copy'));
423
+ if (!el) return;
424
+ navigator.clipboard.writeText(el.innerText).then(function () {
425
+ var prev = btn.textContent; btn.textContent = 'Copied'; setTimeout(function () { btn.textContent = prev; }, 1400);
426
+ });
427
+ });
428
+ });
429
+ </script>
430
+ </body>
431
+ </html>
docs/llms.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Awesome Loop Engineering
2
+
3
+ > Curated resources and practical patterns for Loop Engineering: the practice of designing recurring AI-agent and coding-agent systems that discover work, delegate to agents, verify results, persist state, and run again on a cadence or until a verifiable goal is reached.
4
+
5
+ ## Core
6
+
7
+ - [README](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md): the curated list with the Loop Contract, design checklist, and maturity model
8
+ - [Canonical definition](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/DEFINITION.md): short definition, positioning, and minimal loop test
9
+ - [Taxonomy](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/TAXONOMY.md): classification by trigger, intake, verification, state model, and topology
10
+ - [Anti-patterns](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/ANTI-PATTERNS.md): common loop failure modes
11
+
12
+ ## Patterns
13
+
14
+ - [Pattern library](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/README.md): operational loop patterns with triggers, gates, budgets, and escalation
15
+ - [Loop contracts](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/README.md): schema-validated contract JSON for every pattern, plus runnable reference loops
16
+
17
+ ## Optional
18
+
19
+ - [Landing page](https://chaoyue0307.github.io/awesome-loop-engineering/)
20
+ - [Contributing](https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/CONTRIBUTING.md)
docs/robots.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ User-agent: *
2
+ Allow: /
3
+
4
+ Sitemap: https://chaoyue0307.github.io/awesome-loop-engineering/sitemap.xml
docs/sitemap.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
+ <url>
4
+ <loc>https://chaoyue0307.github.io/awesome-loop-engineering/</loc>
5
+ <changefreq>weekly</changefreq>
6
+ <priority>1.0</priority>
7
+ </url>
8
+ <url>
9
+ <loc>https://github.com/ChaoYue0307/awesome-loop-engineering</loc>
10
+ <changefreq>weekly</changefreq>
11
+ <priority>0.9</priority>
12
+ </url>
13
+ <url>
14
+ <loc>https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/DEFINITION.md</loc>
15
+ <changefreq>monthly</changefreq>
16
+ <priority>0.8</priority>
17
+ </url>
18
+ <url>
19
+ <loc>https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/MANIFESTO.md</loc>
20
+ <changefreq>monthly</changefreq>
21
+ <priority>0.8</priority>
22
+ </url>
23
+ <url>
24
+ <loc>https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/README.md</loc>
25
+ <changefreq>monthly</changefreq>
26
+ <priority>0.7</priority>
27
+ </url>
28
+ </urlset>
examples/README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Loop Examples
2
+
3
+ These examples show how to turn the abstract loop contract into concrete operating specs.
4
+
5
+ ## Contract Library
6
+
7
+ Every loop in the [pattern library](../patterns/README.md) has a matching contract. Each JSON file follows [`schemas/loop-contract.schema.json`](../schemas/loop-contract.schema.json) and is validated in CI:
8
+
9
+ - [`pr-babysitter-loop.json`](pr-babysitter-loop.json)
10
+ - [`ci-repair-loop.json`](ci-repair-loop.json)
11
+ - [`docs-drift-loop.json`](docs-drift-loop.json)
12
+ - [`deploy-verifier-loop.json`](deploy-verifier-loop.json)
13
+ - [`feedback-clusterer-loop.json`](feedback-clusterer-loop.json)
14
+ - [`dependency-triage-loop.json`](dependency-triage-loop.json)
15
+ - [`evaluation-regression-loop.json`](evaluation-regression-loop.json)
16
+ - [`security-review-loop.json`](security-review-loop.json)
17
+ - [`cost-control-loop.json`](cost-control-loop.json)
18
+ - [`bug-hunting-loop.json`](bug-hunting-loop.json)
19
+ - [`enterprise-approval-loop.json`](enterprise-approval-loop.json)
20
+ - [`incident-response-loop.json`](incident-response-loop.json)
21
+ - [`data-quality-loop.json`](data-quality-loop.json)
22
+ - [`release-note-loop.json`](release-note-loop.json)
23
+ - [`model-routing-loop.json`](model-routing-loop.json)
24
+
25
+ Use them as starting points. Adapt triggers, tools, checks, state artifacts, and escalation rules to your repository and runtime.
26
+
27
+ ## Runnable Loops
28
+
29
+ The [runnable directory](runnable/README.md) contains working loop scripts, starting with a dependency-light test-repair loop you can drive with Claude Code, Codex CLI, or any agent CLI.
30
+
31
+ ## PR Babysitter
32
+
33
+ Use when a PR needs recurring attention but should not require a human to poll comments, checks, conflicts, and stale review state.
34
+
35
+ Example loop instruction:
36
+
37
+ ```text
38
+ Every 2 hours during working hours, inspect PR <number>.
39
+ Load review comments, check status, mergeability, linked issues, and project instructions.
40
+ If there is a narrow mechanical blocker, patch it in an isolated worktree and run the smallest relevant checks.
41
+ Record commands, changed files, check URLs, and remaining blockers in a PR comment.
42
+ Stop when the PR is merge-ready, waiting only on human review, blocked, or out of retry budget.
43
+ ```
44
+
45
+ Good gates:
46
+
47
+ - required checks pass;
48
+ - unresolved comments are answered or resolved;
49
+ - merge conflicts are gone;
50
+ - diff is limited to the stated blocker.
51
+
52
+ ## CI Repair Loop
53
+
54
+ Use when failing CI should be turned into either a small verified patch or an escalation note.
55
+
56
+ Example loop instruction:
57
+
58
+ ```text
59
+ When a required CI check fails, inspect the failing check, logs, artifacts, changed files, and recent successful run.
60
+ Identify the exact failing command or closest local equivalent.
61
+ Patch only the smallest log-backed cause, rerun the failing command first, and summarize evidence.
62
+ Escalate instead of changing tests, broad CI config, dependencies, or unrelated files without proof.
63
+ ```
64
+
65
+ Good gates:
66
+
67
+ - the original failing command passes locally or in rerun CI;
68
+ - the patch is limited to the failure cause;
69
+ - behavior changes include focused tests;
70
+ - the report includes the failing log excerpt and passing output.
71
+
72
+ ## Docs Drift Collector
73
+
74
+ Use when docs need periodic alignment with code, CLI behavior, schemas, or examples.
75
+
76
+ Example loop instruction:
77
+
78
+ ```text
79
+ Weekly, scan changed files, public docs, examples, generated API references, CLI help, and docs-related issues.
80
+ Confirm each possible drift item against code, schema, tests, or runtime output before editing.
81
+ Patch only verified mismatches, run docs/link/example checks, and record false positives so future runs do not repeat them.
82
+ Escalate when product behavior, generated docs, credentials, or screenshots need owner judgment.
83
+ ```
84
+
85
+ Good gates:
86
+
87
+ - examples run or match current output;
88
+ - link checker passes;
89
+ - generated files are not edited manually unless that is the project convention;
90
+ - false positives are recorded as loop state.