| <!doctype html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <title>Awesome Loop Engineering</title> |
| <meta name="description" content="Explore 730 resources from model recurrence to governed agent operations, then build with 22 patterns, 22 contracts, and 8 runtime starters."> |
| <meta name="robots" content="index,follow"> |
| <meta name="author" content="Chaoyue He"> |
| <link rel="canonical" href="https://chaoyue0307.github.io/awesome-loop-engineering/"> |
| <link rel="icon" href="assets/favicon-32.png" type="image/png" sizes="32x32"> |
| <link rel="apple-touch-icon" href="assets/apple-touch-icon.png" sizes="180x180"> |
| <link rel="preconnect" href="https://fonts.googleapis.com"> |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> |
| <meta property="og:type" content="website"> |
| <meta property="og:title" content="Awesome Loop Engineering"> |
| <meta property="og:description" content="Explore 730 papers, docs, tools, benchmarks, and guides, then build recurring agent systems with 22 patterns, 22 contracts, and 8 starters."> |
| <meta property="og:url" content="https://chaoyue0307.github.io/awesome-loop-engineering/"> |
| <meta property="og:image" content="https://chaoyue0307.github.io/awesome-loop-engineering/assets/social-preview-730-v10.png"> |
| <meta property="og:image:width" content="1280"> |
| <meta property="og:image:height" content="640"> |
| <meta property="og:image:alt" content="Awesome Loop Engineering: design loops, not just prompts."> |
| <meta name="twitter:card" content="summary_large_image"> |
| <meta name="twitter:title" content="Awesome Loop Engineering"> |
| <meta name="twitter:description" content="730 resources from model recurrence to agent operations, plus 22 patterns, 22 contracts, and 8 starters for building reliable loops."> |
| <meta name="twitter:image" content="https://chaoyue0307.github.io/awesome-loop-engineering/assets/social-preview-730-v10.png"> |
| <link rel="alternate" type="application/atom+xml" title="Awesome Loop Engineering releases" href="https://github.com/ChaoYue0307/awesome-loop-engineering/releases.atom"> |
| <link rel="alternate" type="application/atom+xml" title="Awesome Loop Engineering commits" href="https://github.com/ChaoYue0307/awesome-loop-engineering/commits/main.atom"> |
| <style> |
| :root { |
| color-scheme: light; |
| --paper: #f7f9fc; |
| --surface: #ffffff; |
| --ink: #121722; |
| --muted: #5c6678; |
| --quiet: #7c8799; |
| --line: #cfd7e5; |
| --line-strong: #9eabc0; |
| --blue: #155eef; |
| --cyan: #08a9c4; |
| --green: #0c9b68; |
| --violet: #7055d9; |
| --maxw: 1180px; |
| } |
| * { box-sizing: border-box; } |
| html { scroll-behavior: smooth; scroll-padding-top: 84px; } |
| body { |
| margin: 0; |
| background: var(--paper); |
| color: var(--ink); |
| font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| line-height: 1.62; |
| -webkit-font-smoothing: antialiased; |
| } |
| a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; } |
| a:hover { color: #0f49bd; } |
| button, input, select { font: inherit; } |
| .wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; } |
| .skip { |
| position: absolute; |
| left: -9999px; |
| top: 0; |
| z-index: 100; |
| background: var(--ink); |
| color: #fff; |
| padding: 10px 16px; |
| } |
| .skip:focus { left: 0; } |
| a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { |
| outline: 3px solid rgba(21, 94, 239, 0.32); |
| outline-offset: 3px; |
| } |
| .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } |
| .icon { |
| display: block; |
| width: 1em; |
| height: 1em; |
| flex: 0 0 auto; |
| color: currentColor; |
| stroke-width: 2; |
| } |
| |
| header.site { |
| position: sticky; |
| top: 0; |
| z-index: 50; |
| background: rgba(247, 249, 252, 0.94); |
| border-bottom: 1px solid var(--line); |
| -webkit-backdrop-filter: blur(14px); |
| backdrop-filter: blur(14px); |
| } |
| .nav { display: flex; align-items: center; min-height: 66px; gap: 22px; } |
| .brand { |
| display: inline-flex; |
| align-items: center; |
| gap: 10px; |
| color: var(--ink); |
| font-weight: 800; |
| text-decoration: none; |
| white-space: nowrap; |
| } |
| .brand:hover { color: var(--ink); } |
| .brand .logo { display: block; width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; } |
| .links { display: flex; align-items: center; gap: 18px; margin-left: 8px; } |
| .links a { position: relative; color: var(--muted); font-size: 0.84rem; font-weight: 600; text-decoration: none; } |
| .links a:hover { color: var(--ink); } |
| .links a[aria-current="location"] { color: var(--blue); } |
| .links a[aria-current="location"]::after { |
| position: absolute; |
| right: 0; |
| bottom: -8px; |
| left: 0; |
| height: 2px; |
| background: var(--blue); |
| content: ""; |
| } |
| .spacer { flex: 1; } |
| .project-links { display: flex; gap: 8px; } |
| .nav-link, .button { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| gap: 7px; |
| min-height: 40px; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| padding: 8px 14px; |
| color: var(--ink); |
| background: var(--surface); |
| font-size: 0.86rem; |
| font-weight: 700; |
| line-height: 1.2; |
| text-decoration: none; |
| } |
| .nav-link .icon, .button .icon, .menu-btn .icon { width: 17px; height: 17px; } |
| .nav-link:hover, .button:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; } |
| .nav-link.primary, .button.primary { background: var(--blue); border-color: var(--blue); color: #fff; } |
| .nav-link.primary:hover, .button.primary:hover { background: #0f49bd; border-color: #0f49bd; color: #fff; } |
| .menu-btn { |
| display: none; |
| align-items: center; |
| gap: 7px; |
| min-height: 40px; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| padding: 7px 12px; |
| color: var(--ink); |
| background: var(--surface); |
| font-size: 0.82rem; |
| font-weight: 700; |
| cursor: pointer; |
| } |
| .menu-icon-close { display: none; } |
| .menu-btn[aria-expanded="true"] .menu-icon-open { display: none; } |
| .menu-btn[aria-expanded="true"] .menu-icon-close { display: block; } |
| .mobile-nav-only, .definition-compact, .mobile-diagram { display: none; } |
| |
| main { overflow: hidden; } |
| section { padding: 86px 0; border-top: 1px solid var(--line); } |
| .hero { position: relative; isolation: isolate; min-height: 0; overflow: hidden; padding: 52px 0 16px; border-top: 0; text-align: center; } |
| .hero .wrap { position: relative; z-index: 1; } |
| .hero-copy { position: relative; z-index: 2; } |
| .hero-system { |
| width: min(100%, 1120px); |
| margin: 28px auto 0; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| background: var(--surface); |
| } |
| .scene-head { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| gap: 20px; |
| min-height: 42px; |
| border-bottom: 1px solid var(--line); |
| padding: 9px 2px; |
| color: var(--quiet); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.66rem; |
| text-transform: uppercase; |
| } |
| .scene-head strong { color: var(--blue); } |
| .scene-flow { text-align: right; } |
| .scene-flow span { color: var(--ink); font-weight: 700; } |
| .scene-flow i { padding: 0 6px; color: var(--blue); font-style: normal; } |
| .hero-scene { |
| position: relative; |
| z-index: 0; |
| min-width: 0; |
| width: 100%; |
| height: 330px; |
| overflow: hidden; |
| background: #f4f7fc; |
| pointer-events: none; |
| } |
| .hero-scene canvas { display: block; width: 100%; height: 100%; opacity: 0.96; } |
| .scene-fallback { display: none; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 0.82rem; } |
| .hero-scene[data-scene-state="fallback"] canvas { display: none; } |
| .hero-scene[data-scene-state="fallback"] .scene-fallback { display: flex; } |
| .scene-key { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: 26px; |
| min-height: 34px; |
| border-top: 1px solid var(--line); |
| color: var(--muted); |
| font-size: 0.68rem; |
| } |
| .scene-key-item { display: inline-flex; align-items: center; gap: 7px; } |
| .scene-key-item::before { |
| width: 16px; |
| height: 5px; |
| border-radius: 2px; |
| background: var(--blue); |
| content: ""; |
| } |
| .scene-key-item.packet::before { background: var(--cyan); } |
| .scene-key-item.agents::before { background: var(--blue); } |
| .scene-key-item.evidence::before { background: var(--green); } |
| .scene-key-item.state::before { background: var(--violet); } |
| .scene-outcomes { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: 26px; |
| min-height: 34px; |
| border-top: 1px solid var(--line); |
| color: var(--muted); |
| font-size: 0.7rem; |
| } |
| .scene-outcome { display: inline-flex; align-items: center; gap: 7px; } |
| .scene-outcome::before { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); content: ""; } |
| .scene-outcome.retry::before { background: var(--violet); } |
| .scene-outcome.escalate::before { background: #d97706; } |
| .scene-outcome.exit::before { background: var(--green); } |
| .hero-inspector { |
| display: grid; |
| grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr); |
| gap: 24px; |
| align-items: center; |
| min-width: 0; |
| border-top: 1px solid var(--line); |
| padding: 12px 0; |
| } |
| .mental-model { padding: 18px 0 52px; } |
| .section-label { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin: 0 0 12px; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.74rem; |
| font-weight: 600; |
| text-transform: uppercase; |
| } |
| .section-label .icon { width: 15px; height: 15px; margin-top: 1px; } |
| h1, h2, h3, p { overflow-wrap: anywhere; } |
| h1 { max-width: 900px; margin: 0 auto; font-size: 3.85rem; line-height: 1.04; font-weight: 800; } |
| h2 { margin: 0; font-size: 2.45rem; line-height: 1.14; font-weight: 800; } |
| h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; } |
| .hero-kicker { width: fit-content; max-width: 100%; justify-content: center; margin: 0 auto 14px; } |
| .tagline { margin: 18px auto 0; color: var(--blue); font-size: 1.5rem; font-weight: 700; } |
| .lead { max-width: 780px; margin: 14px auto 0; color: var(--muted); font-size: 1.08rem; } |
| .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; } |
| .loop-stage-rail { |
| display: grid; |
| grid-template-columns: repeat(6, minmax(0, 1fr)); |
| max-width: 880px; |
| margin: 28px auto 0; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| background: rgba(247, 249, 252, 0.94); |
| overflow: hidden; |
| } |
| .loop-stage { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: 7px; |
| min-width: 0; |
| min-height: 46px; |
| border: 0; |
| padding: 8px 9px; |
| color: var(--muted); |
| background: transparent; |
| font-size: 0.76rem; |
| font-weight: 700; |
| cursor: pointer; |
| } |
| .loop-stage + .loop-stage { border-left: 1px solid var(--line); } |
| .loop-stage:hover { color: var(--ink); background: rgba(255, 255, 255, 0.72); } |
| .loop-stage[aria-pressed="true"] { color: #fff; background: var(--blue); } |
| .loop-stage-number { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem; } |
| .loop-stage-detail { |
| min-height: 24px; |
| max-width: 820px; |
| margin: 10px auto 0; |
| color: var(--muted); |
| font-size: 0.82rem; |
| } |
| .loop-stage-detail strong { color: var(--ink); } |
| .hero-system .loop-stage-rail { |
| grid-template-columns: repeat(6, minmax(0, 1fr)); |
| width: 100%; |
| max-width: none; |
| margin: 0; |
| } |
| .hero-system .loop-stage:nth-child(n) { border-top: 0; } |
| .hero-system .loop-stage:first-child { border-left: 0; } |
| .hero-inspector .loop-stage-detail { |
| min-height: 54px; |
| max-width: none; |
| margin: 0; |
| border-left: 3px solid var(--blue); |
| padding: 7px 0 0 14px; |
| text-align: left; |
| } |
| .hero-visual { max-width: 780px; margin: 0 auto; } |
| .hero-visual picture, .hero-visual img, .diagram img { display: block; width: 100%; height: auto; } |
| .hero-visual picture, .diagram-scroll { |
| width: 100%; |
| overflow: hidden; |
| border: 1px solid var(--line); |
| border-radius: 6px; |
| background: var(--surface); |
| } |
| .stats { |
| display: grid; |
| grid-template-columns: repeat(5, 1fr); |
| max-width: 1000px; |
| margin: 34px auto 0; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .stat { position: relative; padding: 17px 12px; text-align: left; } |
| .stat + .stat { border-left: 1px solid var(--line); } |
| .stat b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1.35rem; line-height: 1.2; } |
| .stat b .icon { width: 18px; height: 18px; color: var(--blue); } |
| .stat span { color: var(--quiet); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; } |
| .definition { max-width: 900px; margin: 0 auto 28px; color: var(--muted); font-size: 0.92rem; text-align: center; } |
| .definition strong { color: var(--ink); } |
| |
| .mobile-stack { display: none; } |
| .desktop-stack-scene { |
| position: relative; |
| width: 100%; |
| height: 442px; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px 6px 0 0; |
| background: #f4f7fc; |
| overflow: hidden; |
| } |
| .desktop-stack-scene canvas, |
| .desktop-stack-scene .desktop-stack-visual { |
| position: absolute; |
| inset: 0; |
| display: block; |
| width: 100%; |
| height: 100%; |
| } |
| .desktop-stack-scene canvas { opacity: 0.98; } |
| .desktop-stack-scene .desktop-stack-visual { object-fit: cover; transition: opacity 180ms ease; } |
| .desktop-stack-scene[data-scene-ready="true"] .desktop-stack-visual { opacity: 0; pointer-events: none; } |
| .desktop-stack-scene[data-scene-state="fallback"] canvas { display: none; } |
| .desktop-stack-key { |
| display: grid; |
| grid-template-columns: repeat(2, minmax(0, 1fr)); |
| border: 1px solid var(--line-strong); |
| border-top: 0; |
| border-radius: 0 0 6px 6px; |
| background: var(--surface); |
| color: var(--muted); |
| font-size: 0.73rem; |
| line-height: 1.45; |
| text-align: left; |
| } |
| .desktop-stack-key span { min-width: 0; padding: 11px 14px; } |
| .desktop-stack-key span + span { border-left: 1px solid var(--line); } |
| .desktop-stack-key strong { color: var(--ink); } |
| |
| .section-head { display: grid; grid-template-columns: minmax(250px, 0.78fr) minmax(360px, 1.22fr); gap: 64px; align-items: end; margin-bottom: 36px; } |
| .section-intro { max-width: 720px; margin: 0; color: var(--muted); } |
| .audit-note { margin: -17px 0 28px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 0.8rem; } |
| .audit-note strong { color: var(--ink); } |
| .loop-layer-map { |
| display: grid; |
| grid-template-columns: repeat(3, minmax(0, 1fr)); |
| margin: 0 0 28px; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .loop-layer-item { min-width: 0; padding: 18px 20px 18px 0; } |
| .loop-layer-item + .loop-layer-item { border-left: 1px solid var(--line); padding-left: 20px; } |
| .loop-layer-item span { display: block; color: var(--blue); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; } |
| .loop-layer-item strong { display: block; margin-top: 6px; color: var(--ink); font-size: 0.92rem; } |
| .loop-layer-item p { margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; } |
| .diagram { width: 100%; margin: 0; } |
| .caption { margin: 13px 0 0; color: var(--quiet); font-size: 0.78rem; text-align: right; } |
| .supporting-visual { margin: 0 0 34px; } |
| |
| .contract-need { |
| display: grid; |
| grid-template-columns: 210px minmax(0, 1fr); |
| gap: 34px; |
| margin-bottom: 30px; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line); |
| padding: 22px 0; |
| } |
| .contract-need h3 { margin: 0; font-size: 0.96rem; } |
| .contract-need p { max-width: 870px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; } |
| .contract-layers-head { |
| display: grid; |
| grid-template-columns: 210px minmax(0, 1fr); |
| gap: 34px; |
| align-items: baseline; |
| margin-bottom: 12px; |
| } |
| .contract-layers-head h3 { margin: 0; font-size: 0.96rem; } |
| .contract-layers-head p { margin: 0; color: var(--muted); font-size: 0.84rem; } |
| .contract-layers { |
| display: grid; |
| grid-template-columns: repeat(4, minmax(0, 1fr)); |
| margin-bottom: 36px; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .contract-layer { min-width: 0; padding: 18px 20px 18px 0; } |
| .contract-layer + .contract-layer { border-left: 1px solid var(--line); padding-left: 20px; } |
| .contract-layer strong { display: block; color: var(--ink); font-size: 0.88rem; } |
| .contract-layer span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; } |
| .contract-layer.contract-policy strong { color: var(--blue); } |
| .contract-phases { |
| display: grid; |
| grid-template-columns: repeat(3, minmax(0, 1fr)); |
| margin-top: 30px; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .contract-phase { min-width: 0; padding: 20px 22px 20px 0; } |
| .contract-phase + .contract-phase { border-left: 1px solid var(--line); padding-left: 22px; } |
| .contract-phase-label { |
| display: block; |
| margin-bottom: 8px; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.65rem; |
| font-weight: 650; |
| text-transform: uppercase; |
| } |
| .contract-phase h3 { margin: 0; font-size: 0.94rem; } |
| .contract-phase p { margin: 7px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; } |
| .contract-phase small { display: block; margin-top: 10px; color: var(--quiet); font-size: 0.7rem; line-height: 1.45; } |
| .contract-example { margin-top: 38px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); } |
| .contract-example-head { |
| display: grid; |
| grid-template-columns: 210px minmax(0, 1fr); |
| gap: 34px; |
| padding: 22px 0; |
| border-bottom: 1px solid var(--line); |
| } |
| .contract-example-head h3 { margin: 0; font-size: 1rem; } |
| .contract-example-head p { max-width: 820px; margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; } |
| .contract-example-row { |
| display: grid; |
| grid-template-columns: 180px minmax(0, 1fr); |
| gap: 34px; |
| padding: 14px 0; |
| border-bottom: 1px solid var(--line); |
| } |
| .contract-example-row strong { color: var(--ink); font-size: 0.8rem; } |
| .contract-example-row p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; } |
| .contract-example-result { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| gap: 20px; |
| padding: 16px 0; |
| } |
| .contract-example-result p { margin: 0; color: var(--ink); font-size: 0.82rem; font-weight: 700; line-height: 1.5; } |
| .contract-example-result a { flex: 0 0 auto; font-size: 0.8rem; font-weight: 700; } |
| |
| .mobile-contract-summary, .mobile-lifecycle-summary { border-top: 1px solid var(--line-strong); } |
| .mobile-contract-group { padding: 15px 0 0; } |
| .mobile-contract-group + .mobile-contract-group { margin-top: 4px; } |
| .mobile-contract-group > p { |
| margin: 0 0 7px; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.68rem; |
| font-weight: 600; |
| text-transform: uppercase; |
| } |
| .mobile-contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .mobile-contract-part { |
| display: grid; |
| grid-template-columns: 24px minmax(0, 1fr); |
| gap: 7px; |
| align-items: baseline; |
| min-width: 0; |
| padding: 10px 8px 10px 0; |
| border-top: 1px solid var(--line); |
| } |
| .mobile-contract-part:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); } |
| .mobile-contract-part span { |
| color: var(--quiet); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.65rem; |
| font-weight: 600; |
| } |
| .mobile-contract-part strong { font-size: 0.86rem; line-height: 1.3; } |
| .mobile-next-action { |
| display: flex; |
| align-items: baseline; |
| justify-content: space-between; |
| gap: 16px; |
| margin: 15px 0 0; |
| padding: 13px 0; |
| border-top: 1px solid var(--blue); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .mobile-next-action strong { color: var(--blue); font-size: 0.86rem; } |
| .mobile-next-action span { color: var(--muted); font-size: 0.76rem; text-align: right; } |
| |
| .mobile-lifecycle-list { |
| display: grid; |
| grid-template-columns: repeat(2, minmax(0, 1fr)); |
| margin: 0; |
| padding: 0; |
| list-style: none; |
| } |
| .mobile-lifecycle-list li { |
| display: grid; |
| grid-template-columns: 24px minmax(0, 1fr); |
| gap: 7px; |
| min-width: 0; |
| padding: 13px 8px 13px 0; |
| border-bottom: 1px solid var(--line); |
| } |
| .mobile-lifecycle-list li:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); } |
| .mobile-lifecycle-list span { |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.65rem; |
| font-weight: 600; |
| } |
| .mobile-lifecycle-list strong { display: block; font-size: 0.88rem; line-height: 1.25; } |
| .mobile-lifecycle-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.7rem; line-height: 1.4; } |
| .mobile-lifecycle-outcomes { |
| display: grid; |
| grid-template-columns: repeat(3, minmax(0, 1fr)); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .mobile-lifecycle-outcomes div { min-width: 0; padding: 12px 8px 13px 0; } |
| .mobile-lifecycle-outcomes div + div { padding-left: 9px; border-left: 1px solid var(--line); } |
| .mobile-lifecycle-outcomes strong { display: block; color: var(--blue); font-size: 0.78rem; } |
| .mobile-lifecycle-outcomes span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.66rem; line-height: 1.35; } |
| |
| .principles, .link-grid, .pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } |
| .contribute-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } |
| .principle, .card, .pattern { |
| min-width: 0; |
| border-top: 1px solid var(--line-strong); |
| padding: 18px 22px 18px 0; |
| } |
| .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 22px; } |
| .principle p, .card p { margin: 7px 0 0; color: var(--muted); font-size: 0.9rem; } |
| .principle h3, .card h3, footer h4 { display: flex; align-items: flex-start; gap: 8px; } |
| .principle h3 .icon, .card h3 .icon, footer h4 .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--blue); } |
| .principles { margin-top: 34px; } |
| .choice-why { |
| display: grid; |
| grid-template-columns: 220px minmax(0, 1fr); |
| gap: 34px; |
| margin-bottom: 0; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line); |
| padding: 22px 0; |
| } |
| .choice-why h3 { margin: 0; font-size: 0.96rem; } |
| .choice-why p { max-width: 850px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; } |
| .choice-fit { |
| display: grid; |
| grid-template-columns: repeat(2, minmax(0, 1fr)); |
| margin-bottom: 30px; |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .choice-fit-column { min-width: 0; padding: 22px 24px 22px 0; } |
| .choice-fit-column + .choice-fit-column { border-left: 1px solid var(--line); padding-left: 24px; } |
| .choice-fit-label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 0.88rem; } |
| .choice-fit-label .icon { width: 17px; height: 17px; color: var(--green); } |
| .choice-fit-column:last-child .choice-fit-label .icon { color: var(--violet); } |
| .choice-fit ul { margin: 12px 0 0; padding-left: 18px; } |
| .choice-fit li { margin-top: 7px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; } |
| .choice-fit li::marker { color: var(--blue); } |
| .choice-steps { |
| display: grid; |
| grid-template-columns: repeat(4, minmax(0, 1fr)); |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .choice-step { min-width: 0; padding: 20px 20px 20px 0; } |
| .choice-step + .choice-step { border-left: 1px solid var(--line); padding-left: 20px; } |
| .choice-step .number { |
| display: block; |
| margin-bottom: 8px; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.67rem; |
| font-weight: 700; |
| } |
| .choice-step strong { display: block; font-size: 0.9rem; } |
| .choice-step p { margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; } |
| .choice-sequence { margin: 16px 0 28px; color: var(--muted); font-size: 0.84rem; line-height: 1.55; } |
| .choice-sequence strong { color: var(--ink); } |
| .pattern-grid { gap: 0; border-top: 1px solid var(--line-strong); } |
| .pattern { |
| display: flex; |
| min-height: 178px; |
| flex-direction: column; |
| color: var(--ink); |
| text-decoration: none; |
| transition: color 140ms ease, border-color 140ms ease; |
| } |
| .pattern-grid .pattern:nth-child(n) { border-top: 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 20px 22px; } |
| .pattern-grid .pattern:nth-child(3n+1) { border-left: 0; padding-left: 0; } |
| .pattern-grid .pattern:nth-child(3n) { padding-right: 0; } |
| .pattern:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; } |
| .pattern .category { |
| display: block; |
| margin-bottom: 8px; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.62rem; |
| font-weight: 650; |
| text-transform: uppercase; |
| } |
| .pattern .sym { display: block; color: var(--quiet); font-size: 0.76rem; line-height: 1.4; } |
| .pattern .name { display: block; margin-top: 6px; font-weight: 760; line-height: 1.35; } |
| .pattern .outcome { display: block; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 0.74rem; line-height: 1.5; } |
| .pattern .outcome strong { color: var(--ink); } |
| .filter-row { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; } |
| .pattern-filter { |
| width: min(100%, 460px); |
| min-height: 44px; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| padding: 10px 13px; |
| color: var(--ink); |
| background: var(--surface); |
| } |
| .pattern-filter::placeholder { color: var(--quiet); } |
| .filter-row > a { margin-left: auto; font-size: 0.8rem; font-weight: 700; } |
| .filter-empty { margin: 0 0 18px; color: var(--muted); } |
| |
| .card { display: block; color: var(--ink); text-decoration: none; } |
| a.card:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; } |
| .runtime-kind { |
| display: block; |
| margin-bottom: 8px; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.64rem; |
| font-weight: 650; |
| line-height: 1.2; |
| text-transform: uppercase; |
| } |
| .runtime-kind.executable { color: var(--green); } |
| .future-grid { |
| display: grid; |
| grid-template-columns: repeat(3, minmax(0, 1fr)); |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .future-track { |
| display: flex; |
| min-width: 0; |
| flex-direction: column; |
| padding: 24px 24px 24px 0; |
| } |
| .future-track + .future-track { border-left: 1px solid var(--line); padding-left: 24px; } |
| .future-track h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1rem; } |
| .future-track h3 .icon { width: 18px; height: 18px; color: var(--blue); } |
| .future-track ul { margin: 16px 0 22px; padding-left: 19px; } |
| .future-track li { margin-top: 9px; color: var(--muted); font-size: 0.86rem; line-height: 1.5; } |
| .future-track li::marker { color: var(--blue); } |
| .future-output { margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 14px; color: var(--quiet); font-size: 0.76rem; line-height: 1.5; } |
| .future-output strong { display: block; margin-bottom: 3px; color: var(--ink); } |
| .future-steps { |
| display: grid; |
| grid-template-columns: repeat(4, minmax(0, 1fr)); |
| border-bottom: 1px solid var(--line-strong); |
| } |
| .future-step { min-width: 0; padding: 20px 20px 20px 0; } |
| .future-step + .future-step { border-left: 1px solid var(--line); padding-left: 20px; } |
| .future-step span { |
| display: block; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.63rem; |
| font-weight: 700; |
| text-transform: uppercase; |
| } |
| .future-step strong { display: block; margin-top: 6px; font-size: 0.88rem; } |
| .future-step p { margin: 5px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.5; } |
| .future-shared { |
| display: grid; |
| grid-template-columns: 180px minmax(0, 1fr) auto; |
| gap: 22px; |
| align-items: center; |
| border-bottom: 1px solid var(--line-strong); |
| padding: 20px 0; |
| } |
| .future-shared strong { font-size: 0.92rem; } |
| .future-shared p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; } |
| .star-history-chart { |
| display: block; |
| width: 100%; |
| color: inherit; |
| line-height: 0; |
| text-decoration: none; |
| } |
| .star-history-chart img { display: block; width: 100%; height: auto; } |
| .growth-note { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| gap: 24px; |
| border-bottom: 1px solid var(--line-strong); |
| padding: 20px 0; |
| } |
| .growth-note p { max-width: 760px; margin: 0; color: var(--muted); font-size: 0.88rem; } |
| .growth-note .button { flex: 0 0 auto; } |
| code { |
| border: 1px solid var(--line); |
| border-radius: 4px; |
| padding: 1px 5px; |
| background: #eef2f8; |
| color: var(--ink); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.84em; |
| } |
| .maturity-guide { |
| display: grid; |
| grid-template-columns: 180px minmax(0, 1fr); |
| gap: 30px; |
| align-items: start; |
| margin: 0 0 30px; |
| border-top: 1px solid var(--line-strong); |
| border-bottom: 1px solid var(--line); |
| padding: 20px 0; |
| } |
| .maturity-guide h3 { margin: 0; font-size: 0.96rem; line-height: 1.35; } |
| .maturity-guide p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.62; } |
| .maturity-guide p + p { margin-top: 8px; } |
| .maturity-guide strong { color: var(--ink); } |
| .levels { border-top: 1px solid var(--line-strong); } |
| .level { |
| display: grid; |
| grid-template-columns: 64px minmax(190px, 0.72fr) minmax(0, 2.2fr); |
| gap: 24px; |
| align-items: start; |
| padding: 25px 0; |
| border-bottom: 1px solid var(--line); |
| } |
| .level .number { padding-top: 2px; color: var(--blue); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.76rem; font-weight: 700; } |
| .level-intro h3 { margin: 0; font-size: 1rem; line-height: 1.35; } |
| .level-intro p { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; } |
| .level-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; } |
| .level-facts > div { min-width: 0; } |
| .level-facts dt { color: var(--quiet); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.62rem; font-weight: 650; letter-spacing: 0; text-transform: uppercase; } |
| .level-facts dd { margin: 6px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.52; } |
| |
| .resource-explorer { border-top: 1px solid var(--line-strong); } |
| .resource-toolbar { |
| display: grid; |
| grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(132px, 0.66fr)) auto; |
| gap: 10px; |
| padding: 16px 0; |
| border-bottom: 1px solid var(--line); |
| } |
| .resource-input, .resource-select { |
| width: 100%; |
| min-height: 44px; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| padding: 9px 12px; |
| color: var(--ink); |
| background: var(--surface); |
| } |
| .resource-input::placeholder { color: var(--quiet); } |
| .resource-reset, .resource-more { |
| align-items: center; |
| justify-content: center; |
| gap: 7px; |
| min-height: 44px; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| padding: 9px 13px; |
| color: var(--ink); |
| background: var(--surface); |
| font-weight: 700; |
| cursor: pointer; |
| } |
| .resource-reset { display: inline-flex; } |
| .resource-reset .icon { width: 15px; height: 15px; } |
| .resource-reset:hover, .resource-more:hover { border-color: var(--blue); color: var(--blue); } |
| .resource-collections { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); } |
| .resource-collection { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| gap: 6px; |
| min-height: 42px; |
| border: 0; |
| border-bottom: 2px solid transparent; |
| padding: 9px 14px; |
| color: var(--muted); |
| background: transparent; |
| font-size: 0.82rem; |
| font-weight: 700; |
| cursor: pointer; |
| } |
| .resource-collection:hover { color: var(--ink); } |
| .resource-collection[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--blue); } |
| .resource-collection .icon { width: 15px; height: 15px; } |
| .resource-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; border-bottom: 1px solid var(--line-strong); } |
| .resource-count { margin: 0; color: var(--muted); font-size: 0.86rem; } |
| .resource-sort { width: auto; min-width: 176px; } |
| .resource-list { min-height: 180px; } |
| .resource-row-head { |
| display: grid; |
| grid-template-columns: minmax(0, 1.5fr) 72px minmax(170px, 0.55fr) minmax(130px, 0.4fr); |
| gap: 22px; |
| padding: 11px 0; |
| border-bottom: 1px solid var(--line-strong); |
| color: var(--quiet); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.66rem; |
| font-weight: 650; |
| text-transform: uppercase; |
| } |
| .resource-item { |
| display: grid; |
| grid-template-columns: minmax(0, 1.5fr) 72px minmax(170px, 0.55fr) minmax(130px, 0.4fr); |
| gap: 12px 22px; |
| align-items: start; |
| padding: 18px 0 16px; |
| border-bottom: 1px solid var(--line); |
| } |
| .resource-work, .resource-publication, .resource-evidence { min-width: 0; } |
| .resource-title { color: var(--ink); font-weight: 760; line-height: 1.35; text-decoration: none; } |
| .resource-title:hover { color: var(--blue); } |
| .resource-item p { margin: 0; } |
| .resource-contribution { margin-top: 6px !important; color: var(--muted); font-size: 0.86rem; line-height: 1.5; } |
| .resource-authors { margin-top: 7px !important; color: var(--quiet); font-size: 0.76rem; line-height: 1.45; } |
| .resource-meta { margin-top: 7px; color: var(--quiet); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.68rem; overflow-wrap: anywhere; } |
| .resource-cell-label { display: none; margin-bottom: 5px; color: var(--quiet); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.62rem; font-weight: 650; text-transform: uppercase; } |
| .resource-year-value { color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9rem; font-weight: 700; } |
| .resource-year.is-empty { min-height: 1px; } |
| .resource-venue { display: block; color: var(--ink); font-size: 0.82rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; } |
| .resource-publisher, .resource-date, .resource-identifier { display: block; margin-top: 4px; color: var(--quiet); font-size: 0.72rem; line-height: 1.4; overflow-wrap: anywhere; } |
| .resource-type-label { display: block; color: var(--ink); font-size: 0.78rem; font-weight: 700; } |
| .resource-signal { display: block; margin-top: 5px; color: var(--green); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; } |
| .resource-signal.contextual { color: var(--violet); } |
| .resource-signal.medium { color: var(--blue); } |
| .resource-signal.unverified { color: var(--quiet); } |
| .resource-source-status { display: block; margin-top: 4px; color: var(--quiet); font-size: 0.7rem; line-height: 1.4; } |
| .resource-details, .resource-details:last-child { grid-column: 1 / -1; margin-top: 2px; border: 0; border-top: 1px dashed var(--line); border-bottom: 0; padding: 9px 0 0; } |
| .resource-details summary { width: fit-content; color: var(--blue); font-size: 0.72rem; font-weight: 700; } |
| .resource-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; padding: 14px 0 4px; } |
| .resource-detail h4 { margin: 0 0 5px; color: var(--quiet); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.64rem; text-transform: uppercase; } |
| .resource-detail p { color: var(--muted); font-size: 0.78rem; line-height: 1.5; } |
| .resource-bibliography + .resource-bibliography { margin-top: 5px; } |
| .resource-actions { display: flex; justify-content: center; padding-top: 18px; } |
| .resource-empty, .resource-loading { margin: 0; padding: 28px 0; color: var(--muted); } |
| details { border-top: 1px solid var(--line-strong); padding: 18px 0; } |
| details:last-child { border-bottom: 1px solid var(--line-strong); } |
| summary { cursor: pointer; font-weight: 750; } |
| details p { max-width: 850px; margin: 10px 0 0; color: var(--muted); } |
| |
| footer { padding: 58px 0 48px; border-top: 1px solid var(--line-strong); background: #eef2f8; } |
| .footer-grid { display: grid; grid-template-columns: 1.45fr 0.8fr 0.8fr 0.8fr; gap: 32px; } |
| .footer-grid > * { min-width: 0; } |
| footer h4 { margin: 0 0 10px; font-size: 0.9rem; } |
| footer a { display: block; padding: 3px 0; color: var(--muted); font-size: 0.84rem; text-decoration: none; } |
| footer a:hover { color: var(--blue); } |
| .cite { position: relative; margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); overflow: auto; } |
| .cite pre { min-width: 460px; margin: 0; padding: 16px; color: #344054; font: 0.74rem/1.55 "IBM Plex Mono", ui-monospace, monospace; } |
| .copy { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 9px; background: var(--surface); color: var(--ink); font-size: 0.72rem; font-weight: 700; cursor: pointer; } |
| .legal { margin: 30px 0 0; color: var(--quiet); font-size: 0.8rem; } |
| |
| @media (min-width: 1041px) { |
| #runtimes .link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } |
| #runtimes .card { padding-left: 22px; } |
| #runtimes .card:nth-child(4n+1) { padding-left: 0; } |
| } |
| @media (max-width: 1040px) { |
| .links { display: none; } |
| .menu-btn { display: inline-flex; } |
| .nav { position: relative; } |
| .links.open { |
| position: absolute; |
| top: 66px; |
| left: -24px; |
| right: -24px; |
| display: flex; |
| flex-direction: column; |
| align-items: stretch; |
| gap: 0; |
| margin: 0; |
| padding: 10px 24px 14px; |
| border-bottom: 1px solid var(--line); |
| background: var(--paper); |
| box-shadow: 0 14px 30px rgba(18, 23, 34, 0.09); |
| max-height: calc(100vh - 66px); |
| overflow-y: auto; |
| } |
| .links.open a { padding: 9px 0; } |
| .links.open .mobile-nav-only { display: flex; align-items: center; gap: 8px; } |
| .links.open a[aria-current="location"]::after { display: none; } |
| } |
| @media (max-width: 920px) { |
| .hero-system { |
| width: 100%; |
| margin-top: 28px; |
| } |
| .hero-scene { height: 316px; } |
| .hero-inspector { grid-template-columns: 1fr; gap: 12px; padding: 14px 0; } |
| .hero-system .loop-stage-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); } |
| .hero-inspector .loop-stage-detail { min-height: 42px; } |
| } |
| @media (max-width: 820px) { |
| .wrap { width: min(var(--maxw), calc(100% - 32px)); } |
| .links.open { left: -16px; right: -16px; padding-inline: 16px; } |
| section { padding: 68px 0; } |
| .hero { min-height: 0; padding: 40px 0 24px; } |
| .hero-system { margin-top: 24px; } |
| .hero-scene { width: 100%; height: 286px; } |
| .hero-scene canvas { opacity: 1; } |
| .hero-system .loop-stage-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } |
| .hero-system .loop-stage:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); } |
| .hero-system .loop-stage:nth-child(3n+1) { border-left: 0; } |
| .hero-system .loop-stage:nth-child(n+4) { border-top: 1px solid var(--line); } |
| h1 { font-size: 2.7rem; } |
| h2 { font-size: 2rem; } |
| .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; } |
| .contract-need, .contract-layers-head, .contract-example-head { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; } |
| .contract-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .contract-layer:nth-child(n) { border-left: 1px solid var(--line); padding: 18px; } |
| .contract-layer:nth-child(2n+1) { border-left: 0; padding-left: 0; } |
| .contract-layer:nth-child(n+3) { border-top: 1px solid var(--line); } |
| .contract-phase { padding-right: 18px; } |
| .contract-phase + .contract-phase { padding-left: 18px; } |
| .contract-example-row { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; } |
| .stats { grid-template-columns: repeat(2, 1fr); } |
| .stat + .stat { border-left: 0; } |
| .stat:nth-child(even) { border-left: 1px solid var(--line); } |
| .stat:nth-child(n+3) { border-top: 1px solid var(--line); } |
| .stat:last-child { grid-column: 1 / -1; border-left: 0; } |
| .principles, .link-grid, .pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .choice-why { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; } |
| .choice-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .choice-step:nth-child(n) { border-left: 1px solid var(--line); padding: 18px; } |
| .choice-step:nth-child(2n+1) { border-left: 0; padding-left: 0; } |
| .choice-step:nth-child(n+3) { border-top: 1px solid var(--line); } |
| .pattern-grid .pattern:nth-child(n) { border-left: 1px solid var(--line); padding: 20px; } |
| .pattern-grid .pattern:nth-child(2n+1) { border-left: 0; padding-left: 0; } |
| .pattern-grid .pattern:nth-child(2n) { padding-right: 0; } |
| .future-grid { grid-template-columns: 1fr; } |
| .future-track { padding: 20px 0; } |
| .future-track + .future-track { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; } |
| .future-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .future-step:nth-child(n) { border-left: 1px solid var(--line); padding: 18px; } |
| .future-step:nth-child(2n+1) { border-left: 0; padding-left: 0; } |
| .future-step:nth-child(n+3) { border-top: 1px solid var(--line); } |
| .future-shared { grid-template-columns: 1fr; gap: 10px; align-items: start; } |
| .growth-note { align-items: flex-start; flex-direction: column; gap: 14px; } |
| .maturity-guide { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; } |
| .level { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; } |
| .level .number { grid-row: 1 / 3; } |
| .level-intro, .level-facts { grid-column: 2; } |
| .level-facts { grid-template-columns: 1fr; gap: 12px; } |
| .level-facts > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; } |
| .level-facts dd { margin-top: 0; } |
| .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .resource-toolbar label:first-child { grid-column: 1 / -1; } |
| .resource-reset { width: 100%; } |
| .resource-row-head { display: none; } |
| .resource-item { grid-template-columns: 72px minmax(0, 1fr) minmax(120px, 0.72fr); gap: 14px 18px; } |
| .resource-work, .resource-details { grid-column: 1 / -1; } |
| .resource-cell-label { display: block; } |
| .resource-detail-grid { gap: 14px 22px; } |
| .footer-grid { grid-template-columns: 1fr 1fr; } |
| .loop-stage-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } |
| .loop-stage:nth-child(4) { border-left: 0; } |
| .loop-stage:nth-child(n+4) { border-top: 1px solid var(--line); } |
| } |
| @media (min-width: 561px) and (max-width: 768px) { |
| .star-history-chart { max-width: 680px; margin-inline: auto; } |
| } |
| @media (max-width: 600px) { |
| .project-links .nav-link:first-child { display: none; } |
| .project-links { gap: 6px; } |
| } |
| @media (max-width: 560px) { |
| html { scroll-padding-top: 74px; } |
| .nav { min-height: 64px; gap: 8px; } |
| .links.open { top: 64px; max-height: calc(100vh - 64px); } |
| .nav-link { min-height: 44px; padding-inline: 12px; } |
| .brand { min-width: 0; gap: 8px; } |
| .brand .logo { width: 28px; height: 28px; } |
| .brand .brand-text { display: block; font-size: 0.78rem; line-height: 1.1; } |
| .menu-btn { width: 44px; min-height: 44px; justify-content: center; padding: 0; } |
| .menu-label { display: none; } |
| .menu-btn .icon { width: 18px; height: 18px; } |
| section { padding: 56px 0; } |
| h1 { font-size: 2.25rem; line-height: 1.08; } |
| h2 { font-size: 1.85rem; line-height: 1.16; } |
| .section-label { align-items: flex-start; margin-bottom: 9px; font-size: 0.68rem; line-height: 1.4; } |
| .section-label .icon { width: 14px; height: 14px; margin-top: 1px; } |
| .section-head { gap: 12px; margin-bottom: 24px; } |
| .section-intro { font-size: 0.95rem; } |
| .contract-need, .contract-layers-head, .contract-example-head { grid-template-columns: 1fr; gap: 8px; } |
| .contract-need { margin-bottom: 24px; padding: 18px 0; } |
| .contract-need p { font-size: 0.84rem; line-height: 1.55; } |
| .contract-layers-head { margin-bottom: 10px; } |
| .contract-layers { grid-template-columns: 1fr; margin-bottom: 28px; } |
| .contract-layer:nth-child(n) { border-top: 1px solid var(--line); border-left: 0; padding: 14px 0; } |
| .contract-layer:first-child { border-top: 0; } |
| .contract-layer span { margin-top: 4px; } |
| .contract-phases { grid-template-columns: 1fr; margin-top: 24px; } |
| .contract-phase:nth-child(n) { border-top: 1px solid var(--line); border-left: 0; padding: 16px 0; } |
| .contract-phase:first-child { border-top: 0; } |
| .contract-example { margin-top: 30px; } |
| .contract-example-head { padding: 18px 0; } |
| .contract-example-row { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; } |
| .contract-example-result { align-items: flex-start; flex-direction: column; gap: 9px; padding: 15px 0; } |
| .hero { min-height: 0; padding: 20px 0 6px; } |
| .hero-kicker { max-width: 100%; align-items: center; margin: 0 auto 10px; line-height: 1.35; text-align: left; } |
| .tagline { margin-top: 11px; font-size: 1.18rem; } |
| .lead { margin-top: 6px; font-size: 0.95rem; line-height: 1.48; } |
| .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; gap: 8px; margin: 12px auto 0; } |
| .actions .button { min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 0.82rem; } |
| .actions .button .icon { width: 16px; height: 16px; } |
| .hero-system { display: flex; flex-direction: column; margin-top: 8px; } |
| .scene-head { order: 1; justify-content: center; min-height: 24px; padding: 2px 0; } |
| .scene-flow { display: none; } |
| .hero-scene { order: 2; width: 100%; height: 224px; } |
| .hero-scene canvas { opacity: 1; } |
| .scene-key { display: none; } |
| .scene-key-item { justify-content: flex-start; min-width: 0; min-height: 34px; padding: 7px 8px; } |
| .scene-key-item:nth-child(even) { border-left: 1px solid var(--line); } |
| .scene-key-item:nth-child(n+3) { border-top: 1px solid var(--line); } |
| .scene-key-item::before { width: 13px; flex: 0 0 auto; } |
| .scene-outcomes { order: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; min-height: 34px; padding: 0; font-size: 0.62rem; line-height: 1.3; } |
| .scene-outcome { justify-content: flex-start; gap: 5px; min-width: 0; padding: 8px 6px; } |
| .scene-outcome + .scene-outcome { border-left: 1px solid var(--line); } |
| .scene-outcome::before { width: 6px; height: 6px; flex: 0 0 auto; } |
| .hero-inspector { order: 3; gap: 8px; padding: 0 0 6px; } |
| .loop-stage-rail { margin-top: 20px; } |
| .hero-system .loop-stage-rail { margin: 0; } |
| .loop-stage { min-height: 44px; padding-inline: 6px; font-size: 0.71rem; } |
| .loop-stage-number { font-size: 0.61rem; } |
| .loop-stage-detail { min-height: 40px; margin-top: 8px; font-size: 0.75rem; line-height: 1.45; } |
| .hero-inspector .loop-stage-detail { min-height: 36px; margin: 0; padding: 4px 8px 0 12px; line-height: 1.42; } |
| .mental-model { padding: 30px 0 46px; } |
| .definition { margin-bottom: 18px; font-size: 0.88rem; line-height: 1.55; text-align: left; } |
| .definition-full { display: none; } |
| .definition-compact { display: inline; } |
| .hero-visual { width: min(100%, 420px); } |
| .hero-visual .desktop-stack-visual { display: none; } |
| .desktop-stack-scene, .desktop-stack-key { display: none; } |
| .mobile-stack { |
| display: block; |
| border: 1px solid var(--line-strong); |
| border-radius: 6px; |
| background: var(--surface); |
| overflow: hidden; |
| text-align: left; |
| } |
| .mobile-stack-head { padding: 15px 15px 13px; border-bottom: 1px solid var(--line); } |
| .mobile-stack-eyebrow { |
| display: block; |
| color: var(--blue); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.62rem; |
| font-weight: 650; |
| text-transform: uppercase; |
| } |
| .mobile-stack-head strong { display: block; margin-top: 3px; font-size: 1.12rem; line-height: 1.25; } |
| .mobile-stack-list { margin: 0; padding: 0; list-style: none; } |
| .mobile-stack-layer { |
| display: grid; |
| grid-template-columns: 30px minmax(0, 1fr); |
| gap: 10px; |
| min-width: 0; |
| padding: 13px 14px 14px 12px; |
| border-left: 4px solid var(--ink); |
| } |
| .mobile-stack-layer + .mobile-stack-layer { border-top: 1px solid var(--line); } |
| .mobile-stack-layer.loop { border-left-color: var(--blue); background: #eef4ff; } |
| .mobile-stack-layer.harness { border-left-color: var(--cyan); } |
| .mobile-stack-layer.context { border-left-color: var(--green); } |
| .mobile-stack-number { |
| padding-top: 2px; |
| color: var(--quiet); |
| font-family: "IBM Plex Mono", ui-monospace, monospace; |
| font-size: 0.64rem; |
| font-weight: 700; |
| } |
| .mobile-stack-layer.loop .mobile-stack-number, .mobile-stack-layer.loop strong { color: var(--blue); } |
| .mobile-stack-layer.harness strong { color: #087f99; } |
| .mobile-stack-layer.context strong { color: #087b53; } |
| .mobile-stack-layer strong { display: block; font-size: 0.92rem; line-height: 1.3; } |
| .mobile-stack-layer p { margin: 3px 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.45; } |
| .mobile-stack-note { |
| margin: 0; |
| border-top: 1px solid var(--line-strong); |
| padding: 11px 14px 12px; |
| color: var(--muted); |
| font-size: 0.72rem; |
| line-height: 1.45; |
| } |
| .mobile-stack-note strong { color: var(--blue); } |
| .stats { margin-top: 20px; } |
| .stat { min-height: 76px; padding: 14px 11px; } |
| .stat b { font-size: 1.22rem; } |
| .stat span { font-size: 0.68rem; } |
| .desktop-diagram { display: none; } |
| .mobile-diagram { display: block; } |
| .supporting-visual { display: none; } |
| .mobile-contract-summary { border-bottom: 1px solid var(--line-strong); } |
| .mobile-contract-group { padding: 16px 0 0; } |
| .mobile-contract-group + .mobile-contract-group { margin-top: 14px; border-top: 1px solid var(--line); } |
| .mobile-contract-group > p { margin-bottom: 9px; border-left: 3px solid var(--blue); padding-left: 9px; } |
| .mobile-contract-grid { gap: 6px; } |
| .mobile-contract-part { |
| grid-template-columns: 28px minmax(0, 1fr); |
| gap: 7px; |
| min-height: 48px; |
| padding: 9px; |
| border: 1px solid var(--line); |
| border-radius: 6px; |
| background: var(--surface); |
| } |
| .mobile-contract-part:nth-child(even) { padding-left: 9px; border-left: 1px solid var(--line); } |
| .mobile-contract-part span { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| width: 24px; |
| height: 24px; |
| border: 1px solid #b8ccf8; |
| border-radius: 50%; |
| color: var(--blue); |
| background: #eef4ff; |
| } |
| .mobile-next-action { |
| display: grid; |
| grid-template-columns: 96px minmax(0, 1fr); |
| gap: 10px; |
| margin-top: 16px; |
| border-top: 1px solid #b8ccf8; |
| border-bottom: 0; |
| border-left: 3px solid var(--blue); |
| padding: 13px 12px; |
| background: #eef4ff; |
| } |
| .mobile-next-action span { text-align: left; } |
| .mobile-lifecycle-summary { border-bottom: 1px solid var(--line-strong); } |
| .mobile-lifecycle-list { grid-template-columns: 1fr; } |
| .mobile-lifecycle-list li { |
| grid-template-columns: 34px minmax(0, 1fr); |
| gap: 10px; |
| align-items: center; |
| min-height: 58px; |
| padding: 10px 0; |
| } |
| .mobile-lifecycle-list li:nth-child(even) { padding-left: 0; border-left: 0; } |
| .mobile-lifecycle-list span { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| width: 30px; |
| height: 30px; |
| border: 1px solid #b8ccf8; |
| border-radius: 50%; |
| background: #eef4ff; |
| } |
| .mobile-lifecycle-list strong { font-size: 0.91rem; } |
| .mobile-lifecycle-list small { margin-top: 2px; font-size: 0.73rem; } |
| .mobile-lifecycle-outcomes { gap: 6px; padding-top: 10px; } |
| .mobile-lifecycle-outcomes div { padding: 10px 8px 12px; border-top: 2px solid var(--violet); background: var(--surface); } |
| .mobile-lifecycle-outcomes div:nth-child(2) { border-top-color: #d97706; } |
| .mobile-lifecycle-outcomes div:nth-child(3) { border-top-color: var(--green); } |
| .mobile-lifecycle-outcomes div + div { padding-left: 8px; border-left: 1px solid var(--line); } |
| .mobile-lifecycle-outcomes strong { font-size: 0.76rem; } |
| .mobile-lifecycle-outcomes span { font-size: 0.67rem; } |
| .principles { margin-top: 24px; } |
| .principles, .link-grid, .pattern-grid, .footer-grid { grid-template-columns: 1fr; } |
| .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; } |
| .principle, .card, .pattern { padding-top: 16px; padding-bottom: 16px; } |
| .choice-why { grid-template-columns: 1fr; gap: 7px; padding: 18px 0; } |
| .loop-layer-map { grid-template-columns: 1fr; } |
| .loop-layer-item { padding: 16px 0; } |
| .loop-layer-item + .loop-layer-item { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; } |
| .choice-why p { font-size: 0.84rem; line-height: 1.55; } |
| .choice-fit { grid-template-columns: 1fr; margin-bottom: 24px; } |
| .choice-fit-column { padding: 18px 0; } |
| .choice-fit-column + .choice-fit-column { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; } |
| .choice-steps { grid-template-columns: 1fr; } |
| .choice-step:nth-child(n) { border-top: 1px solid var(--line); border-left: 0; padding: 16px 0; } |
| .choice-step:first-child { border-top: 0; } |
| .choice-sequence { margin-bottom: 22px; } |
| .filter-row { align-items: stretch; flex-direction: column; gap: 10px; } |
| .filter-row > a { width: fit-content; margin-left: 0; } |
| .pattern-grid .pattern:nth-child(n) { min-height: 0; border-left: 0; padding: 17px 0; } |
| .pattern .outcome { margin-top: 12px; padding-top: 0; } |
| .future-steps { grid-template-columns: 1fr; } |
| .future-step:nth-child(n) { border-top: 1px solid var(--line); border-left: 0; padding: 15px 0; } |
| .future-step:first-child { border-top: 0; } |
| .growth-note .button { width: 100%; } |
| .resource-toolbar { grid-template-columns: 1fr; } |
| .resource-toolbar label:first-child { grid-column: auto; } |
| .resource-select { padding-inline: 10px; font-size: 0.86rem; } |
| .resource-reset { font-size: 0.86rem; } |
| .resource-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } |
| .resource-collection { min-width: 0; min-height: 42px; padding-inline: 4px; font-size: 0.75rem; } |
| .resource-collection .icon { width: 14px; height: 14px; } |
| .resource-summary { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 0; } |
| .resource-sort { width: 100%; } |
| .resource-item { grid-template-columns: 1fr; gap: 12px; padding: 17px 0; } |
| .resource-work, .resource-details { grid-column: auto; } |
| .resource-year, .resource-publication, .resource-evidence { padding-top: 10px; border-top: 1px solid var(--line); } |
| .resource-year.is-empty { display: none; } |
| .resource-detail-grid { grid-template-columns: 1fr; gap: 14px; } |
| .resource-details summary { min-height: 34px; padding-top: 5px; } |
| .caption { text-align: left; } |
| .maturity-guide { grid-template-columns: 1fr; gap: 7px; margin-bottom: 24px; padding: 18px 0; } |
| .maturity-guide p { font-size: 0.84rem; line-height: 1.55; } |
| .level { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 20px 0; } |
| .level-facts { gap: 13px; } |
| .level-facts > div { grid-template-columns: 1fr; gap: 3px; } |
| .level-intro p, .level-facts dd { font-size: 0.78rem; } |
| footer { padding: 44px 0 40px; } |
| .footer-grid { gap: 26px; } |
| .cite { overflow: visible; } |
| .cite pre { min-width: 0; padding: 14px 12px 48px; font-size: 0.66rem; white-space: pre-wrap; overflow-wrap: anywhere; } |
| .legal { margin-top: 26px; } |
| } |
| @media (min-width: 360px) and (max-width: 560px) { |
| .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| .resource-toolbar label:first-child { grid-column: 1 / -1; } |
| } |
| @media (max-width: 340px) { |
| h1 { font-size: 2.2rem; } |
| .brand .brand-text { display: none; } |
| .project-links .nav-label { display: none; } |
| .project-links .nav-link { width: 44px; padding: 0; } |
| .hero { padding-bottom: 8px; } |
| .hero-system { margin-top: 16px; } |
| .scene-head { min-height: 28px; padding-block: 4px; } |
| .hero-scene { height: 218px; } |
| .scene-key { min-height: 52px; font-size: 0.58rem; } |
| .scene-outcomes { min-height: 30px; padding-block: 3px; font-size: 0.56rem; } |
| .hero-inspector .loop-stage-detail { min-height: 34px; font-size: 0.72rem; } |
| .mental-model { padding-top: 8px; } |
| .actions .button { font-size: 0.78rem; } |
| .mobile-stack-layer { padding-right: 11px; padding-left: 9px; } |
| .mobile-stack-layer p { font-size: 0.71rem; } |
| .resource-collection { gap: 4px; font-size: 0.68rem; } |
| .resource-collection .icon { width: 13px; height: 13px; } |
| .menu-btn { padding-inline: 10px; } |
| .nav-link { padding-inline: 10px; } |
| } |
| @media (prefers-reduced-motion: reduce) { |
| html { scroll-behavior: auto; } |
| .pattern { transition: none; } |
| } |
| @media (forced-colors: active) { |
| .hero-scene { display: none; } |
| } |
| @media print { |
| header.site, .menu-btn, .actions, .copy, .pattern-filter, .resource-toolbar, .resource-collections, .resource-summary, .resource-actions, .hero-scene { display: none; } |
| body, footer { background: #fff; } |
| section { padding: 24pt 0; break-inside: avoid; } |
| .wrap { width: 100%; } |
| } |
| </style> |
| <script type="application/ld+json"> |
| { |
| "@context": "https://schema.org", |
| "@type": "CollectionPage", |
| "name": "Awesome Loop Engineering", |
| "url": "https://chaoyue0307.github.io/awesome-loop-engineering/", |
| "description": "A practical field guide and implementation kit for recurring, stateful, verified AI-agent systems.", |
| "keywords": ["Loop Engineering", "AI agents", "Coding agents", "Agent workflows", "Agentic loops"], |
| "datePublished": "2026-06-10", |
| "dateModified": "2026-07-25", |
| "sameAs": [ |
| "https://github.com/ChaoYue0307/awesome-loop-engineering", |
| "https://huggingface.co/datasets/cy0307/awesome-loop-engineering" |
| ], |
| "license": "https://creativecommons.org/publicdomain/zero/1.0/", |
| "image": "https://chaoyue0307.github.io/awesome-loop-engineering/assets/social-preview-730-v10.png", |
| "logo": "https://chaoyue0307.github.io/awesome-loop-engineering/assets/awesome-loop-engineering-logo.png", |
| "author": { "@type": "Person", "name": "Chaoyue He" } |
| } |
| </script> |
| <script type="application/ld+json"> |
| { |
| "@context": "https://schema.org", |
| "@type": "FAQPage", |
| "mainEntity": [ |
| { |
| "@type": "Question", |
| "name": "What is loop engineering?", |
| "acceptedAnswer": { "@type": "Answer", "text": "Loop Engineering is the practice of designing recurring AI-agent and coding-agent systems that discover work, delegate it, verify results, persist state, decide next actions, and run again." } |
| }, |
| { |
| "@type": "Question", |
| "name": "How is loop engineering different from prompt, context, and harness engineering?", |
| "acceptedAnswer": { "@type": "Answer", "text": "Prompt, context, and harness engineering improve one run. Loop engineering governs how agent work repeats, verifies, persists state, and escalates over time." } |
| }, |
| { |
| "@type": "Question", |
| "name": "When should you use an agent loop?", |
| "acceptedAnswer": { "@type": "Answer", "text": "Use a loop when work recurs, external evidence can verify progress, useful state should persist, actions and budgets can be bounded, and a human owner can handle exceptions. Prefer a supervised run for one-off or mainly subjective work." } |
| }, |
| { |
| "@type": "Question", |
| "name": "What is in a loop contract?", |
| "acceptedAnswer": { "@type": "Answer", "text": "A Loop Contract is a reviewable operating specification for one recurring agent job. It fixes the objective, trigger, intake, workspace and permissions, context, roles, external verification, durable state, budget, escalation path, and success or blocked exit so repeated runs do not rely on hidden defaults." } |
| }, |
| { |
| "@type": "Question", |
| "name": "Does every agent loop need to reach the highest maturity level?", |
| "acceptedAnswer": { "@type": "Answer", "text": "No. Choose the lowest level that meets the job's continuity, evidence, and blast-radius requirements. Many useful workflows should stop at Level 2 or 3. Persist state before increasing autonomy, add external verification before more agents, and reserve production supervision for workflows with production impact." } |
| }, |
| { |
| "@type": "Question", |
| "name": "Which runtimes can run agent loops?", |
| "acceptedAnswer": { "@type": "Answer", "text": "A loop can run as a Claude Code loop or scheduled task, a Codex automation, a GitHub agentic workflow, a shell or cron wrapper, or a durable-execution runtime." } |
| } |
| ] |
| } |
| </script> |
| <script type="application/ld+json"> |
| { |
| "@context": "https://schema.org", |
| "@type": "Dataset", |
| "name": "Awesome Loop Engineering resources", |
| "description": "Explore 730 resources across model, agent, harness, workflow, operations, and evaluation layers, with publication, contribution, novelty, impact, and evidence fields.", |
| "url": "https://chaoyue0307.github.io/awesome-loop-engineering/", |
| "sameAs": [ |
| "https://huggingface.co/datasets/cy0307/awesome-loop-engineering", |
| "https://github.com/ChaoYue0307/awesome-loop-engineering" |
| ], |
| "identifier": "https://huggingface.co/datasets/cy0307/awesome-loop-engineering", |
| "version": "0.10.0", |
| "license": "https://creativecommons.org/publicdomain/zero/1.0/", |
| "isAccessibleForFree": true, |
| "creator": { "@type": "Person", "name": "Chaoyue He" }, |
| "datePublished": "2026-06-10", |
| "dateModified": "2026-07-25", |
| "keywords": ["Loop Engineering", "AI agents", "Coding agents", "Agent reliability", "Agent evaluation"], |
| "includedInDataCatalog": { |
| "@type": "DataCatalog", |
| "name": "Hugging Face Hub", |
| "url": "https://huggingface.co/datasets" |
| }, |
| "distribution": [ |
| { |
| "@type": "DataDownload", |
| "encodingFormat": "text/csv", |
| "contentUrl": "https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/data/resources.csv" |
| }, |
| { |
| "@type": "DataDownload", |
| "encodingFormat": "application/jsonlines", |
| "contentUrl": "https://raw.githubusercontent.com/ChaoYue0307/awesome-loop-engineering/main/data/resources.jsonl" |
| } |
| ] |
| } |
| </script> |
| </head> |
| <body> |
| <noscript> |
| <style> |
| .links { display: flex !important; flex-wrap: wrap; } |
| .menu-btn, .copy, .pattern-filter { display: none !important; } |
| </style> |
| </noscript> |
| <a class="skip" href="#main">Skip to content</a> |
| <header class="site"> |
| <div class="wrap nav"> |
| <a class="brand" href="#top" aria-label="Awesome Loop Engineering, back to top"> |
| <img class="logo" src="assets/awesome-loop-engineering-logo.png" alt="" width="32" height="32"> |
| <span class="brand-text">Loop Engineering</span> |
| </a> |
| <nav class="links" id="primary-nav" aria-label="Primary"> |
| <a href="#contract">Contract</a> |
| <a href="#lifecycle">Lifecycle</a> |
| <a href="#choose">Patterns</a> |
| <a href="#runtimes">Runtimes</a> |
| <a href="#maturity">Maturity</a> |
| <a href="#resources">Resources</a> |
| <a href="#future">Future</a> |
| <a href="#faq">FAQ</a> |
| <a class="mobile-nav-only" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering"><i class="icon" data-lucide="database" aria-hidden="true"></i>Dataset</a> |
| </nav> |
| <span class="spacer"></span> |
| <button class="menu-btn" type="button" aria-expanded="false" aria-controls="primary-nav" aria-label="Open navigation"><i class="icon menu-icon-open" data-lucide="menu" aria-hidden="true"></i><i class="icon menu-icon-close" data-lucide="x" aria-hidden="true"></i><span class="menu-label">Menu</span></button> |
| <nav class="project-links" aria-label="Project links"> |
| <a class="nav-link" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering"><i class="icon" data-lucide="database" aria-hidden="true"></i>Dataset</a> |
| <a class="nav-link primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering" aria-label="Open the GitHub repository"><i class="icon" data-lucide="code-2" aria-hidden="true"></i><span class="nav-label">GitHub</span></a> |
| </nav> |
| </div> |
| </header> |
|
|
| <main id="main" tabindex="-1"> |
| <section class="hero" id="top"> |
| <div class="wrap"> |
| <div class="hero-copy"> |
| <p class="section-label hero-kicker"><i class="icon" data-lucide="repeat-2" aria-hidden="true"></i><span>Field guide for recurring agent systems</span></p> |
| <h1>Awesome Loop Engineering</h1> |
| <p class="tagline">Design loops, not just prompts.</p> |
| <p class="lead">Explore 730 resources from model recurrence to agent operations, then build with 22 patterns, 22 adaptable contracts, and 8 runtime starters.</p> |
| <div class="actions"> |
| <a class="button primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering#readme"><i class="icon" data-lucide="book-open" aria-hidden="true"></i>Explore resources</a> |
| <a class="button" href="#choose"><i class="icon" data-lucide="compass" aria-hidden="true"></i>Choose a loop</a> |
| </div> |
| </div> |
| <div class="hero-system"> |
| <div class="scene-head" aria-hidden="true"> |
| <strong>Bounded agent loop</strong> |
| <span class="scene-flow"><span>Work</span><i>→</i><span>Scope</span><i>→</i><span>Agent + tools</span><i>→</i><span>Evidence</span><i>→</i><span>Memory</span><i>→</i><span>Decision</span></span> |
| </div> |
| <div class="hero-scene" data-loop-scene role="img" aria-label="Animated bounded agent loop. Work is scoped by an orchestrator, handled by an agent inside a controlled workspace with context and tools, checked by an independent verifier, saved to durable memory, and routed to retry, human handoff, or verified exit."> |
| <div class="scene-fallback">Work is scoped, handled by an agent with context and tools, independently verified, saved to durable memory, and routed to retry, human handoff, or verified exit.</div> |
| </div> |
| <div class="scene-key" aria-label="Agent runtime visual key"> |
| <span class="scene-key-item packet">Scoped work</span> |
| <span class="scene-key-item agents">Agent workspace + tools</span> |
| <span class="scene-key-item evidence">Independent verifier</span> |
| <span class="scene-key-item state">Durable memory</span> |
| </div> |
| <div class="scene-outcomes" aria-label="Possible loop outcomes"> |
| <span class="scene-outcome retry">Retry with evidence</span> |
| <span class="scene-outcome escalate">Escalate to a human</span> |
| <span class="scene-outcome exit">Exit on a verified goal</span> |
| </div> |
| <div class="hero-inspector"> |
| <div class="loop-stage-rail" role="group" aria-label="Inspect the loop lifecycle"> |
| <button class="loop-stage" type="button" data-loop-stage="0" aria-pressed="true"><span class="loop-stage-number">01</span><span>Intake</span></button> |
| <button class="loop-stage" type="button" data-loop-stage="1" aria-pressed="false"><span class="loop-stage-number">02</span><span>Delegate</span></button> |
| <button class="loop-stage" type="button" data-loop-stage="2" aria-pressed="false"><span class="loop-stage-number">03</span><span>Act</span></button> |
| <button class="loop-stage" type="button" data-loop-stage="3" aria-pressed="false"><span class="loop-stage-number">04</span><span>Verify</span></button> |
| <button class="loop-stage" type="button" data-loop-stage="4" aria-pressed="false"><span class="loop-stage-number">05</span><span>Persist</span></button> |
| <button class="loop-stage" type="button" data-loop-stage="5" aria-pressed="false"><span class="loop-stage-number">06</span><span>Decide</span></button> |
| </div> |
| <p class="loop-stage-detail" id="loop-stage-detail" aria-live="polite"><strong>Intake:</strong> turn a goal, event, or queue signal into a bounded work packet.</p> |
| </div> |
| </div> |
| </div> |
| </section> |
|
|
| <section class="mental-model" aria-label="Loop Engineering mental model"> |
| <div class="wrap"> |
| <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> |
| <figure class="hero-visual"> |
| <div class="desktop-stack-scene" data-stack-scene role="img" aria-label="Interactive engineering stack. A prompt shapes a model call, context feeds the agent, a harness surrounds the run with tools and permissions, and Loop Engineering connects triggers, independent verification, durable state, budgets, and next actions over time."> |
| <img class="desktop-stack-visual" src="assets/loop-engineering-stack.svg?v=7" width="1200" height="680" loading="lazy" alt=""> |
| </div> |
| <div class="desktop-stack-key" aria-hidden="true"> |
| <span><strong>One agent run:</strong> prompt, context, and harness shape what the agent can understand and do.</span> |
| <span><strong>Work over time:</strong> the outer loop triggers work, verifies evidence, persists state, and chooses the next action.</span> |
| </div> |
| <div class="mobile-stack" role="img" aria-label="Four engineering layers. Prompt, context, and harness engineering improve one agent run. Loop Engineering governs recurring work over time."> |
| <div class="mobile-stack-head"><span class="mobile-stack-eyebrow">Mental model / four layers</span><strong>Loop Engineering Stack</strong></div> |
| <ol class="mobile-stack-list"> |
| <li class="mobile-stack-layer loop"><span class="mobile-stack-number">04</span><div><strong>Loop Engineering</strong><p>Governs the recurring contract, verification, state, budget, and next action over time.</p></div></li> |
| <li class="mobile-stack-layer harness"><span class="mobile-stack-number">03</span><div><strong>Harness Engineering</strong><p>Provides tools, permissions, sandboxes, traces, and checks around one run.</p></div></li> |
| <li class="mobile-stack-layer context"><span class="mobile-stack-number">02</span><div><strong>Context Engineering</strong><p>Loads the state, memory, documents, and examples the agent can see.</p></div></li> |
| <li class="mobile-stack-layer prompt"><span class="mobile-stack-number">01</span><div><strong>Prompt Engineering</strong><p>Defines the instruction and interaction for one model call.</p></div></li> |
| </ol> |
| <p class="mobile-stack-note">The first three layers improve <strong>one run</strong>. Loop Engineering governs <strong>work over time</strong>.</p> |
| </div> |
| </figure> |
| <div class="stats" role="list" aria-label="Field guide at a glance"> |
| <div class="stat" role="listitem"><b><i class="icon" data-lucide="library" aria-hidden="true"></i>730</b><span>resources</span></div> |
| <div class="stat" role="listitem"><b><i class="icon" data-lucide="blocks" aria-hidden="true"></i>20</b><span>operational patterns</span></div> |
| <div class="stat" role="listitem"><b><i class="icon" data-lucide="file-check-2" aria-hidden="true"></i>20</b><span>loop contracts</span></div> |
| <div class="stat" role="listitem"><b><i class="icon" data-lucide="play" aria-hidden="true"></i>8</b><span>runtime starters</span></div> |
| <div class="stat" role="listitem"><b><i class="icon" data-lucide="languages" aria-hidden="true"></i>8</b><span>languages</span></div> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="contract"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="file-check-2" aria-hidden="true"></i><span>01 / The loop contract</span></p> |
| <h2>Make recurring agent work reviewable before it runs.</h2> |
| </div> |
| <p class="section-intro">A <strong>Loop Contract</strong> is the operating specification for one recurring agent job. It records what authorizes a run, what the agent may change, what evidence counts, what survives, and when a human takes over.</p> |
| </div> |
| <div class="contract-need"> |
| <h3>Why it is necessary</h3> |
| <p>In a supervised session, a person supplies missing judgment as the work unfolds. Once a schedule, event, queue, or goal starts the agent, every unanswered question becomes a hidden default. The loop may select the wrong work, widen its scope, approve its own output, forget a failed attempt, or retry without a stopping rule. The contract turns those defaults into policy that builders, reviewers, security teams, and operators can inspect together.</p> |
| </div> |
| <div class="contract-layers-head"> |
| <h3>Four layers, four jobs</h3> |
| <p>The contract connects run-level ingredients to a repeatable operating model.</p> |
| </div> |
| <div class="contract-layers" aria-label="Difference between prompts, patterns, contracts, and runtimes"> |
| <div class="contract-layer"><strong>Prompt</strong><span>Instructs the model during one call or run.</span></div> |
| <div class="contract-layer"><strong>Pattern</strong><span>Describes how a class of recurring work should operate.</span></div> |
| <div class="contract-layer contract-policy"><strong>Contract</strong><span>Fixes the exact permissions, gates, memory, budget, and handoff.</span></div> |
| <div class="contract-layer"><strong>Runtime</strong><span>Executes that contract in a session, workflow, or durable worker.</span></div> |
| </div> |
| <figure class="diagram desktop-diagram"> |
| <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> |
| <figcaption class="caption">Eleven explicit decisions replace hidden defaults; next action closes the control loop.</figcaption> |
| </figure> |
| <div class="mobile-diagram mobile-contract-summary" aria-label="Loop Contract parts grouped into setup, run, and govern"> |
| <div class="mobile-contract-group"> |
| <p>01 / Set up</p> |
| <div class="mobile-contract-grid"> |
| <div class="mobile-contract-part"><span>01</span><strong>Objective</strong></div> |
| <div class="mobile-contract-part"><span>02</span><strong>Trigger</strong></div> |
| <div class="mobile-contract-part"><span>03</span><strong>Intake</strong></div> |
| <div class="mobile-contract-part"><span>04</span><strong>Workspace</strong></div> |
| </div> |
| </div> |
| <div class="mobile-contract-group"> |
| <p>02 / Run</p> |
| <div class="mobile-contract-grid"> |
| <div class="mobile-contract-part"><span>05</span><strong>Context</strong></div> |
| <div class="mobile-contract-part"><span>06</span><strong>Delegation</strong></div> |
| <div class="mobile-contract-part"><span>07</span><strong>Verification</strong></div> |
| <div class="mobile-contract-part"><span>08</span><strong>State</strong></div> |
| </div> |
| </div> |
| <div class="mobile-contract-group"> |
| <p>03 / Govern + close</p> |
| <div class="mobile-contract-grid"> |
| <div class="mobile-contract-part"><span>09</span><strong>Budget</strong></div> |
| <div class="mobile-contract-part"><span>10</span><strong>Escalation</strong></div> |
| <div class="mobile-contract-part"><span>11</span><strong>Exit</strong></div> |
| </div> |
| </div> |
| <p class="mobile-next-action"><strong>Next action</strong><span>Repeat, report, escalate, or stop.</span></p> |
| </div> |
| <div class="contract-phases" aria-label="How to read a Loop Contract"> |
| <div class="contract-phase"> |
| <span class="contract-phase-label">01 / Set up</span> |
| <h3>Authorize the right work</h3> |
| <p>Name the outcome, trigger, intake rule, and isolated workspace before any tool acts.</p> |
| <small>Objective · Trigger · Intake · Workspace</small> |
| </div> |
| <div class="contract-phase"> |
| <span class="contract-phase-label">02 / Run</span> |
| <h3>Act, prove, and remember</h3> |
| <p>Load current evidence, separate acting from checking, verify externally, and persist receipts.</p> |
| <small>Context · Delegation · Verification · State</small> |
| </div> |
| <div class="contract-phase"> |
| <span class="contract-phase-label">03 / Govern + close</span> |
| <h3>Bound autonomy</h3> |
| <p>Cap retries and spend, assign a human owner, and define success and blocked exits.</p> |
| <small>Budget · Escalation · Exit · Next action</small> |
| </div> |
| </div> |
| <div class="contract-example"> |
| <div class="contract-example-head"> |
| <h3>Worked example: PR babysitter</h3> |
| <p>“Keep this pull request moving” is only a goal. The contract below turns it into a bounded job that can run without someone polling CI and review threads all day.</p> |
| </div> |
| <div class="contract-example-row"><strong>Trigger + intake</strong><p>Run every two hours during working hours and after requested changes or failed checks. Select only explicit blockers on one pull request.</p></div> |
| <div class="contract-example-row"><strong>Permission boundary</strong><p>Use a dedicated branch or worktree. Allow narrow fixes, checks, and progress comments; prohibit force pushes, dependency upgrades, secrets, and production changes.</p></div> |
| <div class="contract-example-row"><strong>Team + context</strong><p>An explorer finds the smallest blocker, an implementer patches it, and a reviewer checks scope using the latest SHA, review threads, CI logs, and repository instructions.</p></div> |
| <div class="contract-example-row"><strong>Evidence + memory</strong><p>Required checks must pass, threads must be resolved, and the diff must stay narrow. Commands, check URLs, changed files, blockers, and the next action survive every run.</p></div> |
| <div class="contract-example-row"><strong>Budget + handoff</strong><p>Stop after three retries or 60 minutes. Escalate architecture, repeated failure, reviewer disagreement, or any force-push requirement to the human owner.</p></div> |
| <div class="contract-example-result"> |
| <p>Done means merge-ready or waiting only on human review - not “the agent says it is done.”</p> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/pr-babysitter-loop.json">Open the full JSON contract →</a> |
| </div> |
| </div> |
| <div class="principles"> |
| <div class="principle"><h3><i class="icon" data-lucide="badge-check" aria-hidden="true"></i>Verifiable by design</h3><p>Tests, typechecks, evals, traces, or reviewers decide done. The acting agent never approves itself.</p></div> |
| <div class="principle"><h3><i class="icon" data-lucide="database" aria-hidden="true"></i>State outside the model</h3><p>Progress files, issues, checkpoints, and traces survive context resets and the next run.</p></div> |
| <div class="principle"><h3><i class="icon" data-lucide="timer" aria-hidden="true"></i>Budgeted and bounded</h3><p>Retries, runtime, and concurrency are capped, with a clear path to human judgment.</p></div> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="lifecycle"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="repeat-2" aria-hidden="true"></i><span>02 / The lifecycle</span></p> |
| <h2>Evidence moves the loop forward.</h2> |
| </div> |
| <p class="section-intro">Tests, evals, traces, or reviewers gate the work. Evidence and state persist outside the model, then drive retry, escalation, or exit.</p> |
| </div> |
| <figure class="diagram desktop-diagram"> |
| <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> |
| <figcaption class="caption">One pass of a recurring, stateful, verified loop.</figcaption> |
| </figure> |
| <div class="mobile-diagram mobile-lifecycle-summary" aria-label="Six-stage Loop Engineering lifecycle"> |
| <ol class="mobile-lifecycle-list"> |
| <li><span>01</span><div><strong>Intake</strong><small>Capture bounded work.</small></div></li> |
| <li><span>02</span><div><strong>Delegate</strong><small>Route it to an agent.</small></div></li> |
| <li><span>03</span><div><strong>Act</strong><small>Work in isolation.</small></div></li> |
| <li><span>04</span><div><strong>Verify</strong><small>Gate with evidence.</small></div></li> |
| <li><span>05</span><div><strong>Persist</strong><small>Save state and receipts.</small></div></li> |
| <li><span>06</span><div><strong>Decide</strong><small>Choose the next action.</small></div></li> |
| </ol> |
| <div class="mobile-lifecycle-outcomes"> |
| <div><strong>Retry</strong><span>Feed back evidence</span></div> |
| <div><strong>Escalate</strong><span>Hand off judgment</span></div> |
| <div><strong>Exit</strong><span>Close a verified goal</span></div> |
| </div> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="choose"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="blocks" aria-hidden="true"></i><span>03 / Pattern library</span></p> |
| <h2>Choose the control policy, not the model.</h2> |
| </div> |
| <p class="section-intro">The same agent can repair CI, monitor a rollout, or test a system adversarially. The right loop defines the different trigger, permissions, proof, memory, budget, and human owner each job requires.</p> |
| </div> |
| <div class="choice-why"> |
| <h3>Why selection matters</h3> |
| <p>A generic "keep trying" loop can retry a judgment call, let the acting model approve itself, forget evidence between runs, or take write actions where observation and escalation are safer. A pattern gives a recurring job a reviewable operating policy before you adapt the exact contract.</p> |
| </div> |
| <div class="choice-fit"> |
| <div class="choice-fit-column"> |
| <h3 class="choice-fit-label"><i class="icon" data-lucide="repeat-2" aria-hidden="true"></i>Use a loop when</h3> |
| <ul> |
| <li>Work returns through a schedule, event, queue, or recurring condition.</li> |
| <li>An external check can prove progress or completion.</li> |
| <li>State, permissions, retries, cost, and human handoff can be bounded.</li> |
| </ul> |
| </div> |
| <div class="choice-fit-column"> |
| <h3 class="choice-fit-label"><i class="icon" data-lucide="timer" aria-hidden="true"></i>Use one supervised run when</h3> |
| <ul> |
| <li>The task is genuinely one-off.</li> |
| <li>Completion depends mainly on open-ended human judgment.</li> |
| <li>No safe permission boundary or useful persistent state can be defined.</li> |
| </ul> |
| </div> |
| </div> |
| <div class="choice-steps" aria-label="Four decisions for choosing an agent loop"> |
| <div class="choice-step"><span class="number">01</span><strong>Name the recurring job</strong><p>Identify the signal that returns and the outcome that should improve.</p></div> |
| <div class="choice-step"><span class="number">02</span><strong>Define proof</strong><p>Name evidence a machine or reviewer can inspect to decide pass.</p></div> |
| <div class="choice-step"><span class="number">03</span><strong>Bound action</strong><p>Set readable and writable scope, non-goals, retries, time, and cost.</p></div> |
| <div class="choice-step"><span class="number">04</span><strong>Plan the next pass</strong><p>Decide what persists, retries, escalates, or exits after each result.</p></div> |
| </div> |
| <p class="choice-sequence"><strong>Pattern → contract → runtime.</strong> Select the operating model below, adapt its schema-checked contract to your environment, then choose where it runs based on persistence, isolation, and permissions.</p> |
| <div class="filter-row"> |
| <input type="search" id="pattern-filter" class="pattern-filter" placeholder="Filter patterns by keyword..." aria-label="Filter patterns by keyword" autocomplete="off"> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/MATRIX.md">Compare every contract field →</a> |
| </div> |
| <p id="pattern-filter-empty" class="filter-empty" hidden>No pattern matches that keyword. <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/MATRIX.md">Browse the full matrix</a>.</p> |
| <div class="pattern-grid" id="pattern-grid"> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/pr-babysitter.md"><span class="category">Build & maintain</span><span class="sym">"My PR is stuck"</span><span class="name">PR babysitter</span><span class="outcome"><strong>Done when:</strong> checks pass, review threads resolve, and merge state is current.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/ci-repair-loop.md"><span class="category">Build & maintain</span><span class="sym">"CI keeps failing"</span><span class="name">CI repair loop</span><span class="outcome"><strong>Done when:</strong> the original failing command passes with a scoped patch.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/docs-drift-collector.md"><span class="category">Build & maintain</span><span class="sym">"The docs may be stale"</span><span class="name">Docs drift collector</span><span class="outcome"><strong>Done when:</strong> verified mismatches are patched and examples still run.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/dependency-triage-loop.md"><span class="category">Build & maintain</span><span class="sym">"Updates pile up"</span><span class="name">Dependency triage loop</span><span class="outcome"><strong>Done when:</strong> safe updates pass tests and risky upgrades have an owner.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/bug-hunting-loop.md"><span class="category">Build & maintain</span><span class="sym">"Bugs need systematic discovery"</span><span class="name">Bug hunting loop</span><span class="outcome"><strong>Done when:</strong> each accepted finding has a reproduction or failing test.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/release-note-loop.md"><span class="category">Build & maintain</span><span class="sym">"Release notes are a chore"</span><span class="name">Release-note loop</span><span class="outcome"><strong>Done when:</strong> every shipped change maps to a source and audience note.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/deploy-verifier.md"><span class="category">Operate & observe</span><span class="sym">"A deploy needs monitoring"</span><span class="name">Deploy verifier</span><span class="outcome"><strong>Done when:</strong> synthetic checks and rollout thresholds remain within policy.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/incident-response-loop.md"><span class="category">Operate & observe</span><span class="sym">"An incident just paged"</span><span class="name">Incident response loop</span><span class="outcome"><strong>Done when:</strong> impact, evidence, timeline, and accountable owner are recorded.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/data-quality-loop.md"><span class="category">Operate & observe</span><span class="sym">"A dataset keeps drifting"</span><span class="name">Data-quality loop</span><span class="outcome"><strong>Done when:</strong> hard quality rules pass before a version is promoted.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/cost-control-loop.md"><span class="category">Operate & observe</span><span class="sym">"Agent spend is rising"</span><span class="name">Cost-control loop</span><span class="outcome"><strong>Done when:</strong> spend falls on comparable work without quality regression.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/model-routing-loop.md"><span class="category">Operate & observe</span><span class="sym">"Model choice is ad hoc"</span><span class="name">Model-routing loop</span><span class="outcome"><strong>Done when:</strong> routing meets quality, latency, privacy, and cost tolerances.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/performance-regression-loop.md"><span class="category">Operate & observe</span><span class="sym">"Performance regressed"</span><span class="name">Performance regression loop</span><span class="outcome"><strong>Done when:</strong> a controlled benchmark confirms recovery and correctness.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/feedback-clusterer.md"><span class="category">Learn & optimize</span><span class="sym">"Feedback is noisy"</span><span class="name">Feedback clusterer</span><span class="outcome"><strong>Done when:</strong> themes cite sources and separate frequency from severity.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/evaluation-regression-loop.md"><span class="category">Learn & optimize</span><span class="sym">"Agent evals regressed"</span><span class="name">Evaluation regression loop</span><span class="outcome"><strong>Done when:</strong> targeted evals return to baseline without scorer changes.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/benchmark-optimization-loop.md"><span class="category">Learn & optimize</span><span class="sym">"A stable system should improve"</span><span class="name">Benchmark optimization loop</span><span class="outcome"><strong>Done when:</strong> repeated measurements improve with protected metrics intact.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/knowledge-freshness-loop.md"><span class="category">Learn & optimize</span><span class="sym">"The agent's knowledge is stale"</span><span class="name">Knowledge freshness loop</span><span class="outcome"><strong>Done when:</strong> the corpus passes provenance, freshness, retrieval, and leakage gates.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/security-review-loop.md"><span class="category">Govern & protect</span><span class="sym">"Sensitive changes need review"</span><span class="name">Security review loop</span><span class="outcome"><strong>Done when:</strong> findings cite evidence and approval boundaries stay intact.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/enterprise-approval-loop.md"><span class="category">Govern & protect</span><span class="sym">"A change needs sign-off"</span><span class="name">Enterprise approval loop</span><span class="outcome"><strong>Done when:</strong> every gate has a recorded human decision and audit trail.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/accessibility-regression-loop.md"><span class="category">Govern & protect</span><span class="sym">"Accessibility checks failed"</span><span class="name">Accessibility regression loop</span><span class="outcome"><strong>Done when:</strong> the exact regression is fixed and human criteria are approved.</span></a> |
| <a class="pattern" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/patterns/adversarial-red-team-loop.md"><span class="category">Govern & protect</span><span class="sym">"The agent needs adversarial testing"</span><span class="name">Adversarial red-team loop</span><span class="outcome"><strong>Done when:</strong> findings are reproduced, minimized, reported, and regression-tested.</span></a> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="runtimes"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="wrench" aria-hidden="true"></i><span>04 / Where loops run</span></p> |
| <h2>Pick the runtime deliberately.</h2> |
| </div> |
| <p class="section-intro">Five adaptable templates cover sessions, schedules, worktrees, Actions, and cron. Three executables demonstrate test repair, threshold monitoring, and idempotent queue work. 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> |
| </div> |
| <figure class="diagram supporting-visual"> |
| <div class="diagram-scroll"><img src="assets/loop-runtime-map.png" width="1666" height="944" loading="lazy" alt="Runtime map progressing from a nearby session to a local desktop schedule, isolated CI and cloud execution, and a recoverable durable worker."></div> |
| <figcaption class="caption">Keep the contract stable; change the trigger, isolation, and permission wiring.</figcaption> |
| </figure> |
| <div class="link-grid"> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/claude-loop.md"><span class="runtime-kind">Adaptable template</span><h3><i class="icon" data-lucide="keyboard" aria-hidden="true"></i>Claude Code <code>/loop</code></h3><p>Use while present in a coding session; repeat a bounded command and keep progress in a file.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/claude-desktop-scheduled-task.md"><span class="runtime-kind">Adaptable template</span><h3><i class="icon" data-lucide="clock-3" aria-hidden="true"></i>Desktop scheduled task</h3><p>Use when local files need a schedule, a last-run marker, and missed-run guardrails.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/codex-automation.md"><span class="runtime-kind">Adaptable template</span><h3><i class="icon" data-lucide="bot" aria-hidden="true"></i>Codex automation</h3><p>Use for isolated background repository work with declared checks and reviewable receipts.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/github-agentic-workflow.md"><span class="runtime-kind">Adaptable template</span><h3><i class="icon" data-lucide="badge-check" aria-hidden="true"></i>GitHub agentic workflow</h3><p>Use when GitHub events or cron should produce issues, artifacts, or pull requests.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/shell-cron-loop.md"><span class="runtime-kind">Adaptable template</span><h3><i class="icon" data-lucide="terminal" aria-hidden="true"></i>Shell / cron</h3><p>Use when an existing agent CLI only needs OS scheduling, locks, and a progress file.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/test-repair-loop.sh"><span class="runtime-kind executable">Executable</span><h3><i class="icon" data-lucide="play" aria-hidden="true"></i>Test repair</h3><p>Run a failing command, delegate its evidence, and stop only when that same external check passes.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/threshold-monitor-loop.sh"><span class="runtime-kind executable">Executable</span><h3><i class="icon" data-lucide="chart-no-axes-combined" aria-hidden="true"></i>Threshold monitor</h3><p>Poll a metric, persist samples, and escalate on a breached boundary without auto-remediation.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/examples/runnable/queue-worker-loop.py"><span class="runtime-kind executable">Executable</span><h3><i class="icon" data-lucide="file-check-2" aria-hidden="true"></i>Queue worker</h3><p>Process bounded JSONL work items with external verification and durable receipts.</p></a> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="maturity"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="chart-no-axes-combined" aria-hidden="true"></i><span>05 / Maturity model</span></p> |
| <h2>Use the smallest loop that can do the job.</h2> |
| </div> |
| <p class="section-intro">The level describes how one workflow is triggered, remembered, verified, divided, and supervised. It measures operating capability, not model intelligence or product prestige.</p> |
| </div> |
| <div class="maturity-guide"> |
| <h3>Read capability, not ambition.</h3> |
| <div> |
| <p>Start with the recurring outcome, evidence, risk, and human owner. Move up only when the current level produces a repeated failure or cannot meet an operating requirement; every added level brings more code, permissions, observability, and maintenance.</p> |
| <p><strong>Build in order:</strong> durable state before longer unattended runs, external verification before more agents, and production controls before the loop can affect users or infrastructure.</p> |
| </div> |
| </div> |
| <figure class="diagram supporting-visual"> |
| <div class="diagram-scroll"><img src="assets/loop-maturity-model.png" width="1667" height="944" loading="lazy" alt="Loop Maturity Model progressing from manual prompting through scripted retry, scheduled, stateful, self-verifying, multi-agent, and production-supervised loops."></div> |
| <figcaption class="caption">Levels are cumulative capabilities. Many useful workflows should stop at Level 2 or 3.</figcaption> |
| </figure> |
| <div class="levels" aria-label="Seven loop maturity levels"> |
| <article class="level"> |
| <span class="number">00</span> |
| <div class="level-intro"><h3>Manual prompting</h3><p>A person holds the state, supplies each next instruction, and judges the result.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Keeps one-off, ambiguous, or high-judgment work under direct supervision.</dd></div><div><dt>Example</dt><dd>A developer asks an agent to fix one failing test, reviews the diff, and decides whether to continue.</dd></div><div><dt>Progress signal</dt><dd>The same task and feedback sequence recur often enough to encode.</dd></div></dl> |
| </article> |
| <article class="level"> |
| <span class="number">01</span> |
| <div class="level-intro"><h3>Scripted retry</h3><p>A bounded wrapper reruns one agent and feeds back an external failure.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Removes repetitive reprompting while preserving one objective and one feedback signal.</dd></div><div><dt>Example</dt><dd>Run <code>pytest</code> and return its failure output for at most three repair attempts.</dd></div><div><dt>Progress signal</dt><dd>The job should start from a schedule or event without a person launching it.</dd></div></dl> |
| </article> |
| <article class="level"> |
| <span class="number">02</span> |
| <div class="level-intro"><h3>Scheduled loop</h3><p>A schedule or event triggers fresh intake, one bounded run, and a report or artifact.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Removes manual launch and makes cadence, idempotence, and no-work exits explicit.</dd></div><div><dt>Example</dt><dd>A nightly docs-drift scan reports only when code and documentation disagree.</dd></div><div><dt>Progress signal</dt><dd>Work spans runs, repeats items, or loses context between invocations.</dd></div></dl> |
| </article> |
| <article class="level"> |
| <span class="number">03</span> |
| <div class="level-intro"><h3>Stateful loop</h3><p>Durable checkpoints and receipts record completed work, blockers, evidence, and the next action.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Survives restarts, avoids duplicate work, and makes every run resumable and inspectable.</dd></div><div><dt>Example</dt><dd>A feedback clusterer stores processed IDs, prior themes, and the last successful checkpoint.</dd></div><div><dt>Progress signal</dt><dd>Stable external evidence can decide whether a transition or completion is valid.</dd></div></dl> |
| </article> |
| <article class="level"> |
| <span class="number">04</span> |
| <div class="level-intro"><h3>Self-verifying loop</h3><p>Tests, evals, policy checks, traces, or an independent evaluator gate progress and exit.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Replaces the agent's claim of success with reviewable evidence.</dd></div><div><dt>Example</dt><dd>A CI repair exits only when the original failing command passes and the diff remains in scope.</dd></div><div><dt>Progress signal</dt><dd>One role becomes a bottleneck, duties must be separated, or independent review is required.</dd></div></dl> |
| </article> |
| <article class="level"> |
| <span class="number">05</span> |
| <div class="level-intro"><h3>Multi-agent loop</h3><p>Specialists divide discovery, action, review, and judgment through explicit handoffs and shared state.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Adds separation of duties and parallel expertise without letting the acting agent approve itself.</dd></div><div><dt>Example</dt><dd>A security loop uses an explorer, a reproducer, and an independent reviewer.</dd></div><div><dt>Progress signal</dt><dd>The loop can affect production, customers, money, credentials, or other high-impact systems.</dd></div></dl> |
| </article> |
| <article class="level"> |
| <span class="number">06</span> |
| <div class="level-intro"><h3>Production-supervised loop</h3><p>Telemetry, least privilege, budgets, approvals, rollback, and human escalation govern every run.</p></div> |
| <dl class="level-facts"><div><dt>Why</dt><dd>Controls blast radius and makes production work observable, interruptible, and accountable.</dd></div><div><dt>Example</dt><dd>A deploy verifier pauses on a breached threshold and hands rollback approval to the release owner.</dd></div><div><dt>Harden next</dt><dd>Service objectives, replay, permission reviews, failure drills, and cost controls.</dd></div></dl> |
| </article> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="resources"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="library" aria-hidden="true"></i><span>06 / Resource atlas</span></p> |
| <h2>Find evidence, not just links.</h2> |
| </div> |
| <p class="section-intro">Filter 730 resources by goal, loop layer, lifecycle, artifact type, and evidence class. Open any result to see its contribution, novelty, impact, scope, publication details, and original source.</p> |
| </div> |
| <p class="audit-note"><strong>Last source check, 2026-07-21 UTC:</strong> 677 public links opened successfully, 2 required access, 49 point to files in this repository, and none were broken or unreachable. <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/data/resource_source_audit.csv">View the results</a> or <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/issues/new?template=annotation-correction.yml">report a correction</a>.</p> |
| <div class="loop-layer-map" aria-label="Where different loop concepts live"> |
| <div class="loop-layer-item"><span>Inner loop</span><strong>Model recurrence</strong><p>A learned block refines hidden or latent state inside one inference. Included as an adjacent foundation.</p></div> |
| <div class="loop-layer-item"><span>Task loop</span><strong>Agent execution</strong><p>The model reasons, calls tools, observes results, and updates working state while solving one task.</p></div> |
| <div class="loop-layer-item"><span>Outer loop</span><strong>Operational governance</strong><p>Triggers, evidence gates, durable state, budgets, handoff, and exit govern repeated work.</p></div> |
| </div> |
| <div class="resource-explorer" id="resource-explorer"> |
| <div class="resource-toolbar" role="search" aria-label="Search resources"> |
| <label> |
| <span class="sr-only">Search resources</span> |
| <input class="resource-input" id="resource-search" type="search" placeholder="Search title, author, or topic" autocomplete="off"> |
| </label> |
| <label> |
| <span class="sr-only">Resource type</span> |
| <select class="resource-select" id="resource-type"> |
| <option value="">All resource types</option> |
| <option value="Docs">Documentation</option> |
| <option value="Tool">Tools</option> |
| <option value="Paper">Papers</option> |
| <option value="Benchmark">Benchmarks</option> |
| <option value="Pattern">Patterns</option> |
| <option value="Template">Templates</option> |
| <option value="Blog">Practitioner writing</option> |
| <option value="Critique">Critiques</option> |
| <option value="List">Related lists</option> |
| </select> |
| </label> |
| <label> |
| <span class="sr-only">Lifecycle stage</span> |
| <select class="resource-select" id="resource-stage"> |
| <option value="">All lifecycle stages</option> |
| <option value="act">Model / agent action</option> |
| <option value="objective">Objective</option> |
| <option value="trigger">Trigger</option> |
| <option value="intake">Intake</option> |
| <option value="workspace">Workspace</option> |
| <option value="context">Context</option> |
| <option value="delegation">Delegation</option> |
| <option value="verification">Verification</option> |
| <option value="state">State</option> |
| <option value="budget">Budget</option> |
| <option value="escalation">Escalation</option> |
| <option value="exit">Exit</option> |
| <option value="whole-loop">Whole loop</option> |
| </select> |
| </label> |
| <label> |
| <span class="sr-only">Loop layer</span> |
| <select class="resource-select" id="resource-layer"> |
| <option value="">All loop layers</option> |
| <option value="model">Model</option> |
| <option value="agent">Agent</option> |
| <option value="harness">Harness</option> |
| <option value="workflow">Workflow</option> |
| <option value="operations">Operations</option> |
| <option value="evaluation">Evaluation</option> |
| <option value="cross-layer">Cross-layer</option> |
| </select> |
| </label> |
| <label> |
| <span class="sr-only">Evidence class</span> |
| <select class="resource-select" id="resource-evidence"> |
| <option value="">All evidence classes</option> |
| <option value="official">Official documentation</option> |
| <option value="research">Research</option> |
| <option value="implementation">Implementations</option> |
| <option value="benchmark">Benchmarks</option> |
| <option value="practice">Practice and patterns</option> |
| <option value="risk">Risk and ecosystem maps</option> |
| </select> |
| </label> |
| <button class="resource-reset" id="resource-reset" type="button"><i class="icon" data-lucide="rotate-ccw" aria-hidden="true"></i>Reset</button> |
| </div> |
| <div class="resource-collections" role="group" aria-label="Filter by user goal"> |
| <button class="resource-collection" type="button" data-collection="" aria-pressed="true"><i class="icon" data-lucide="layout-grid" aria-hidden="true"></i>All</button> |
| <button class="resource-collection" type="button" data-collection="Learn" aria-pressed="false"><i class="icon" data-lucide="compass" aria-hidden="true"></i>Learn</button> |
| <button class="resource-collection" type="button" data-collection="Design" aria-pressed="false"><i class="icon" data-lucide="pencil-ruler" aria-hidden="true"></i>Design</button> |
| <button class="resource-collection" type="button" data-collection="Build" aria-pressed="false"><i class="icon" data-lucide="hammer" aria-hidden="true"></i>Build</button> |
| <button class="resource-collection" type="button" data-collection="Persist" aria-pressed="false"><i class="icon" data-lucide="database" aria-hidden="true"></i>Persist</button> |
| <button class="resource-collection" type="button" data-collection="Verify" aria-pressed="false"><i class="icon" data-lucide="badge-check" aria-hidden="true"></i>Verify</button> |
| <button class="resource-collection" type="button" data-collection="Govern" aria-pressed="false"><i class="icon" data-lucide="shield-check" aria-hidden="true"></i>Govern</button> |
| <button class="resource-collection" type="button" data-collection="Apply" aria-pressed="false"><i class="icon" data-lucide="package-open" aria-hidden="true"></i>Apply</button> |
| </div> |
| <div class="resource-summary"> |
| <p class="resource-count" id="resource-count" aria-live="polite">Preparing 730 resources...</p> |
| <label> |
| <span class="sr-only">Sort resources</span> |
| <select class="resource-select resource-sort" id="resource-sort"> |
| <option value="curated">Guide order</option> |
| <option value="publication">Publication year</option> |
| <option value="stars">GitHub stars</option> |
| <option value="recent">Recently added</option> |
| </select> |
| </label> |
| </div> |
| <div class="resource-row-head" aria-hidden="true"> |
| <span>Work and key contribution</span> |
| <span>Year</span> |
| <span>Published at</span> |
| <span>Evidence</span> |
| </div> |
| <div class="resource-list" id="resource-list" aria-busy="false"> |
| <p class="resource-loading">Preparing the resource index...</p> |
| </div> |
| <p class="resource-empty" id="resource-empty" hidden>No resources match the current filters.</p> |
| <div class="resource-actions"> |
| <button class="resource-more" id="resource-more" type="button" hidden>Show more</button> |
| </div> |
| <noscript> |
| <p class="resource-loading"><a href="https://github.com/ChaoYue0307/awesome-loop-engineering#start-here">Browse the full resource library on GitHub</a> or <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">filter the dataset on Hugging Face</a>.</p> |
| </noscript> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="future"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="compass" aria-hidden="true"></i><span>07 / Future directions</span></p> |
| <h2>Turn open problems into evidence.</h2> |
| </div> |
| <p class="section-intro">Fifteen workstreams define a decision, minimum artifact, metrics, starter slice, and completion gate. Build the foundations first, then prove scale and adoption.</p> |
| </div> |
| <div class="future-grid"> |
| <article class="future-track"> |
| <h3><i class="icon" data-lucide="shield-check" aria-hidden="true"></i>Foundation</h3> |
| <ul> |
| <li>Challenge verifiers with hard negatives and tampering.</li> |
| <li>Recover state and side effects after injected crashes.</li> |
| <li>Reconstruct every decision from receipts under least privilege.</li> |
| </ul> |
| <p class="future-output"><strong>Completion signal</strong>The loop can be interrupted, audited, attacked, recovered, and stopped without losing control of evidence or effects.</p> |
| </article> |
| <article class="future-track"> |
| <h3><i class="icon" data-lucide="chart-no-axes-combined" aria-hidden="true"></i>Scale</h3> |
| <ul> |
| <li>Separate model, harness, verifier, and loop effects.</li> |
| <li>Test long horizons, stop rules, and runtime portability.</li> |
| <li>Compare quality, recovery, latency, cost, and human effort.</li> |
| </ul> |
| <p class="future-output"><strong>Completion signal</strong>Gains survive matched budgets, adverse conditions, multiple runtimes, and full cost accounting.</p> |
| </article> |
| <article class="future-track"> |
| <h3><i class="icon" data-lucide="badge-check" aria-hidden="true"></i>Adoption</h3> |
| <ul> |
| <li>Baseline one frequent, verifiable, reversible domain job.</li> |
| <li>Shadow first, then promote through measured approval gates.</li> |
| <li>Rehearse handoff, rollback, incident response, and retirement.</li> |
| </ul> |
| <p class="future-output"><strong>Completion signal</strong>A named operator can understand, interrupt, update, and retire a useful loop from external evidence.</p> |
| </article> |
| </div> |
| <div class="future-steps" aria-label="Four steps from question to evidence"> |
| <div class="future-step"><span>01 / Scope</span><strong>Choose one recurring task</strong><p>Name the operator, trigger, evidence gate, and consequence of error.</p></div> |
| <div class="future-step"><span>02 / Compare</span><strong>Freeze fair baselines</strong><p>Test current operation, single pass, fixed retry, and a cost-matched candidate.</p></div> |
| <div class="future-step"><span>03 / Stress</span><strong>Exercise failure paths</strong><p>Inject interruption, stale state, verifier conflict, attack, and budget exhaustion.</p></div> |
| <div class="future-step"><span>04 / Publish</span><strong>Release the whole result</strong><p>Share contracts, receipts, costs, unsuccessful runs, and rejection criteria.</p></div> |
| </div> |
| <div class="future-shared"> |
| <strong>Start a 90-day project</strong> |
| <p>Choose the researcher, runtime, application, or security plan, then use the shared protocol and proposal template to make the result comparable.</p> |
| <a class="button" href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/FUTURE-DIRECTIONS.md"><i class="icon" data-lucide="compass" aria-hidden="true"></i>Open 15 workstreams</a> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="contribute"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="handshake" aria-hidden="true"></i><span>08 / Contribute</span></p> |
| <h2>Improve the evidence or share a loop.</h2> |
| </div> |
| <p class="section-intro">Share an original or official source, correct an entry with primary evidence, or document a loop you have run.</p> |
| </div> |
| <div class="link-grid contribute-grid"> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/issues/new?template=resource-suggestion.yml"><h3><i class="icon" data-lucide="plus" aria-hidden="true"></i>Suggest a resource</h3><p>Share one original or official source and a precise summary in under five minutes.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/issues/new?template=annotation-correction.yml"><h3><i class="icon" data-lucide="badge-check" aria-hidden="true"></i>Correct an entry</h3><p>Fix a summary, contribution, date, venue, identifier, or source link with primary evidence.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/issues/new?template=gallery-case-study.yml"><h3><i class="icon" data-lucide="repeat-2" aria-hidden="true"></i>Share a loop</h3><p>Submit a real or anonymized operating example with no pull request required.</p></a> |
| <a class="card" href="https://github.com/ChaoYue0307/awesome-loop-engineering/discussions/2"><h3><i class="icon" data-lucide="messages-square" aria-hidden="true"></i>Join the discussion</h3><p>Compare operating patterns with other loop builders.</p></a> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="faq"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="message-circle-question-mark" aria-hidden="true"></i><span>09 / FAQ</span></p> |
| <h2>Questions that define the boundary.</h2> |
| </div> |
| <p class="section-intro">Use these tests to decide whether a recurring agent system needs a loop.</p> |
| </div> |
| <details open> |
| <summary>What is loop engineering?</summary> |
| <p>Loop Engineering is the practice of designing recurring AI-agent and coding-agent systems that discover work, delegate it, verify results, persist state outside the model, decide what happens next, and run again.</p> |
| </details> |
| <details> |
| <summary>How is it different from prompt, context, and harness engineering?</summary> |
| <p>Prompt, context, and harness engineering improve one agent run. Loop Engineering governs how agent work repeats, verifies, persists state, and escalates over time.</p> |
| </details> |
| <details> |
| <summary>When should you use an agent loop?</summary> |
| <p>Use a loop when work recurs, external evidence can verify progress, useful state should persist, actions and budgets can be bounded, and a human owner can handle exceptions. Prefer one supervised run when the task is one-off, completion is mainly subjective, or no safe permission boundary can be stated.</p> |
| </details> |
| <details> |
| <summary>What belongs in a loop contract?</summary> |
| <p>A Loop Contract is a reviewable operating specification for one recurring agent job. It fixes the objective, trigger, intake, workspace and permissions, context, roles, external verification, durable state, budget, escalation path, and success or blocked exit so repeated runs do not depend on hidden defaults.</p> |
| </details> |
| <details> |
| <summary>Does every loop need to reach the highest maturity level?</summary> |
| <p>No. Choose the lowest level that meets the job's continuity, evidence, and blast-radius requirements. Many useful workflows should stop at Level 2 or 3. Persist state before increasing autonomy, add external verification before more agents, and reserve production supervision for workflows with production impact.</p> |
| </details> |
| <details> |
| <summary>Which runtimes can run agent loops?</summary> |
| <p>The same loop can run as a Claude Code loop or scheduled task, a Codex automation, a GitHub agentic workflow, a shell or cron wrapper, or a durable-execution runtime.</p> |
| </details> |
| </div> |
| </section> |
|
|
| <section id="growth"> |
| <div class="wrap"> |
| <div class="section-head"> |
| <div> |
| <p class="section-label"><i class="icon" data-lucide="chart-no-axes-combined" aria-hidden="true"></i><span>10 / Community momentum</span></p> |
| <h2>Follow the star trail.</h2> |
| </div> |
| <p class="section-intro">Each milestone marks more researchers and builders discovering the field guide, from the first save to the latest GitHub count.</p> |
| </div> |
| <a class="star-history-chart" href="https://github.com/ChaoYue0307/awesome-loop-engineering" aria-label="Open Awesome Loop Engineering on GitHub"> |
| <picture> |
| <source media="(max-width: 768px)" srcset="assets/star-history-mobile.svg" width="640" height="640"> |
| <img src="assets/star-history.svg" alt="GitHub star growth for Awesome Loop Engineering" width="1200" height="560" loading="lazy"> |
| </picture> |
| </a> |
| <div class="growth-note"> |
| <p>Star the repository to keep the field guide nearby and help more researchers, engineers, and developers find its resources and implementation kit.</p> |
| <a class="button primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering"><i class="icon" data-lucide="sparkles" aria-hidden="true"></i>Star on GitHub</a> |
| </div> |
| </div> |
| </section> |
| </main> |
|
|
| <footer> |
| <div class="wrap"> |
| <div class="footer-grid"> |
| <div> |
| <h4><i class="icon" data-lucide="quote" aria-hidden="true"></i>Cite the field guide</h4> |
| <div class="cite"> |
| <button class="copy" type="button" data-copy="cite-bib" aria-label="Copy BibTeX citation"><span aria-live="polite">Copy</span></button> |
| <pre id="cite-bib">@misc{chaoyue2026awesome_loop_engineering, |
| author = {He, Chaoyue}, |
| title = {Awesome Loop Engineering}, |
| year = {2026}, |
| howpublished = {\url{https://github.com/ChaoYue0307/awesome-loop-engineering}}, |
| note = {Version 0.9.0} |
| }</pre> |
| </div> |
| </div> |
| <div> |
| <h4><i class="icon" data-lucide="compass" aria-hidden="true"></i>Explore</h4> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/DEFINITION.md">Working definition</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/MANIFESTO.md">Manifesto</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/TAXONOMY.md">Taxonomy</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/ANTI-PATTERNS.md">Anti-patterns</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/FUTURE-DIRECTIONS.md">Future directions</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/meta/CURATION.md">How resources are chosen</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/data/resource_source_audit.csv">Source check</a> |
| </div> |
| <div> |
| <h4><i class="icon" data-lucide="wrench" aria-hidden="true"></i>Project</h4> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering">GitHub repository</a> |
| <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Hugging Face dataset</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/CONTRIBUTING.md">Contributing</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/fork">Fork and adapt</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/releases">Release notes</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/subscription">Watch releases + discussions</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/ROADMAP.md">Roadmap</a> |
| </div> |
| <div> |
| <h4><i class="icon" data-lucide="globe" aria-hidden="true"></i>Languages</h4> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.zh-CN.md" lang="zh">中文</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.es.md" lang="es">Español</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.fr.md" lang="fr">Français</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.de.md" lang="de">Deutsch</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.ja.md" lang="ja">日本語</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.ko.md" lang="ko">한국어</a> |
| <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.pt-BR.md" lang="pt-BR">Português</a> |
| </div> |
| </div> |
| <p class="legal">Treat each annotation as a map to primary evidence, not as a final standard or endorsement. Original field-guide materials use <a href="https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/LICENSE">CC0-1.0</a>; linked resources retain their own licenses.</p> |
| </div> |
| </footer> |
|
|
| <script src="assets/vendor/lucide/loop-icons.min.js?v=1"></script> |
| <script> |
| (function () { |
| var button = document.querySelector('.menu-btn'); |
| var links = document.getElementById('primary-nav'); |
| var label = button && button.querySelector('.menu-label'); |
| if (!button || !links) return; |
| function setMenuState(open) { |
| links.classList.toggle('open', open); |
| button.setAttribute('aria-expanded', open ? 'true' : 'false'); |
| button.setAttribute('aria-label', open ? 'Close navigation' : 'Open navigation'); |
| if (label) label.textContent = open ? 'Close' : 'Menu'; |
| } |
| button.addEventListener('click', function () { |
| setMenuState(!links.classList.contains('open')); |
| }); |
| Array.prototype.forEach.call(links.querySelectorAll('a'), function (link) { |
| link.addEventListener('click', function () { |
| setMenuState(false); |
| }); |
| }); |
| document.addEventListener('keydown', function (event) { |
| if (event.key === 'Escape' && links.classList.contains('open')) { |
| setMenuState(false); |
| button.focus(); |
| } |
| }); |
| })(); |
| (function () { |
| if (!('IntersectionObserver' in window)) return; |
| var navLinks = Array.prototype.slice.call(document.querySelectorAll('#primary-nav a[href^="#"]')); |
| var linkById = {}; |
| navLinks.forEach(function (link) { |
| linkById[link.getAttribute('href').slice(1)] = link; |
| }); |
| var sections = Object.keys(linkById).map(function (id) { return document.getElementById(id); }).filter(Boolean); |
| var activeId = ''; |
| var observer = new IntersectionObserver(function (entries) { |
| entries.forEach(function (entry) { |
| if (!entry.isIntersecting) return; |
| activeId = entry.target.id; |
| }); |
| navLinks.forEach(function (link) { |
| if (link.getAttribute('href') === '#' + activeId) link.setAttribute('aria-current', 'location'); |
| else link.removeAttribute('aria-current'); |
| }); |
| }, { rootMargin: '-24% 0px -66% 0px', threshold: 0 }); |
| sections.forEach(function (section) { observer.observe(section); }); |
| })(); |
| (function () { |
| var input = document.getElementById('pattern-filter'); |
| var grid = document.getElementById('pattern-grid'); |
| var empty = document.getElementById('pattern-filter-empty'); |
| if (!input || !grid) return; |
| var patterns = Array.prototype.slice.call(grid.querySelectorAll('.pattern')); |
| input.addEventListener('input', function () { |
| var query = input.value.trim().toLowerCase(); |
| var shown = 0; |
| patterns.forEach(function (pattern) { |
| var text = pattern.textContent.toLowerCase(); |
| var words = text.split(/[^a-z0-9]+/).filter(Boolean); |
| var match = query === '' || (query.length <= 2 ? words.indexOf(query) !== -1 : text.indexOf(query) !== -1); |
| pattern.style.display = match ? '' : 'none'; |
| if (match) shown += 1; |
| }); |
| if (empty) empty.hidden = shown !== 0; |
| }); |
| })(); |
| (function () { |
| var explorer = document.getElementById('resource-explorer'); |
| if (!explorer || !window.fetch) return; |
| |
| var search = document.getElementById('resource-search'); |
| var type = document.getElementById('resource-type'); |
| var stage = document.getElementById('resource-stage'); |
| var layer = document.getElementById('resource-layer'); |
| var evidence = document.getElementById('resource-evidence'); |
| var sort = document.getElementById('resource-sort'); |
| var reset = document.getElementById('resource-reset'); |
| var more = document.getElementById('resource-more'); |
| var list = document.getElementById('resource-list'); |
| var count = document.getElementById('resource-count'); |
| var empty = document.getElementById('resource-empty'); |
| var collectionButtons = Array.prototype.slice.call(explorer.querySelectorAll('.resource-collection')); |
| var evidenceGroups = { |
| official: ['official-documentation'], |
| research: ['research-preprint', 'research-paper'], |
| implementation: ['source-implementation', 'implementation'], |
| benchmark: ['benchmark'], |
| practice: ['operational-pattern', 'practitioner-analysis', 'reusable-artifact', 'repository-native', 'technical-documentation'], |
| risk: ['risk-analysis', 'curated-index'] |
| }; |
| var compactResources = window.matchMedia('(max-width: 560px)'); |
| var pageSize = compactResources.matches ? 8 : 24; |
| var state = { collection: '', limit: pageSize }; |
| var resources = []; |
| var loading = false; |
| |
| function words(value) { |
| return String(value || '').replace(/-/g, ' '); |
| } |
| |
| function loopLayerLabel(value) { |
| if (!value) return ''; |
| return value === 'cross-layer' ? 'cross-layer' : words(value) + ' layer'; |
| } |
| |
| function evidenceLabel(value) { |
| var labels = { |
| 'research-paper': 'Research paper', |
| 'research-preprint': 'Research preprint', |
| 'official-documentation': 'Official documentation', |
| 'technical-documentation': 'Technical documentation', |
| 'source-implementation': 'Source implementation', |
| 'implementation': 'Implementation', |
| 'benchmark': 'Benchmark or evaluation', |
| 'repository-native': 'Project artifact', |
| 'reusable-artifact': 'Reusable artifact', |
| 'operational-pattern': 'Operational pattern', |
| 'practitioner-analysis': 'Practitioner analysis', |
| 'risk-analysis': 'Risk analysis', |
| 'curated-index': 'Discovery index' |
| }; |
| return labels[value] || words(value); |
| } |
| |
| function stages(value) { |
| return String(value || '').split(';').filter(Boolean); |
| } |
| |
| function formatNumber(value) { |
| var number = Number(value || 0); |
| if (!number) return ''; |
| return number.toLocaleString ? number.toLocaleString() : String(number); |
| } |
| |
| function createText(tag, className, value) { |
| var element = document.createElement(tag); |
| if (className) element.className = className; |
| element.textContent = value; |
| return element; |
| } |
| |
| function appendCellLabel(element, value) { |
| element.appendChild(createText('span', 'resource-cell-label', value)); |
| } |
| |
| function authorNames(value) { |
| return String(value || '').split(';').map(function (name) { return name.trim(); }).filter(Boolean); |
| } |
| |
| function formattedAuthors(value) { |
| var names = authorNames(value); |
| if (names.length <= 4) return names.join(', '); |
| return names.slice(0, 4).join(', ') + ' +' + (names.length - 4) + ' more'; |
| } |
| |
| function identifier(resource) { |
| if (resource.doi) return 'DOI ' + resource.doi; |
| if (resource.arxiv_id) return 'arXiv ' + resource.arxiv_id; |
| if (String(resource.github_repo || '').toLowerCase() === 'chaoyue0307/awesome-loop-engineering') return ''; |
| if (resource.github_repo) return resource.github_repo; |
| return ''; |
| } |
| |
| function sourceStatus(resource) { |
| if (resource.source_status === 'restricted') return 'Access restricted'; |
| if (['broken', 'unreachable', 'local_missing'].indexOf(resource.source_status) !== -1) return 'Source unavailable'; |
| if (String(resource.source_status || '').indexOf('local') === 0) return 'Repository file'; |
| return 'Link checked'; |
| } |
| |
| function detailSection(title, values) { |
| var section = document.createElement('div'); |
| section.className = 'resource-detail'; |
| section.appendChild(createText('h4', '', title)); |
| values.filter(Boolean).forEach(function (value) { |
| section.appendChild(createText('p', 'resource-bibliography', value)); |
| }); |
| return section; |
| } |
| |
| function resourceMatches(resource) { |
| var query = search.value.trim().toLowerCase(); |
| var haystack = [ |
| resource.title, |
| resource.annotation, |
| resource.section, |
| resource.collection, |
| resource.user_goal, |
| resource.lifecycle_stages, |
| resource.audience, |
| resource.loop_layer, |
| resource.scope_fit, |
| resource.evidence_class, |
| resource.evidence_tier, |
| resource.authors, |
| resource.publication_year, |
| resource.publication_venue, |
| resource.publisher, |
| resource.doi, |
| resource.arxiv_id, |
| resource.key_contribution, |
| resource.novelty, |
| resource.impact |
| ].join(' ').toLowerCase(); |
| var evidenceSet = evidenceGroups[evidence.value] || []; |
| |
| return (!query || haystack.indexOf(query) !== -1) && |
| (!type.value || resource.resource_type === type.value) && |
| (!stage.value || stages(resource.lifecycle_stages).indexOf(stage.value) !== -1) && |
| (!layer.value || resource.loop_layer === layer.value) && |
| (!evidence.value || evidenceSet.indexOf(resource.evidence_class) !== -1) && |
| (!state.collection || resource.collection === state.collection); |
| } |
| |
| function sortedResources(filtered) { |
| return filtered.slice().sort(function (a, b) { |
| if (sort.value === 'publication') { |
| return Number(b.publication_year || 0) - Number(a.publication_year || 0) || |
| (Date.parse(b.publication_date || '') || 0) - (Date.parse(a.publication_date || '') || 0) || |
| a._index - b._index; |
| } |
| if (sort.value === 'stars') { |
| return Number(b.github_stars || 0) - Number(a.github_stars || 0) || a._index - b._index; |
| } |
| if (sort.value === 'recent') { |
| return (Date.parse(b.date_added || '') || 0) - (Date.parse(a.date_added || '') || 0) || a._index - b._index; |
| } |
| return a._index - b._index; |
| }); |
| } |
| |
| function renderItem(resource) { |
| var item = document.createElement('article'); |
| var work = document.createElement('div'); |
| var year = document.createElement('div'); |
| var publication = document.createElement('div'); |
| var evidenceCell = document.createElement('div'); |
| var details = document.createElement('details'); |
| var detailGrid = document.createElement('div'); |
| var link = createText('a', 'resource-title', resource.title); |
| var authors = formattedAuthors(resource.authors); |
| var fullAuthors = authorNames(resource.authors).join(', '); |
| var meta = [ |
| resource.resource_type, |
| resource.collection, |
| resource.section, |
| loopLayerLabel(resource.loop_layer), |
| resource.scope_fit ? words(resource.scope_fit) + ' scope' : '', |
| stages(resource.lifecycle_stages).map(words).join(' / ') |
| ].filter(Boolean).join(' | '); |
| var signalClass = 'resource-signal ' + String(resource.signal_strength || 'unverified').toLowerCase(); |
| var signal = createText('span', signalClass, words(resource.signal_strength || 'unverified') + ' signal'); |
| var starCount = formatNumber(resource.github_stars); |
| var venue = resource.publication_venue || resource.publisher || 'Source not stated'; |
| var secondaryPublisher = resource.publisher && resource.publisher !== venue && |
| venue.toLowerCase().indexOf(resource.publisher.toLowerCase() + ' ') !== 0 ? resource.publisher : ''; |
| var publicationId = identifier(resource); |
| var sourceRecord = [ |
| fullAuthors ? 'Authors: ' + fullAuthors : '', |
| resource.publication_date ? 'Published: ' + resource.publication_date : '', |
| 'Source: ' + venue + (secondaryPublisher ? ' | ' + secondaryPublisher : ''), |
| publicationId ? 'Identifier: ' + publicationId : '', |
| resource.primary_category ? 'Primary category: ' + resource.primary_category : '', |
| resource.publication_note ? 'Source note: ' + resource.publication_note : '', |
| resource.metadata_source ? 'Metadata provenance: ' + words(resource.metadata_source) : '' |
| ]; |
| |
| item.className = 'resource-item'; |
| link.href = resource.canonical_url || resource.url; |
| work.className = 'resource-work'; |
| work.appendChild(link); |
| work.appendChild(createText('p', 'resource-contribution', resource.key_contribution || resource.annotation)); |
| if (authors) { |
| var authorLine = createText('p', 'resource-authors', authors); |
| authorLine.title = fullAuthors; |
| work.appendChild(authorLine); |
| } |
| work.appendChild(createText('div', 'resource-meta', meta)); |
| |
| year.className = 'resource-year' + (resource.publication_year ? '' : ' is-empty'); |
| if (resource.publication_year) { |
| appendCellLabel(year, 'Year'); |
| year.appendChild(createText('span', 'resource-year-value', resource.publication_year)); |
| } |
| |
| publication.className = 'resource-publication'; |
| appendCellLabel(publication, 'Published at'); |
| publication.appendChild(createText('span', 'resource-venue', venue)); |
| if (secondaryPublisher) publication.appendChild(createText('span', 'resource-publisher', secondaryPublisher)); |
| if (resource.publication_date && resource.publication_date !== resource.publication_year) publication.appendChild(createText('span', 'resource-date', resource.publication_date)); |
| if (publicationId) publication.appendChild(createText('span', 'resource-identifier', publicationId)); |
| |
| evidenceCell.className = 'resource-evidence'; |
| appendCellLabel(evidenceCell, 'Evidence'); |
| evidenceCell.appendChild(createText('span', 'resource-type-label', 'Tier ' + (resource.evidence_tier || 'C') + ' · ' + evidenceLabel(resource.evidence_class))); |
| evidenceCell.appendChild(signal); |
| if (starCount) evidenceCell.appendChild(createText('span', 'resource-source-status', starCount + ' GitHub stars')); |
| evidenceCell.appendChild(createText('span', 'resource-source-status', sourceStatus(resource))); |
| |
| details.className = 'resource-details'; |
| details.appendChild(createText('summary', '', 'Why it matters, where it fits, and source record')); |
| detailGrid.className = 'resource-detail-grid'; |
| detailGrid.appendChild(detailSection('Contribution', [resource.key_contribution || resource.annotation])); |
| detailGrid.appendChild(detailSection('Novelty', [resource.novelty])); |
| detailGrid.appendChild(detailSection('Impact', [resource.impact])); |
| detailGrid.appendChild(detailSection('Use it for', [ |
| resource.user_goal ? 'Goal: ' + resource.user_goal : '', |
| resource.loop_layer ? 'Loop layer: ' + words(resource.loop_layer) : '', |
| resource.scope_fit ? 'Scope fit: ' + words(resource.scope_fit) : '', |
| resource.lifecycle_stages ? 'Loop stages: ' + stages(resource.lifecycle_stages).map(words).join(', ') : '', |
| resource.audience ? 'Audience: ' + String(resource.audience).split(';').map(words).join(', ') : '' |
| ])); |
| detailGrid.appendChild(detailSection('Source record', sourceRecord.concat(resource.signal ? ['Evidence: ' + resource.signal] : []))); |
| details.appendChild(detailGrid); |
| |
| item.appendChild(work); |
| item.appendChild(year); |
| item.appendChild(publication); |
| item.appendChild(evidenceCell); |
| item.appendChild(details); |
| return item; |
| } |
| |
| function render() { |
| var filtered = sortedResources(resources.filter(resourceMatches)); |
| var visible = filtered.slice(0, state.limit); |
| var fragment = document.createDocumentFragment(); |
| |
| visible.forEach(function (resource) { fragment.appendChild(renderItem(resource)); }); |
| list.replaceChildren(fragment); |
| list.setAttribute('aria-busy', 'false'); |
| count.textContent = filtered.length + ' of ' + resources.length + ' resources' + (visible.length < filtered.length ? ' | showing ' + visible.length : ''); |
| empty.hidden = filtered.length !== 0; |
| more.hidden = visible.length >= filtered.length; |
| if (!more.hidden) more.textContent = 'Show ' + Math.min(pageSize, filtered.length - visible.length) + ' more'; |
| } |
| |
| function resetLimitAndRender() { |
| state.limit = pageSize; |
| if (!resources.length) { |
| loadResources(); |
| return; |
| } |
| render(); |
| } |
| |
| function updatePageSize() { |
| pageSize = compactResources.matches ? 8 : 24; |
| if (resources.length) resetLimitAndRender(); |
| } |
| |
| if (compactResources.addEventListener) compactResources.addEventListener('change', updatePageSize); |
| else compactResources.addListener(updatePageSize); |
| |
| search.addEventListener('input', resetLimitAndRender); |
| [type, stage, layer, evidence, sort].forEach(function (control) { |
| control.addEventListener('change', resetLimitAndRender); |
| }); |
| collectionButtons.forEach(function (button) { |
| button.addEventListener('click', function () { |
| state.collection = button.getAttribute('data-collection') || ''; |
| collectionButtons.forEach(function (candidate) { |
| candidate.setAttribute('aria-pressed', candidate === button ? 'true' : 'false'); |
| }); |
| resetLimitAndRender(); |
| }); |
| }); |
| more.addEventListener('click', function () { |
| state.limit += pageSize; |
| render(); |
| }); |
| reset.addEventListener('click', function () { |
| search.value = ''; |
| type.value = ''; |
| stage.value = ''; |
| layer.value = ''; |
| evidence.value = ''; |
| sort.value = 'curated'; |
| state.collection = ''; |
| collectionButtons.forEach(function (button) { |
| button.setAttribute('aria-pressed', button.getAttribute('data-collection') === '' ? 'true' : 'false'); |
| }); |
| resetLimitAndRender(); |
| search.focus(); |
| }); |
| |
| function loadResources() { |
| if (loading || resources.length) return; |
| loading = true; |
| explorer.dataset.indexState = 'loading'; |
| list.setAttribute('aria-busy', 'true'); |
| count.textContent = 'Loading 730 resources...'; |
| list.replaceChildren(createText('p', 'resource-loading', 'Loading resources...')); |
| |
| fetch('assets/resources.json') |
| .then(function (response) { |
| if (!response.ok) throw new Error('Resource index request failed'); |
| return response.json(); |
| }) |
| .then(function (payload) { |
| resources = (payload.resources || []).map(function (resource, index) { |
| resource._index = index; |
| return resource; |
| }); |
| explorer.dataset.indexState = 'ready'; |
| render(); |
| restorePostResourceHash(); |
| }) |
| .catch(function () { |
| loading = false; |
| explorer.dataset.indexState = 'error'; |
| list.replaceChildren(createText('p', 'resource-loading', 'The resource index could not be loaded. Browse the complete library on GitHub or Hugging Face.')); |
| list.setAttribute('aria-busy', 'false'); |
| count.textContent = 'Resource index unavailable'; |
| }); |
| } |
| |
| function restorePostResourceHash() { |
| var targetId = window.location.hash.slice(1); |
| if (!targetId || targetId === 'resources') return; |
| var target = document.getElementById(targetId); |
| if (!target || !resourceSection) return; |
| if (!(resourceSection.compareDocumentPosition(target) & Node.DOCUMENT_POSITION_FOLLOWING)) return; |
| requestAnimationFrame(function () { |
| target.scrollIntoView({ behavior: 'instant', block: 'start' }); |
| }); |
| } |
| |
| var resourceSection = document.getElementById('resources'); |
| if (window.location.hash === '#resources') { |
| loadResources(); |
| } else if ('IntersectionObserver' in window && resourceSection) { |
| var resourceObserver = new IntersectionObserver(function (entries) { |
| if (!entries.some(function (entry) { return entry.isIntersecting; })) return; |
| resourceObserver.disconnect(); |
| loadResources(); |
| }, { rootMargin: '700px 0px', threshold: 0 }); |
| resourceObserver.observe(resourceSection); |
| } else { |
| loadResources(); |
| } |
| |
| explorer.addEventListener('focusin', loadResources, { once: true }); |
| window.addEventListener('hashchange', function () { |
| if (window.location.hash === '#resources') loadResources(); |
| }); |
| })(); |
| Array.prototype.forEach.call(document.querySelectorAll('.copy'), function (button) { |
| var label = button.querySelector('span') || button; |
| button.addEventListener('click', function () { |
| var element = document.getElementById(button.getAttribute('data-copy')); |
| if (!element) return; |
| if (!navigator.clipboard || !navigator.clipboard.writeText) { |
| label.textContent = 'Select and copy'; |
| var selection = window.getSelection(); |
| var range = document.createRange(); |
| range.selectNodeContents(element); |
| selection.removeAllRanges(); |
| selection.addRange(range); |
| setTimeout(function () { label.textContent = 'Copy'; }, 2500); |
| return; |
| } |
| navigator.clipboard.writeText(element.innerText).then(function () { |
| label.textContent = 'Copied'; |
| setTimeout(function () { label.textContent = 'Copy'; }, 1400); |
| }).catch(function () { |
| label.textContent = 'Select and copy'; |
| }); |
| }); |
| }); |
| </script> |
| <script type="module" src="assets/loop-hero-scene.js?v=26"></script> |
| </body> |
| </html> |
|
|