cy0307 commited on
Commit
1926a97
·
verified ·
1 Parent(s): 7c666e6

Polish mobile site experience

Browse files
Files changed (2) hide show
  1. docs/assets/loop-hero-scene.js +8 -5
  2. docs/index.html +226 -35
docs/assets/loop-hero-scene.js CHANGED
@@ -416,12 +416,15 @@ if (container && hero) {
416
  renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, mobile || lowPower ? 1.25 : 1.6));
417
  renderer.setSize(width, height, false);
418
  camera.aspect = width / height;
419
- camera.fov = mobile ? 35 : 31;
420
- camera.position.z = mobile ? 12.9 : 12.2;
421
  camera.updateProjectionMatrix();
422
- layoutScaleX = mobile ? 1.04 : 1.58;
423
- layoutScaleY = mobile ? 0.96 : 1.04;
424
- root.position.y = mobile ? -0.14 : -0.28;
 
 
 
425
  render(performance.now());
426
  }
427
 
 
416
  renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, mobile || lowPower ? 1.25 : 1.6));
417
  renderer.setSize(width, height, false);
418
  camera.aspect = width / height;
419
+ camera.fov = mobile ? 34 : 31;
420
+ camera.position.z = mobile ? 9.9 : 12.2;
421
  camera.updateProjectionMatrix();
422
+ layoutScaleX = mobile ? 1.02 : 1.58;
423
+ layoutScaleY = mobile ? 1.12 : 1.04;
424
+ root.position.y = mobile ? -0.02 : -0.28;
425
+ flowMaterial.opacity = mobile ? 0.42 : 0.28;
426
+ flowAura.material.opacity = mobile ? 0.09 : 0.05;
427
+ focusBeam.material.opacity = mobile ? 0.4 : 0.28;
428
  render(performance.now());
429
  }
430
 
docs/index.html CHANGED
@@ -137,6 +137,7 @@
137
  font-weight: 700;
138
  cursor: pointer;
139
  }
 
140
 
141
  main { overflow: hidden; }
142
  section { padding: 86px 0; border-top: 1px solid var(--line); }
@@ -224,6 +225,82 @@
224
  .caption { margin: 13px 0 0; color: var(--quiet); font-size: 0.78rem; text-align: right; }
225
  .supporting-visual { margin: 0 0 34px; }
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  .principles, .link-grid, .pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
228
  .principle, .card, .pattern {
229
  min-width: 0;
@@ -380,15 +457,21 @@
380
  padding: 10px 24px 14px;
381
  border-bottom: 1px solid var(--line);
382
  background: var(--paper);
 
 
 
383
  }
384
  .links.open a { padding: 9px 0; }
 
385
  .links.open a[aria-current="location"]::after { display: none; }
386
  }
387
  @media (max-width: 820px) {
388
  .wrap { width: min(var(--maxw), calc(100% - 32px)); }
389
  .links.open { left: -16px; right: -16px; padding-inline: 16px; }
390
  section { padding: 68px 0; }
391
- .hero { padding-top: 52px; }
 
 
392
  h1 { font-size: 3rem; }
393
  h2 { font-size: 2rem; }
394
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
@@ -409,33 +492,83 @@
409
  .loop-stage:nth-child(n+4) { border-top: 1px solid var(--line); }
410
  }
