Skip to content

Add LLM token budget, cost and latency guardrails - #76

Merged
rmkr-dev merged 1 commit into
mainfrom
skillbook/llm-cost-latency-budgets
Oct 25, 2026
Merged

rmkr-dev merged 1 commit into
mainfrom
skillbook/llm-cost-latency-budgets

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Adds a Skillbook entry and a matching Promptbook entry for metering and bounding LLM calls.

  • Skill llm-cost-latency-budget-guardrails: usage read from provider responses (streaming final usage, cached and reasoning tokens), versioned price table, per-call attribution to route, caller and resolved model, output/input/context/agent-step caps, per-caller and global budgets with reserve-then-reconcile, retries counted against budgets, staged latency histograms with low-cardinality labels, a private usage store, and cost judged next to quality.
  • Prompt add-llm-token-budgets-and-cost-tracking: inventory, metering hook, pricing, caps, budgets with a report-only mode, retry accounting, latency, report query and tests.

Both carry Copilot, Claude Code and Codex format notes. Catalogs go to 40 skills and 40 prompts.

@rmkr-dev
rmkr-dev merged commit a0e43c5 into main Oct 25, 2026
1 check passed
@rmkr-dev
rmkr-dev deleted the skillbook/llm-cost-latency-budgets branch October 25, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant