Bernstein bernstein-cost
install
source · Clone the upstream repo
git clone https://github.com/chernistry/bernstein
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/chernistry/bernstein "$T" && mkdir -p ~/.claude/skills && cp -r "$T/packages/cursor-plugin/skills/bernstein-cost" ~/.claude/skills/chernistry-bernstein-bernstein-cost && rm -rf "$T"
manifest:
packages/cursor-plugin/skills/bernstein-cost/SKILL.mdsource content
Bernstein Cost Tracker
Show detailed cost analysis and budget status.
When to Use
- User asks "how much have we spent?" or "what's the cost?"
- User wants per-model or per-agent cost breakdown
- User asks about budget remaining or cost projection
- User says "are we over budget?"
Instructions
- Run
to fetch cost data.scripts/costs.sh - Run
for cost forecast.scripts/costs.sh projection - Present a clear cost report:
## Cost Report **Total spent:** $X.XX / $Y.YY budget (Z%) **Status:** {OK | WARNING | OVER BUDGET} ### Per Model | Model | Tasks | Cost | Avg/Task | |-------|-------|------|----------| | claude-sonnet-4 | 12 | $1.84 | $0.15 | | gpt-4.1 | 5 | $0.62 | $0.12 | ### Per Agent | Agent | Role | Tasks Done | Cost | |-------|------|------------|------| | claude-backend-01 | backend | 3 | $0.45 | ### Projection At current rate, this run will cost ~$X.XX total. Estimated completion: Y tasks remaining, ~Z minutes.
- If budget warning is active, highlight it prominently.
- If over budget, note that Bernstein has paused new task claims.