mcpField
C
ctx-stats

ctx-stats

github.com/mksgluAgent workflows32.7k1.8k installsUpdated today
Repository

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

  1. 01Call ctx_stats for session stats
  2. 02Show the full tool output
  3. 03Highlight the savings metric
  4. 04Explain how to purge indexed content

Use cases

  1. 01Check context savings in a session
  2. 02Present complete statistics tables
  3. 03Confirm when no calls have occurred
  4. 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-stats

After installing, type/ctx-statsin Claude Code to confirm it loaded.

Details

From the project README

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.

Comments

Markdown supported