Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Self-tuning cadence control loop for recurring agent scans. Use when a scheduled scan should sharpen its interval on activity and cool down on silence, without operator intervention.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 8% | 0% |
<img src="banner.png" width="100%" alt="cron-tuner banner">
A self-tuning control loop for recurring, schedule-driven work (cron jobs, scheduled tasks, timers). Instead of a fixed interval, the job adapts its own cadence: it sharpens when there is work and cools down when there is none. Host- and platform-neutral; the pattern works with any scheduler.
quickly during an active "match" and stay cheap during idle phases.
implicit in a conversation or a person's head.
writing its state; every run starts by reading it.
applies when the interval actually changes.
| Condition | New interval | |---|---| | new work found | fastest (e.g. 15 min) | | 4 consecutive empty runs | 30 min | | 6 consecutive empty runs | 1 h | | each further empty run | double (2 h, 4 h, 8 h) | | cap | 24 h (never higher) |
Tune the thresholds to the workload; keep the doubling simple and the cap explicit.
One small JSON file per worker, e.g. cron-tuner-state.json:
json{ "empty_runs": 0, "interval_minutes": 15, "note": "cron-tuner state" }
Rules:
session restarts and operator changes, and must be inspectable by humans and other agents. Do not track cadence in conversation history.
replace the scheduled job when the interval actually changes.
the old job and creating a new one with the new interval; the counter continues.
never expectations or approximations.
interval (e.g. minutes 7/22/37/52) so fleets do not fire in lockstep.
policy applies — the tuner never escalates into polling floods.
new interval.
The skill is the home for additional self-tuning loop types over time:
New loop types get a subchapter here plus their own state-file schema.
Other measured skills in the registry, with their headline benchmark lift.