跳到正文
TakoAPI
返回技能列表

token-alert

由 r00tid 提供

AI & LLMs
1.4k下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: Check token status

智能体
  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

输出

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

前置要求

  • Telegram channel configured for alert delivery (optional)

安装

clawhub install r00tid/token-alert

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接