Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Loop Detection Python Packages

Python packages with the GitHub topic loop-detection. Sorted by monthly downloads, with stars and forks.
ENDEVSOLS
longguard

In-flight circuit breaker & loop recovery for LangGraph, LangChain, OpenAI & Anthropic agents. Catches reasoning loops, prevents runaway LLM costs with budget hard caps, and auto-injects Reflect & Pivot prompts.

4K 8 1
XJTLUmedia
protect-context

keeps the rules, decisions, and proof-of-work an agent needs in front of it

2K 2 0
bmdhodl
agentguard47

Python runtime checks for AI agents: budgets, loops, retries, and local traces. Zero runtime dependencies. MIT.

2K 4 3
vijaym2k6
steerplane

The safety layer for the AGI era. Runtime guardrails for AI agents: spend limits, loop detection and action rules in Python and TypeScript SDKs, plus a gateway for model calls.

2K 8 1
RyjoxTechnologies
octopoda

Persistent Memory Kernel for AI Agents — crash recovery, shared memory, audit trail, real-time dashboard

1K 487 65
PathlayerLabs
pathlayer

Runtime guardrail layer for AI agents: detect loops, retries, cost explosions and lack of progress, and intervene during execution.

1K 3 0
loopgain-ai
loopgain

An open-source cost controller for AI agent loops — stops a loop when it's actually converged and rolls back before it degrades, instead of running to a fixed max_iterations cap. Real-time loop-gain (Aβ) bands + best-so-far rollback. Adapters for LangGraph, CrewAI, AutoGen, LangChain, OpenAI Agents, and Claude Agent SDK; raw API for custom stacks.

899 127 11
SahilSelokar
loopbrake

Stops stuck AI agent runs, with a guaranteed limit on stopping good ones.

518 1 1
bencium
agent-therapy-langgraph

Now your agents can ask a therapist same way as humans. Open-source clients for Agent Therapy: Claude Code plugin, recovery skill, MCP client. Pre-release.

491 0 0
bencium
agent-therapy

Now your agents can ask a therapist same way as humans. Open-source clients for Agent Therapy: Claude Code plugin, recovery skill, MCP client. Pre-release.

475 0 0
xli498
mimo-stable

Cross-model LLM degenerate loop detection and engineering guardrails. MiMo is the initial case study; this project does not claim model-level repair.

349 0 0
MrPredic
drift-detector-agent

Behavioral drift detection for LLM agents — catch vocabulary loss, tool changes, loops, and stagnation before they break production.

276 1 0
thegubernaut
gubernaut-sdk

Stops an LLM agent stuck in a loop before the next call is billed. A local OpenAI-compatible proxy (Python) and an in-process controller (JS/TS, Rust). Deterministic, self-hosted, Apache-2.0.

208 1 1
tazsat0512
reivo-guard

Open-source guardrails that auto-kill runaway AI agents — budget enforcement, loop detection, quality verification

161 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology