ctx-stats

Analyze token consumption and context savings ratios per tool for the current session.

19.7k|1.4k|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/mksglu/context-mode --skill ctx-stats
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ctx-stats
Source: https://github.com/mksglu/context-mode/tree/main/skills/ctx-stats
Command: npx skills add https://github.com/mksglu/context-mode --skill ctx-stats

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users understand how effectively the context-mode is saving their context window by providing detailed statistics on token consumption and savings ratios.

Core Features & Use Cases

  • Context Savings Visualization: Displays token usage, overall savings ratio, and a breakdown of savings per tool.
  • Session Monitoring: Tracks context management throughout a session to inform users about efficiency.
  • Use Case: After a long coding session with many tool calls, a user can invoke this Skill to see exactly how much data was kept out of the context window and by how much the context size was reduced.

Quick Start

Display the context mode statistics for this session.

Frequently Asked Questions about ctx-stats

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor context window savings during a coding session?

You can monitor context window savings by invoking the ctx-stats Skill, which analyzes token consumption, context savings ratio, and per-tool breakdown for the current session. It requires the mcp__context-mode__ctx_stats tool to be available and executed.

What are context savings statistics and how do they help?

Context savings statistics measure how much data was kept out of the context window by the context-mode tool. They display token usage, overall savings ratio, and a breakdown of savings per tool, helping you understand context management efficiency throughout a session.

Can I see a per-tool breakdown of token consumption?

Yes, the context savings statistics provide a per-tool breakdown of token consumption and savings ratio. This allows you to see exactly how much data was kept out of the context window by each tool during the session.

Do I need the context-mode tool to track context savings?

Yes, you need the mcp__context-mode__ctx_stats tool to be available and executed. The Skill provides statistics on context window savings achieved by the context-mode tool, so it requires this dependency to analyze the data.

When should I check my context savings ratio?

You should check your context savings ratio after a long coding session with many tool calls. This allows you to see exactly how much data was kept out of the context window and by how much the context size was reduced.