411
  @media (max-width: 560px) {
 
 
 
412
  .project-links .nav-link:first-child { display: none; }
 
 
413
  .brand .brand-text { display: none; }
414
- h1 { font-size: 2.5rem; }
415
- .tagline { font-size: 1.22rem; }
416
- .lead { font-size: 1rem; }
417
- .mental-model { padding-top: 30px; }
418
- .hero { min-height: 720px; padding-top: 52px; }
419
- .hero-scene { inset: 490px -170px 0; }
420
- .hero-scene canvas { opacity: 0.9; }
421
- .loop-stage-rail { margin-top: 24px; }
422
- .loop-stage { min-height: 44px; padding-inline: 6px; font-size: 0.72rem; }
423
- .loop-stage-detail { min-height: 44px; font-size: 0.76rem; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  .principles, .link-grid, .pattern-grid, .footer-grid { grid-template-columns: 1fr; }
425
  .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
426
- .pattern { min-height: 88px; }
 
427
  .resource-toolbar { grid-template-columns: 1fr; }
428
  .resource-toolbar label:first-child { grid-column: auto; }
 
 
429
  .resource-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
430
- .resource-collection { min-width: 0; padding-inline: 4px; }
431
  .resource-summary { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 0; }
432
  .resource-sort { width: 100%; }
433
- .resource-item { grid-template-columns: 1fr; gap: 8px; }
434
  .resource-side { text-align: left; }
435
  .caption { text-align: left; }
436
  .level { grid-template-columns: 46px 1fr; }
437
- .diagram-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
438
- .diagram-scroll img { width: 860px; max-width: none; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  }
440
  @media (prefers-reduced-motion: reduce) {
441
  html { scroll-behavior: auto; }
@@ -460,7 +593,7 @@
460
  "description": "A curated field guide to Loop Engineering: designing recurring AI-agent systems above prompt, context, and harness engineering.",
461
  "keywords": ["Loop Engineering", "AI agents", "Coding agents", "Agent workflows", "Agentic loops"],
462
  "datePublished": "2026-06-10",
463
- "dateModified": "2026-07-16",
464
  "sameAs": [
465
  "https://github.com/ChaoYue0307/awesome-loop-engineering",
466
  "https://huggingface.co/datasets/cy0307/awesome-loop-engineering"
@@ -557,9 +690,10 @@
557
  <a href="#maturity">Maturity</a>
558
  <a href="#resources">Resources</a>
559
  <a href="#faq">FAQ</a>
 
560
  </nav>
561
  <span class="spacer"></span>
562
- <button class="menu-btn" type="button" aria-expanded="false" aria-controls="primary-nav" aria-label="Toggle navigation">Menu</button>
563
  <nav class="project-links" aria-label="Project links">
564
  <a class="nav-link" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Dataset</a>
565
  <a class="nav-link primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering">GitHub</a>
@@ -569,7 +703,6 @@
569
 
570
  <main id="main" tabindex="-1">
571
  <section class="hero" id="top">
572
- <div class="hero-scene" data-loop-scene aria-hidden="true"></div>
573
  <div class="wrap">
574
  <div class="hero-copy">
575
  <p class="section-label hero-kicker">The field guide for recurring AI-agent systems</p>
@@ -591,11 +724,12 @@
591
  </div>
592
  <p class="loop-stage-detail" id="loop-stage-detail" aria-live="polite"><strong>Verify:</strong> gate completion with tests, evals, traces, or review.</p>
593
  </div>
 
594
  </section>
595
 
596
  <section class="mental-model" aria-label="Loop Engineering mental model">
597
  <div class="wrap">
598
- <p class="definition"><strong>Loop Engineering</strong> is the 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.</p>
599
  <figure class="hero-visual">
600
  <picture>
601
  <source media="(max-width: 560px)" srcset="assets/loop-engineering-stack-mobile.svg">
@@ -621,10 +755,39 @@
621
  </div>
622
  <p class="section-intro">The contract turns a recurring prompt habit into a reviewable operating system. Use the <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/schemas/loop-contract.schema.json">JSON schema</a> and <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/README.md">15 validated examples</a> to make each decision explicit.</p>
623
  </div>
624
- <figure class="diagram">
625
  <div class="diagram-scroll"><img src="assets/loop-contract-cards.svg" width="1200" height="720" loading="lazy" alt="Loop Contract: objective, trigger, intake, workspace, context, delegation, verification, state, budget, escalation, exit, and next action."></div>
626
  <figcaption class="caption">A reviewable specification for recurring agent work.</figcaption>
627
  </figure>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
628
  <div class="principles">
629
  <div class="principle"><h3>Verifiable by design</h3><p>Tests, typechecks, evals, traces, or reviewers decide done. The acting agent never approves itself.</p></div>
630
  <div class="principle"><h3>State outside the model</h3><p>Progress files, issues, checkpoints, and traces survive context resets and the next run.</p></div>
@@ -642,10 +805,25 @@
642
  </div>
643
  <p class="section-intro">A deterministic gate checks the work. The result and its receipts persist outside the model. The next action is retry, escalate, or exit.</p>
644
  </div>
645
- <figure class="diagram">
646
  <div class="diagram-scroll"><img src="assets/loop-lifecycle.svg" width="1240" height="560" loading="lazy" alt="Loop Engineering lifecycle: Intake, Delegate, Act, Verify, Persist, Decide; then retry with evidence, escalate to a human, or exit when the goal is met."></div>
647
  <figcaption class="caption">One pass of a recurring, stateful, verified loop.</figcaption>
648
  </figure>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
649
  </div>
650
  </section>
651
 
@@ -744,7 +922,7 @@
744
  <div class="resource-toolbar" role="search" aria-label="Search curated resources">
745
  <label>
746
  <span class="sr-only">Search resources</span>
747
- <input class="resource-input" id="resource-search" type="search" placeholder="Search title, annotation, section, or lifecycle stage" autocomplete="off">
748
  </label>
749
  <label>
750
  <span class="sr-only">Resource type</span>
@@ -930,20 +1108,23 @@
930
  var button = document.querySelector('.menu-btn');
931
  var links = document.getElementById('primary-nav');
932
  if (!button || !links) return;
933
- button.addEventListener('click', function () {
934
- var open = links.classList.toggle('open');
935
  button.setAttribute('aria-expanded', open ? 'true' : 'false');
 
 
 
 
 
936
  });
937
  Array.prototype.forEach.call(links.querySelectorAll('a'), function (link) {
938
  link.addEventListener('click', function () {
939
- links.classList.remove('open');
940
- button.setAttribute('aria-expanded', 'false');
941
  });
942
  });
943
  document.addEventListener('keydown', function (event) {
944
  if (event.key === 'Escape' && links.classList.contains('open')) {
945
- links.classList.remove('open');
946
- button.setAttribute('aria-expanded', 'false');
947
  button.focus();
948
  }
949
  });
@@ -971,7 +1152,7 @@
971
  })();
972
  (function () {
973
  if (!('IntersectionObserver' in window) || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
974
- var items = Array.prototype.slice.call(document.querySelectorAll('.section-head, .diagram, .principles, .link-grid, .levels, .resource-explorer'));
975
  document.documentElement.classList.add('motion-ready');
976
  items.forEach(function (item) { item.classList.add('motion-item'); });
977
  var observer = new IntersectionObserver(function (entries) {
@@ -1025,7 +1206,9 @@
1025
  practice: ['operational-pattern', 'practitioner-analysis', 'reusable-artifact', 'repository-native', 'technical-documentation'],
1026
  risk: ['risk-analysis', 'curated-index']
1027
  };
1028
- var state = { collection: '', limit: 24 };
 
 
1029
  var resources = [];
1030
 
1031
  function words(value) {
@@ -1123,14 +1306,22 @@
1123
  count.textContent = filtered.length + ' of ' + resources.length + ' resources' + (visible.length < filtered.length ? ' | showing ' + visible.length : '');
1124
  empty.hidden = filtered.length !== 0;
1125
  more.hidden = visible.length >= filtered.length;
1126
- if (!more.hidden) more.textContent = 'Show ' + Math.min(24, filtered.length - visible.length) + ' more';
1127
  }
1128
 
1129
  function resetLimitAndRender() {
1130
- state.limit = 24;
1131
  render();
1132
  }
1133
 
 
 
 
 
 
 
 
 
1134
  search.addEventListener('input', resetLimitAndRender);
1135
  [type, stage, evidence, sort].forEach(function (control) {
1136
  control.addEventListener('change', resetLimitAndRender);
@@ -1145,7 +1336,7 @@
1145
  });
1146
  });
1147
  more.addEventListener('click', function () {
1148
- state.limit += 24;
1149
  render();
1150
  });
1151
  reset.addEventListener('click', function () {
@@ -1204,6 +1395,6 @@
1204
  });
1205
  });
1206
  </script>
1207
- <script type="module" src="assets/loop-hero-scene.js?v=10"></script>
1208
  </body>
1209
  </html>
 
137
  font-weight: 700;
138
  cursor: pointer;
139
  }
140
+ .mobile-nav-only, .definition-compact, .mobile-diagram { display: none; }
141
 
142
  main { overflow: hidden; }
143
  section { padding: 86px 0; border-top: 1px solid var(--line); }
 
225
  .caption { margin: 13px 0 0; color: var(--quiet); font-size: 0.78rem; text-align: right; }
226
  .supporting-visual { margin: 0 0 34px; }
227
 
228
+ .mobile-contract-summary, .mobile-lifecycle-summary { border-top: 1px solid var(--line-strong); }
229
+ .mobile-contract-group { padding: 15px 0 0; }
230
+ .mobile-contract-group + .mobile-contract-group { margin-top: 4px; }
231
+ .mobile-contract-group > p {
232
+ margin: 0 0 7px;
233
+ color: var(--blue);
234
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
235
+ font-size: 0.68rem;
236
+ font-weight: 600;
237
+ text-transform: uppercase;
238
+ }
239
+ .mobile-contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
240
+ .mobile-contract-part {
241
+ display: grid;
242
+ grid-template-columns: 24px minmax(0, 1fr);
243
+ gap: 7px;
244
+ align-items: baseline;
245
+ min-width: 0;
246
+ padding: 10px 8px 10px 0;
247
+ border-top: 1px solid var(--line);
248
+ }
249
+ .mobile-contract-part:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
250
+ .mobile-contract-part span {
251
+ color: var(--quiet);
252
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
253
+ font-size: 0.65rem;
254
+ font-weight: 600;
255
+ }
256
+ .mobile-contract-part strong { font-size: 0.86rem; line-height: 1.3; }
257
+ .mobile-next-action {
258
+ display: flex;
259
+ align-items: baseline;
260
+ justify-content: space-between;
261
+ gap: 16px;
262
+ margin: 15px 0 0;
263
+ padding: 13px 0;
264
+ border-top: 1px solid var(--blue);
265
+ border-bottom: 1px solid var(--line-strong);
266
+ }
267
+ .mobile-next-action strong { color: var(--blue); font-size: 0.86rem; }
268
+ .mobile-next-action span { color: var(--muted); font-size: 0.76rem; text-align: right; }
269
+
270
+ .mobile-lifecycle-list {
271
+ display: grid;
272
+ grid-template-columns: repeat(2, minmax(0, 1fr));
273
+ margin: 0;
274
+ padding: 0;
275
+ list-style: none;
276
+ }
277
+ .mobile-lifecycle-list li {
278
+ display: grid;
279
+ grid-template-columns: 24px minmax(0, 1fr);
280
+ gap: 7px;
281
+ min-width: 0;
282
+ padding: 13px 8px 13px 0;
283
+ border-bottom: 1px solid var(--line);
284
+ }
285
+ .mobile-lifecycle-list li:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
286
+ .mobile-lifecycle-list span {
287
+ color: var(--blue);
288
+ font-family: "IBM Plex Mono", ui-monospace, monospace;
289
+ font-size: 0.65rem;
290
+ font-weight: 600;
291
+ }
292
+ .mobile-lifecycle-list strong { display: block; font-size: 0.88rem; line-height: 1.25; }
293
+ .mobile-lifecycle-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.7rem; line-height: 1.4; }
294
+ .mobile-lifecycle-outcomes {
295
+ display: grid;
296
+ grid-template-columns: repeat(3, minmax(0, 1fr));
297
+ border-bottom: 1px solid var(--line-strong);
298
+ }
299
+ .mobile-lifecycle-outcomes div { min-width: 0; padding: 12px 8px 13px 0; }
300
+ .mobile-lifecycle-outcomes div + div { padding-left: 9px; border-left: 1px solid var(--line); }
301
+ .mobile-lifecycle-outcomes strong { display: block; color: var(--blue); font-size: 0.78rem; }
302
+ .mobile-lifecycle-outcomes span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.66rem; line-height: 1.35; }
303
+
304
  .principles, .link-grid, .pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
