What is xray?
xray is a Claude Code mod by freakinfrick. xray's Claude Code host: two glanceable cards under the spinner, what Claude is doing and its to-do list, plus a session genome (every step, one colored cell). The same core also runs in. It is listed under Interface and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | freakinfrick |
| Repository | freakinfrick/xray |
| Popularity | 1 GitHub stars |
| Category | Interface |
| Security | High risk (56/100) |
| Rank | #1,797 of 5,272 Claude Code mods; #721 in Interface |
| Last commit | 2026-10-06 |
| Hooks | 14 events |
| Sees | classic hooks, every prompt, every tool call, subagent spawns |
| Draws on | Spinner, Pane, AbovePrompt |
Is xray safe to install?
xray scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 3 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 processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.device.class | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.model.complete | drives Claude |
$.process.run | runs processes |
$.session.cwd | |
$.session.id | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install xray?
- 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/freakinfrick/xray claude plugin validate ./xray/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/freakinfrick/xray && claude --plugin-dir ./xray/.
Or ask Claude to set it up
Paste this into Claude Code and it installs xray for you:
Install the "xray" Claude Code mod from https://github.com/freakinfrick/xray. Run claude plugin validate on it first and show me what it can access before you enable it.