loop-operator

loop-operator is an agent for Claude Code, Kiro from affaan-m/ECC. It costs 19 tokens per session (179 once invoked), scanned A, original, MIT.

A guide for operating autonomous agent loops: repeated cycles in which an agent performs work, checks progress, and continues. It defines checkpoints, stop conditions, recovery steps, and escalation rules.

In plain words
What is it for?
Use it to start and monitor agent loops, detect stalls or retry storms, pause and reduce scope, verify recovery, and resume work safely.
Why use it?
It helps prevent stalled loops, repeated failures, uncontrolled retries, and progress that cannot be verified.

Agent for Claude CodeKiro

Written for Claude Code and Kiro: shipped in a Claude Code plugin, but also installed under .kiro/.

Part of the ecc plugin — 70 skills, 56 commands, 68 agents, 1 MCP server shipped together

Good fit Use it to start and monitor agent loops, detect stalls or retry…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/affaan-m/ecc/loop-operator
About the project

ECC is a toolkit that organizes and improves how coding agents work through skills, memory, security checks, research practices, and related extensions. It is for developers using agents such as Claude Code, Codex, OpenCode, and Cursor.

affaan-m/ECC · 250,130 stars · on GitHub · ecc.tools

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/affaan-m/ECC

Made for: Claude Code, Kiro.

Or install ecc, the plugin that ships this one along with the rest of its 70 skills, 56 commands, 68 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loop-operator

README.md
[![agentmods](https://agentmods.dev/badge/agents/affaan-m/ecc/loop-operator.svg)](https://agentmods.dev/agents/affaan-m/ecc/loop-operator)
Your own site
<a href="https://agentmods.dev/agents/affaan-m/ecc/loop-operator"><img src="https://agentmods.dev/badge/agents/affaan-m/ecc/loop-operator.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 179 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Fable 5.1 · 6 Sept 2026
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00179
Opus 5 $0.00010 $0.00089
Sonnet 5 $0.00004 $0.00036
Haiku 4.5 $0.00002 $0.00018

Measured 3d ago against content hash 37df24bfa25b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

loop-operator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

8 near-identical copies found in the catalogue:

.kiro/agents/loop-operator.md · 37 lines

What it actually says

You are the loop operator.

Mission

Run autonomous loops safely with clear stop conditions, observability, and recovery actions.

Workflow

  1. Start loop from explicit pattern and mode.
  2. Track progress checkpoints.
  3. Detect stalls and retry storms.
  4. Pause and reduce scope when failure repeats.
  5. Resume only after verification passes.

Required Checks

  • quality gates are active
  • eval baseline exists
  • rollback path exists
  • branch/worktree isolation is configured

Escalation

Escalate when any condition is true:

  • no progress across two consecutive checkpoints
  • repeated failures with identical stack traces
  • cost drift outside budget window
  • merge conflicts blocking queue advancement
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 37 lines · 19 tokens per session scan A 37df24bfa25b

Subscribe to this mod's changes

loop-operator is an agent published in the GitHub repository affaan-m/ECC (250,130 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 179 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

chief-of-staff

A personal communications assistant that sorts incoming email, chat messages, and calendar information into four priority levels. It can also prepare draft replies and track follow-up work after messages are sent.

xu-xiang/everything-claude-code-zh · 78 tokens

devops-architect

DevOps and CI gate expert for the ClosedLoop plugin monorepo. Reviews build toolchain correctness (ruff, pyright, uv), plugin versioning discipline (semver per plugin.json), hook lifecycle contracts, pre-push CHANGELOG enforcement, marketplace registration, and cross-plugin coordinated version bumps. Triggers on…

closedloop-ai/claude-plugins · 95 tokens

observability-architect

Observability and telemetry expert for the ClosedLoop plugin monorepo. Reviews telemetry block schema evolution (reviewresult.json.telemetry), cache hit-rate namespace contracts, hook log discipline, learning-persistence patterns (fcntl-locked append, TOON format), system-marker inventory, footer rendering contract…

closedloop-ai/claude-plugins · 122 tokens

security-privacy

Security and privacy expert for the ClosedLoop plugin monorepo. Covers prompt-injection on LLM pipelines, agent tool-allowlist correctness, hook-script attack surface, secret hygiene, cache-key integrity as a security property, TOON learning-store write safety, and GitHub-mode credential handling.

closedloop-ai/claude-plugins · 63 tokens

domain-identifier

Identifies domains of work (not frameworks) by analyzing project documentation.

closedloop-ai/claude-plugins · 17 tokens

project-doc-ingestor

Ingests project documentation to extract context, conventions, and tech stack.

closedloop-ai/claude-plugins · 19 tokens