Home/ Incident database/replit-agent-stuck-loop-2025-01
Service disruption Runaway loop verified

Replit Agent stuck in add/remove code loop, burning paid actions with zero progress

Replit (community forum) · Jan 25, 2025 · Coding agent

What happened

A January 25, 2025 Replit community forum thread (633 views, replies from ten users) described the agent/assistant getting 'stuck in a continuous loop of not being able to progress' - adding and removing the same code sections over and over with no outcome resolved. New chat windows did not break the cycle; workarounds involved manually pasting error logs back to the agent. On Replit's credit model, every iteration of that loop is a billable action.

Loss / impact
Jan 25
2025
Runaway
Failure mode
Coding
Agent type

Causal vector

Repeated failing build-fix cycles with no progress test, each cycle consuming paid agent actions

Source

Reported by Replit Community Forum - 'Replit agent getting stuck in a loop' (2025-01-25). Verified against the primary report.

Read the original report ↗

How a spend firewall would have helped

This is the shape every runaway record shares: repeated failing actions with nothing between them that can say 'stop'. A velocity limit on consecutive identical-failure actions ends the loop at attempt two or three, before the credits burn.

The six rule types that contain this class of failure

Per-transaction cap

Any single spend above your ceiling is BLOCKED before it moves.

Daily total

Cumulative spend across all agent calls, bounded per day.

Velocity limit

Stops runaway retry loops — the #1 cause of overnight losses.

Merchant allowlist

Only approved destinations can ever receive funds.

Category rules

Flag high-risk classes (crypto, infra, refunds) for review.

Approval threshold

Above a value, the action waits for a human.

Related incidents

Don't be the next entry

Every incident in this database is the result of trusting a prompt, a provider cap, or a human review cycle. sipi.bot replaces all three with one deterministic call. 75 documented failures, one control.