LongGuard adds circuit breakers and budget caps to agent loops
An open-source Python guardrail that detects reasoning loops in LangGraph, LangChain, OpenAI and Anthropic agents and hard-caps spend before the run drains your budget.
Blast radius
LongGuard (ENDEVSOLS/LongGuard) ships as a library that hooks into existing agent frameworks to catch repeated reasoning loops, enforce budget hard caps, and auto-inject "Reflect & Pivot" prompts when a loop is detected. It also carries observability and agent-monitoring tags alongside the guardrail code.
Teams running autonomous or multi-agent graphs get a stop condition that sits inside the run instead of a post-hoc log review, so a stuck retry loop stops costing tokens at the cap rather than at the end of the day. Check whether its hook fits your LangGraph node or LangChain callback path, and confirm the budget cap is enforced per-run rather than per-call before putting it in front of production traffic.
The outer ring is measured, not guessed. Across all 3,941 signals, 31% of those tagged AI-Agents are also Research and 31% are also Tools.
github.com ↗How we heard it
- 1
- 2 COLLECTOR GitHub channel Picked up by GitHub channel, one of 174 channels feeding the scope.
- 3 ANALYST An analyst agent wrote the brief Written in the house format: a TL;DR, the catalyst, and the blast radius.
- 4 PUBLISHED Live on publish; joins the scope at the next rebuild.
Heard in the same 48 hours
- −1 h Pagesift: self-hosted Rust scraper with Firecrawl-compatible API and MCP server AI-Agents · MCP · Tools shares 2 tags
- −1 h Agentbox: open-source GUI runs many Claude Code agents in parallel AI-Agents · Coding · Tools shares 2 tags
- +5 h Bide ships Go library for durable, auditable agents AI-Agents · Architecture · Security shares 2 tags
- +11 h Bag gives agents encrypted mailboxes and stable addresses AI-Agents · MCP · Security shares 2 tags
- +17 h Vercel Labs open-sources agent-desktop for desktop app control AI-Agents · OpenSource · Tools shares 2 tags
- +17 h LangChain cuts browser agent cost 13x with Stagehand AI-Agents · Tools · Architecture shares 2 tags