What problem does it solve?
ck:loop helps you improve a measurable metric through repeated, controlled experiments with automatic commit/rollback so you can move toward better results without manually tracking every try.
Core Features & Use Cases
- Autonomous iterative optimization: Runs up to N iterations, generating one focused change per iteration, verifying improvement, and deciding keep vs discard.
- Git-history based safety: Commits before verification and uses reverts to roll back regressions while preserving experiment history for pattern learning.
- Guarded quality regression checks: Supports a separate Guard command to ensure the optimization doesn’t break unrelated correctness (if Guard fails, it reverts and reworks).
- Results logging for trend analysis: Appends iteration outcomes to loop-results.tsv to track progress, delta, keep/discard status, and explanations.
Quick Start
Run ck:loop with a Goal, a file Scope glob, and a Verify command that prints exactly one numeric value so it can iteratively improve that metric.