cd /news/ai-agents/show-hn-agenttrafficcop-stop-ai-agen… · home › topics › ai-agents › article
[ARTICLE · art-162513] src=agenttrafficcop.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: AgentTrafficCop – Stop AI agents from looping and burning money

AgentTrafficCop launched as an open-source, self-hostable runtime circuit breaker for multi-agent systems that validates every agent handoff against a strict Pydantic v2 contract and uses SHA-256 payload fingerprinting plus step counters to trip before a loop exhausts an API budget. The tool runs as a standalone FastAPI service, works with LangGraph, CrewAI, AutoGen or raw asyncio, and ships a LangGraph adapter that wraps any node in one line; when thresholds breach, it returns structured diagnostics so the orchestrator can halt, alert or escalate. The middleware and SDK are open source today, with managed tiers announced as coming soon.

read1 min views2 publishedNov 2, 2026
Show HN: AgentTrafficCop – Stop AI agents from looping and burning money
Image: source

AgentTrafficCop is a runtime circuit breaker for multi-agent systems. It validates every handoff, fingerprints every payload, and trips before a loop empties your API budget.

Every handoff validated against a strict Pydantic v2 contract before it reaches the next agent. Malformed payloads are rejected at the door.

SHA-256 fingerprinting on every payload. Identical repeats and A↔B ping-pongs trip the breaker. Step counters catch the rest.

When thresholds breach, the response carries structured diagnostics. Your orchestrator decides: halt, alert, or escalate.

your_orchestrator.py

from agenttrafficcop import Guard, LoopDetected

guard = Guard(url="https://api.agenttrafficcop.com", api_key="your-key")

try:
    result = await guard.check(
        session_id="run-42",
        sender="coder",
        recipient="reviewer",
        payload={"diff": "fix typo"},
    )
    print("approved at step", result.step)
except LoopDetected as e:
    print("loop caught:", e.error_code)

Runs as a standalone FastAPI service. Works with LangGraph, CrewAI, AutoGen, or raw asyncio. The SDK ships a LangGraph adapter — wrap any node in one line.

The middleware and SDK are open source and self-hostable today. Managed tiers are coming soon.

── more in #ai-agents 4 stories · sorted by recency
── more on @agenttrafficcop 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-agenttraffic…] indexed:0 read:1min 2026-11-02 · —