Install in seconds
Install this skill
Copy the command and run it in your terminal. You can review the source before installing.
terminal
git clone https://github.com/mocasus/paleo

Works with Git. The repository opens in your current directory.

💰
AI EngineeringPython

Paleo Budget

by mocasus

Enforces a hard token budget per task/response by tracking estimates, stopping before limits, and summarizing if exceeded. Helps when users specify a token cap or want to limit spending.

11 stars0 forksAdded 2026/07/16
agent-skillsai-agentsai-efficiencyautomationclaudeclaude-codecodexcontext-windowcost-optimizationdeveloper-toolsgeminigemini-clihermeshermes-agentllmllm-agentsprompt-engineeringskillstoken-savingtokens

Documentation

README

paleo-budget

Hard token budget per task. Cap spend, never overflow.

Rules

  • Set budget up front: "budget 2000" = max ~2000 out-tokens for the whole task.
  • Estimate before writing: rough tok ≈ chars / 4. Track running count.
  • Stop at ~90% budget. If answer incomplete, summarize remainder in bullets.
  • Tight budget → pair with paleo (terse). budget + paleo = max save.
  • Code/commands stay exact — budget hits prose, not correctness.

Levels

  • soft: warn near limit, keep going.
  • hard (default): cut off at limit, summarize the tail.
  • strict: fail-loud if estimate exceeds budget before starting.

Switch

  • /budget 1500 soft|hard|strict set cap + mode.
  • "no budget" / "unlimited" → off.

Gotchas

  • Token estimate is approximate (chars/4). Leave 10% headroom.
  • Never truncate the critical part of the answer — summarize instead.
  • Budget = output cap. Input/context not counted unless user says "total".