cabbage2000-lab

Codex Claude Monitor — Development skill for Claude Code

Development community

VS Code 状态栏显示当前 Codex / Claude Code 会话的上下文用量百分比.

How to install Codex Claude Monitor

This entry records only its repository, not the path inside it, so there is no exact command to give. Open cabbage2000-lab/Codex-Claude-Monitor and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codex Claude Monitor does

VS Code 状态栏显示当前 Codex / Claude Code 会话的上下文用量百分比.

Alternatives in Development

README

Codex Claude Context Monitor

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![VS Code](https://img.shields.io/badge/VS%20Code-%5E1.85.0-007ACC.svg?logo=visualstudiocode)](https://code.visualstudio.com/) [![Dependencies](https://img.shields.io/badge/dependencies-none-brightgreen.svg)](package.json) [![Tests](https://img.shields.io/badge/tests-node%20--test-success.svg)](test/)

Codex-Claude-Monitor is a VS Code extension that tracks context usage for the current Codex **or** Claude Code session right in the status bar.

The extension reads local session files for both Codex and Claude Code, then displays whichever tool was active most recently. It makes **no network requests** — everything is computed from files already on your machine.

Features

  • Unified status bar item for both Codex and Claude Code. The provider whose session file was updated most recently wins, so you never have to switch anything manually.
  • Color-coded warnings that adapt to your theme as context fills up:
    • 🟢 green below 50%
    • 🟡 yellow at 50–79%
    • 🔴 red at 80% and above
  • Minimal, icon-based status bar showing the active provider, context percentage, and (for Codex) compact 5h/weekly usage via codicon icons, so it stays compact and language-neutral.
  • Detailed hover tooltip with exact token counts, the friendly model name, Claude token composition and cache-hit rate, and 5-hour / weekly rate-limit usage for both providers with the reset time and a relative countdown.
  • Workspace-aware filtering — only sessions whose working directory lives inside your current VS Code workspace are counted, so CLI sessions from other projects are ignored.
  • Click to refresh immediately, plus automatic refresh on a configurable interval.
  • Handoff above 50% — when context exceeds 50%, a Handoff entry appears beside the status bar. Click it to copy a compact continuation prompt (context %, session file, branch, plus a minimal Task/Do