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
Minimal Loop Starter — Opencode
Clone this into your project root to run a report-only daily triage loop (L1 readiness) with opencode.
Quick Start
Scaffold (recommended):
npx @cobusgreyling/loop-init . --pattern daily-triage --tool opencodeOr copy manually:
cp -r starters/minimal-loop-opencode/skills . cp starters/minimal-loop-opencode/AGENTS.md . cp starters/minimal-loop-opencode/LOOP.md . cp starters/minimal-loop-opencode/STATE.md.example STATE.md cp starters/minimal-loop-opencode/opencode.json.example opencode.jsonCustomize
STATE.mdproject name.Start the loop:
opencode run "Run loop-triage. Read STATE.md first. Append high-priority and watch items. Update Last run timestamp. Do not auto-fix anything in week one." --agent loop-triageRead
STATE.mdeach morning for 1-2 weeks. Tune the triage skill.When triage quality is good, add
minimal-fixfromtemplates/SKILL.md.minimal-fixand enable small auto-wins with a verifier agent in a worktree.
What's Included
| File | Purpose |
|---|---|
STATE.md.example |
State spine template |
skills/loop-triage/SKILL.md |
Triage skill |
AGENTS.md |
Always-on project rules for opencode |
LOOP.md |
Loop config doc for your team |
opencode.json.example |
Example opencode agent definitions |
Next Steps
- Loop Design Checklist
- Daily Triage pattern
- Opencode example
- Run
npx @cobusgreyling/loop-audit .for readiness score