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
Loop Configuration — PR Babysitter (Opencode)
Active Loops
| Pattern | Cadence | Status | Command |
|---|---|---|---|
| PR Babysitter | 10-15m | L1 report-only | opencode run "Run PR babysitter triage" --agent loop-triage via cron/systemd |
Human Gates
- No auto-fix until L2 checklist complete.
- Draft PRs by default; humans mark ready for review.
- Do not resolve review threads without approval.
- Security, auth, payments, infra changes: always human.
Worktrees
- One worktree per fix attempt; discard after verifier REJECT.
- Run implementer with
--dir <worktree>.
Budget
- Max sub-agent spawns per run: 0 (L1).
- Max 3 fix attempts per PR before handoff.
- Pause if token budget exceeded.
Links
- Pattern: pr-babysitter
- Example: examples/opencode/pr-babysitter.md
- Safety: docs/safety.md