Cloudflare Cost Guard: a read-only agent skill for runaway-billing audits
Layer Cache’s open-source agent skill, announced by Domenico (@purposelyblnk), audits a Cloudflare codebase from source alone for paths that can run up uncontrolled billable usage, and reports findings without changing code or calling Cloudflare.
- Products
- WorkersDurable ObjectsQueuesD1
- Source
- Community resourceGitHub repository
- Author
- Layer Cache / Domenico (@purposelyblnk)
Key points
- SKILL.md frames the audit around Workers Paid, where the monthly subscription is a minimum charge rather than a spending limit. It runs read-only from source code, needs no Cloudflare credentials, and forbids deploying, running project scripts, triggering crons, alarms or queues, or opening secret files.
- It inventories bindings, triggers and public hostnames (including workers.dev and preview URLs, which zone WAF and rate-limiting rules do not cover) plus every table or key prefix the code writes, then traces each lead from handler to billable operation and classifies it as autonomous, externally drivable or credential-gated.
- Patterns it looks for include self-rescheduling Durable Object alarms, queue re-enqueue loops, recursive Worker fetches, unbounded retries, D1/KV/R2 write amplification, hot queries over growing data, and repeating jobs that never save their progress. Only autonomous and unbounded paths start at Critical.
- Exposure is stated as operation counts times a documented rate, with the rate’s source and date; the skill never adds these into a predicted invoice. Its dashboard checklist says budget alerts and usage notifications only send email and do not stop usage, and that Workers Paid has no hard spending cap.
Original sources
Last updated
Cloudflare Cost Guard: a read-only agent skill for runaway-billing audits
Open original sourceLayer Cache’s open-source agent skill, announced by Domenico (@purposelyblnk), audits a Cloudflare codebase from source alone for paths that can run up uncontrolled billable usage, and reports findings without changing code or calling Cloudflare.
The author writes that the $5 plan has no spending caps and lists patterns he found in public runaway-bill reports: Durable Object alarms scheduled on Date.now(), queue workers calling themselves and creating new jobs, and cron jobs that never save progress and rewrite the same rows; he built the cost guard skill in response.
Read on 𝕏Domenico
@purposelyblnk · Original 𝕏 post
600 alarms a second from a line of code Cloudflare $5 plan is undisputable value, but it has no spending caps right now. I went through public reports of runaway bills and found some patterns > Durable Object alarms scheduling their next run on https://t.co/IBLcQv6OHL > Queue workers calling themselves which creates a new job instead > Cron jobs which never save their progress, so every run writes the same rows again Cloudflare made this right, but you’re one deploy away from vibe bankruptcy. I’m building on Cloudflare, so I decided to make a cost guard skill to help prevent a nightmare. Link below 👇 Which one is going to get you?
In the follow-up reply the author posts the skill’s skills.sh listing link.
Read on 𝕏Domenico
@purposelyblnk · Original 𝕏 post
Check yourself before you wreck yourself https://t.co/iNC3fPYe0X
More to read
Overseas BabyChang: One domain to master the Cloudflare free stack; the quota table and the six pitfall tables could not be embedded in the body, so the article is not marked complete
On 2026-11-24, X user @Thuweni1 (Overseas BabyChang) posted a short post and attached the article “Master Cloudflare with One Domain: Freely Set Up a Website, Mailbox, Image Host, and AI API.” The short post says one domain plus the free plan can set up a website, a domain mailbox, an R2 image host, and a free AI API, and that the account is handed to an Agent to manage with the cf command line. The article plain_text stops at the heading “Quick reference: free quotas and the most common pitfalls.” Code blocks such as the quota table and the six pitfall tables are in article.entities.code; because they have no position in the body, they have been archived as unplacedBlocks, and the article cannot be marked complete. The author states that quotas follow Cloudflare’s official documentation and may be adjusted later.
opsfork: a MeloTTS retry loop produced a $391.50 Workers AI charge; a waiver was requested.
Cloudflare Community user opsfork (newsfork.com) asks for a full waiver of a $391.50 Workers AI charge for the billing period October 21 – November 20, 2026. The author says normal Workers AI spend is about $1–2 per day, but an unexpected incident involving the @cf/myshell-ai/melotts model sharply increased billable usage, mainly on November 18–19. According to the author, MeloTTS was scheduled for deprecation on November 20, 2026, yet repeated model failures began around November 17, before that date; those failures triggered a queue retry mechanism, and a defect in the author’s retry implementation amplified the failures, producing about 3.3 million queued messages. The author says almost all affected inference requests were failed or redundant retries of the same few video rendering jobs and produced no usable output. The author acknowledges responsibility for the retry defect, says the loop has been stopped, and lists safeguards already added, including retry limits, exponential backoff, a circuit breaker, and removal of MeloTTS. Requested resolution includes investigating the pre-deprecation failures, excluding the abnormal usage, waiving the amount attributable to the incident or issuing an equivalent one-time account credit, and a revised invoice; the author is willing to pay legitimate normal-usage charges. A formal billing adjustment request was submitted as Billing Support Case #02445560. Community MVP sjr replied that the author needs to work through the billing ticket and that the Community cannot help with billing issues. There is no Cloudflare staff reply on the public thread.
aobane_tsumugu: with Durable Object-managed Containers, lowering memory can still raise cost if an older CPU generation is assigned
On 2026-11-24, @aobane_tsumugu (青羽つむぐ) wrote that Cloudflare Containers are billed on CPU, memory, and disk usage time. The author said that besides the preset “scheduler-backed application” combination, a “Durable Object-managed application” option that lets the user choose the instance size was released on September 30, and that in theory cutting memory from 3 GB to 1 GB would cut the memory portion of the cost to one third. The author also said that, in their observations, Durable Object-managed containers tend to be assigned older-generation host CPUs, making the same work 1.1–3.6 times slower; the extra CPU-seconds can outweigh the memory saving, so cost can rise instead. The author described this as their impression as of late November 2026, not an official statement. The visible post and the note_tweet text are the same complete body.