philoserf

Loop Operator — Development agent for Claude Code

Development community

Safety net for autonomous agent loops.

How to install Loop Operator

Installs to ~/.claude/agents/philoserf-claude-code-setup-loop-operator.md

Terminal
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 Repository