About ctx-stats
ctx-stats is an agent skill for checking context savings in the current session. It requires displaying the complete stats tool output and gives guidance for purging indexed content.
Key features
- 01Call ctx_stats for session stats
- 02Show the full tool output
- 03Highlight the savings metric
- 04Explain how to purge indexed content
Use cases
- 01Check context savings in a session
- 02Present complete statistics tables
- 03Confirm when no calls have occurred
- 04Follow guidance to purge indexed content
MCP support
The skill instructs agents to call context-mode's ctx_stats MCP tool and also mentions ctx_purge for removing indexed content.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mksglu/ context-mode --skill ctx-statsAfter installing, type/ctx-statsin Claude Code to confirm it loaded.
Details
From the project READMEContext 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.
Comments
Markdown supported