# Outbound Circuit Breaker Kit

> Fail-closed outbound gate for agent fleets: write allowlist, approval queue, signup/auth block, one-strike breaker.

Outbound Circuit Breaker Kit is a paid AI agent skill on Agensi by Enoch Gardiner, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Enoch Gardiner](https://www.agensi.io/creators/enoch-gardiner)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/outbound-circuit-breaker-kit
- Tags: api, python, security, automation, llm-ops

## About this skill

Autonomous agents and automated scripts can quickly rack up costs or trigger security lockouts when left to make unmonitored outbound writes. This skill implements a strict guardrail system to prevent unauthorized API calls, identity actions, and rate-limit bans before they hit the wire.

### What it does
- **Default-deny writes** blocks any POST, PUT, PATCH, or DELETE request that is not explicitly defined in a method/host/path allowlist.
- **Identity protection** permanently prevents autonomous account creation or login by blocking auth-related path segments like `/signup` or `/oauth`.
- **Circuit breaking** trips a persistent breaker for any host returning 401, 403, or 429 status codes, preventing recursive lockouts.
- **Manual approval queue** redirects unlisted write attempts to a local JSON queue for human review and execution.
- **Credential redaction** ensures that queued payloads and logs never store sensitive authentication tokens or secrets.

### How it works
1. Initialize the `GuardedTransport` adapter within your agent's HTTP client or request runner.
2. Define the minimal required endpoints in the allowlist configuration to authorize specific write operations.
3. Review `pending_approvals.json` when the agent attempts a write outside the permitted scope.
4. Execute approved writes via the `submit_approved.py` utility, which requires manual ID confirmation.

### Frameworks & tools
This skill is designed for Python environments using common HTTP libraries such as Requests or httpx. It relies on a local filesystem state for persistence of breakers and approval queues.

### Why this beats prompting it yourself
Prompting an agent not to call specific APIs is unreliable under pressure or long context windows. This skill enforces the restriction at the transport layer, ensuring that even if the LLM hallucinatingly attempts a write, the network traffic is physically blocked.

### Use cases
- Prevent agents from accidentally creating duplicate accounts during testing.
- Stop automated scripts from hammering an API after receiving a rate-limit error.
- Review and approve social media posts or database writes before they go live.
- Audit all outbound write attempts during autonomous research tasks.

### Known limitations
Requires manual integration into the transport layer of the application code. Persistent state is file-based and must be managed per deployment instance.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Outbound Circuit Breaker Kit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How is this different from just telling my AI agent not to call certain APIs in its system prompt?

This skill acts as a physical firewall at the transport layer, ensuring that even if an agent hallucinates or ignores system prompts, the outbound network request is blocked and logged before it leaves your server.

### What happens when the agent tries to perform a 'write' action that isn't on the allowlist?

When the agent attempts an unauthorized write, the request is intercepted and saved to a local JSON queue; you can then review the payload and manually authorize or discard the action using the included utility script.

### How does the circuit breaker prevent my agent from getting rate-limited or banned?

The Circuit Breaker automatically detects 401, 403, and 429 error codes and instantly blocks all further traffic to that host to prevent your API keys from being permanently banned or your costs from spiraling.

### What specific files or components are included in this skill purchase?

You receive the core GuardedTransport adapter, a configuration template for your allowlists, the manual approval utility script, and comprehensive integration documentation to get your guardrails running.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
