What is xray-mod?
xray-mod is a Claude Code mod by jagp that stare deeply into your contexts. It is listed under Context & memory and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | jagp |
| Repository | jagp/xray-mod |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | Low risk (80/100) |
| Rank | #6,496 of 9,397 Claude Code mods; #573 in Context & memory |
| Last commit | 2026-11-28 |
| Hooks | 14 events |
| Sees | compaction, every tool call |
| Draws on | Pane, SessionMode |
Is xray-mod safe to install?
xray-mod scores 80/100 on the MCPMods security check: Low risk. Things to review: writes files or config. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.config.set | changes config |
$.session.messages | reads the transcript |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.close | draws interface |
$.ui.copy | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install xray-mod?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/jagp/xray-mod claude plugin validate ./xray-mod/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/jagp/xray-mod && claude --plugin-dir ./xray-mod/.
Or ask Claude to set it up
Paste this into Claude Code and it installs xray-mod for you:
Install the "xray-mod" Claude Code mod from https://github.com/jagp/xray-mod. Run claude plugin validate on it first and show me what it can access before you enable it.