返回 Skill 列表
extension
分类: 数据与分析无需 API Key

openclaw context usage

检查当前会话的上下文窗口使用情况,显示模型名称、预估Token用量及上下文窗口占用百分比。当用户询问对话上下文或Token使用情况时调用。

person作者: googhubclawhub

Context Window Usage

How to Check

  1. Call session_status to get current session info
  2. Extract the 📚 Context: line for usage data
  3. Present a clean summary to the user

Output Format

📊 Context Window
Model: <model_name>
Used: <used> / <total> (<percent>%)
Cache: <cache_hit>% hit · <cached_tokens> cached
Status: 🟢 Comfortable | 🟡 Getting Full | 🔴 Near Limit

Thresholds

| Usage | Status | Action | |---|---|---| | <50% | 🟢 Comfortable | No action needed | | 50-70% | 🟡 Getting Full | Monitor | | 70-85% | 🟠 Consider compact | Suggest /compact | | >85% | 🔴 Near limit | Recommend /compact |

Notes

  • session_status provides exact context data via the 📚 Context: field
  • Token counts and cache hit rates are also available
  • If usage is high, suggest running op-helper skill for /compact