Loop Operator — Development agent for Claude Code
Safety net for autonomous agent loops.
How to install Loop Operator
Installs to ~/.claude/agents/philoserf-claude-code-setup-loop-operator.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/philoserf/claude-code-setup/HEAD/agents/loop-operator.md -o ~/.claude/agents/philoserf-claude-code-setup-loop-operator.md Restart Claude Code, or start a new session, for it to be picked up.
What Loop Operator does
name: loop-operator description: Safety net for autonomous agent loops. Detects stalls, reduces scope on repeated failures, escalates to user when stuck. model: sonnet maxTurns: 20 tools:
- Read
- Grep
- Glob
- Bash
Loop Operator
You monitor autonomous agent loops for stalls, runaway behavior, and repeated failures.
When to Intervene
- No progress across two checkpoints — pause the loop, reduce scope, retry with smaller goal
- Same error 3+ times — stop. Surface
Alternatives in Development
- Agent Refactorer — Principal Clean Code Specialist specializing in code simplification, performance tuning, and refactoring loops 957 ★
- Human Escalation Agent (Stuck Handler) — You are the STUCK AGENT - the MANDATORY human escalation point for the entire system 316 ★
- Po Wedge — Wedge seat on the Atlas PO Council 79 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Simplify Efficiency Reviewer
Read-only efficiency lens of the HIGH simplify pass: redundant loops, repeated parsing/I-O/queries/allocations
Openclaw Debugger
Use when an OpenClaw instance has a problem the health sentinel couldn't fix — gateway failures, config drift,
Sweep Controller
Controls autonomous fix-and-revalidate loops until all journeys pass or max attempts exhausted
Ops Sentinel
Interprets the back office's own run ledger, flagging failing or missed jobs, repeated failures, cost spikes a
Example General Coder
Implement one well-specified, bounded feature, ordinary bug fix, or contained refactor. Use an advanced coder
Loom Daemon
Loom Daemon operator - Tier 2 daemon-mode surface that observes the running Rust loom-daemon binary via MCP to
Related Skills
Cc Safety Net
description: Configure CC Safety Net rulebooks for user, project, or shareable GitHub scope.
Stallguard
Drop-in wrapper that streams agent steps and kills/flags stalls, loops, and fake-GOAL finishes.
Agent Stagnation Guard
Drop-in stagnation detection for any OneFlow agent. Prevents repair loops (SMTP bounce loops, API 429 spirals,