
Ctx Stats
- 970 installs
- 19.6k repo stars
- Updated August 4, 2026
- mksglu/context-mode
ctx-stats is a Claude Code skill that displays how much context window space and tokens the context-mode skill has saved in the current session for developers who need visibility into agent token consumption.
About
ctx-stats is a read-only monitoring skill from mksglu/context-mode that reports context window savings for the active agent session. Invoked via /context-mode:ctx-stats, the skill calls the mcp__context-mode__ctx_stats MCP tool with no parameters and returns token consumption, context savings ratio, and a per-tool breakdown. The skill is strictly observational—it shows stats only and cannot reset data; full knowledge base wipes require the separate ctx_purge skill. Developers reach for ctx-stats when they want to verify context-mode is reducing token usage or diagnose which tools consume the most context in a long session.
- Displays token consumption, context savings ratio, and per-tool breakdown
- Read-only operation — shows stats only with no reset capability
- Must copy-paste the ENTIRE tool output as markdown without summarization
- Adds one-sentence highlight of the key savings metric after the full output
- Separate ctx_purge command available for complete knowledge-base wipe
Ctx Stats by the numbers
- 970 all-time installs (skills.sh)
- +77 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #1,128 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mksglu/context-mode --skill ctx-statsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 970 |
|---|---|
| repo stars | ★ 19.6k |
| Last updated | August 4, 2026 |
| Repository | mksglu/context-mode ↗ |
How much context window has context-mode saved this session?
Instantly see exactly how much context window space and tokens the context-mode skill has saved in the current session.
Who is it for?
Developers using context-mode who want read-only visibility into how many tokens and context window space the skill saved during a session.
Skip if: Developers who need to purge or reset the context-mode knowledge base—use ctx_purge instead of ctx-stats.
When should I use this skill?
User invokes /context-mode:ctx-stats or asks how much context context-mode saved in the current session.
What you get
Markdown report of token consumption, context savings ratio, and per-tool token breakdown pasted from MCP output.
- Session token savings report
- Per-tool context breakdown
Files
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-purgefor this.
Related skills
FAQ
How do you invoke ctx-stats?
ctx-stats is invoked with the /context-mode:ctx-stats slash command. The skill calls the mcp__context-mode__ctx_stats MCP tool with no parameters and copies the entire tool output as markdown into the response without summarizing.
Can ctx-stats reset context-mode data?
ctx-stats is read-only and shows token consumption, savings ratio, and per-tool breakdown only. To wipe the context-mode knowledge base entirely, use the separate ctx_purge skill instead of ctx-stats.