running-agent-loops

running-agent-loops is a skill for Claude Code, Codex from Cristhianzl/claude-skills-czl. It costs 111 tokens per session (972 once invoked), scanned A, original, MIT.

Instructions for running multi-step or unattended AI-agent workflows, including sequential tasks, implementation-and-review cycles, parallel work, and dependency-based plans. An agent loop is a controlled sequence in which an agent performs and checks work repeatedly.

In plain words
What is it for?
Use it to design or operate autonomous coding workflows with isolated steps, review passes, parallel agents, and explicit run or cost limits.
Why use it?
It defines how to carry context between steps, separate implementation from review, and stop after clear limits instead of running indefinitely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to design or operate autonomous coding workflows with isolated steps, review passes, parallel agents, and explicit run or cost limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cristhianzl/claude-skills-czl/running-agent-loops
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.

Any agent
npx skills add Cristhianzl/claude-skills-czl --skill running-agent-loops
Clone the repo
git clone --depth 1 https://github.com/Cristhianzl/claude-skills-czl

Made for: Claude Code, Codex.

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 running-agent-loops

README.md
[![agentmods](https://agentmods.dev/badge/skills/cristhianzl/claude-skills-czl/running-agent-loops/github.svg)](https://agentmods.dev/skills/cristhianzl/claude-skills-czl/running-agent-loops)
Your own site
<a href="https://agentmods.dev/skills/cristhianzl/claude-skills-czl/running-agent-loops"><img src="https://agentmods.dev/badge/skills/cristhianzl/claude-skills-czl/running-agent-loops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for running-agent-loops

Your own site · 80×15
<a href="https://agentmods.dev/skills/cristhianzl/claude-skills-czl/running-agent-loops"><img src="https://agentmods.dev/badge/skills/cristhianzl/claude-skills-czl/running-agent-loops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 972 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.
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.00111 $0.00972
Opus 5 $0.00056 $0.00486
Sonnet 5 $0.00022 $0.00194
Haiku 4.5 $0.00011 $0.00097

Measured 12d ago against content hash 9eeeef8e0ee7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

running-agent-loops 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 12d 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.

configs/agnostic/skills/running-agent-loops/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Running agent loops

Patterns for driving work across many steps or iterations — possibly unattended — without the run drifting, looping, or shipping slop. The core trade is isolation vs. continuity: a fresh context per step avoids bleed, but you must deliberately carry forward what matters.

Read first (always)

List learnings/ and read anything relevant. Project-specific loop conventions, budgets, and stop signals live there and override this file.

Principles (apply to every loop)

  • Fresh context per step beats one long context. Each claude -p / subagent call starts clean — no bleed, no drift. The cost: it forgets. Bridge it deliberately (below).
  • The reviewer is never the author. Put review/verify in a separate step/context so it isn't anchored to the implementation.
  • Two focused passes beat one constrained pass. Don't pile negative instructions onto the implementer — add a separate de-sloppify pass (below). Quality from constraints decays; quality from a dedicated cleanup step doesn't.
  • Every loop has an explicit stop condition. Bound it by max-runs, max-cost, max-duration, or a completion signal — never "until it feels done".

The patterns (pick the simplest that fits)

Pattern Use when Shape
Sequential pipeline A known series of steps on one unit of work implement → de-sloppify → verify → commit, each a fresh context
PR loop Iterate a branch toward green branch → implement → review → fix → run checks → repeat until checks pass or budget hits
Parallel fan-out N independent variations/units of the same spec an orchestrator assigns each agent a distinct direction + index (don't rely on agents to self-differentiate); run in waves of 3–5
RFC → DAG A large feature with dependencies decompose into work units + a dependency DAG; run each in an isolated worktree; land via a merge queue; deeper review tier for riskier units

The cross-iteration context bridge

Read the full file on GitHub · 58 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 58 lines · 111 tokens per session scan A 9eeeef8e0ee7

Subscribe to this mod's changes

running-agent-loops is a skill published in the GitHub repository Cristhianzl/claude-skills-czl (5 stars, last pushed yesterday), licensed MIT. It adds 111 tokens to every session and 972 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

analytics-strategy

Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy. Use this skill whenever the user wants to plan analytics, design dashboards, build event taxonomies, define KPIs, set up tracking, or audit existing measurement.…

rampstackco/claude-skills · 126 tokens

content-strategy

Develop a content strategy covering editorial positioning, content pillars, formats, calendar, governance, and topical authority planning. Use this skill whenever the user wants to plan a content program, define content pillars, build an editorial calendar, structure topic clusters, set up content governance, or align…

rampstackco/claude-skills · 120 tokens

incident-response

Manage active production incidents through detection, triage, mitigation, communication, and resolution with structured roles and decision-making. Use this skill whenever the user has an active incident, a production issue, a service outage, a security incident, or needs to plan incident response procedures. Triggers…

rampstackco/claude-skills · 117 tokens

stakeholder-communication

Communicate effectively with stakeholders across functions and seniority levels. Use this skill when writing status updates, preparing executive reviews, sharing technical decisions with non-technical audiences, managing up, communicating bad news, or designing the communication cadence for a project. Triggers on…

rampstackco/claude-skills · 103 tokens

review-work

Post-implementation gate review: run manual QA on the real surface yourself, then launch ONE gate reviewer (never a panel) to audit goal, constraints, code quality, security, missed context, and QA evidence. Use before a PR handoff or when the user explicitly asks to review completed work.

code-yeongyu/oh-my-openagent · 63 tokens

agb-begriff-vorformuliert-305

Für AGB Begriff Vorformuliert 305: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: agb-begriff-vorformuliert-305.

Klotzkette/claude-fuer-deutsches-recht · 68 tokens