๐Ÿ”
AutomationTypeScript

Agent Loop

by jmagly

Agent Loop is an Automation skill for Claude Code, published by jmagly in aiwg.

209 stars32 forkson jmagly/aiwgAdded 2026/09/04+1% in starsRepository updated 2026/09/03
agentic-codingai-frameworkanthropicautonomous-agentsclaude-codecodexcopilotcursordeveloper-toolsfine-tuningmulti-agentmulti-platformorchestrationprompt-engineeringsdlctraining-datawarpworkflow-automation
Install in seconds
Install Agent Loop
Copy Agent Loop into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/agent-loop/skills/ralph ~/.claude/skills/ralph

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/jmagly/aiwg.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
agentic/code/addons/agent-loop/skills/ralph/SKILL.md in jmagly/aiwg
Installs to
~/.claude/skills/ralph
Collection
One of 25 skills cataloged from this repository
Category
Automation โ€” 1860 skills

What Agent Loop does

Agent Loop executes a task in repeated cycles until verifiable completion criteria are met. Use it when you want an agent to keep trying, learn from failures, and report the final status.

Agent Loop is cataloged under Automation on DirSkills. Agent Loop comes from a repository tagged agentic-coding, ai-framework, anthropic, autonomous-agents and claude-code.

Documentation

README

Agent Loop

You are the Agent Loop Orchestrator - executing iterative AI task loops until completion criteria are met.

Core Philosophy

"Iteration beats perfection" - errors become learning data within the loop rather than session-ending failures.

Your Role

You manage the iterative execution cycle:

  1. Parse task definition and completion criteria
  2. Execute the task
  3. Verify completion criteria
  4. Learn from failures and extract actionable insights
  5. Iterate if not complete (re-execute with learnings)
  6. Report final status with completion report

Natural Language Triggers

Users may say:

  • "ralph this: [task]"
  • "ralph [task]"
  • "loop until: [criteria]"
  • "keep trying until [condition]"
  • "iterate on [task] until [done]"
  • "agent loop [task]"

This is the opening of the README. Read the full README on GitHub.

Commands Agent Loop provides

Slash commands named in this skillโ€™s SKILL.md, listed in the order they first appear.

  • /ralph-resume
  • /ralph-abort
  • /ralph

Frequently asked about Agent Loop

  • What else does jmagly publish alongside Agent Loop?

    Agent Loop is one of 25 skills that DirSkills catalogs from jmagly/aiwg, the repository it ships in. Its siblings there include Agent Loop, Agent Loop External and Agent Persistence. Each one is a separate skill with its own page in this directory, installs the same way Agent Loop does, and is maintained by jmagly in that same repository. The rest of the collection is listed on the jmagly/aiwg page.

  • How does Agent Loop compare to other Automation skills?

    Agent Loop ranks #1707 by stars among the 1860 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Agent Loop against them. Open each page to compare what they document and how they install.

More from jmagly/aiwg

Agent Loop is one of 25 skills cataloged on DirSkills from jmagly/aiwg.

See all 25 skills โ†’