Prismbox Agent Token-Burn & Budget Guard
by Unge
Stop a runaway agent before it burns your budget — live burn-rate monitor with a hard kill switch, dry-run by default.
$15
About this skill
Stop a runaway agent before it burns your budget — a live token-burn monitor with a hard kill switch, dry-run by default.
A working runtime, not a paper protocol: real Node.js scripts (standard library only, no install, no API key, no network) that read a usage log, compute burn velocity, and trip WARN / PAUSE / KILL on hard token and dollar caps, burn-rate ceilings, velocity spikes, loop signatures, and stalls.
- Live burn-rate math. Tokens/min and $/min, trailing-window velocity vs baseline, and projected minutes to the dollar cap — from your usage JSONL, never from guesses.
- Loop signatures. The same (tool + input hash) or the same output hash repeated inside a trailing window means the agent is spinning, not working.
- Hard kill switch, dry-run by default. A KILL verdict writes a stop file your harness can watch. A real kill needs all three: policy.kill.enabled, an explicit --kill-pid, and a pid whose command line matches the policy allowlist pattern. SIGTERM only, never pid 1.
- Sha-chained spend ledger. Append-only JSONL; a post-hoc edit of the spend history breaks the chain and is detected by
ledger --verify.
Includes a JSON Schema + example policy, a usage-log example that trips a real 8.6x velocity spike, and 12 self-tests (node --test test-burn-guard.js — all passing).
Honest limits: the guard sees what your usage log shows; loop detection is signature-based (a runaway that varies inputs trips the burn-rate wires instead); watch polls the file rather than tail-following in real time.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 9 days ago
- Software
Node.js 18+
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.