Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Cost Track

Skill Verifiziert Aktiv

Auto-capture per-session token usage from the Claude Code session jsonl and persist to the cost-tracking namespace

Zweck

To provide a transparent and automated way to track the token usage and associated costs of Claude Code sessions for better budget management and reporting.

Funktionen

  • Auto-capture per-session token usage
  • Persist usage to AgentDB
  • Calculate USD cost based on model pricing
  • Support for environment variable overrides
  • Dry-run capability

Anwendungsfälle

  • Capturing spend after a meaningful chunk of work
  • Persisting final tally at session end
  • Periodically capturing costs during long sessions
  • Providing data for cost reporting and optimization tools

Nicht-Ziele

  • Directly managing LLM provider accounts or billing
  • Real-time alerting for budget overruns (this is a producer for other skills)
  • Providing detailed analysis of *why* tokens were used

Workflow

  1. Run the tracker script from the project root
  2. Script auto-discovers session jsonl or uses TRACK_SESSION env var
  3. Calculate cost using defined pricing
  4. Persist structured record to AgentDB cost-tracking namespace
  5. Inspect markdown summary and verify persistence

Praktiken

  • Cost Tracking
  • Session Management

Voraussetzungen

  • Claude Code environment
  • Access to session jsonl files
  • AgentDB namespace configured

Code Execution

  • info:ValidationWhile the script's operations are well-defined, explicit input validation using a schema library is not evident for environment variables or session data parsing.
  • info:LoggingThe script provides markdown output for successful runs and can suppress it with `TRACK_QUIET=1`, but detailed audit logging to a specific file is not explicitly mentioned.

Installation

Zuerst Marketplace hinzufügen

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-cost-tracker@ruflo

Qualitätspunktzahl

Verifiziert
97 /100
Analysiert about 21 hours ago

Vertrauenssignale

Letzter Commitabout 23 hours ago
Sterne50.2k
LizenzMIT
Status
Quellcode ansehen

Ähnliche Erweiterungen

Guard

100

Schützen Sie Claude Code-Sitzungen vor Kontextüberlauf, indem Sie einen Hintergrund-Daemon ausführen, der die Sitzungsgröße überwacht und automatisch bereinigt, bevor die Komprimierung erreicht wird. Verwenden Sie dies, wenn der Benutzer "guard", "protect session", "context getting long", "prevent compaction", "session management" sagt oder Agententeams ausführt, die einen kontinuierlichen Kontextschutz benötigen.

Skill
Ruya-AI

Session Export

100

Exports a Claude Code session as a clean, readable markdown transcript. Use when the user wants to export a session, create a transcript, save session history to a file, or says "export this session".

Skill
apappascs

Validate Plugin

100

Validate a Claude Code plugin structure, frontmatter, and MCP tool references

Skill
ruvnet

Running Claude Code Via Litellm Copilot

100

Verwenden Sie dies beim Routing von Claude Code über einen lokalen LiteLLM-Proxy zu GitHub Copilot, um die direkten Anthropic-Ausgaben zu reduzieren, indem Sie ANTHROPIC_BASE_URL- oder ANTHROPIC_MODEL-Overrides konfigurieren oder Fehler bei der Einrichtung des Copilot-Proxys beheben, wie z. B. model-not-found, kein localhost-Traffic oder GitHub 401/403-Authentifizierungsfehler.

Skill
xixu-me

Create Command

100

Interactive assistant for creating new Claude commands with proper structure, patterns, and MCP tool integration

Skill
NeoLabHQ

Rule Effectiveness Analysis

100

Analyze which rules are actively used vs inert. Detect coverage gaps. Recommend pruning to reduce token consumption.

Skill
luiseiman