context-xray
Reviewed
at commit b28b1bc
A pane with the exact breakdown of what fills Claude's context: system prompt, tools, memory files, skills, messages, and which tools load on every request.
0 upvotes
Log in to upvote or save- Made by
- Vedant Andhale
- Pinned commit
-
b28b1bc53720a54144324875cc3e12c8944002af - What we checked
-
Opens a pane with the exact breakdown of what fills Claude's context window: system prompt, tools, memory files, skills, messages and MCP tools. It opens itself when the context passes 60% and 80% unless you turn that off with /xray auto off. It measures through Claude Code's own session usage call and sends nothing elsewhere.
Review details
Static review of the source at the pinned commit; not run. Registers session.measure (watches context percent and opens the pane plus a toast when it crosses 60 or 80 percent, if the auto setting is not off), session.start (registers /xray), command.run (/xray opens the pane; /xray auto on|off stores the setting with $.store), and ui.render for the pane with a Refresh button. Measuring calls $.session.usage({ breakdown: 'full' }), which the comments say issues one token-count request per tool and memory file to Claude on the user's own account; it only runs when the pane opens or Refresh is pressed. The result is kept in plugin atoms (snapshot, isMeasuring, error) and drawn with small inline SVG bars (no external resources). No fs, process, env or network calls of its own. The ../types import is a type-only file in the plugin folder (types/index.d.ts) and was in the bundle. npm dependencies: none.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): yes
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/context-xray/)