Przejdź do treści
Biblioteka skilli
AI i agenci · Analiza

mdcp-token-meter

/mdcp-token-meter

Pokazuje, ile kontekstu i tokenów sesji już zużyto, także w pasku statusu Claude Code.

Repozytorium
MDCP ↗
Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pokazuje, ile kontekstu i tokenów sesji już zużyto, także w pasku statusu Claude Code.

Wyzwalacze z opisu

s context and tokens have been used. Use when the user askshow much session is usedcontext usagehow many tokens
Oryginalny opis (EN)

Show how much of the session's context and tokens have been used. Use when the user asks "token meter", "how much session is used", "context usage", "how many tokens", or wants a usage readout in the status line (Claude Code).

Jak działa

  1. Run it
  2. Always-on status line (Claude Code)
  3. Limits to tell the user
Sekcje z nagłówków SKILL.md, w oryginale · 26 linii, 218 słów
Podgląd SKILL.md
---
name: mdcp-token-meter
description: Show how much of the session's context and tokens have been used. Use when the user asks "token meter", "how much session is used", "context usage", "how many tokens", or wants a usage readout in the status line (Claude Code).
---

# Token meter

Reads the session transcript and reports real API usage numbers: context in use now, output tokens, fresh input, cache writes and cache reads, number of API calls.

## Run it
```bash
python3 "$(find ~/.claude -name token-meter.py -path '*scripts*' | head -1)"
```
Options: `--window N` (context window to compare against; env `MDCP_CONTEXT_WINDOW`), `--json`, a transcript path as the last argument.

Show the user the output as printed, then one sentence: how full the context is and whether to compact or start a new session (suggest this above about 70%).

## Always-on status line (Claude Code)
Add to `~/.claude/settings.json` (use the real path to `scripts/token-meter.py`):
```json
{ "statusLine": { "type": "command", "command": "python3 /path/to/token-meter.py --statusline" } }
```
Shows e.g. `ctx 285.7k/1000.0k (28.6%) | out 45.2k | 37 calls`.

## Limits to tell the user
- Works from Claude Code's local transcript. It does not see claude.ai web chats.
- The context window size is not in the transcript. The default is 200k; if usage already exceeds it, 1M is assumed. Set `--window` to be exact.
- This is session context, not plan quota. Quota is shown by `/usage` in Claude Code or Settings > Usage on claude.ai.
- Cache reads repeat the same context each call, so they are large; they are not new text.

Wersje

W bazie nie ma innych skilli o nazwie mdcp-token-meter.

Migawka bazy z 13.11.2026 · wersja paczki 4ec1af254a6b (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-meter
    Instaluje, aktualizuje lub usuwa wskaźnik zużycia okna kontekstu w pasku stanu Claude Code, z limitami i kosztem sesji.
  • 87install-meter
    Dodaje do paska stanu Claude Code miernik kontekstu w procentach, gdy użytkownik prosi o jego włączenie lub pokazanie.
  • 100token-meter
    Pokazuje na żywo zużycie tokenów przez każdą sesję Claude Code, z oknem kontekstu, cache i kosztami narzędzi, MCP i umiejętności.
  • 100context-report
    Analizuje efektywność kontekstu w Claude Code i zużycie tokenów w sesji.
  • 100context-status
    Pokazuje status kontekstu i kondycję sesji: ile kontekstu zużyto, czy zbliża się automatyczne kompaktowanie i jaki stan zostanie zachowany.
  • 100context-window-statusline
    Konfiguruje pasek statusu w stopce terminala Claude Code, pokazujący zużycie okna kontekstu, liczbę tokenów, koszt i metryki sesji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.