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.
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:
curl -fsSL https://raw.githubusercontent.com/ksimback/looper/main/install.sh | bashOn Windows PowerShell, the command is:
irm https://raw.githubusercontent.com/ksimback/looper/main/install.ps1 | iexOnce 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
Related news
AI AgentsInteraction-Centric Taxonomy for Localizing AI Agent FailuresResearchers introduce a new taxonomy of 41 failure modes to distinguish between model errors and harness engineering issues in AI agent systems.·by shared tag
AnthropicHow to set ambitious AI goals and the be-ambitious skillAnthropic engineer Felix Rieseberg shares a framework for pushing AI beyond simple speed, including a prompt converted into a reusable agent skill.·by shared tag
- Prompt EngineeringCursor Direct visual prompts arrive in Design Mode with Canvas sharing and Context ExplorerCursor updates Design Mode with click-to-select, drawing, and voice input for UI edits, adds Canvas publishing and sharing, and introduces Context Explorer for token usage breakdown.·by shared tag
AI AgentsAnatomy of a Working SOUL.md File for AI AgentsA breakdown of the eight sections that make SOUL.md effective, why generic instructions fail, and how specificity shapes agent behavior from the first prompt.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.