Circuit Breaker
AI Agents & AssistantsA minimal circuit‑breaker wrapper for AI agents that stops runaway execution by enforcing token limits or detecting loops
Features
- Two modes: budget‑guard (token caps) and loop‑killer (state‑repeat detection)
- Zero‑config defaults with optional fine‑tuning of input/output token limits
- Preflight estimator to reject oversized prompts before they are sent
- Typed API that throws CircuitBreakerError or calls an onTrip handler
- Emit progressive CircuitBreakerEvent events for observability
Recent releases
View all 2 releases →Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
About
Stars
30
Forks
2
Language
TypeScript
Downloads/week
159
NPM Maintainers
1
Single npm maintainer
Contributors
2
TypeScript
Types included ✓
Install & Platforms
Install via
npm
Platforms
linux
macos
windows
arm64