Skip to content

rudy2steiner/awesome-agent-loops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Agent Loops Awesome

Loops, not prompts. A curated list of patterns, tools, templates and writing on loop engineering — designing systems that prompt your AI agents for you.

In June 2026, the way people work with coding agents shifted: instead of prompting an agent turn by turn, you design a loop that discovers work, hands it to agents, verifies the result, persists state, and decides what happens next. This list collects everything worth reading and running on that shift.

Maintained by agentloophub.com — the loop template library. This list updates itself via an agent loop; humans approve every merge.

Contents

Concepts & Guides

Origin Posts & Talks

Loop Patterns

  • Ralph loop - The brute-force while true pattern: same prompt, fresh agent, until the verify step passes.
  • Maker–checker loop - One agent acts, a separate model judges whether the goal is met; Claude Code's /goal applies this at the exit condition.
  • Queue-drain loop - Discover tasks into a queue (issues, briefs, failing tests), pop one per cycle, exit when empty.
  • Cron refresh loop - Scheduled wake-up, diff current state against desired state, act only on drift.
  • Subagent fan-out loop - A coordinator loop that spawns scoped subagents per task and merges verified results.

Templates

  • Agent Loop Hub templates - Copy-paste loops in a seven-field format (goal, trigger, discover, act, verify, persist, exit) with measured token cost per cycle.
  • Test-fix loop, content refresh loop, dependency upgrade loop, scrape-and-validate loop - see the library for runnable specs.

Runtimes & Harnesses

  • Claude Code - Agentic CLI with built-in /goal condition loops; the reference runtime for most loop writing today.
  • OpenClaw - Open-source personal agent runtime by the author of the tweet that named the trend.
  • obra/superpowers - Composable skills that give loops engineering discipline: TDD, subagent review, git worktrees.
  • openclaw-code-agent - Runs Claude Code, Codex and OpenCode as managed background sessions with plan approval, worktree isolation and merge/PR follow-through.
  • Open Agent Relay - Exposes bounded local Claude Code, Codex, or automation capabilities to teammates and agents over a trusted LAN.

Scheduling & Triggers

  • Claude Code Routines - Cloud loops (research preview, April 2026): schedule, API and GitHub-webhook triggers run on Anthropic's infra even with your laptop closed.
  • Claude Code /loop and /schedule - Session-scoped interval loops in the terminal; /schedule now creates cloud Routines.
  • /loop vs Desktop vs Cloud vs cron - When to reach for each: open-session, machine-on, or fully hosted.
  • Headless claude -p on system cron - Let the OS drive the agent on a timer with --allowedTools for unattended runs.
  • CI triggers (on push / on schedule) - Loops that live in GitHub Actions.
  • Event triggers - Webhooks, new-issue events, GSC data drops.

Verification & Guardrails

  • Test suites as verify steps - The strongest signal: exit 0 or loop again.
  • Second-model judges - A separate model evaluating "is the goal met?" to avoid self-grading.
  • Diff budgets & change caps - Bounding how much a single cycle is allowed to touch.

State & Memory

  • Markdown state files - A state.md the loop reads and rewrites each cycle; agents forget, the repo doesn't.
  • Issue/board-backed state - Linear, GitHub Projects or a plain table as the loop's queue and memory.

Cost Control

  • Token budgets per cycle - Declare expected cost up front; kill cycles that exceed it.
  • Exit conditions - No exit, no loop — just a bill.

Related Lists

  • serenakeyitan/awesome-agent-loops - Copy-paste /loop, /goal and /schedule commands sourced from X power users.
  • loops! - Searchable catalog of 40+ ready-to-copy loops for Claude Code, Cursor and Codex.

Communities

  • r/ClaudeAI - Loop threads and Claude Code automation discussion.
  • Hacker News - Search "loop engineering" for the ongoing debate.

Contributing

One line is enough. Open a PR adding a resource in the format - [Name](link) - One-sentence description. See CONTRIBUTING.md. Self-promotion is fine if the thing is genuinely useful and runnable.

License

CC0

About

Loops, not prompts. A curated list of loop engineering patterns, tools and templates for AI coding agents.

Topics

Resources

License

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages