AgentGuard
Description
Real-time guardrail that shows token spend & kills runaway LLM/agent loops.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
π‘οΈ AgentGuard
[](https://www.npmjs.com/package/agent-guard) [](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://github.com/dipampaul17/AgentGuard)
π¨ The Problem
**Your AI agent has a bug. It makes 1000 API calls in a loop. Your $2000 credit card gets charged.**
This happens to developers every week:
- Infinite loops in AI workflows
- Testing with production API keys
- Agents that don't know when to stop
- One typo = hundreds of dollars gone
**Existing tools only tell you *after* the damage is done.**
π‘ The Solution
**AgentGuard automatically kills your process *before* it burns through your budget.**
// Add 2 lines to any AI project:
const agentGuard = require('agent-guard');
await agentGuard.init({ limit: 50 }); // $50 budget limit
// Your code runs normally until it hits $50, then AgentGuard stops it
const response = await openai.chat.completions.create({...});
**Result: Instead of losing $2000, you lose $50 and get a detailed report.**
π How It Works
graph TD
A["π€ Your AI Agent Starts"] --> B["π¦ AgentGuard.init({ limit: $50 })"]
B --> C["π Monitors All AI API Calls"]
C --> D["π° Tracks Real-Time Costs"]
D --> E{"πΈ Cost β₯ $50?"}
E -->|No| F["β
Continue Running"]
E -->|Yes| G["π Emergency Stop"]
F --> C
G --> H["π Show Savings Report"]
H --> I["πΎ Log Final Statistics"]
style A fill:#e1f5fe
style B fill:#f3e5f5
style C fill:#fff3e0
style D fill:#fff3e0
style E fill:#ffebee
style G fill:#ffcdd2
style H fill:#e8f5e8
Real-Time Monitoring
sequenceDia
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
π₯ The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
βAI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.π― εε«δΏ‘ζ―θΏθ½½οΌδ½ η
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI