Ctx Stats

mksglu/context-mode/skills/ctx-stats

作者 mksglua6c43765d26b无许可证25K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Show how much context window context-mode saved this session. Displays token consumption, context savings ratio, and per-tool breakdown. Read-only — shows stats only, no reset capability. To wipe the knowledge base entirely, use ctx_purge instead. Trigger: /context-mode:ctx-stats

仅含说明AI & Agents
AI 生成的概览

通过 MCP 统计工具显示当前会话的上下文窗口 token 节省情况。

功能
该技能指示代理调用 context-mode 的 MCP 统计工具,并将完整输出原样粘贴到回复中。输出内容包括 token 消耗、上下文节省比例以及按工具划分的明细。它只读,仅展示统计信息;清空知识库由单独的清除命令负责。
适用场景
当用户想查看当前会话节省了多少上下文窗口,或需要按工具划分的 context-mode 使用明细时使用。也适用于确认本会话是否已有 context-mode 调用。
运行要求
需要 context-mode MCP 服务器及其 ctx_stats 工具;不附带脚本。

Context Mode Stats

Show context savings for the current session.

Instructions

  1. Call the mcp__context-mode__ctx_stats MCP tool (no parameters needed).
  2. CRITICAL: You MUST copy-paste the ENTIRE tool output as markdown text directly into your response message. Do NOT summarize, do NOT collapse, do NOT paraphrase. The user must see the full tables without pressing ctrl+o. Copy every line exactly as returned by the tool.
  3. After the full output, add ONE sentence highlighting the key savings metric, e.g.:
    • "context-mode saved 12.4x — 92% of data stayed in sandbox."
    • If no data yet: "No context-mode calls yet this session."

Purge

  • ctx_purge(confirm: true) — Permanently deletes all indexed content from the knowledge base. Use /context-mode:ctx-purge for this.

来源与署名

来源:mksglu/context-mode位于skills/ctx-stats提交a6c4376

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架