305
  .principle, .card, .pattern {
306
  min-width: 0;
 
457
  padding: 10px 24px 14px;
458
  border-bottom: 1px solid var(--line);
459
  background: var(--paper);
460
+ box-shadow: 0 14px 30px rgba(18, 23, 34, 0.09);
461
+ max-height: calc(100vh - 66px);
462
+ overflow-y: auto;
463
  }
464
  .links.open a { padding: 9px 0; }
465
+ .links.open .mobile-nav-only { display: block; }
466
  .links.open a[aria-current="location"]::after { display: none; }
467
  }
468
  @media (max-width: 820px) {
469
  .wrap { width: min(var(--maxw), calc(100% - 32px)); }
470
  .links.open { left: -16px; right: -16px; padding-inline: 16px; }
471
  section { padding: 68px 0; }
472
+ .hero { min-height: 0; padding: 52px 0 0; }
473
+ .hero-scene { position: relative; inset: auto; width: 100%; height: 220px; margin-top: 0; }
474
+ .hero-scene canvas { opacity: 1; }
475
  h1 { font-size: 3rem; }
476
  h2 { font-size: 2rem; }
477
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
 
492
  .loop-stage:nth-child(n+4) { border-top: 1px solid var(--line); }
493
  }
494
  @media (max-width: 560px) {
495
+ html { scroll-padding-top: 70px; }
496
+ .nav { min-height: 58px; gap: 8px; }
497
+ .links.open { top: 58px; max-height: calc(100vh - 58px); }
498
  .project-links .nav-link:first-child { display: none; }
499
+ .project-links { gap: 6px; }
500
+ .nav-link { min-height: 40px; padding-inline: 12px; }
501
  .brand .brand-text { display: none; }
502
+ section { padding: 52px 0; }
503
+ h1 { font-size: 2.35rem; line-height: 1.08; }
504
+ h2 { font-size: 1.85rem; line-height: 1.16; }
505
+ .section-label { margin-bottom: 9px; font-size: 0.68rem; }
506
+ .section-head { gap: 12px; margin-bottom: 24px; }
507
+ .section-intro { font-size: 0.95rem; }
508
+ .hero { min-height: 0; padding: 34px 0 0; }
509
+ .hero-kicker { max-width: 330px; margin: 0 auto 10px; line-height: 1.45; }
510
+ .tagline { margin-top: 14px; font-size: 1.18rem; }
511
+ .lead { margin-top: 10px; font-size: 0.95rem; line-height: 1.55; }
512
+ .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 19px; }
513
+ .actions .button { min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 0.82rem; }
514
+ .hero-scene { position: relative; inset: auto; width: 100%; height: 196px; margin-top: 0; }
515
+ .hero-scene canvas { opacity: 1; }
516
+ .loop-stage-rail { margin-top: 20px; }
517
+ .loop-stage { min-height: 42px; padding-inline: 5px; font-size: 0.68rem; }
518
+ .loop-stage-number { font-size: 0.59rem; }
519
+ .loop-stage-detail { min-height: 40px; margin-top: 8px; font-size: 0.75rem; line-height: 1.45; }
520
+ .mental-model { padding: 38px 0 44px; }
521
+ .definition { margin-bottom: 22px; font-size: 0.88rem; line-height: 1.55; }
522
+ .definition-full { display: none; }
523
+ .definition-compact { display: inline; }
524
+ .hero-visual { width: min(100%, 420px); }
525
+ .stats { margin-top: 24px; }
526
+ .stat { padding: 14px 11px; }
527
+ .stat b { font-size: 1.22rem; }
528
+ .stat span { font-size: 0.68rem; }
529
+ .desktop-diagram { display: none; }
530
+ .mobile-diagram { display: block; }
531
+ .supporting-visual { display: none; }
532
+ .principles { margin-top: 24px; }
533
  .principles, .link-grid, .pattern-grid, .footer-grid { grid-template-columns: 1fr; }
