ctx-stats
mksglu/context-mode
Display token savings and context window efficiency from context-mode this session.
What is ctx-stats?
Shows how much context window space context-mode saved during your current session, including token consumption, savings ratio, and per-tool breakdown. Use this to understand the efficiency gains from context compression.
- Display total tokens consumed in the session
- Show context savings ratio and percentage of data kept in sandbox
- Provide per-tool breakdown of context usage
- Read-only view—no modification of stats or knowledge base
- Highlight key savings metric in a single summary sentence
How to install ctx-stats
npx skills add https://github.com/mksglu/context-mode --skill ctx-statsHow to use ctx-stats
- 1.Invoke the skill with `/context-mode:ctx-stats`
- 2.The tool will return full tables with token consumption and savings data
- 3.Review the complete output including per-tool breakdown
- 4.Note the key savings metric highlighted in the summary sentence
Use cases
- Check how much context window space you've saved with context-mode compression
- Understand which tools are consuming the most context
- Verify context-mode is working effectively for your workflow
- Monitor session efficiency before context window limits are reached
- Compare context savings across different sessions or tool combinations
- Developers using context-mode for token optimization
- AI coding agents managing limited context windows
- Teams tracking context efficiency metrics
- Anyone optimizing prompt engineering for cost or performance
ctx-stats FAQ
No, ctx-stats is read-only. To permanently delete the indexed knowledge base, use ctx_purge instead.
It shows how much of your original data stayed in the sandbox versus being expanded, expressed as a multiplier (e.g., 12.4x means context-mode compressed data by that factor).
Monitoring stats helps you understand whether context-mode is effectively saving tokens for your use case and when you might be approaching context window limits.
No, ctx-stats only displays information. It does not change, reset, or delete any indexed content.
If you haven't used context-mode calls yet in the session, the tool will indicate 'No context-mode calls yet this session.'
Full instructions (SKILL.md)
Source of truth, from mksglu/context-mode.
name: ctx-stats description: | 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 user-invocable: true
Context Mode Stats
Show context savings for the current session.
Instructions
- Call the
mcp__context-mode__ctx_statsMCP tool (no parameters needed). - 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.
- 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
More from mksglu/context-mode and the wider catalog.

ctx-upgrade
Update context-mode plugin from GitHub and reconfigure hooks/settings.

context-mode
Use context-mode tools to handle large command outputs and API responses efficiently.

context-mode-ops
Orchestrate parallel agent teams for GitHub issue triage, PR review, releases, and marketing across 17 adapters and 3 OSes.

ctx-doctor
Diagnose context-mode setup issues with runtime, hooks, FTS5, and plugin checks.

strapi-expert
Strapi v5 plugin development expert for building custom APIs, content-types, and CMS architecture.

add-app-to-server
This skill should be used when the user asks to "add an app to my MCP server", "add UI to my MCP server", "add a view to my MCP tool", "enrich MCP tools with UI", "add interactive UI to existing server", "add MCP Apps to my server", or needs to add interactive UI capabilities to an existing MCP server that already has tools. Provides guidance for analyzing existing tools and adding MCP Apps UI resources.