How to set a CI budget for coding agents A developer outlined a three-layer CI budget strategy for coding agents: per-job timeouts, concurrency groups that cancel superseded runs, and hard dollar stops. Using published GitHub numbers, the writeup shows a hung job without timeout-minutes can run 360 minutes and cost $2.16 on a 2-core Linux runner at $0.006/minute, versus $0.09 with a 15-minute timeout, and notes that GitHub's account or repository budgets cannot cap spend per agent task, a gap the Latchkey tool fills with per-task and per-batch dollar limits. A CI budget for coding agents needs three layers: a time limit on every job, a rule that cancels runs the agent already superseded, and a hard dollar stop that refuses new work once it is reached. GitHub gives you the first two in YAML and the third as an account or repository budget; Latchkey adds a budget on each piece of work, a batch, under a workspace spend limit. Each layer catches what the one above lets through. The GitHub dollar stop covers an account or repository; Latchkey adds one per piece of work. The expensive failure is rarely one big job. It is a cheap job repeated: a test the agent cannot fix, a hang it does not notice, a push per attempt that starts the full pipeline each time. Nobody is watching at 3 a.m., and an agent does not get bored. A worked example from published numbers shows the scale. A job with no timeout-minutes runs for up to 360 minutes; on a GitHub-hosted Linux 2-core runner at $0.006 per minute, one hung attempt costs $2.16. With timeout-minutes: 15 the same hang costs $0.09. Multiply either by the number of attempts in a night and the first layer has paid for itself. jobs.