AI Skill Hub 推荐使用:循环破坏者 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
循环破坏者 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
循环破坏者 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install loopbuster
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install loopbuster
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/liuchunwei732-cmyk/loopbuster
cd loopbuster
pip install -e .
# 验证安装
python -c "import loopbuster; print('安装成功')"
# 命令行使用
loopbuster --help
# 基本用法
loopbuster input_file -o output_file
# Python 代码中调用
import loopbuster
# 示例
result = loopbuster.process("input")
print(result)
# loopbuster 配置文件示例(config.yml) app: name: "loopbuster" debug: false log_level: "INFO" # 运行时指定配置文件 loopbuster --config config.yml # 或通过环境变量配置 export LOOPBUSTER_API_KEY="your-key" export LOOPBUSTER_OUTPUT_DIR="./output"
Break the infinite loops of your AI Agents. Stop burning tokens on dead-ends.
---
| Component | What it does |
|---|---|
| **4 detection strategies** | ExactRepeat, FuzzyRepeat, CycleDetection, OutputStagnation |
| **Multi-factor similarity** | Jaccard + normalized Levenshtein + dict structure similarity, with noise denoising |
| **Adaptive thresholds** | Tightens/relaxes based on action diversity — stops false alarms on diverse tasks |
| **3 hard guards** | BudgetCeiling ($ cap), RepeatCallGuard (exact limit), StateStasis (no-change detection) |
| **Circuit breaker** | Pre-flight checks before tool calls (WARN / BLOCK / SUGGEST_ALTERNATIVE) |
| **Stuck report** | Diagnostic report: diversity ratio, top repeated patterns, token waste estimate, recommendations |
| **Async support** | AsyncLoopBuster with hung coroutine detection and action timeout |
| **Framework integrations** | LangGraph, CrewAI, AutoGen (drop-in guard nodes) |
| **MCP protocol** | stdio-based MCP server for tool-calling LLMs |
| **Storage backends** | Memory (default) and Redis (distributed) |
| **Dashboard** | Real-time monitoring of detection state and resource usage |
| **Zero hard deps** | Core library uses only stdlib; optional features add dependencies only when needed |
---
```bash
pip install loopbuster
```python from loopbuster import LoopBuster
buster = LoopBuster(similarity_threshold=0.85)
for step in agent_loop(): decision = buster.check(tool=step.tool, args=step.args, output=step.output) if decision.is_loop: print(f"🛑 Loop detected: {decision.reason}") break ```
📓 Interactive Demo Notebook — Step through exact repeat, fuzzy repeat, cycle detection, adaptive thresholds, and more in a Jupyter notebook.
---
```python from loopbuster.integrations import langgraph_guard
高质量的LLM代理反死循环工具包
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,循环破坏者 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | loopbuster |
| 原始描述 | 开源AI工作流:A unified anti-dead-loop toolkit for LLM agents — loop detection, budget ceiling。⭐55 · Python |
| Topics | LLM反死循环工作流 |
| GitHub | https://github.com/liuchunwei732-cmyk/loopbuster |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-04 · 更新时间:2026-06-04 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端