📊 Claude Token Usage Report2026-05-26

Aperta
#3,839 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
github-actions
Ambito
observability

Direzione di ricerca

Esamina le esecuzioni collegate di Security Guard e Smoke Claude in GitHub Actions, quindi confrontale con il report precedente nell’issue 3741. Traccia la modifica recente associata agli aumenti del consumo di token e del tasso di errore; il lavoro è completato quando la causa è stata identificata e i workflow interessati non mostrano più lo spreco o i fallimenti segnalati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

claude-token-usage-report
Overview

Period: 2026-05-25 to 2026-05-26
Runs analyzed: 50 (50 had token data)
Total tokens: 16,603K across all workflows
Estimated total cost: $9.58
Total Actions minutes: 194 min

All runs use claude-haiku-4-5-20251001 (Haiku 4.5) via the AWF api-proxy sidecar.

⚠️ Significant cost increase vs yesterday: $9.58 today vs $3.97 yesterday (+141%). Security Guard run count increased from 19 → 23 runs and avg tokens/run increased from 72K → 363K (5× increase).

Workflow Summary
Workflow Runs Total Tokens Avg Tokens Cost Avg Cost Turns Errors
Security Guard 23 8,352K 363K $6.89 $0.30 138 10/23
Smoke Claude 26 8,145K 313K $2.61 $0.10 132 2/26
Documentation Maintainer 1 106K 106K $0.08 $0.08 2 0/1
🔍 Optimization Opportunities
  1. Security Guard — $0.30/run avg, 43% failure rate (10/23 runs failed)

    • High error rate (43% > 30% threshold): Failing runs still consume ~363K tokens/run on average, burning ~$3–4 in failed runs alone
    • High token count (363K avg >> 100K threshold): 5× higher than yesterday's 72K avg — investigate what changed in the system prompt or tool surface
    • Consider adding early exit conditions to reduce token waste on failing runs
  2. Smoke Claude — 313K avg tokens/run (>> 100K threshold)

    • Token count is high for a smoke test workflow; review whether all MCP tools and context are necessary for basic smoke validation
    • Cache ratio is healthy (read: 6.8M vs write: 1.3M) — caching is working well
  3. Documentation Maintainer — cache_write ≈ cache_read (53K vs 52K)

    • Only 1 run; on first run there's no prior cache to reuse — this is expected behavior
Per-Workflow Details
Security Guard
Smoke Claude
Documentation Maintainer
  • Runs: 1 — 26435014666
  • Success rate: 1/1 (100%)
  • Total tokens: 106K (avg 106K/run)
  • Estimated cost: $0.08 (avg $0.08/run)
  • Turns: 2 total (avg 2.0/run)
  • Cache analysis: write 53K / read 52K — first run, no prior cache to reuse (expected)
  • Error rate: 0/1 runs
Workflows Without Token Data

All 50 runs had token data. No workflows are missing instrumentation.

Historical Trend
Metric 2026-05-24→25 2026-05-25→26 Change
Total runs 42 50 +19%
Total tokens 5,573K 16,603K +198% ⚠️
Total cost $3.97 $9.58 +141% ⚠️
Security Guard avg tokens 72K 363K +404% ⚠️
Security Guard cost $2.50 $6.89 +176%
Security Guard error rate 53% (10/19) 43% (10/23) -10pp ✅
Smoke Claude avg tokens 188K 313K +67%
Smoke Claude cost $1.42 $2.61 +84%

The Security Guard workflow is the primary cost driver. While its error rate improved slightly (53% → 43%), average tokens per run jumped 5× — suggesting a significant prompt or context expansion in recent changes.

Previous Report

§3741 — 2026-05-25 report

References:

Generated by Daily Claude Token Usage Analyzer · sonnet46 1.2M · ◷

Lingua principale
TypeScript
Stelle
157
Fork
80
Merge medio
4h 34m
PR unite (30g)
412

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-aw-firewall

Tutte le issue di github/gh-aw-firewall

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.