Ralph Loop: Making AI Agents Finish What They Start

Ever asked an AI to do something complex, only to have it... just stop? The conversation ends, and so does the work. We solved this with a pattern called Ralph Loop.


The Problem

AI agents are great at single-turn tasks. Ask a question, get an answer. But real work takes time. Research projects, multi-step analysis, anything requiring persistence—these fall apart when the chat session ends.

We needed our agent to:


The Solution

Ralph Loop is simple: Work → Check → Repeat.

Every 30 minutes, our agent wakes up and checks its task list. Each task has a clear completion criteria:

| Task                      | Completion Criteria       | Status   |
|---------------------------|---------------------------|----------|
| Research AI opportunities | Find 5 validated markets  | 🔄 2/5   |

The key insight: don't let the agent judge its own work. We use a separate, smaller AI to evaluate completion objectively:

Task: Research AI opportunities
Criteria: Find 5 validated markets
Progress: 2/5

→ Evaluator: "Incomplete. Continue working."

This prevents the "I think I'm done" bias we all have.


Real Example

Task: "Research product opportunities in AI"

No follow-ups needed. The work just... happened.


Key Takeaways

  1. Specific goals finish. Vague goals don't.
  2. Separate the worker from the judge.
  3. Automation beats reminders.
  4. Simple state management wins.

It's not complicated. But it turns AI from a conversation partner into something that actually gets things done.

Built with Clawdbot. The agent that doesn't forget.