token-cost-telemetry
/token-cost-telemetry
Audytuje rachunkowość tokenów LLM, skuteczność cache promptów, estymatory redukcji oraz telemetrię sprzętu: CPU, RAM i dysk.
- Autor
- marceloasl99 ↗
- Repozytorium
- canonical-rag ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 01.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Audytuje rachunkowość tokenów LLM, skuteczność cache promptów, estymatory redukcji oraz telemetrię sprzętu: CPU, RAM i dysk.
Oryginalny opis (EN)
Audits LLM token accounting, ephemeral prompt caching efficiency, token reduction estimators, hardware telemetry monitoring (CPU, RAM, Disk), and cost-optimization gateways. Use when analyzing LLM consumption, token metrics, cache accounting, or system telemetry.
Jak działa
- Core Audit Procedures
Podgląd SKILL.md
---
name: token-cost-telemetry
description: >-
Audits LLM token accounting, ephemeral prompt caching efficiency, token reduction estimators,
hardware telemetry monitoring (CPU, RAM, Disk), and cost-optimization gateways.
Use when analyzing LLM consumption, token metrics, cache accounting, or system telemetry.
---
# Token Economics & System Telemetry Skill
This skill provides methodologies for validating token reduction metrics, ephemeral prompt caching configurations, hardware telemetry sampling, and cost attribution in multi-provider LLM gateways.
## Core Audit Procedures
### 1. Token Counting & Pruning Verification
- **Token Estimation Models**: Check if token counts are estimated via character heuristics (`len(text) // 4`) or standard tokenizers (tiktoken, huggingface tokenizers). Note where heuristic drift occurs on non-English text.
- **Context Reduction Delta**: Verify that `tokens_saved_by_pruning` calculates the exact difference between raw retrieved candidate chunk volume and the post-pruning context passed to the LLM.
- **Cache Hit Accounting**: Validate that semantic cache hits increment the `tokens_saved_total` by the full cost of the cached response (input context + output completion), reflecting true zero-token economy.
### 2. Multi-Provider Ephemeral Prompt Caching
- **Anthropic Claude Cache Headers**: Verify the presence of `"cache_control": {"type": "ephemeral"}` on static system prompts and dense dossiers (> 1024 tokens) to trigger Anthropic's 90% prompt caching discount.
- **Google Gemini Context Caching**: Check whether repetitive system directives or corpus preambles leverage Gemini's context caching endpoints when prompt sizes exceed threshold limits.
### 3. Real-Time Hardware Telemetry Sampling
- **Non-Blocking Sampling**: Confirm that `psutil.cpu_percent()` is called with `interval=None` (non-blocking) rather than `interval=1.0` (which halts execution for 1 second).
- **Process vs System Metrics**: Distinguish between the process-level memory footprint (`psutil.Process().memory_info().rss`) and overall host RAM (`psutil.virtual_memory()`).
- **Telemetry Polling Cadence**: Ensure frontend telemetry polling (e.g. 2s interval) does not create connection churn or memory leaks in long-running browser tabs.
Wersje
W bazie nie ma innych skilli o nazwie token-cost-telemetry.
Migawka bazy z 13.11.2026 · wersja paczki 6971a49ed837 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90context-optimization
Optymalizuje zużycie tokenów, wydajność KV cache i zarządzanie oknem kontekstu agentów LLM: prompt caching, budżet tokenów, semantyczne przycinanie. - 100token-efficiency-expert
Przyjmuje rolę eksperta od efektywności tokenów i ocenia koszty promptów oraz zużycie w zespole agentów. - 100token-efficiency-audit
Przeprowadza audyt zużycia tokenów Claude: wykrywa marnowanie wejścia i wyjścia oraz niską skuteczność cache. - 100prompt-caching
Obniża koszt i opóźnienie wywołań LLM przez cache'owanie stałych prefiksów promptów i takie układanie promptów, żeby cache trafiał. - 100token-cost-analyzer
Analizuje i optymalizuje koszty API LLM: zużycie tokenów, audyt kosztów i prompty pod kątem wydatków na AI. - 100common-telemetry
Wymusza raportowanie kosztów sesji i metadanych wykonania, w tym get_session_cost, zużycie tokenów oraz zapis artifacts/session-cost.md na końcu przepływu pracy.