ondrej.

Ralph — Autonomous Development Loop for Claude Code

Open-source autonomous loop with smart end-of-task detection, rate limiting, and session management.

BashNode.jsClaude Code

Open-source contribution

What it is

Ralph is an autonomous development loop on top of Claude Code. It detects when the agent has finished, manages rate limiting, and coordinates sessions across runs.

Key components

  • End-of-task detection — heuristics on agent output + idle timeouts
  • Rate limit handling — exponential backoff, state persisted across restarts
  • Session continuity — session id + manifest file for resume

Why this exists

Claude Code is excellent at ad-hoc tasks. But when you need an agent running for hours on a single objective (refactor, mass migration, content generation), you need a loop watching it. Ralph is that loop.

Repo

github.com/ondrejknedla/ralph-claude-code