Claude Code usage
Loop Engineering
Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.
Install
/plugin marketplace add cobusgreyling/loop-engineeringFound in the project README. Check it for setup steps after installing.
git clone https://github.com/cobusgreyling/loop-engineering.gitFrom the README
Loop Engineering Stop prompting. Design the loop. Get a score. Start in 5 minutes · Quickstart · What do you want to do? · Refactor path · 中文 · Pattern picker --tool defaults to claude if you omit it. Swap for grok, codex, or opencode. Week one is report-only. You design a system that discovers work, hands it to agents, verifies results, and persists state — instead of typing the next prompt yourself. New here? Quickstart · Refactor a project · Thin GitHub Action loop (no STATE.md required) What do you want to do? This is a pattern library for operating agents around a codebase. It is not a “rewrite the module” button. Full jobs table: docs/jobs.md. Patterns Interactive picker: showcase. Index: patterns/registry.yaml. Getting started Empty repo → first STATE.md walkthrough: scripts/empty-to-state-demo.sh. Roll out L1 report → L2 assisted → L3 unattended only after the verifier has been right for a week. See loop-design-checklist. Loop Ready now weights recent runs harder than files on disk. A 30-day-old STATE.md is not L3. Examples by tool Claude Code (including the plugin) · Grok · Codex · OpenClaw · Opencode · GitHub Actions Operating & safety Failure modes · Anti-patterns · Safety · Operating loops · Stories (wins and failures) Loop engineering amplifies judgment. Token costs can explode. Unattended loops make unattended mistakes. Read what the loop ships. Help wanted Docs and small PRs: first response within 48 hours. - Add your project to adopters - Share a story (failures first-class) - Live good first issue list - Show your loop · Ask anything See CONTRIBUTING.md. CLI packages and companion repos (optional — not required for week one) Unified front door: npx @cobusgreyling/loop (init · doctor · status · audit · cost). Older…
Details
- Repository
- cobusgreyling/loop-engineering
- Language
- TypeScript
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- agentic-aiai-agentsai-codinganthropicautomationclaudeclaude-codecodexcoding-agentsdevops-automationdevtoolsgithub-actions
FAQ
What is Loop Engineering?
Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost. It is a usage for Claude Code, from cobusgreyling/loop-engineering on GitHub.
How do I install Loop Engineering?
Run /plugin marketplace add cobusgreyling/loop-engineering inside Claude Code, then follow the setup in the README.
Is Loop Engineering popular?
cobusgreyling/loop-engineering has 11,687 GitHub stars and 1,576 forks. It was last updated on 3 November 2026.
More usage & cost trackers
cost-xray
5.8ktigerless-labs/cost-xray
Shows what Claude Code sends to the API and what each part of the request costs.
Failproofai
7.8kFailproofAI/failproofai
Observability and enforcement for AI agent harnesses. Capture every run and runtime reliability with policy enforcement.
CodeBurn
12kgetagentseal/codeburn
Local tool that tracks token usage and cost across Claude Code and dozens of other coding agents.
abtop
3.8kgraykode/abtop
htop-style terminal monitor for Claude Code and Codex sessions, tokens, context window and rate limits.
ccusage
19kccusage/ccusage
CLI that analyses Claude Code's local JSONL logs to report token usage and cost by day, month and session.
Token Monitor
3.5kJavis603/token-monitor
Desktop widget tracking token usage, cost and limits across Claude Code and other AI coding tools.
Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.