Skip to main content

context-xray

Visualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.

Source facts

Repository
BuilderIO/agent-native
Last source activity
June 3, 2026 at 03:07
Detected SKILL.md language
English
Stars
7,449
Forks
681

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
context-xray
description
Visualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.
metadata
{"visibility":"exported"}
# Context X-Ray Use Context X-Ray when a local coding-agent thread is getting large or the user wants to understand where context is going. ## Setup Recommended install path: ```bash npx @agent-native/core@latest skills add context-xray --client all ``` That 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. ## Run Current or most recent local thread: ```bash context-xray --open ``` Recent thread picker: ```bash context-xray threads --open ``` Weekly trends: ```bash 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.
View on GitHub