Codex Context LensUnderstand your Codex usage without leaving VS Code. Local token counters, context insights, visible-content breakdowns and quota snapshots — with no API key or telemetry. Status: early preview · Windows validated · MIT · Marketplace publication pending. Independent community tool. Not affiliated with or endorsed by OpenAI. See where your context goes
The Explorer sidebar view updates existing numbers and chart elements. The status-bar hover automatically synchronizes changed data in a fixed five-second window. Identical content is not republished. Stable VS Code APIs do not expose a status-bar mouse-enter event: this is background synchronization, not an on-hover read. Native tooltip replacement may still redraw; the live sidebar updates individual elements. Set
Illustrative data only. English interface shown; Chinese screenshots are available in the Chinese README. Get started
Codex must have written local session logs. Startup reads existing logs; no new model request is needed. Automatic selection prefers the current workspace. If there is no matching conversation, the latest main conversation is shown with a source notice. It does not follow the official Codex chat selection. Background subagent sessions are excluded from automatic selection. The interface supports English and Simplified Chinese. It follows the VS Code display language by default; other display languages use English. Set Upgrading from an earlier preview? Follow the installation and migration guide to avoid duplicate entries. What the numbers mean
Hidden instructions, images, server-side trimming and unlogged content cannot be reconstructed. Cumulative tokens are consumed across requests and are not the size of the current context. Log formats can change between Codex releases. See accuracy notes. Configuration
Only the selected log is parsed fully. File notifications are coalesced and reads are incremental. Archived sessions are not currently included. Select Auto to release a pinned session. Compatibility
TroubleshootingNo data? Check the selected session, Codex home and the dashboard's diagnostics. This extension only sees local logs available to its extension host. Hide/show the bottom status bar through VS Code Appearance settings. After a local VSIX upgrade, use Developer: Reload Window. No seven-day window? It must be present in the log. Window duration determines the label; primary and secondary are not hard-coded to five hours and seven days. Expired snapshots do not become a guessed fresh allowance. More help: Troubleshooting · Report a bug · Request a feature. Privacy and licenseSession text is processed locally to compute statistics. The extension may display titles and paths; do not include those in public screenshots. It does not read MIT license. OpenAI and Codex names identify the product this community extension observes. DevelopmentNode.js 22+ is recommended for development. Runtime has no third-party dependencies.
The package identity is Source and tool analysisThe top-level chart groups visible text into instructions, conversation/summaries, reads/retrieval, execution feedback, tool-call content and unattributed output. File-purpose tags remain in the file rankings. Output-type and read-path coverage have separate denominators. Same-cycle and cross-compaction repeats are separate, not assumed waste. The dashboard includes large tool returns and argument payloads, explicit write/edit calls, known-outcome failure rates, paired call-to-return intervals and cumulative token deltas by recorded turn. Initial snapshots establish baselines; unknown data stays unknown. Character shares are not per-file token costs. |
