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
AGENTS.md — Opencode Minimal Loop
These rules are loaded by opencode before loop work.
Loop Mode
- Start in L1 report-only mode.
- Read
STATE.mdbefore any triage. - Update
STATE.mdafter every loop run. - Do not edit source code until the human explicitly enables L2.
Safety
- Never push or merge without human approval.
- Never edit
.env,.env.*,auth/,payments/,secrets/, orcredentials/. - Use a git worktree for every code-changing attempt.
- Max 3 fix attempts per item; escalate after that.
Verification
- For L2+ changes, dispatch a verifier sub-agent after implementation.
- Run the project's documented tests before proposing a fix.
- Record test evidence in
STATE.md.