Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By swashbuckler999v0.26.0MITIn 1 marketplace
Token usage tracking, model cost attribution per agent, budget alerts, and optimization recommendations — uses memory_* (namespace-routed) for cost-tracking and cost-patterns; pairs with federation budget circuit breaker (ADR-097)
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
ruflo, cost, tokens, budget, optimization, usage, namespace-routing, mcp ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Token usage tracking, model cost attribution per agent, budget alerts, and optimization recommendations.
Tracks token usage per agent, task, and model, then computes USD cost attribution using current model pricing. Monitors configurable budgets with tiered alerts (info at 50%, warning at 75%, critical at 90%, hard stop at 100%). Analyzes usage patterns and recommends optimizations such as model downgrades, prompt caching, and batch operations.
claude --plugin-dir plugins/ruflo-cost-tracker
| Agent | Model | Role |
|---|---|---|
cost-analyst | haiku | Token usage tracking, USD cost attribution, budget monitoring, optimization recommendations |
| Skill | Usage | Description |
|---|---|---|
cost-report | /cost-report [--period today] | Generate a cost report with token usage and USD costs by tier, model, and agent |
cost-optimize | /cost-optimize | Analyze usage patterns, recommend cost optimizations, and emit hooks_model-outcome events |
cost-track | /cost-track | Auto-capture per-session token usage from the Claude Code jsonl into cost-tracking namespace (producer side). Also auto-fires on session-end via the Stop hook in hooks/hooks.json — no manual invocation needed. |
cost-budget-check | /cost-budget-check [--period today|week|month|all] | Read totals + budget config, emit 50/75/90/100% alert ladder; exit 1 on HARD_STOP |
cost-booster-route | /cost-booster-route <task> | Route tasks via hooks_route and report Agent Booster (Tier 1) bypass utilization |
cost-booster-edit | /cost-booster-edit <intent> <file> | Apply a Tier 1 transform via agent-booster.apply() (sub-millisecond, $0, deterministic) |
cost-benchmark | /cost-benchmark [--llm] [--anthropic] | Run the corpus benchmark and persist measured-vs-claimed table to docs/benchmarks/runs/ |
cost-trend | /cost-trend | Read all bench runs and surface drift (win rate, latency, speedup) — flags regressions the smoke gate misses |
cost-projection | /cost-projection [--window 7d] | Forward spend extrapolation: USD/day rate × 7d/30d/90d/365d horizons + days-until-budget-exhausted (predictive counterpart to cost-budget-check) |
cost-counterfactual | /cost-counterfactual [--since 7d] [--baseline all] | Comparative cost analysis: actual spend vs always-haiku / always-sonnet / always-opus baselines. Negative savings flag over-escalation; positive savings quantify routing's win. |
cost-burn | /cost-burn [--bucket 1d] [--lookback 14d] [--alert-on-acceleration-pct N] | Trend burn-rate analysis: window-over-window delta + optional drift-alert exit code. Catches "hot loop burning 10× normal" before budget alarm fires. |
cost-anomaly | /cost-anomaly [--since 7d] [--threshold 3.5] [--alert-on-outliers N] | Point-anomaly MAD-based outlier detection: flags individual sessions with |modified z| > threshold (Iglewicz-Hoaglin 3.5 default). Robust to outliers themselves; works on n=10. |
cost-diff | /cost-diff --baseline <path> --current <path> [--alert-on-pct N] [--alert-on-usd N] | PR regression detection — diffs two cost-summary JSON snapshots. Per-tier + per-model breakdowns sorted by |delta|. Optional pct/USD alert thresholds for CI gating. |
cost-session | /cost-session [--session-id <id>] [--top 20] [--since <iso-ts>] | Drill-down — per-message cost breakdown within ONE session. Surfaces top-N expensive messages with cache_write column so $16 messages stop looking like 569-token outputs. Pair with cost-anomaly. |
cost-health | /cost-health [--alert-acceleration 100] [--alert-outliers 1] [--skip burn,anomaly] | Composite CI gate — runs budget+burn+anomaly+projection in parallel, returns max(exit). One shell-out covers all four alert ladders. |
cost-conversation | /cost-conversation | Per-conversation cost view (different lens from cost-report's per-agent / per-model) |
cost-export | /cost-export [--prometheus <path>] [--webhook <url>] | Emit cost data as Prometheus textfile or POST to a webhook |
cost-federation | /cost-federation | ADR-097 Phase 3 consumer — per-peer 1h/24h/7d federation_spend rolling windows |
cost-summary | /cost-summary [--format json|markdown] | Single-shot programmatic dump of all cost data (stable JSON contract for inter-plugin consumption) |
cost-compact-context | /cost-compact-context <query> | Wrap getTokenOptimizer().getCompactContext() for retrieval-compacted analysis (graceful fallback when agentic-flow not installed) |
npx claudepluginhub swashbuckler999/ruflo --plugin ruflo-cost-trackerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground