cobusgreyling/loop-engineering
A TypeScript CLI toolkit for repeatable, verifiable coding-agent workflows
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
loop init selects a repository pattern and targets claude, grok, codex, or opencode; Claude is the default.loop doctor checks the loop, and Loop Ready gives recent runs more weight than files on disk.starters/thin-loop/ supports event-driven and daily GitHub Actions snapshots without requiring STATE.md..foundry/stack.yaml and a mechanical path denylist in loop-gate.Teams operating recurring repository triage, PR monitoring, or maintenance jobs that want versioned workflow patterns, explicit verification, and a report-first rollout.
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.
Quick Start & Installation
npx @cobusgreyling/loop init . --pattern daily-triage --tool claude npx @cobusgreyling/loop doctor .
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| loop-engineering ★ | 11.9k | +28 | TypeScript | MIT | A TypeScript CLI toolkit for repeatable, verifiable coding-agent workflows |
| headroom | 81.5k | +469 | Python | Apache-2.0 | Local context compression for LLMs via a Python library, proxy, and MCP server |
| herdr | 54.2k | +916 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| archify | 103.1k | +2k | JavaScript | Apache-2.0 | Agent skill and Node CLI for source-backed, interactive architecture diagrams. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/cobusgreyling/loop-engineering.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about loop-engineering
How do I integrate Loop Engineering with an existing repository?
npx @cobusgreyling/loop init . --pattern daily-triage --tool claude to scaffold the loop, then npx @cobusgreyling/loop doctor . to check readiness. The generated loop design organizes work discovery, agent handoff, verification, and state persistence. If you only need a GitHub Actions snapshot, the thin starter does not require STATE.md.Do I need a GPU, and what drives runtime cost?
loop cost estimates.Can we use it commercially and run it on our own infrastructure?
Why use this instead of a custom GitHub Actions workflow or a coding agent alone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy