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 從公開儲存庫中收錄這些內容。

檢舉或申請下架