npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-firewall

v0.5.3

Published

Agent Runtime Control — Loop detection, prompt caching, budget enforcement, and waste scanning for autonomous AI agents.

Downloads

709

Readme

agent-firewall

Agent Runtime Control — Stop AI agents from burning your money.

Loop detection, prompt caching, budget enforcement, and waste scanning for autonomous AI agents.

Quick Start

# See how much your agents are wasting
npx agent-firewall scan

# Route agents through the firewall to fix it
npx agent-firewall setup

Commands

| Command | What it does | |---|---| | npx agent-firewall scan | Scan agent logs for waste — loops, retries, missed caching | | npx agent-firewall setup | Auto-configure agents to route through the firewall | | npx agent-firewall status | Check live proxy stats — requests, savings, blocked loops | | npx agent-firewall verify | Test that routing is working | | npx agent-firewall uninstall | Undo everything — restore original configs |

What It Solves

Autonomous agents fail behaviorally — they get stuck in loops, retry the same broken tool call, and re-send massive contexts without caching. This costs real money.

| Problem | How Agent Firewall Fixes It | |---|---| | Agent stuck in loops | Circuit breaker kills after 3+ identical requests | | Same error over and over | No-progress detection stops after 5 identical tool failures | | Runaway overnight costs | Budget governor caps spend per session | | Re-sending the same context | Auto-injects prompt caching headers — up to 90% savings | | Rate limits (429 errors) | Shadow Routing auto-downgrades to faster models instantly | | No visibility into waste | Scanner analyzes your logs and shows exactly what you're wasting |

How It Works

Your Agent → Agent Firewall (proxy) → OpenAI / Anthropic / Gemini / NVIDIA

The firewall sits between your agent and the LLM provider. Every request passes through it:

  • Prompt caching — injects cache_control headers automatically
  • Loop detection — hashes recent requests, blocks repeats
  • Shadow Routing — immediately fails over to lighter models on 429 rate limits
  • Budget caps — set a $ limit per session, get a hard 402 when hit
  • No-progress detection — fingerprints tool errors, stops spinning agents
  • Your keys pass through — never stored, never logged

Works With

| Agent / SDK | How it connects | |---|---| | OpenClaw | ANTHROPIC_BASE_URL / OPENAI_BASE_URL env vars | | Claude Code | ANTHROPIC_BASE_URL env var | | OpenAI SDK | OPENAI_BASE_URL env var | | Anthropic SDK | ANTHROPIC_BASE_URL env var | | Any OpenAI-compatible | base_url parameter |

Cross-Platform

Works on macOS, Linux, and Windows (PowerShell + cmd.exe).

  • Auto-detects your shell config (.zshrc, .bashrc, .bash_profile, PowerShell $PROFILE)
  • Asks before modifying any files
  • Clean uninstall with npx agent-firewall uninstall

Trust & Transparency

This is open source. You can read every line of code:

  • Source code: github.com/shinertx/agentic-firewall
  • License: MIT — use it however you want
  • Your API keys: Pass through to your provider. Never stored. Never logged. Hashed for anonymous usage stats only.
  • Dashboard: Every user gets a personal dashboard at https://api.jockeyvc.com/dashboard/<your-id>

License

MIT — github.com/shinertx/agentic-firewall