ralph-orchestrator

Loop AI coding agents until tasks finish, with hats, gates, and Telegram review.

Overview

ralph-orchestrator is a hat-based orchestration framework that runs AI coding agents in repeated cycles until a task reaches completion. It is aimed at developers and technical teams who want agent-driven work to continue without manual restarts, with each iteration starting from a fresh context.

The framework centers on personas called hats that coordinate through events, paired with backpressure gates that reject unfinished work based on tests, linting, and type checking. It also offers persistent memories and runtime task tracking so progress carries across iterations.

What sets it apart is its loop-oriented design combined with optional human-in-the-loop control through Telegram. Agents can pause mid-loop to ask questions and wait for answers, while people can send guidance at any time to redirect the work. A multi-backend model lets the same orchestration run against different AI command-line tools.

Best for

  • Software engineers
  • AI agent developers
  • Development team leads
  • Quality and testing engineers
  • DevOps practitioners
  • Software development
  • Developer tooling

How to use

  1. Install the CLI through npm, the GitHub Releases installer, or Cargo.
  2. Initialize Ralph with a preferred backend using the init command.
  3. Plan a feature through an interactive PDD session that creates requirements, design, and implementation-plan files.
  4. Implement the feature with a run command that points at the generated spec directory.
  5. For simpler tasks, run the agent directly with a prompt and skip planning.
  6. Optionally start the web dashboard to monitor and manage orchestration loops.

What it can do

Loop orchestration

Runs an agent repeatedly until the task is complete, ending when the agent signals completion or the iteration ceiling is reached. Each cycle starts with a cleared context, which the project treats as a reliability mechanism rather than a cost. This structure lets longer jobs continue without a person restarting them by hand.

Hat and event system

Uses specialized personas, called hats, that coordinate by exchanging events. Instead of one monolithic prompt, responsibilities can be divided among roles that hand work to one another, letting the framework model multi-step collaboration within a loop.

Backpressure gates

Applies rejection gates based on checks such as tests, lint, and typecheck, so incomplete work is refused rather than accepted. The project favors this rejection-based approach over detailed step-by-step instructions, leaving quality enforcement to automated checks.

Persistent memories and tasks

Maintains persistent learning across iterations and tracks work items at runtime. This supports continuity while the loop is running and gives visibility into what the agent is doing as the job progresses.

Built-in patterns

Ships 5 built-in patterns: code-assist, debug, research, review, and pdd-to-code-assist. Additional patterns are documented as examples, giving teams starting points they can adapt to their own workflows.

RObot human-in-the-loop

Enables human interaction during orchestration through Telegram. Agents can ask questions and block until answered, and people can send proactive guidance at any time. Messages can be routed among parallel loops by reply-to, an @loop-id prefix, or a default primary loop, and Telegram commands such as /status, /tasks, and /restart provide loop visibility.

MCP server mode

Runs as an MCP server over stdio for clients that support the protocol, with each server instance scoped to a single workspace root. Multi-repository use calls for one server per repository, a model the project describes as deterministic for its control-plane data.

How it works

Setup begins with installing the CLI and initializing it against a chosen backend. Work is either planned through an interactive PDD session that produces requirements, design, and implementation-plan documents, or started directly with a prompt. The loop then iterates, ending when the agent emits completion or reaches the iteration limit, with backpressure gates rejecting work that fails tests, lint, or typecheck.

Integrations include the supported AI command-line backends, an optional MCP server over stdio scoped to one workspace root, a monitoring web dashboard, and Telegram through RObot. Humans still make the calls that matter: they answer agent questions, which block the loop until a response or timeout, and can send guidance at any time to steer direction or restart work.

Supervised

Ralph iterates on its own until completion or an iteration limit and enforces gates, but it can pause for human answers via Telegram and accepts proactive human steering, keeping people in the approval loop for multi-step tasks.

Where it fits

  • Plan and implement a new feature such as JWT-based user authentication from a generated spec.
  • Add input validation to an existing API endpoint with a direct agent run.
  • Apply debug, research, or review patterns to focused engineering tasks.
  • Let an agent ask questions in Telegram and receive human guidance mid-loop.

Good fit

  • Developers who want an agent to iterate on a coding task until explicit completion or an iteration cap
  • Teams using multiple AI coding CLIs who want one orchestration layer across backends
  • Projects that benefit from automated quality gates such as tests, lint, and typecheck rejecting incomplete work
  • Workflows needing human input mid-run through Telegram-based question and guidance handling

Not a fit

  • Anyone expecting a stable monitoring UI, since the web dashboard is described as alpha with possible breaking changes
  • Backends outside the documented set, as support is limited to the listed CLI tools
  • Multi-repo setups wanting a single MCP server instance, since each server is scoped to one workspace root

How to evaluate

  1. Check that Rust 1.75+ is available if you plan to use the web dashboard, which needs the Rust and Node.js components
  2. Decide whether the alpha status of the web dashboard is acceptable for your monitoring needs
  3. Verify your MCP client workflow fits the stdio server mode and one-workspace-per-instance model
  4. Plan how quality gates such as tests, lint, and typecheck will be configured to enforce backpressure

Alternatives

AgentPricingAutonomyBest for
oh-my-claudecode—SupervisedSoftware developers using Claude Code, Engineering team leads, Code reviewers and security reviewers, UI and UX designers working in code, Data scientists, Technical writers and documentation specialists
happy—SupervisedSoftware developers, Engineering teams, Pair-programming collaborators, Developers who work across desk and mobile
plandex—SupervisedSoftware developers, Engineering teams on large codebases, Developers reviewing AI-generated changes, Teams exploring multiple models, Self-hosting developers
MiMo-Code—SupervisedSoftware developers, Engineers working in terminals, Developers managing Git repositories, Teams using multiple LLM providers
superplane—SupervisedSoftware engineers, Engineering managers, Platform and infrastructure engineers, DevOps and release engineers, Open source maintainers
ralph-claude-code—SupervisedSoftware developers, Engineering teams using Claude Code, Automation and DevOps engineers, Maintainers working from task lists or PRDs

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/ralph-orchestrator"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options