budget-gate-check

Enforce daily LLM budget hard stops before every agent call.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/TruCol270/salty-pickle --skill budget-gate-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: budget-gate-check
Source: https://github.com/TruCol270/salty-pickle/tree/main/.claude-skills/budget-gate-check
Command: npx skills add https://github.com/TruCol270/salty-pickle --skill budget-gate-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes and enforces cost controls for LLM usage by agents to prevent budget overruns and unpredictable fallback behavior.

Core Features & Use Cases

  • Pre-call budget gating: ensures a call is allowed only if there is remaining daily budget.
  • Cost computation and headroom checks: uses actual usage to compute cost and reserve intraday headroom for trading agent.
  • Fallback and safe behavior: integrates with safe fallback when budget is exhausted.
  • Usage recording: logs actual tokens used after each call.
  • Scope and configuration: applies to addition of new LLM calls, model changes, max_tokens_per_call changes, or scan frequency and market count adjustments.
  • Intraday budget reservation: reserves 30% intraday budget for trading agent.

Quick Start

Before every LLM call, invoke the budget gate to verify available daily budget and proceed only if allowed.

Frequently Asked Questions about budget-gate-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce a daily LLM token budget to prevent agents from overspending?

To enforce a daily LLM token budget, implement a pre-call gate that checks remaining daily budget before allowing any agent invocation. This prevents budget overruns by blocking calls that would exceed the limit and recording actual token usage after each call.

What is pre-call budget gating for LLM agents and how does it work?

Pre-call budget gating for LLM agents is a mechanism that verifies available daily budget before every LLM invocation. It checks cost estimates, allows calls only if headroom exists, and logs actual token usage after the call completes to track budget consumption.

How do I stop silent fallback behavior when LLM agents exhaust their API budget?

To stop silent fallback when LLM agents exhaust their API budget, use a budget gate that integrates with safe fallback behavior. It strictly prevents calls or configuration changes that would exceed the budget, ensuring agents fail safely rather than silently defaulting.

Can I reserve a specific portion of the daily LLM budget for a trading agent?

Yes, you can reserve a specific portion of the daily LLM budget for a trading agent. The budget gate reserves 30% of the intraday budget specifically for trading agents, ensuring critical trading operations have guaranteed cost headroom throughout the day.

Does the LLM budget gate apply to changes like max tokens per call or scan frequency?

Yes, the LLM budget gate applies to max_tokens_per_call changes, scan frequency adjustments, market count changes, and new LLM call additions. Any modification that impacts cost estimates triggers the budget headroom check.

What is the best way to centralize cost controls for multiple LLM agents?

The best way to centralize cost controls for multiple LLM agents is implementing a unified budget gate. It guards every LLM invocation across both prediction and trading agents, computing costs from actual usage to prevent unpredictable fallback behavior and budget overruns.