context-card is a Claude Code usage mod by Nongfsq.
Draws context fill, the prompt cache, and weekly plan usage in one line above the prompt, with a breakdown on click. One of two mods for running many sessions.
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
Version
0.1.2
License
MIT
Repo stars
6
Last change
2026-10-04
What it can reach
Draws in the session
Reads usage or context figures
Frank Claude Cockpit is two mods for people who run many sessions at once. This one is the line above the prompt. The context fill turns amber at 60% and red at 80%. The prompt cache is marked fresh, past half its life, or expired. Click the line to open the breakdown, including messages and tools, the cache's minutes left, and where auto-compact will run. Click again to close it. The weekly figure needs a Claude subscription login. With an API key the card still shows context, without the weekly figure. That read asks api.anthropic.com with the login Claude Code already holds, at most once every two minutes however many sessions are open. One session asks and the rest read the answer from ~/.claude/cache/context-card-usage.json. The author says that request uses no tokens. The PRs button appears only when pr-pane is installed. The author built and tested both mods on Claude Code 2.1.286.
The install name is context-card. This page adds the author's name. The marketplace name is frank-claude-cockpit. The marketplace also holds pr-pane. This one installs on its own. The folder has no README. These lines are the repository README. The line above the prompt, with the context window and the weekly figure, is why this page files it under usage. context-bar draws the context window as one stacked bar, a color per category, with token counts and the compaction point. usage-band draws one line above the prompt for the 5-hour and 7-day limits, the context, and the last turn's cache hit. This line is the context fill, the prompt cache, and the weekly plan figure, and the click opens the breakdown. The weekly read goes to Anthropic on the login Claude Code already holds.
Demo
From the author's repo.
What it hooks into
session.startWhen a session starts
session.endWhen a session ends
turn.completeWhen a turn ends
classic.SessionStartA Claude Code event
classic.StopA Claude Code event
session.compactWhen the context is compacted
session.measureWhen usage is measured
ui.renderDraws into the sessionAbovePrompt
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's source, 3 files. They load when you open them.