Scripts and cron
The job is exact: back up, rotate, sync. No judgment, no model. Keep it a script; caffeine would only add a step around it.
honest comparison
You already have cron, CI and maybe an agent framework. caffeine doesn't replace them: it's for the chores that need a bit of judgment, run unattended, and must be checked before anyone trusts them.
// side by side
| scripts + cron | CI workflows | agent frameworks | caffeine | |
|---|---|---|---|---|
| judgment calls | no | no | yes | yes, only in agent steps |
| deterministic checks | yes | yes | you build them | verify: on every step |
| runs on many repos | a loop you write | a copy per repo | you build it | --all, one file |
| cost when idle | $0 | runner minutes | tokens per call | $0: free gates first |
| model escalation | n/a | n/a | you build it | model: [cheap, smart] |
| tool allowlist + guard | n/a | permissions | varies | per step, enforced |
| human approval | no | reviews, environments | you build it | inbox + approve |
| where it runs | anywhere | their runners | anywhere | your machine, a container, a pod |
| what you write | shell | YAML + scripts | code | YAML + prompts |
// when to pick what
The job is exact: back up, rotate, sync. No judgment, no model. Keep it a script; caffeine would only add a step around it.
The job reacts to a push or a pull request and must gate a merge. caffeine runs on a schedule or on demand, and opens the pull request your CI then checks.
You're building a product around an agent: chat, memory, custom tools. caffeine is not a library; it runs existing agents as steps.
The same chore on many repos or folders, with a part that needs judgment, run without you watching, and checked by commands before it reaches you.