AI & Integration v1.0.0

ctx-usage

Check current session's context window usage. Shows model name, estimated token usage, and context window utilization...

goog 更新于 2026-03-26 1 浏览
下载 SKILL

技能说明

Check current session's context window usage. Shows model name, estimated token usage, and context window utilization percentage. Use when user asks about context window, token usage, context usage rate, context remaining, "how full is the context", or any question about how much of the model's context is being used.

使用场景

Check current session's context window usage. Shows model name, estimated token usage, and context window utilization percentage. Use when user asks about context window, token usage, context usage rate, context remaining, "how full is the context", or any question about how much of the model's context is being used.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/ctx-usage
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 14 kB
SKILL.md text/markdown
---
name: ctx-usage
description: Check current session's context window usage. Shows model name, estimated token usage, and context window utilization percentage. Use when user asks about context window, token usage, context usage rate, context remaining, "how full is the context", or any question about how much of the model's context is being used.
---

# 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`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。