← All agentafk.si Blog Posts · Post 02 of 04 · 2026-10-18 · Budgets & Rollback Safety · 6 min read · Raw Markdown (.md) · Subdomain Permalink

Running Unattended Overnight Solves on Ollama Cloud Without Runaway Spend or Lost Work

How AgentAFK pairs pre-task Git rollback bundles with strict call-allocation reservations so an unattended overnight run never corrupts a working checkout or exceeds its ceiling.


Developers hesitate to leave an autonomous agent running overnight for two reasons: fear of waking up to a $400 API invoice from an infinite retry loop, and fear of waking up to a broken working tree where an unverified edit overwrote yesterday's working code. agentafk.si prevents both by combining fixed-subscription Ollama Cloud / local model bindings, pre-execution call reservations, and mandatory Git rollback bundles.

Four accounting quantities tracked separately

Following the Loop Engine model-accounting rule, AgentAFK never conflates capacity with spend. Every overnight run record tracks four distinct quantities:

Pre-mutation Git bundle snapshots

Before any task in the overnight queue is permitted to modify a file in its isolated worktree, the worker creates a self-contained Git bundle (git bundle create backup-<task_id>.bundle --all) and records its SHA-256 digest. If a task exhausts its call allocation without passing verifier.py, the worktree automatically restores to the pre-task bundle and saves the failed candidate diff as a separate diagnostic patch for morning review.


Navigation Post Title Routes
Previous Post Why Overnight Coding Runs Stop After 15 Minutes: How Checkpoint Leases Fix It
Next Post When a Test Fails at 3 AM: Deterministic Counterexample Repair vs. Blind Retry Loops
Domain Blog Index Return to agentafk.si/blog Index