Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build-loop-pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ ${structuredData(loop)}

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
15 changes: 6 additions & 9 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ assert.equal(
assert.equal(agentLoopTerm.name, "AI agent loop");
assert.equal(
agentLoopTerm.url,
`${siteMeta.baseUrl}#what-is-an-ai-agent-loop`,
`${siteMeta.baseUrl}learn/`,
);
assert.deepEqual(agentLoopTerm.sameAs, [
"https://code.claude.com/docs/en/agent-sdk/agent-loop",
Expand Down Expand Up @@ -388,7 +388,7 @@ for (const [index, loop] of loops.entries()) {
assert(!page.includes("<h2>Topics</h2>"));
assert(page.includes("Related loops"));
assert(!page.includes("<dt>Type</dt>"));
assert(page.includes('href="../../#what-is-an-ai-agent-loop">What is a loop?</a>'));
assert(page.includes('href="../../learn/">What is a loop?</a>'));
assert(!page.includes('href="../../#tips"'));
assert(page.includes('data-copy-root'));
assert.equal((page.match(/data-here-now-credit/g) || []).length, 2);
Expand Down Expand Up @@ -521,12 +521,9 @@ assert(html.includes('aria-label="Loop pages"'));
assert(html.includes('id="pagination-previous"'));
assert(html.includes('id="pagination-status"'));
assert(html.includes('id="pagination-next"'));
assert(html.includes('id="what-is-an-ai-agent-loop"'));
assert(html.includes("What is an AI agent loop?"));
assert(html.includes("An AI agent loop is a repeatable workflow"));
assert(html.includes("explicit success or stop condition"));
assert(html.includes("Claude Agent SDK loop documentation"));
assert(html.includes("the ReAct paper"));
assert(!html.includes('class="answer-capsule"'));
assert(!html.includes("Plain-language definition"));
assert(!html.includes("What is an AI agent loop?"));
assert(html.includes('id="agent-skill"'));
assert(html.includes("Use Loop Library in your coding agent."));
assert(
Expand Down Expand Up @@ -627,7 +624,7 @@ assert(css.includes(".pagination-button:disabled"));
assert(css.includes("scroll-margin-top: 80px"));
assert(css.includes(".pagination-button,\n .pagination-status"));
assert(css.includes(".skill-promo"));
assert(css.includes(".answer-capsule"));
assert(!css.includes(".answer-capsule"));
assert(css.includes(".skill-copy-button"));
assert(css.includes("border-left: 5px solid var(--orange)"));
assert(css.includes("background: var(--surface-muted)"));
Expand Down
4 changes: 2 additions & 2 deletions scripts/seo-geo-query-benchmark.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
{
"id": "generic-definition",
"query": "what is an AI agent loop",
"expectedPath": "index.html",
"requiredPhrases": ["What is an AI agent loop?", "repeatable", "stop condition"]
"expectedPath": "learn/index.html",
"requiredPhrases": ["How agent loops work", "task with a check", "continues or stops"]
},
{
"id": "detail-intent",
Expand Down
43 changes: 1 addition & 42 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
"@id": "https://signals.forwardfuture.ai/loop-library/#ai-agent-loop",
"name": "AI agent loop",
"description": "A repeatable workflow in which an AI agent acts on a goal, checks the result, and continues until it reaches an explicit success or stop condition.",
"url": "https://signals.forwardfuture.ai/loop-library/#what-is-an-ai-agent-loop",
"url": "https://signals.forwardfuture.ai/loop-library/learn/",
"sameAs": [
"https://code.claude.com/docs/en/agent-sdk/agent-loop",
"https://arxiv.org/abs/2210.03629"
Expand Down Expand Up @@ -431,47 +431,6 @@ <h1>Loop Library</h1>
Each one includes clear checks and tells the agent when to stop.
</p>

<section
class="answer-capsule"
aria-labelledby="what-is-an-ai-agent-loop"
>
<div>
<p class="answer-capsule-kicker">Plain-language definition</p>
<h2 id="what-is-an-ai-agent-loop">What is an AI agent loop?</h2>
</div>
<div class="answer-capsule-copy">
<p>
<strong>An AI agent loop is a repeatable workflow</strong> in
which an agent acts on a goal, checks what happened, and uses
that feedback to choose the next step. It stops when an
explicit success or stop condition is met.
</p>
<p>
Loop Library turns that pattern into copy-ready prompts with a
clear verification check and stopping point.
</p>
<p class="answer-capsule-sources">
Sources:
<cite
><a
href="https://code.claude.com/docs/en/agent-sdk/agent-loop"
target="_blank"
rel="noopener noreferrer"
>Claude Agent SDK loop documentation</a
></cite
>
and
<cite
><a
href="https://arxiv.org/abs/2210.03629"
target="_blank"
rel="noopener noreferrer"
>the ReAct paper</a
></cite
>.
</p>
</div>
</section>
</div>

<section
Expand Down
2 changes: 1 addition & 1 deletion site/loops/100-percent-test-coverage-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/architecture-satisfaction-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/autonomy-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/boeing-747-benchmark/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/clodex-adversarial-review-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/codex-completion-contract-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/customer-ai-deployment-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/devils-advocate-design-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/exhaustive-logging-coverage-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/fresh-clone-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/full-product-evaluation-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/infinite-clickbait-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/loop-harness-verification-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/nightly-changelog-sweep/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/overnight-docs-sweep/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/post-release-baseline-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/product-update-podcast-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/production-data-cleanup-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/production-error-sweep/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/quality-streak-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/repository-cleanup-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/revolve-self-improvement-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/self-improving-champion-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/seo-geo-visibility-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/stale-safe-batch-release-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/sub-50ms-page-load-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/test-suite-speed-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/ticket-to-pr-ready-loop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
2 changes: 1 addition & 1 deletion site/loops/war-loops-frontend-designer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

<nav class="site-nav" aria-label="Primary navigation">
<a href="../../#library">All loops</a>
<a href="../../#what-is-an-ai-agent-loop">What is a loop?</a>
<a href="../../learn/">What is a loop?</a>
<button
class="theme-toggle"
id="theme-toggle"
Expand Down
Loading
Loading