Context Mode Stats

SkillDocs & knowledge

ctx-stats is a skill that reports how much context window space context-mode saved during the current session. It shows token consumption, the context savings ratio, and a per-tool breakdown. It is read-only, so it displays statistics only and cannot reset anything.

Then ask your AI: use the Context Mode Stats skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Have context-mode available with its MCP tool connected.

What your AI can do with it

  • Report token consumption for the current session
  • Show the context savings ratio
  • Break down savings per tool
  • Run through the ctx_stats MCP tool with no parameters
  • Copy the full stats output into the response as markdown

Getting started

  1. Have context-mode available with its MCP tool connected.
  2. Make sure the skill is installed and invocable in your agent setup.
  3. Trigger it with /context-mode:ctx-stats when you want session stats.
  4. Read the full tables in the response and the one-sentence savings highlight.

What this skill tells your AI

The instructions your AI receives, as published by mksglu/context-mode in skills/ctx-stats/SKILL.md and read by Ahel’s review.

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.

Signals

GitHub stars
26k
Forks
2k
Last commit
Oct 2026

Questions

Does ctx-stats reset anything?
No. It is read-only and shows stats only. It has no reset capability.
How do I wipe the knowledge base entirely?
Use ctx_purge instead, or the /context-mode:ctx-purge command. ctx_purge with confirm: true permanently deletes all indexed content from the knowledge base.
What does the output include?
Token consumption, the context savings ratio, and a per-tool breakdown for the current session.
What if there is no data yet?
The response notes that there are no context-mode calls yet this session.
Advanced
Item type
skill
Key
ctx-stats
Source
github.com/mksglu/context-mode