Agentuna Agentuna
Build an agent

Real example · Automation & AI agents

Stopped an n8n AI agent from burning $63 across 800 overnight retry loops with a state-hash circuit breaker

Done withn8n
Free tier From $24/mo

What they did

An n8n builder reported an AI agent workflow hitting a failed HTTP request overnight and looping back through the LLM node 800 times to ask whether it should retry, burning $63 in OpenAI API credits on a $5 workflow (mirroring an r/AI_Agents incident where an unthrottled agent loop fired 50,000 database API calls in one hour).

How it went

Adding a Code node that hashes the execution state and compares it against the last 5 runs — routing any match (>90% argument similarity or identical state hash) to a Stop node and Slack alert after 3 attempts with exponential backoff — eliminated surprise overnight API bills.

Worth knowing

Self-reported production post-mortems on Reddit; state hashing catches identical retry loops, but agencies running multi-tenant workflows also pair it with per-client API proxy keys and hard 5-minute wall-clock timeouts.

Try it yourself with n8n

Replace anything in [brackets] with your details.

Prompt to paste
Write an n8n Code node in JavaScript that hashes the current tool name, target URL and normalized JSON arguments, checks workflow staticData for the last 5 execution hashes, and returns { halt: true, reason: "duplicate_state_loop" } if the same hash appears 3 times within 10 minutes.

Read the original

my n8n AI agent burned $63 in API credits retrying the same failed node 800 times overnight (r/n8n) ↗
reddit.com · · Reddit thread

Attributed to the source linked below; not our own test.

Share Share on WhatsApp

n8n

Blocked duplicate n8n webhook retry executions with $getWorkflowStaticData('global') after a 50-turn overnight PR agent loop

On October 28, 2026, @Aryan_Ali_Pro reported an autonomous author agent and reviewer agent getting stuck bouncing a GitHub PR back and forth 50+ times overnight, while @wrenbench shared a zero-database n8n Code-node pattern to stop webhook retries from triggering duplicate AI agent runs.

@wrenbench & @Aryan_Ali_Pro on X · x.com · · 2 independent reports

Browser Use

Attached Browser Harness directly to a signed-in local Chrome session to bypass Cloudflare Turnstile and $5/GB proxy burn

Developers (@noserverneeded, @ReignSwords, @jialiwanai) reported cloud browser agents failing on login walls, 2FA, and Cloudflare Turnstile challenges or burning $5/GB on residential proxies; on October 28, 2026, Browser Use cofounder @mamagnus00 demonstrated Browser Harness connecting directly to a user's existing local Chrome session.

Magnus Müller (@mamagnus00, Browser Use cofounder) & @ReignSwords on X · x.com · · 4 independent reports

Strawberry

Used Strawberry 1.0 browser companions to compile lead tables and fill multi-tab web forms

Strawberry 1.0 ships a dedicated AI agent browser where specialized companions work alongside the user's active logged-in tabs to gather structured tables from directory listings, cross-check company pages and pre-fill CRM web forms while pausing at human approval gates before submitting.

Strawberry 1.0 launch note · strawberrybrowser.com ·

Hermes Agent

Ran Hermes Agent and OpenClaw side by side, and kept Hermes

Dhawal Shah runs two self-hosted agents on rented Hetzner servers: 'Nora' on Hermes Agent as a daily chief of staff, and 'Alex' on OpenClaw as a weekly manager for personal projects, such as building an n8n workflow. Both use a mix of Codex, Claude and DeepSeek models.

Dhawal Shah (founder, 2Stallions) · dhawalshah.net ·

OpenClaw

Ran OpenClaw on a personal server and left a port open to attackers

Hacene Zerrouk keeps a personal VPS for experiments. There, OpenClaw, linked to Telegram, set up new tools for him from their documentation inside Docker. When his hosting company sent a security warning with a deadline to fix it, he first suspected the JobSpy project, then had Google Antigravity inspect the server. It found an open port used by Ollama.

Hacene Zerrouk (YouTube) · youtube.com ·

Google Antigravity

Had Google Antigravity cut the silences from a video and hand back a Premiere timeline

Abdellatif Said put a 17-minute raw recording (camera and screen files plus cleaned-up audio) in a project folder. He set Antigravity to Turbo mode with broad permissions, picked a Gemini model and gave it a prompt to find silences and filler, cut them, and write an XML file that Adobe Premiere Pro opens as a rough cut.

Abdellatif Said (YouTube) · youtube.com ·