explaingit

serenakeyitan/awesome-agent-loops

Analysis updated 2026-05-18

78Audience · developerComplexity · 1/5LicenseSetup · easy

TLDR

A curated list of copy-paste /loop, /goal, and /schedule commands for Claude Code and Codex.

Mindmap

mindmap
  root((Awesome Agent Loops))
    What it does
      Curated command list
      Copy paste ready
    Tech stack
      Claude Code
      Codex
    Use cases
      Recurring PR checks
      Goal driven fixes
      Scheduled triage
    Audience
      Developers
      AI coding users
    Core commands
      loop
      goal
      schedule

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Copy a ready-made /loop command to have your AI coding tool recheck a pull request or test suite on a schedule.

USE CASE 2

Use a /goal command so the agent keeps working until tests pass and lint is clean, without step-by-step prompting.

USE CASE 3

Set up a /schedule command to triage new issues each morning or keep docs updated after every push.

What is it built with?

Markdown

How does it compare?

serenakeyitan/awesome-agent-loopsadrienckr/notslopalchemz/solana-pumpfun-token-bundler
Stars787878
LanguageTypeScriptTypeScript
Setup difficultyeasyeasyhard
Complexity1/52/54/5
Audiencedeveloperwriterdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Just copy a listed command into Claude Code or Codex, no installation needed.

CC BY 4.0: free to share and adapt, even commercially, as long as you credit the original source.

In plain English

Awesome Agent Loops is a curated list of copy-paste commands for Claude Code and Codex, the two AI coding tools. The list focuses entirely on three built-in commands that make these tools keep working without you prompting them step by step: /loop, /goal, and /schedule. The /loop command repeats a prompt on a time interval, like checking a pull request every 20 minutes or running your test suite every 15 minutes and reporting failures. The /goal command runs until a stated condition becomes true, so you can tell the agent to keep going until all tests pass and lint is clean without specifying every step. The /schedule command runs a prompt in the cloud on a recurring schedule, useful for things like triaging new issues each morning or keeping documentation up to date after every code push. Each entry in the list is a real command sourced from posts on Twitter/X, credited to the original poster. They cover common engineering tasks: eliminating flaky tests, fixing a build until it compiles, migrating an old API across an entire codebase, getting a pull request green on CI, reaching a test coverage target, and cleaning up messy AI-generated code. Each prompt includes a brief explanation of when to use it and a link back to the source post. The README also explains a recommended structure for composing these commands together: put /loop on the outside to set a schedule, /goal inside it to define a finish condition, and a skill command at the center to do the actual work. This nesting prevents the loop from stopping early and keeps it focused on a concrete outcome. The list is released under the CC BY 4.0 license.

Copy-paste prompts

Prompt 1
Show me the recommended /loop, /goal, and skill nesting structure from awesome-agent-loops for a CI task.
Prompt 2
Find a command in awesome-agent-loops for fixing flaky tests and adapt it to my project.
Prompt 3
Explain the difference between /loop, /goal, and /schedule commands in Claude Code and Codex.
Prompt 4
Help me write a /goal command that keeps an agent working until my build compiles cleanly.

Frequently asked questions

What is awesome-agent-loops?

A curated list of copy-paste /loop, /goal, and /schedule commands for Claude Code and Codex.

What license does awesome-agent-loops use?

CC BY 4.0: free to share and adapt, even commercially, as long as you credit the original source.

How hard is awesome-agent-loops to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is awesome-agent-loops for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.