Skip to content

Circuit Breaker

AI Agents & Assistants

A minimal circuit‑breaker wrapper for AI agents that stops runaway execution by enforcing token limits or detecting loops

TypeScript Latest 0.1.1 · 8d ago Security brief →

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 →
No immediate action
0.1.1 New feature

Vercel AI SDK adapter

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

Similar tools

Beta — feedback welcome: [email protected]