autonomous-loops

autonomous-loops is a skill for Claude Code from shennawardana23/skillme. It costs 115 tokens per session (2,359 once invoked), scanned A, original, Apache-2.0.

A set of design patterns for running a coding agent repeatedly with little or no human input, from simple scripts to coordinated work by several agents.

In plain words
What is it for?
Use it to plan scripted development steps, generate several solutions in parallel, run iterative pull-request workflows, or coordinate larger multi-agent projects.
Why use it?
It helps you choose an approach that matches the task, so repeated agent work does not become unnecessarily complex or uncontrolled.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

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

Good fit Use it to plan scripted development steps, generate several solutions in parallel, run iterative pull-request workflows, or coordinate larger multi-agent projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/autonomous-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 shennawardana23/skillme --skill autonomous-loops
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 autonomous-loops

README.md
[![agentmods](https://agentmods.dev/badge/skills/shennawardana23/skillme/autonomous-loops/github.svg)](https://agentmods.dev/skills/shennawardana23/skillme/autonomous-loops)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/autonomous-loops"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/autonomous-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 autonomous-loops

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/autonomous-loops"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/autonomous-loops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,359 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.00115 $0.02359
Opus 5 $0.00057 $0.01179
Sonnet 5 $0.00023 $0.00472
Haiku 4.5 $0.00012 $0.00236

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

Security

Grade A, and why

autonomous-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 11d 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/autonomous-loops/SKILL.md · 226 lines

How it starts

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

Autonomous Loops

A catalog of architectures for running a coding agent repeatedly with little or no human intervention between iterations, from a simple scripted sequence of non-interactive invocations up to a full RFC-driven multi-agent DAG. Pick the simplest pattern that fits the task — most autonomous work needs pattern 1 or 2, not the most sophisticated one on this list.

Pattern spectrum

Pattern Complexity Best for
Sequential pipeline Low Scripted daily-dev steps with a known order
Persistent session loop Low Interactive, session-aware iteration
Parallel generation loop Medium Many independent variations of one spec
Iterative PR loop Medium Multi-day projects with CI as the gate
De-sloppify pass Add-on Cleanup after any implementation step
RFC-driven multi-agent DAG High Large features, many interdependent units, real merge risk

1. Sequential pipeline

The simplest loop: a script that invokes the agent non-interactively, one focused step at a time, each building on the filesystem state the previous step left behind.

#!/bin/bash
set -e

# 1. Implement, TDD
claude -p "Read docs/auth-spec.md. Implement OAuth2 login in internal/auth/. Write tests first."

# 2. Cleanup pass (see De-sloppify below) — separate context, separate concern
claude -p "Review files changed by the last commit. Remove tests that verify language/framework behavior rather than business logic. Keep real logic tests. Run go test ./... after."

# 3. Verify
claude -p "Run go build, go vet, and go test ./... . Fix any failures. Do not add new features."

# 4. Commit
claude -p "Create a conventional commit for the staged changes."

Design principles:

  • Each step is isolated. A fresh invocation per step means no context bleed from an earlier, now-irrelevant step.
  • Order matters and is explicit. The script is the source of truth for sequencing, not the model's judgment about what to do next.
  • Avoid negative instructions in the implementer step ("don't write pointless tests") — telling a model what not to do inside a step that also has to do a lot of positive work makes it hesitant across the board. Add a separate cleanup step instead (see below).
  • Exit codes propagate. set -e stops the pipeline on the first failure rather than compounding it into the next step.

Read the full file on GitHub · 226 lines

Files

What ships with it

2 files 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. 11d ago First seen · 226 lines · 115 tokens per session scan A e43923594a98

Subscribe to this mod's changes

autonomous-loops is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 13d ago), licensed Apache-2.0. It adds 115 tokens to every session and 2,359 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.