Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Browse all series

Coming Soon

The Ralph Wiggum Technique

Join me in as we perform a deep-dive into the agentic looping technique known as "Ralph Wiggum." As we go, we’re not just building a script, we’re building the surrounding system that makes an agent reliable enough to collaborate with. We’ll work through permissions, sandbox rules, hooks, and safer ways to run in more autonomous modes.

By the end, we’ll have something much bigger than a typical demo: a working approach for spec-driven agent development that can run locally, in the background, or on a remote machine over SSH. Let's go!

Launching May 18, 2026

Progress

Series Info

Episodes
16
Run Time
1h 56m
Difficulty
Intermediate
Last Updated
May 18, 2026
Version
Latest

Series Episodes

  1. Episodes (5)
    1. What Is Ralph?

      Let’s kick things off by building a simple Ralph.sh loop and seeing how this agentic workflow actually works in practice. We’re not trying to make it fancy yet, just to understand why restarting the model with lightweight memory files like project.md and progress.md can be such a powerful way to ship work.
    2. Improving Our First Ralph Loop

      Now that we have our basic ralph loop in place, let's make it feel a lot less blind by surfacing what the model is doing in real time. We'll move from the old shell script to a small Node.js wrapper that can parse stream-json output into something actually readable while keeping the same overall loop architecture.
    3. What Is A PRD?

      Now that we have a feel for the onboarding problem, we’re going to step back and shape an agent-ready PRD that gives the model the right context, constraints, and success criteria before it writes a single line of code. The goal here is to front load the important decisions so our loop can execute with far less guesswork and a much better shot at shipping the right thing.
    4. Creating A PRD With Our PRD Skill

      Now that we have our PRD skill in place, we are going to put it to work and see how a well scoped spec can drive an agent through a real feature build. Along the way, we will refine the generated plan a bit, feed it into our rel.js loop, and check whether the end result actually holds up in the app.
    5. Running Ralph In The Background

      Let's take a minute to make our terminal setup a lot more resilient so we do not lose long running work every time we accidentally close a window. We will get comfortable with screen and tmux, with extra attention on a simple tmux workflow that lets us keep multiple loops and tools running in the background.

Launching May 18, 2026

Continue Learning