AgentTrafficCop
A circuit breaker that checks messages between agents to prevent infinite loops and runaway API costs.
What does it do?
When connected to an orchestrator, it first validates messages passed to the next agent against a Pydantic contract. It uses SHA-256 fingerprints of message content to detect repeated messages and exchanges between agents, and it counts steps. When a threshold is exceeded, it returns diagnostic information so the orchestrator can decide whether to stop, alert, or escalate. It is available as a FastAPI service and SDK and includes a LangGraph adapter.
Key features
- Validate handoffs between agents against Pydantic v2 contracts
- Detect repeated calls using SHA-256 fingerprints and step counts
- Return structured diagnostic information when a call is blocked
- Integrate with LangGraph, CrewAI, AutoGen, and asyncio
- Protect up to 5 agents and 10,000 messages per month on the free starting tier
- Self-host the middleware and SDK