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.
/plugin marketplace add VedantAndhale/claude-pro-kit /plugin install context-xray@claude-pro-kit
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

What it hooks into
session.measureWhen usage is measuredsession.startWhen a session startscommand.runWhen you run its slash command/xrayui.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
- Folder
- plugins/context-xray
- Version
- 0.2.0
- License
- MIT
- Repo stars
- 10
- Last change
- 2026-10-08
- Language
- TypeScript
- Files
- 5