534
  .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
535
+ .principle, .card, .pattern { padding-top: 16px; padding-bottom: 16px; }
536
+ .pattern { min-height: 78px; }
537
  .resource-toolbar { grid-template-columns: 1fr; }
538
  .resource-toolbar label:first-child { grid-column: auto; }
539
+ .resource-select { padding-inline: 10px; font-size: 0.86rem; }
540
+ .resource-reset { font-size: 0.86rem; }
541
  .resource-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
542
+ .resource-collection { min-width: 0; min-height: 40px; padding-inline: 4px; font-size: 0.75rem; }
543
  .resource-summary { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 0; }
544
  .resource-sort { width: 100%; }
545
+ .resource-item { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
546
  .resource-side { text-align: left; }
547
  .caption { text-align: left; }
548
  .level { grid-template-columns: 46px 1fr; }
549
+ .level { gap: 12px; padding: 14px 0; }
550
+ footer { padding: 44px 0 40px; }
551
+ .footer-grid { gap: 26px; }
552
+ .cite { overflow: visible; }
553
+ .cite pre { min-width: 0; padding: 14px 12px 48px; font-size: 0.66rem; white-space: pre-wrap; overflow-wrap: anywhere; }
554
+ .legal { margin-top: 26px; }
555
+ }
556
+ @media (min-width: 360px) and (max-width: 560px) {
557
+ .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
558
+ .resource-toolbar label:first-child { grid-column: 1 / -1; }
559
+ }
560
+ @media (min-width: 380px) and (max-width: 560px) {
561
+ .pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
562
+ .pattern { min-height: 112px; padding-right: 12px; }
563
+ .pattern + .pattern { padding-left: 12px; }
564
+ .pattern:nth-child(odd) { padding-left: 0; }
565
+ .pattern:nth-child(even) { border-left: 1px solid var(--line); }
566
+ }
567
+ @media (max-width: 340px) {
568
+ h1 { font-size: 2.2rem; }
569
+ .actions .button { font-size: 0.78rem; }
570
+ .menu-btn { padding-inline: 10px; }
571
+ .nav-link { padding-inline: 10px; }
572
  }
