Blip
Releases·Tool Release

Dev builds TokenGuard, an open-source local proxy that circuit-breaks runaway LLM agent tool-retry loops

A developer open-sourced TokenGuard (v0.1.x), a local-first proxy that detects and cuts off recursive agent tool-call loops after an overnight LangChain agent burned nearly $30 in API calls retrying a nonexistent file. The proxy sits between code and the LLM provider, normalizes tool names and JSON arguments, and fail-closes after three identical errored calls. It targets a failure mode the author says is under-discussed compared to prompt injection.

1 engagement1 sourceTue, Oct 27, 2026, 05:23 PM
AI Overview
  • Author's LangChain agent burned ~$30 in API calls retrying a read_file call on a missing config file for hours
  • TokenGuard runs locally on 127.0.0.1:8080 as a drop-in proxy; cuts connections after 3 identical tool-call retries and returns a fail-closed error
  • Pure Python/FastAPI proxy normalizes tool JSON args and tracks request windows in-memory to catch recursive prompt spirals
  • Ships a Next.js dashboard with SSE log streaming and a kill switch; all data stays in local SQLite with zero external telemetry
  • v0.1.x repo is open source at github.com/Shvirlok/TokenGuard; author is collecting agent-loop edge cases for the test suite

Related

OpenRouter
Products·building

Local circuit breaker proxy to stop runaway agent retry loops

A lightweight local Python proxy (FastAPI + Uvicorn) that monitors LLM API call velocity and acts as a circuit breaker to halt runaway agent retry loops, preventing excessive token usage and cost. It addresses the problem of autonomous coding agents like Cline getting stuck in self-healing loops that burn through quotas.

1 engagement1 sourceThu, Jul 16, 2026, 08:40 PM
Releases·Tool Release

EnDevSols open-sources LongGuard, a circuit-breaker middleware that stops runaway LangGraph agent loops

Developers released an open-source Circuit Breaker for LangGraph that halts runaway agent loops before they drain API spend. Agents hitting ambiguous tool responses like 'Access Denied' currently repeat calls until a GraphRecursionError, burning tokens and losing conversation state. The tool targets production teams whose built-in recursion_limit acts only as a crash barrier.

10 engagement1 sourceMon, Sep 7, 2026, 01:01 PM
OpenAI
Products·launched

Reverse proxy that detects and kills LLM agent infinite retry loops

A lightweight reverse proxy that sits between an LLM client and OpenAI. It hashes incoming prompts in memory and, if the same prompt repeats three times in a row, cuts the connection with a 400 error instead of forwarding it. It targets developers whose agents get stuck in retry loops that burn API credits before billing alerts trigger.

2 engagement2 sourcesTue, Oct 6, 2026, 12:53 PM
Products·launched

Guardrail by NEAT - local proxy that enforces hard spend limits on LLM API usage by AI coding agents

Guardrail by NEAT is a low-latency local proxy that sits between AI coding agents (Claude Code, Codex, etc.) and LLM APIs to enforce hard spend limits. It was built after a runaway recursive loop burned the creator's startup API budget overnight. It targets developers who need real-time cost control, since provider dashboards report with delay.

9 engagement1 sourceFri, Sep 11, 2026, 12:17 PM
Reddit
Social·Community

Developer proposes TokenShield proxy middleware for detecting parameter-shifting agent loops

A developer describes a pattern for catching parameter-shifting loops in LLM agents, where queries change each iteration (e.g., 'confidential financial report' → 'financial report' → 'financials 2024') and exact payload hashes fail. They propose an out-of-band proxy gateway called TokenShield that tracks tool call patterns outside the agent's context window, avoiding the failure of in-prompt self-reflection.

9 engagement1 sourceWed, Jul 22, 2026, 08:02 PM