ClaudeCodeMod

All shelves / Mods / Usage

context-xray

By VedantAndhale

context-xray is a Claude Code usage mod by VedantAndhale.

Draws a pane with the exact breakdown of what fills the context window, opened with /xray.

Draws

Install

The marketplace name is claude-pro-kit.

In Claude Code
/plugin marketplace add VedantAndhale/claude-pro-kit
/plugin install context-xray@claude-pro-kit
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.2.0
License
MIT
Repo stars
10
Last change
2026-10-08

What it can reach

  • Draws in the session
  • Reads usage or context figures

/xray opens the pane. It measures when the pane opens and when you press Refresh, not in the background. The README says each measure sends one token-count request per tool and memory file. The pane opens by itself when context crosses 60 percent and again at 80 percent, with a toast that points at /compact and /handoff. /xray auto off keeps that to /xray only.

One plugin from VedantAndhale/claude-pro-kit. The root README says prompt-polish is the only mod in that kit that makes a model call, and context-xray makes none. The plugin folder has no README. These lines are the repository README. context-inspector draws waste in the window, such as re-reads and near-duplicates, with advice. context-bar draws one stacked bar of the window. This pane is the exact breakdown of what is sent on every request, what loads on demand, and each memory file. The token-count requests go through Claude Code on your own login, so this page does not list network access.

Demo

The context-xray pane: 440,614 of 1,000,000 tokens, 44 percent full, with bars for messages, skills, tools, the system prompt, and memory files
From the author's repo.

What it hooks into

  • session.measureWhen usage is measured
  • session.startWhen a session starts
  • command.runWhen you run its slash command/xray
  • ui.renderDraws into the sessionPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /xrayContext X-ray: the exact breakdown of what fills the context window · /xray auto on|off

Files

The author's source, 3 files. They load when you open them.

Facts

Author
VedantAndhale
Category
Usage
Marketplace
claude-pro-kit
Repo
VedantAndhale/claude-pro-kit
Folder
plugins/context-xray
Version
0.2.0
License
MIT
Repo stars
10
Last change
2026-10-08
Language
TypeScript
Files
5

Other mods in Usage

output-dietVedantAndhaleTrims what Claude reads from a long shell, search, or subagent result, saves the full text, and counts the savings on the status line.pro-hudVedantAndhaleDraws the 5-hour session, the week, and context above the prompt in the desktop app, plus this turn and finished tool calls as one line.session-receiptVedantAndhaleOpens a pane of every turn's tokens, with the five that spent the most, and toasts after a turn that used 3 or more session points.skill-dietVedantAndhaleLists skills unused lately in this project by name only, so their descriptions leave the prompt, and counts those characters on the status line.turn-budgetVedantAndhaleStops a turn that passes the limit you set, writes a handoff, and copies it for a new session, leaving the old one in place. It can ask first instead.context-lensArunjay4213Pins how full the context window is and what the last turn added, and /context-lens opens the breakdown by category.quota-meterArunjay4213Pins the 5-hour and 7-day plan limits when they are reported, with the reset and whether the current pace fills them first.token-ledgerArunjay4213Pins this session's cost and the last turn's tokens and cache hit, and /ledger lists each turn.mod-packaz9713Holds a commandSeven mods in one install: a context forecast, a cache countdown, a follow-up queue, a plain retell, two holds on risky commands, and Snake.taxi-meterdevbrother2024Draws this session's cost as a taxi fare, in won at API list price, with context fill and the plan limits.agent-routeralexandernicholsonHolds a commandAssigns a model and effort to each subagent role from your endpoint's catalog, and draws that model beside the prompt.keepalivealexandernicholsonDraws a prompt-cache bar for each conversation, and can keep an idle cache warm or compact it before it expires.
All 183 in Usage