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.
TypeScript agentic-aiai-agentsai-codinganthropicautomationclaudeclaude-codecodexcoding-agentsdevops-automationdevtoolsgithub-actionsgrokllmloop-engineeringmcpprompt-engineering
CI Sweeper — Opencode Starter
Clone-and-run scaffold for the CI Sweeper pattern with opencode. React to failing CI with minimal fixes at short cadences.
Quick Start
npx @cobusgreyling/loop-init . --pattern ci-sweeper --tool opencode
Or copy manually:
cp -r starters/ci-sweeper-opencode/skills .
cp starters/ci-sweeper-opencode/AGENTS.md .
cp starters/ci-sweeper-opencode/LOOP.md .
cp starters/ci-sweeper-opencode/ci-sweeper-state.md.example ci-sweeper-state.md
cp starters/ci-sweeper-opencode/opencode.json.example opencode.json
Start (L2 cautious — CI sweeper is action-oriented from week one):
opencode run \
"Run skills/ci-triage/SKILL.md. Classify each failing check. For clear single-file regressions, create a worktree and apply a minimal fix with verifier. Run loop-gate check before commit. Update ci-sweeper-state.md. Infra and security failures: escalate." \
--title "CI sweeper"
What's Included
| File | Purpose |
|---|---|
ci-sweeper-state.md.example |
State spine (in-flight CI failures) |
skills/ci-triage/SKILL.md |
CI-focused triage skill |
AGENTS.md |
Always-on safety rules |
LOOP.md |
Cadence, gates, budget |
opencode.json.example |
Named agent definitions |