573
  @media (prefers-reduced-motion: reduce) {
574
  html { scroll-behavior: auto; }
 
593
  "description": "A curated field guide to Loop Engineering: designing recurring AI-agent systems above prompt, context, and harness engineering.",
594
  "keywords": ["Loop Engineering", "AI agents", "Coding agents", "Agent workflows", "Agentic loops"],
595
  "datePublished": "2026-06-10",
596
+ "dateModified": "2026-07-17",
597
  "sameAs": [
598
  "https://github.com/ChaoYue0307/awesome-loop-engineering",
599
  "https://huggingface.co/datasets/cy0307/awesome-loop-engineering"
 
690
  <a href="#maturity">Maturity</a>
691
  <a href="#resources">Resources</a>
692
  <a href="#faq">FAQ</a>
693
+ <a class="mobile-nav-only" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Dataset</a>
694
  </nav>
695
  <span class="spacer"></span>
696
+ <button class="menu-btn" type="button" aria-expanded="false" aria-controls="primary-nav" aria-label="Open navigation">Menu</button>
697
  <nav class="project-links" aria-label="Project links">
698
  <a class="nav-link" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Dataset</a>
699
  <a class="nav-link primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering">GitHub</a>
 
703
 
704
  <main id="main" tabindex="-1">
705
  <section class="hero" id="top">
 
706
  <div class="wrap">
707
  <div class="hero-copy">
708
  <p class="section-label hero-kicker">The field guide for recurring AI-agent systems</p>
 
724
  </div>
725
  <p class="loop-stage-detail" id="loop-stage-detail" aria-live="polite"><strong>Verify:</strong> gate completion with tests, evals, traces, or review.</p>
726
  </div>
727
+ <div class="hero-scene" data-loop-scene aria-hidden="true"></div>
728
  </section>
729
 
730
  <section class="mental-model" aria-label="Loop Engineering mental model">
731
  <div class="wrap">
732
+ <p class="definition"><span class="definition-full"><strong>Loop Engineering</strong> is the 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.</span><span class="definition-compact"><strong>Loop Engineering</strong> designs recurring agent systems that discover work, delegate it, verify results, persist state, and decide what happens next.</span></p>
733
  <figure class="hero-visual">
734
  <picture>
735
  <source media="(max-width: 560px)" srcset="assets/loop-engineering-stack-mobile.svg">
 
755
  </div>
756
  <p class="section-intro">The contract turns a recurring prompt habit into a reviewable operating system. Use the <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/schemas/loop-contract.schema.json">JSON schema</a> and <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/README.md">15 validated examples</a> to make each decision explicit.</p>
757
  </div>
758
+ <figure class="diagram desktop-diagram">
759
  <div class="diagram-scroll"><img src="assets/loop-contract-cards.svg" width="1200" height="720" loading="lazy" alt="Loop Contract: objective, trigger, intake, workspace, context, delegation, verification, state, budget, escalation, exit, and next action."></div>
760
  <figcaption class="caption">A reviewable specification for recurring agent work.</figcaption>
761
  </figure>
762
+ <div class="mobile-diagram mobile-contract-summary" aria-label="Loop Contract parts grouped into setup, run, and govern">
763
+ <div class="mobile-contract-group">
764
+ <p>01 / Set up</p>
765
+ <div class="mobile-contract-grid">
766
+ <div class="mobile-contract-part"><span>01</span><strong>Objective</strong></div>
767
+ <div class="mobile-contract-part"><span>02</span><strong>Trigger</strong></div>
768
+ <div class="mobile-contract-part"><span>03</span><strong>Intake</strong></div>
769
+ <div class="mobile-contract-part"><span>04</span><strong>Workspace</strong></div>
770
+ </div>
771
+ </div>
772
+ <div class="mobile-contract-group">
773
+ <p>02 / Run</p>
774
+ <div class="mobile-contract-grid">
775
+ <div class="mobile-contract-part"><span>05</span><strong>Context</strong></div>
776
+ <div class="mobile-contract-part"><span>06</span><strong>Delegation</strong></div>
777
+ <div class="mobile-contract-part"><span>07</span><strong>Verification</strong></div>
778
+ <div class="mobile-contract-part"><span>08</span><strong>State</strong></div>
779
+ </div>
780
+ </div>
781
+ <div class="mobile-contract-group">
782
+ <p>03 / Govern + close</p>
783
+ <div class="mobile-contract-grid">
784
+ <div class="mobile-contract-part"><span>09</span><strong>Budget</strong></div>
785
+ <div class="mobile-contract-part"><span>10</span><strong>Escalation</strong></div>
786
+ <div class="mobile-contract-part"><span>11</span><strong>Exit</strong></div>
787
+ </div>
788
+ </div>
789
+ <p class="mobile-next-action"><strong>Next action</strong><span>Repeat, report, escalate, or stop.</span></p>
790
+ </div>
791
  <div class="principles">
792
  <div class="principle"><h3>Verifiable by design</h3><p>Tests, typechecks, evals, traces, or reviewers decide done. The acting agent never approves itself.</p></div>
793
  <div class="principle"><h3>State outside the model</h3><p>Progress files, issues, checkpoints, and traces survive context resets and the next run.</p></div>
 
805
  </div>
806
  <p class="section-intro">A deterministic gate checks the work. The result and its receipts persist outside the model. The next action is retry, escalate, or exit.</p>
807
  </div>
808
+ <figure class="diagram desktop-diagram">
809
  <div class="diagram-scroll"><img src="assets/loop-lifecycle.svg" width="1240" height="560" loading="lazy" alt="Loop Engineering lifecycle: Intake, Delegate, Act, Verify, Persist, Decide; then retry with evidence, escalate to a human, or exit when the goal is met."></div>
810
  <figcaption class="caption">One pass of a recurring, stateful, verified loop.</figcaption>
811
  </figure>
812
+ <div class="mobile-diagram mobile-lifecycle-summary" aria-label="Six-stage Loop Engineering lifecycle">
813
+ <ol class="mobile-lifecycle-list">
814
+ <li><span>01</span><div><strong>Intake</strong><small>Capture bounded work.</small></div></li>
815
+ <li><span>02</span><div><strong>Delegate</strong><small>Route it to an agent.</small></div></li>
816
+ <li><span>03</span><div><strong>Act</strong><small>Work in isolation.</small></div></li>
817
+ <li><span>04</span><div><strong>Verify</strong><small>Gate with evidence.</small></div></li>
818
+ <li><span>05</span><div><strong>Persist</strong><small>Save state and receipts.</small></div></li>
819
+ <li><span>06</span><div><strong>Decide</strong><small>Choose the next action.</small></div></li>
820
+ </ol>
821
+ <div class="mobile-lifecycle-outcomes">
822
+ <div><strong>Retry</strong><span>Feed back evidence</span></div>
823
+ <div><strong>Escalate</strong><span>Hand off judgment</span></div>
824
+ <div><strong>Exit</strong><span>Close a verified goal</span></div>
825
+ </div>
826
+ </div>
827
  </div>
828
  </section>
829
 
 
922
  <div class="resource-toolbar" role="search" aria-label="Search curated resources">
923
  <label>
924
  <span class="sr-only">Search resources</span>
925
+ <input class="resource-input" id="resource-search" type="search" placeholder="Search 509 audited resources" autocomplete="off">
926
  </label>
927
  <label>
928
  <span class="sr-only">Resource type</span>
 
1108
  var button = document.querySelector('.menu-btn');
1109
  var links = document.getElementById('primary-nav');
1110
  if (!button || !links) return;
1111
+ function setMenuState(open) {
1112
+ links.classList.toggle('open', open);
1113
  button.setAttribute('aria-expanded', open ? 'true' : 'false');
1114
+ button.setAttribute('aria-label', open ? 'Close navigation' : 'Open navigation');
1115
+ button.textContent = open ? 'Close' : 'Menu';
1116
+ }
1117
+ button.addEventListener('click', function () {
1118
+ setMenuState(!links.classList.contains('open'));
1119
  });
1120
  Array.prototype.forEach.call(links.querySelectorAll('a'), function (link) {
1121
  link.addEventListener('click', function () {
1122
+ setMenuState(false);
 
1123
  });
1124
  });
1125
  document.addEventListener('keydown', function (event) {
1126
  if (event.key === 'Escape' && links.classList.contains('open')) {
1127
+ setMenuState(false);
 
1128
  button.focus();
1129
  }
1130
  });
 
1152
  })();
