Skip to main content
command CX Codex

cost-tracker — Claude Code command: costs and installation

cost-tracker is a Claude Code command that estimates current-session spend, identifies its main cost drivers, and suggests optimizations. Compare the estimate with a task budget.

MIT ★ 2,966 updated 2026-09-29

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflow
Open on GitHub

What cost-tracker does

Run /cost-tracker to view an estimate for the current session, its main cost drivers, and suggestions for reducing spend. It also gives budget guidance by task type. For instance, the listed bug-fix range is $0.10–0.50, with a budget alert at $1.00.

The benchmarks also cover small and large features and refactoring. Treat these as reference points, not fixed prices or spending limits. In Claude Code, install the command through the pro-workflow marketplace.

What it helps with

  • estimate the cost of the current session
  • identify the biggest cost drivers
  • compare session spend with a task benchmark
  • get suggestions for reducing costs

Example prompts for the agent

  • Estimate this session’s cost and show its biggest cost drivers.
  • Compare this session’s spend with the bug-fix benchmark.
  • Suggest ways to reduce costs for the current task.

How to install cost-tracker

1Plugin marketplace

/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflow

2Manually: put the files in place

.claude/commands/cost-tracker.md

Call it with /cost-tracker. For all projects use ~/.claude/commands/

Questions about cost-tracker

How do I install cost-tracker in Claude Code?

Run /plugin marketplace add rohitg00/pro-workflow, then /plugin install pro-workflow@pro-workflow.

What does cost-tracker do?

It estimates the current session’s cost, highlights its main cost drivers, and offers optimization suggestions. It also provides budget guidance by task type.

What budget benchmarks does cost-tracker show?

For a bug fix, it lists a typical range of $0.10–0.50 and a budget alert of $1.00. The table also includes benchmarks for small and large features and refactoring.

Source text

cost-tracker.md · MIT
---
description: Track session costs, understand token spend, and get optimization tips
---

# /cost-tracker - Cost Awareness

Understand and optimize your session costs.

## Quick Start

Run to see:
- Current session cost estimate
- Top cost drivers
- Optimization suggestions
- Budget guidance for your task type

## Cost Benchmarks

| Task Type | Typical | Budget Alert |
|-----------|---------|-------------|
| Bug fix | $0.10-0.50 | $1.00 |
| Small feature | $0.50-2.00 | $3.00 |
| Large feature | $2.00-8.00 | $10.00 |
| Refactor | $1.00-5.00 | $7.00 |

## Usage

```
/cost-tracker
```

© Rohit Ghumare · MIT · rohitg00/pro-workflow

Similar slash commands

All slash commands for Finance and business →

From the same set83

The whole set →
no-debug-statements The no-debug-statements rule flags debugging calls for removal before a commit in JavaScript, TypeScript, Python, Go, and Rust files. Use it during a pre-commit review. CX Codex +1 ★ 2,966repo stars quality-gates quality-gates — a Claude rule that makes the agent lint and typecheck before a commit, then sweep the staged diff for debug lines and hardcoded keys. CX Codex +1 ★ 2,966repo stars atomic-commits Enforces Git best practices: atomic commits in Conventional Commits format, mandatory feature branches, and selective file staging. CX Codex +1 ★ 2,966repo stars self-correction self-correction turns a correction into a one-line [LEARN] rule with a category, and saves it only once you approve the wording. CX Codex +1 ★ 2,966repo stars mcp-audit Audits active MCP servers, estimates token overhead from tool schemas, and flags unused integrations to disable. CX Codex +1 ★ 2,966repo stars auto-setup auto-setup detects a project’s stack and configures quality gates, permission rules, and hooks. Useful when bringing a new codebase into Claude Code. CX Codex +1 ★ 2,966repo stars compact-guard compact-guard is a Claude Code command that saves working state before context compaction and restores critical data afterward. Run it before manual compaction or when auto-compaction warnings appear. CX Codex +1 ★ 2,966repo stars wrap-up wrap-up audits git diffs, runs test suites, records lessons learned, and prepares context before closing a Claude Code session. CX Codex +1 ★ 2,966repo stars

Project sponsors

Companies that keep this analytics open