Visualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.
Use Context X-Ray when a local coding-agent thread is getting large or the user wants to understand where context is going.
Recommended install path:
npx @agent-native/core@latest skills add context-xray --client allThat installs a local context-xray command plus Codex/Claude skills and slash
commands. It does not need hosted auth or a remote MCP connector to read local
transcript files.
Use --scope project when you only want project .agents skill and command
artifacts added to the current repo.
Current or most recent local thread:
context-xray --openRecent thread picker:
context-xray threads --openWeekly trends:
context-xray trends --since 7d --open--open opens the generated local HTML file directly in the browser; it does
not keep a background server running.
After running, summarize the report link, sessions analyzed, largest context buckets, warnings, and concrete optimizations.
e9a2f0e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.