---
slug: "loop-engineering"
name: "Loop Engineering"
effect: "CLI that scaffolds agent loops into a repo, scores their readiness and checks token cost"
category: "devtool"
tier: "rising"
url: "https://cobusgreyling.github.io/loop-engineering/"
github: "cobusgreyling/loop-engineering"
pricing: "open-source"
license: "MIT"
tags: ["agent-loops", "scaffolding", "audit", "cost", "cli"]
platforms: ["claude-code", "codex"]
install_kind: "cli"
date_added: "2026-10-18"
rank: 18
rising_score: 49
stars: 11573
star_velocity: 88.2
velocity_basis: "since creation"
created_at: "2026-06-09T06:28:20Z"
pushed_at: "2026-10-18T02:34:17Z"
signals_status: "ok"
signals_fetched_at: "2026-10-18T11:41:04.244Z"
page: "https://agenttooldrop.com/tools/loop-engineering"
---

# Loop Engineering

CLI that scaffolds agent loops into a repo, scores their readiness and checks token cost

Category: Devtools. Tier: new and rising, rank 18 by new and rising score (49 of 100). Pricing: Open source. License: MIT.

Platforms: claude-code, codex.

## Why you would want it

The unified npx CLI, @cobusgreyling/loop, has init, doctor, status, audit and cost commands. init scaffolds a chosen pattern such as daily-triage into a repo for Claude Code, Grok, Codex or opencode; the quickstart says it creates STATE.md, LOOP.md, loop-budget.md and loop-run-log.md and prints a Loop Ready score. The cost command checks the cost of a pattern at a given level and cadence before you schedule it. The repo also holds a library of patterns (Daily Triage, PR Babysitter, CI Sweeper and others) with docs on failure modes and safety.

## Best for

- Setting up a recurring agent loop in a repo
- Scoring loop readiness before going unattended
- Checking token cost before scheduling

## Use it when

You want recurring agent work such as issue triage, CI or dependency upkeep set up as a defined loop, starting in report-only mode for the first week.

## Skip it if

You want a one-off feature or refactor; the README calls this a pattern library, not a "rewrite the module" button. It scaffolds loops that run agents on a schedule, and the README warns that token costs can explode and unattended loops make unattended mistakes; it rates PR Babysitter cost High and CI Sweeper Very high. init writes files into your repo, and for Cursor, Windsurf and OpenClaw the quickstart says to copy the skills by hand.

## Editor note

Older per-tool packages (loop-init, loop-audit and others) stay supported, and companion repos are listed in the README. Grok and opencode are also supported by init but are not in the platform list.

## Install

Scaffold a loop with npx:

```sh
npx @cobusgreyling/loop init . --pattern daily-triage --tool claude
npx @cobusgreyling/loop doctor .
npx @cobusgreyling/loop cost --pattern daily-triage --level L1
```

Source: https://github.com/cobusgreyling/loop-engineering#getting-started

## Live signals

Fetched 2026-10-18T11:41:04.244Z (status: ok).

- Repository: cobusgreyling/loop-engineering
- Repository created: 2026-06-09
- Stars: 11,573 (GitHub's count; it cannot be authenticated)
- Stars per day, since repo creation: 88.2 (an average over the repo's life, not a growth rate)
- Forks: 1,678
- Open issues and PRs: 13
- License (GitHub): MIT
- Last push: 2026-10-18
- Latest release: v1.6.0 (2026-07-20)

## Links

- Website: https://cobusgreyling.github.io/loop-engineering/
- GitHub: https://github.com/cobusgreyling/loop-engineering
- Install instructions verified at: https://github.com/cobusgreyling/loop-engineering#getting-started
- Source for this entry: https://github.com/cobusgreyling/loop-engineering#readme
- AgentToolDrop page: https://agenttooldrop.com/tools/loop-engineering
- Full catalog (JSON): https://agenttooldrop.com/tools.json
