Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jmaglyv2026.11.9MITIn 1 marketplace
Repeats a coding task until a shell check such as npm test passes or limits are hit, committing each attempt to git. External loops survive session death; on Codex and Claude Code, in-session loops delegate to native /goal.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Evidence status: design intent.
Classify work with the autonomy and human operating roles framework. A loop cannot override human-owned actions, checkpoints, or failed verification.
Iterative AI task execution with automatic recovery - iteration beats perfection.
Al transforms single-pass AI execution into iterative completion loops. Instead of hoping a task succeeds on the first try, Al keeps iterating until verifiable completion criteria are met.
┌──────────────────────────────────────────┐
│ RALPH LOOP │
│ │
│ Execute → Verify → Learn → Iterate │
│ ↑ │ │
│ └──────────────────────────┘ │
│ │
│ Until: criteria met OR limits reached │
└──────────────────────────────────────────┘
# Via AIWG CLI
aiwg use ralph
# Or install plugin
aiwg install-plugin ralph
/ralph "Fix all failing tests" --completion "npm test passes"
/ralph "Convert src/ to TypeScript" --completion "npx tsc --noEmit passes" --max-iterations 20
/ralph "Add tests until 80% coverage" --completion "npm run coverage shows >= 80%"
| Command | Description |
|---|---|
/ralph | Start iterative task loop |
/ralph-status | Check current loop status |
/ralph-abort | Abort running loop |
/ralph-resume | Resume interrupted loop |
Al also responds to:
/ralph "<task>" --completion "<criteria>" [options]
Options:
--max-iterations N Safety limit (default: 10)
--timeout M Minutes before timeout (default: 60)
--interactive Ask setup questions first
--no-commit Disable auto-commits
--branch <name> Create feature branch
On Codex and Claude Code, in-session Al/agent-loop requests delegate to the native /goal primitive instead of running a parallel AIWG emulation loop. AIWG still owns completion inference, safety gates, and audit output, then maps the work to:
/goal "<task>; completion: <criteria>"
External Al remains AIWG-native because it is detached and crash-resilient; /goal is an in-session primitive.
Provide a clear, actionable task description.
Specify how to verify success (must be objectively checkable).
Al attempts the task, verifies criteria, learns from failures, and iterates.
Each iteration is committed to git, creating clear history.
Generates completion report with full iteration history.
Good (verifiable):
"npm test passes""npx tsc --noEmit exits with code 0""npm run lint passes""coverage report shows >= 80%"Poor (subjective):
"code is good""feature is complete"Al stores state in .aiwg/ralph/:
.aiwg/ralph/
├── current-loop.json # Loop state (for resume)
├── iterations/ # Iteration history
│ ├── iteration-1.md
│ ├── iteration-2.md
│ └── ...
└── completion-*.md # Final reports
See docs/examples/ for detailed walkthroughs:
"Iteration beats perfection" - errors become learning data within the loop rather than session-ending failures.
Al inverts traditional AI optimization from "unpredictable success" to "predictable failure with automatic recovery."
Al is a power tool. Used correctly, it delivers overnight. Used incorrectly, it burns tokens producing junk.
| Situation | Use Al? | Instead |
|---|---|---|
| Greenfield with no docs | NO | Use AIWG intake/flows first |
| Vague requirements | NO | Write use cases first |
| Clear spec, need implementation | YES | - |
| Tests failing, need fixes | YES | - |
| Migration with clear rules | YES | - |
The key insight: Al excels at HOW to build, but thrashes on WHAT to build. Define your requirements first, then let Al implement.
7-day copy clicks
npx claudepluginhub jmagly/aiwg --plugin agent-loopBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground