Pular para o conteúdo
TakoAPI
Voltar às skills

token-alert

por r00tid

AI & LLMs
1.4kDownloads informados pelo clawskills.sh
1Visualizações
0 curtidaEntre para curtir esta skill
—Ainda sem avaliações
Sua avaliação

Resumo

🚨 **Monitor session tokens and get alerts at 75%/90%/95%**.

Descrição

O que esta skill faz

Monitors Clawdbot session token usage and sends alerts when usage crosses configurable thresholds (25%, 50%, 75%, 90%, 95%, 100%). Provides both a terminal script for on-demand checks and an HTML dashboard with a visual progress bar. Operates statelessly, calculating usage live via the session_status tool.

Because it runs statelessly with no file management, usage data is always calculated from the live session rather than a potentially stale snapshot.

Quando usá-la

  • Checking remaining token budget before starting a long research task
  • Getting a Telegram alert when a session reaches 90% capacity
  • Adding a daily token usage check to a Clawdbot HEARTBEAT routine
  • Opening a visual dashboard to monitor consumption mid-conversation
  • Deciding when to wrap up and start a fresh session before hitting the limit

Exemplo de fluxo de trabalho

ENTRADA

User asks: Check token status

AGENTE
  1. 1

    Runs check.py script

  2. 2

    Queries Clawdbot session_status tool for current token count

  3. 3

    Calculates usage percentage against the session limit

  4. 4

    Compares percentage against configured thresholds

  5. 5

    Displays progress bar with usage stats and a recommended action

SAÍDA

Terminal output: '▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▱▱▱▱▱▱ 78.0% — 156,000 / 200,000 tokens used, estimated <1 session remaining, recommendation: prepare new session'

Requisitos

  • Telegram channel configured for alert delivery (optional)

Instalação

clawhub install r00tid/token-alert

Execute o comando da CLI ou cole o prompt no Claude Code, Cursor, Codex ou no agente de código que você usa.

Links