# Repository Briefing: cobusgreyling/loop-engineering
> Source: https://repoforai.com/repo/cobusgreyling/loop-engineering (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/cobusgreyling/loop-engineering
- **Official Docs / Website**: https://cobusgreyling.github.io/loop-engineering/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 21/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v1.6.0 (2026-07-20) — https://github.com/cobusgreyling/loop-engineering/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 11,871 ★ total (+6 24h / +28 7d) · 1,585 forks
- **Topics**: `agentic-ai`, `ai-agents`, `ai-coding`, `anthropic`, `automation`, `claude`, `claude-code`, `codex`, `coding-agents`, `devops-automation`, `devtools`, `github-actions`
- **When to Use**: Best for: Teams operating recurring repository triage, PR monitoring, or maintenance jobs that want versioned workflow patterns, explicit verification, and a report-first rollout. Skip if: You only need a one-off coding session or a deterministic CI job, or your primary requirement is a managed agent execution service rather than a toolkit you operate.

## Overview
```text
### Architecture & Core Mechanics
Loop Engineering is a TypeScript, npm-distributed toolkit for designing recurring coding-agent workflows around a Git repository. `patterns/registry.yaml` indexes the workflow designs, and the unified `loop` CLI exposes `init`, `doctor`, and `cost`. The operating cycle discovers work, hands it to a selected coding agent, verifies the result, and persists state for later runs. `STATE.md` is one state artifact, not a requirement for every starter.

Most customization happens in versioned repository files and the selected agent and verifier, rather than in a central service. The tree includes `.claude-plugin/` and `skills/`, and `package.json` lists `test:mcp-server`. These establish a Claude plugin surface and an MCP server test target, but not the MCP transport, published tool schema, or deployment topology. The CLI is the concrete starting point; do not assume an MCP service is required.

### Key Capabilities & Differentiators
`loop init` targets Claude, Grok, Codex, or OpenCode through `--tool`, with Claude as the default. These are tooling targets, not a verified list of model versions or a guarantee of feature parity. Patterns cover daily and issue triage, PR monitoring, CI and dependency maintenance, changelog drafting, and post-merge cleanup. The refactor path organizes implementation work into small PRs rather than treating a large change as one agent run.

`loop doctor` checks readiness, and `loop cost` estimates token cost by pattern and rollout level. Cadence matters: Daily Triage runs every two hours to once a day and is rated low cost; CI Sweeper runs every 5–15 minutes and is rated very high. Loop Ready weights recent runs more heavily than files on disk, so a stale `STATE.md` is not enough to establish readiness for L3 unattended operation.

### Trade-offs & Limitations
Compared with a hand-written GitHub Actions workflow, Loop Engineering adds reusable job patterns, readiness checks, and cost estimation without replacing your choice of agent or verifier. That helps when several repositories need the same operating discipline. For one deterministic maintenance task, a workflow and script are usually easier to maintain. For a one-off refactor, a direct agent session avoids the overhead of scheduling and persistent state.

The framework cannot determine whether your verifier catches the failures that matter. Keep week one report-only and increase autonomy only after a week of correct verification. Treat `loop-gate` as a path policy, not as process isolation or proof that a change is safe. Frequent runs can also turn modest per-run token usage into substantial spend; validate estimates against actual runs before moving to short polling intervals.

### Hardware & Deployment Guide
Start from a Git checkout with a Node.js/npm environment that supports `npx`. Run `npx @cobusgreyling/loop init . --pattern daily-triage --tool claude`, then `npx @cobusgreyling/loop doctor .`; `npx @cobusgreyling/loop cost --pattern daily-triage --level L1` provides a pre-schedule estimate. No container, database, CUDA, or minimum Node.js version is specified for this path. Agent installation, credentials, network access, and offline operation depend on the tool and backend you choose. The thin GitHub Actions starter is an alternative to a persistent `STATE.md` workflow.

v1.5.0 added three tools and showed direct invocation of the standalone `loop-init` package. v1.6.0 adds optional Foundry scaffolding: `loop-init --with-foundry` generates the loop and a versioned `.foundry/stack.yaml`, while `loop-audit` 1.7 scores Harness Runtime. It also introduces the `loop-gate` path denylist. None of these additions is necessary for the first report-only run.
```

## Key Capabilities
```text
- Scaffolding: `loop init` selects a repository pattern and targets `claude`, `grok`, `codex`, or `opencode`; Claude is the default.
- Readiness: `loop doctor` checks the loop, and Loop Ready gives recent runs more weight than files on disk.
- Rollout: L1 reports, L2 assists, and L3 runs unattended; verify results for a week before increasing autonomy.
- Scheduling and cost: Daily Triage runs every two hours to daily, while PR Babysitter runs every 5–15 minutes and is rated high cost.
- CI footprint: `starters/thin-loop/` supports event-driven and daily GitHub Actions snapshots without requiring `STATE.md`.
- Runtime controls: v1.6.0 adds Foundry stack scaffolding at `.foundry/stack.yaml` and a mechanical path denylist in `loop-gate`.
```

## Quick Start / Clone
```bash
npx @cobusgreyling/loop init . --pattern daily-triage --tool claude
npx @cobusgreyling/loop doctor .
```
