Skip to content
Development
Command

/budget

Set a hard token ceiling per response (e.g. /budget 100) or clear it (/budget off)

From plugin
pith
984 skills4 commands4 hooks
Install
> /plugin marketplace add abhisekjha/pith
> /plugin install pith@pith

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/budget

Context preview

What this command does when you run it.

Set a hard token ceiling per response (e.g. /budget 100) or clear it (/budget off)

Command definition

budget.md
allowed-tools: Bash
description: Set a hard token ceiling per response (e.g. /budget 100) or clear it (/budget off)

Run the Pith budget hook and apply the token ceiling.

**Argument:** $ARGUMENTS

Step 1 — execute the hook. The argument is forwarded literally via a single-quoted heredoc, so quotes/$()/backticks in input never reach the shell:

node "${CLAUDE_PLUGIN_ROOT}/hooks/prompt-submit.js" --slash /budget <<'PITH_EOF_7f3a9c2e'
$ARGUMENTS
PITH_EOF_7f3a9c2e

Step 2 — apply the result:

  • If a token limit was set: enforce it for every response from this point forward
  • If the budget was cleared: resume normal response length

Step 3 — confirm in one line.

Ships withpith

Status: stable — not actively adding features. Bug fixes welcome via issues. Token compression hooks for Claude Code. Install once, works in every session, zero config.

Get the whole plugin
Stats
98
Stars
11
Forks
Maintained
Maintenance
Python
Language
MIT
License
4mo ago
Last commit
5mo ago
Created

Repo: abhisekjha/pith

Other commands on pith.