You can set up a loop in your project using the @cobusgreyling/loop CLI. The recommended workflow involves scaffolding with a specific pattern, running a health check, and then estimating costs or checking status.
- Scaffold and score: Initialize the loop with a pattern and a tool (e.g.,
grok). - Health check: Run
doctor to audit, sync, and get recommended actions. - Manage: Use
cost, badge, and status for ongoing monitoring. - Execute: Run the loop using your chosen tool's interface.
# 1. Scaffold + Loop Ready score
npx @cobusgreyling/loop init . --pattern daily-triage --tool grok
# 2. One health check
npx @cobusgreyling/loop doctor .
# 3. Optional: cost estimate / badge / day-2 dashboard
npx @cobusgreyling/loop cost --pattern daily-triage --level L1
npx @cobusgreyling/loop badge .
npx @cobusgreyling/loop status .
# 5. Start report-only (Grok example)
/loop 1d Run loop-triage. Update STATE.md. No auto-fix in week one.