continuous-agent-loop

continuous-agent-loop is a skill for Claude Code from shennawardana23/skillme. It costs 112 tokens per session (1,290 once invoked), scanned A, original, Apache-2.0.

Operating guidance for a coding-agent loop that repeatedly makes changes and checks its results without constant supervision.

In plain words
What is it for?
Use it to define build, test, and acceptance checks, detect stalled iterations, and recover safely when the loop goes wrong.
Why use it?
An unattended agent can keep retrying the same failure, introduce regressions, or consume resources without making progress.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it to define build, test, and acceptance checks, detect stalled iterations, and recover safely when the loop goes wrong.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/continuous-agent-loop
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 shennawardana23/skillme --skill continuous-agent-loop
Clone the repo
git clone --depth 1 https://github.com/shennawardana23/skillme

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

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 continuous-agent-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/shennawardana23/skillme/continuous-agent-loop.svg)](https://agentmods.dev/skills/shennawardana23/skillme/continuous-agent-loop)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/continuous-agent-loop"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/continuous-agent-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,290 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.00112 $0.01290
Opus 5 $0.00056 $0.00645
Sonnet 5 $0.00022 $0.00258
Haiku 4.5 $0.00011 $0.00129

Measured 8d ago against content hash 201a0ef2b6dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

continuous-agent-loop 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 8d 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.

skills/continuous-agent-loop/SKILL.md · 117 lines

How it starts

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

Continuous Agent Loop

Operating discipline for a loop that is already running — as opposed to autonomous-loops, which covers choosing the loop's architecture in the first place. This skill is about the gates that decide whether an iteration's output is good enough to keep, and about recognizing and recovering from a loop that has quietly gone wrong.

Quality gates per iteration

Every iteration of a continuous loop should pass through gates before its output is accepted, not just "the agent said it's done":

  1. Build/compile gate — the code compiles and the type checker (or equivalent) is clean.
  2. Test gate — the existing test suite passes, plus any regression test written for a bug this iteration fixed (see ai-regression-testing).
  3. Acceptance-criteria gate — the specific, concrete criteria defined before the iteration started are met, not a general "does this seem right" judgment made after the fact.

A loop with only an implicit gate ("the agent's summary looked reasonable") has no gate at all — it will accept regressions the agent didn't notice it introduced.

Recognizing failure modes

A continuous loop can look "alive" — consuming compute, producing diffs, committing — while making no real progress. Watch for:

  • Loop churn without measurable progress — iteration count climbs but the acceptance-criteria gate never gets closer to passing; each iteration touches different code without converging.
  • Repeated retries with the same root cause — the same test fails, the same build error recurs, across iterations that don't look identical on the surface but share a diagnosis. This means the loop is retrying blindly rather than incorporating what the last failure taught it.
  • Merge or landing stalls — for loops that merge work (a PR loop or a multi-unit DAG), units repeatedly failing to land cleanly signals a conflict the loop isn't equipped to resolve on its own.
  • Cost drift from unbounded escalation — cost per iteration creeping up, usually from repeatedly escalating to a stronger/more expensive model on the same failure instead of fixing the underlying under-specification (see the escalation guidance in agentic-engineering).

Read the full file on GitHub · 117 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. 8d ago First seen · 117 lines · 112 tokens per session scan A 201a0ef2b6dc

Subscribe to this mod's changes

continuous-agent-loop is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 10d ago), licensed Apache-2.0. It adds 112 tokens to every session and 1,290 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

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code.

obra/superpowers · 17 tokens

fix-bug

Resolves a single bug from any starting evidence — Dash0 telemetry (span / log / web event / RUM error link), raw stack trace, error message, code pointer (file:line), screen recording, Linear ticket URL, or free-text symptom. Classifies the input, triages complexity (Phase 0.5) to pick between a fast lane and a full…

mthines/agent-skills · 343 tokens

storybook

Scaffolds, audits, and tests Storybook stories for React (web) and React Native / Expo (native) component libraries. Generates three artefacts in two files per invocation: a visual regression .stories.tsx file containing a Default story (variants grouped into a single snapshot) and a Playground story (interactive args…

mthines/agent-skills · 233 tokens

aw-setup

One-time (but safely re-runnable) setup flow that scaffolds a project's aw-tester aw-target: detects auth strategy, captures storage state, writes .claude/aw-targets/local.yml, and validates with a smoke spec. Re-runs detect the existing aw-target and only re-prompt for what broke or changed. Triggers on "/aw-setup"…

mthines/agent-skills · 91 tokens

aw

Ships autonomous, end-to-end coding work — implement a feature or fix, all the way to a tested draft PR — from a single opt-in entry point. Detects the task tier (Micro / Lite / Full) and routes: Micro/Lite run single-pass in this context; Full hands off to the aw-planner → aw-executor agents. Use when the user asks…

mthines/agent-skills · 193 tokens

polish

Re-runnable pre-PR quality gate for the current branch. Composes two existing passes over the branch diff: a broad pr-reviewer pass (read-only review via the branch's open PR, which pr-reviewer requires) and a code-quality simplify pass (applies Class M mechanical refactors behind a confidence ≥ 90 % gate, reverting…

mthines/agent-skills · 217 tokens