ctx-stats

ctx-stats is a skill for Claude Code, Codex from mksglu/context-mode. It costs 62 tokens per session (277 once invoked), scanned A, original, no licence file.

A read-only command that reports how much conversation context context-mode saved during the current session.

In plain words
What is it for?
Use it to view token use, the context-savings ratio, and savings by tool.
Why use it?
It shows whether context-mode is reducing the amount of text the agent must keep in its conversation.

Skill for Claude CodeCodex

Part of the context-mode plugin — 9 skills, 3 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mksglu/context-mode/ctx-stats
Any agent
npx skills add mksglu/context-mode --skill ctx-stats
Clone the repo
git clone --depth 1 https://github.com/mksglu/context-mode

Made for: Claude Code, Codex.

Or install context-mode, the plugin that ships this one along with the rest of its 9 skills, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ctx-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/mksglu/context-mode/ctx-stats.svg)](https://agentmods.dev/skills/mksglu/context-mode/ctx-stats)
Your own site
<a href="https://agentmods.dev/skills/mksglu/context-mode/ctx-stats"><img src="https://agentmods.dev/badge/skills/mksglu/context-mode/ctx-stats.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 277 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.00277
Opus 5 $0.00031 $0.00138
Sonnet 5 $0.00012 $0.00055
Haiku 4.5 $0.00006 $0.00028

Measured 5d ago against content hash 3babe4989837, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ctx-stats scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ctx-stats/SKILL.md · 27 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 27 lines · 62 tokens per session scan A 3babe4989837

Subscribe to this mod's changes

ctx-stats is a skill published in the GitHub repository mksglu/context-mode (20,335 stars, last pushed today), with no licence file. It adds 62 tokens to every session and 277 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

offensive-c2-frameworks

Command and Control framework deployment, configuration, and operational tradecraft for red team engagements. Covers Cobalt Strike (malleable C2 profiles, Beacon types HTTP/HTTPS/DNS/SMB, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implant generation across…

SnailSploit/Claude-Red · 250 tokens

comet-memory

使用于 Comet 需要根据有界语义评审包判断是否值得保存个人记忆、候选、更新、遗忘或跳过时。.

rpamis/comet · 38 tokens

android-profiler

Manages Android performance profiling and debugging. Triggers when the user asks to record or analyze Android performance data, such as system traces, heap dumps, method recordings, callstack samples, memory allocations, or investigate bottlenecks, jank, memory leaks, and app startup issues on Android, or when the…

android/skills · 91 tokens

product-help

Use this skill when the user asks about my own features, configuration, or usage — installation, skills, Web UI, CLI, API config, memory, sessions, encryption, white-label, publishing, pricing, troubleshooting, or restarting the server. Do NOT trigger for general coding tasks unrelated to me.

clacky-ai/openclacky · 63 tokens

recall-memory

Recall relevant long-term memories on demand. Given a topic or question, judges relevance from pre-loaded metadata, loads only relevant files, and returns a concise summary to the main agent.

clacky-ai/openclacky · 40 tokens

immune

Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning. Triggers on: "scan for errors", "immune scan", "check output quality", "antibody scan". NOT for PR review (use pr-review) or repo audits (use repo-sentinel).

Mathews-Tom/armory · 73 tokens