autonomous-loops

autonomous-loops is a skill for Claude Code, Codex from pekral/cursor-rules. It costs 80 tokens per session (2,062 once invoked), scanned A, original, MIT.

A reference guide for running Claude Code, an AI coding assistant, through repeated or multi-agent work cycles. It describes sequential pipelines and larger task graphs using this project's existing checks and tools.

In plain words
What is it for?
Use it to design bounded autonomous workflows for issue resolution, code review, and other coding tasks that may need several agents or iterations.
Why use it?
It helps choose an appropriate level of automation and defines when an iteration must stop because of failing checks, conflicts, or unresolved review findings.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is worktree = git worktree add ../wt-<unit.id> -b feat/<unit.id>.

Good fit Use it to design bounded autonomous workflows for issue resolution, code review, and other coding tasks that may need several agents or iterations.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/pekral/cursor-rules
agentmods
npx agentmods add skills/pekral/cursor-rules/autonomous-loops

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 autonomous-loops

README.md
[![agentmods](https://agentmods.dev/badge/skills/pekral/cursor-rules/autonomous-loops/github.svg)](https://agentmods.dev/skills/pekral/cursor-rules/autonomous-loops)
Your own site
<a href="https://agentmods.dev/skills/pekral/cursor-rules/autonomous-loops"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/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/pekral/cursor-rules/autonomous-loops"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/autonomous-loops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,062 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.00080 $0.02062
Opus 5.5 $0.00032 $0.00825
Sonnet 5.5 $0.00016 $0.00412
Haiku 4.5 $0.00008 $0.00206

Measured 18d ago against content hash 27830b5d2f71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 18d 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 · 131 lines

How it starts

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

This is a reference skill. It does not run a loop itself — it helps you pick the right autonomous-loop architecture for a task and wire it to this project's existing skills, gates, and CLI tooling. Patterns are ordered simplest → most complex. Use the lightest one that fits.

Constraints

  • Apply @rules/git/general.mdc — never push to main, one logical change per commit, English commit messages, worktree/branch per work unit.
  • Apply @rules/code-review/general.mdc to every review stage in a loop — reviewers are read-only and must not be the same context that wrote the code.
  • composer build and composer skill-check are non-negotiable gates between iterations. An iteration that does not pass them is not "done" and must not advance the loop or merge.
  • Every loop needs an explicit stop condition (max iterations, no open work, or a documented blocker). Never run unbounded.
  • Stop on blockers, never force through them: merge conflict, failing CI, unresolved Critical/Moderate findings, or a gate failure ends the loop with a report.
  • Parallel multi-unit patterns (e.g. the DAG below) are an explicit opt-in: only when the user chooses parallel orchestration does each work unit run in its own git worktree so units cannot corrupt each other's tree. A single sequential loop never creates a worktree on its own — it works in the current tree per @rules/git/general.mdc Worktrees / Workspaces.
  • Do not expose sensitive/internal details in user-facing loop reports.

Use when

  • Deciding whether a task should run autonomously at all, and with which architecture.
  • Setting up a scripted or scheduled pipeline that chains this project's skills without a human between steps.
  • Running multiple independent work units in parallel and coordinating their merges.
  • You need context to survive across otherwise-independent iterations.

When NOT to run autonomously

  • The requirements are vague or the acceptance criteria are missing — autonomy multiplies hallucination. Resolve scope with a human first (see prepare-issue-context).
  • The change touches auth, payments, migrations on production data, or anything irreversible.
  • One focused edit a human could do faster than wiring a loop.
  • No reliable automated gate exists for the work (nothing for composer build / tests to verify).

Read the full file on GitHub · 131 lines

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. 18d ago Changed · -1 lines · -9 tokens per session 27830b5d2f71
  2. 1mo ago First seen · 132 lines · 89 tokens per session scan A 88c5a06d0842

Subscribe to this mod's changes

autonomous-loops is a skill published in the GitHub repository pekral/cursor-rules (11 stars, last pushed 19d ago), licensed MIT. It adds 80 tokens to every session and 2,062 once invoked, about $0.0003 per session on Opus 5.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

create-powergrid-plugin

Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.

Power-Components/livewire-powergrid · 31 tokens

Laravel Dusk Testing

Expert-level Laravel Dusk browser testing skill for PHP/Laravel applications. Covers Chrome-based E2E testing, browser assertions, Page Objects, component testing, authentication helpers, and database integration.

PramodDutta/qaskills · 44 tokens

laravel

Use when building or extending a Laravel 11/12 app — Eloquent models, migrations and relationships, routing with controllers and Form Requests, queues and background jobs, framework-native security (validation, mass-assignment, policies, signed URLs, rate limiting), and Pest/PHPUnit feature tests. NOT pure PHP…

ericrisco/rsc-harness · 76 tokens

owl-admin-app-dev

Use this skill when developing an application that installed slowlyo/owl-admin, especially backend CRUD, menus, permissions, controllers, services, routes, config/admin.php, app/Admin, helper functions, settings(), adminpages(), AdminPipeline, upload/file preview issues, route conflicts, custom login/menu examples, or…

slowlyo/owl-admin · 114 tokens

owl-admin-devtools-generator

A development guide for Owl Admin, a Laravel-based administration system, covering its code generator, API templates, relationships, and visual pages.

slowlyo/owl-admin · 82 tokens

owl-admin-amis-page

A reference skill for building Owl Admin pages with amis, a system for defining admin interfaces such as forms, tables, filters, and actions through schemas.

slowlyo/owl-admin · 84 tokens