Looper: Designing Agent Loops for Claude Code

Looper is a design layer for Claude Code that helps developers build structured, review-gated agent loops with cross-model verification before execution.

cpaua3 min257
Looper: Designing Agent Loops for Claude Code

Kevin Simback released Looper, a design skill for Claude Code that allows developers to architect agent loops before running them. It functions as a pre-flight layer that transforms vague automation ideas into structured specifications with defined goals, verification rubrics, and termination guards, preventing the token waste and poor outputs associated with poorly designed loops.

Hardening the /goal command with design discipline

While the standard /goal command in Claude Code provides persistence, it lacks coaching and relies on a single-vendor evaluator from the same pipeline. Looper addresses these gaps by interviewing the user to ensure goals are falsifiable and "done" is explicitly defined.

The tool introduces a review council by allowing a different model family to act as a judge, providing blind-spot coverage that a single-model pipeline cannot. This ensures that the work is checked against a typed rubric by a separate set of eyes before it is finalized.

Structural guards and verification gates

Looper implements a rigorous loop shape: Goal → Plan → Review → Deliver → Judge → Stop. It establishes explicit gates, such as a plan gate and a delivery gate, where the loop must pass a programmatic check or a judge's verdict to proceed.

To prevent infinite loops or runaway costs, the tool configures termination guards. These include maximum iteration limits, revision caps (e.g., maximum 3 revisions), no-progress signals, and budget caps for tokens. This structure is more robust than the basic autonomous Plan-Work-Review cycles found in simpler implementations.

Portable artifacts and execution handoff

Instead of keeping the goal trapped in a session, Looper exports the design as a set of portable, versionable artifacts. These include loop.yaml, a compiled loop.resolved.json, a human-readable LOOP.md, and a run-loop.py script for external execution.

The tool also generates a terminal-friendly ASCII flow preview and a RUN_IN_SESSION.md file. This allows the designed loop to be handed off to various Claude Code primitives, including turn-based, goal-based, or scheduled routines, ensuring they execute a validated spec rather than an ad-hoc prompt.

Pre-designed loop templates

Users can bypass the manual interview process by using named templates. The security-scan template performs read-only sweeps for vulnerabilities, while code-review analyzes branch diffs to create severity-rated reports. Other available patterns include bug-hunt for root cause fixing, docs-sync for fixing code-doc drift, and research-synthesis for creating cited reports.

Installation and activation

Looper is installed as a global personal skill and slash command. For macOS and Linux, the installation is performed via:

bash
curl -fsSL https://raw.githubusercontent.com/ksimback/looper/main/install.sh | bash

On Windows PowerShell, the command is:

powershell
irm https://raw.githubusercontent.com/ksimback/looper/main/install.ps1 | iex

Once installed, the tool is invoked within Claude Code using the /looper command. Users can also specify a custom output folder by passing it as an argument, such as /looper client-onboarding-loop.

Sources

ksimback/loopergithub.com/ksimback/looper
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.