1153
  (function () {
1154
  if (!('IntersectionObserver' in window) || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
1155
+ var items = Array.prototype.slice.call(document.querySelectorAll('.section-head, .diagram, .principles, .link-grid, .levels'));
1156
  document.documentElement.classList.add('motion-ready');
1157
  items.forEach(function (item) { item.classList.add('motion-item'); });
1158
  var observer = new IntersectionObserver(function (entries) {
 
1206
  practice: ['operational-pattern', 'practitioner-analysis', 'reusable-artifact', 'repository-native', 'technical-documentation'],
1207
  risk: ['risk-analysis', 'curated-index']
1208
  };
1209
+ var compactResources = window.matchMedia('(max-width: 560px)');
1210
+ var pageSize = compactResources.matches ? 8 : 24;
1211
+ var state = { collection: '', limit: pageSize };
1212
  var resources = [];
1213
 
1214
  function words(value) {
 
1306
  count.textContent = filtered.length + ' of ' + resources.length + ' resources' + (visible.length < filtered.length ? ' | showing ' + visible.length : '');
1307
  empty.hidden = filtered.length !== 0;
1308
  more.hidden = visible.length >= filtered.length;
1309
+ if (!more.hidden) more.textContent = 'Show ' + Math.min(pageSize, filtered.length - visible.length) + ' more';
1310
  }
1311
 
1312
  function resetLimitAndRender() {
1313
+ state.limit = pageSize;
1314
  render();
1315
  }
1316
 
1317
+ function updatePageSize() {
1318
+ pageSize = compactResources.matches ? 8 : 24;
1319
+ if (resources.length) resetLimitAndRender();
1320
+ }
1321
+
1322
+ if (compactResources.addEventListener) compactResources.addEventListener('change', updatePageSize);
1323
+ else compactResources.addListener(updatePageSize);
1324
+
1325
  search.addEventListener('input', resetLimitAndRender);
1326
  [type, stage, evidence, sort].forEach(function (control) {
1327
  control.addEventListener('change', resetLimitAndRender);
 
1336
  });
1337
  });
1338
  more.addEventListener('click', function () {
1339
+ state.limit += pageSize;
1340
  render();
1341
  });
1342
  reset.addEventListener('click', function () {
 
1395
  });
1396
  });
1397
  </script>
1398
+ <script type="module" src="assets/loop-hero-scene.js?v=11"></script>
1399
  </body>
1400
  </html>