Ctx Stats

by mksglua6c43765d26bNo license25K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

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

Instructions onlyAI & Agents
AI-generated overview

Displays context-window token savings for the current session via an MCP stats tool.

What it does
This skill instructs the agent to call the context-mode MCP stats tool and paste its full output verbatim into the response. The output covers token consumption, the context savings ratio, and a per-tool breakdown. It is read-only and only reports statistics; it notes that wiping the knowledge base is handled by a separate purge command.
When to use it
Use it when a user wants to see how much context window was saved during the current session, or wants a per-tool breakdown of context-mode usage. It is also relevant when checking whether any context-mode calls have been made yet.
Requirements
Requires the context-mode MCP server and its ctx_stats tool; no scripts are shipped.

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.

Source and attribution

Source:mksglu/context-modeinskills/ctx-statsat commita6c4376

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal