ClaudeCodeMod

All shelves / Mods / Usage

context-card

By Nongfsq

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.

Draws

Install

The marketplace name is frank-claude-cockpit.

In Claude Code
/plugin marketplace add Nongfsq/frank-claude-cockpit
/plugin install context-card@frank-claude-cockpit
Open the repo

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

A sample of the context card with the breakdown open: context fill, cache time left, auto-compact, weekly usage, and category counts.
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.

Facts

Author
Nongfsq
Category
Usage
Marketplace
frank-claude-cockpit
Repo
Nongfsq/frank-claude-cockpit
Folder
context-card
Version
0.1.2
License
MIT
Repo stars
6
Last change
2026-10-04
Language
TypeScript
Files
6

Other mods in Usage

statuslineryanclarkDraws context, the 5-hour and 7-day limits, and extra usage under the prompt, from statusline, a status-line binary you install first.usage-headerSzotaszDraws the context window above the prompt, a color per category, with the 5-hour and weekly limits under it.green-lanternvogiaan1904Draws the 5-hour and 7-day limits as Green Lantern charge that drains as you use it, with a power-ring spinner and an emerald theme.long-live-the-claudeLapis0x0Draws the 5-hour and 7-day limits, context, and cache time above the prompt. Long-run, off by default, keeps the cache warm and pauses near the limit.usage-petmanson341349-beepDraws context, the 5-hour and weekly limits, and the cache hit rate above the prompt. The desktop Code tab draws four rings, with a pixel pet beside them.context-alarmmutlumehmetWarns when the context window fills, with a status line under the prompt, and suggests /save-context before compaction.cache-watchernikisgeDraws the cache time, the context, the plan limits, and this session's API value above the prompt, and a press can keep the cache warm.fast-jev-outputtamaratranSends a long Bash result to TypeSafe's Jev, which trims it before Claude reads it, and toasts the cut. The full output stays in the project.usage-statusrobbytDraws a row under the prompt hint with the 5-hour and 7-day limits left and how full the context is.brewmod-plan-effortkochetkov-maDraws a row above the prompt while Claude plans, naming the effort it raised to, xhigh by default.cache-keepernateherkaiDraws whether this chat's prompt cache is warm or cold, what a cold rewrite would cost, and the plan limits, and can keep a big chat warm.usage-budgeterikdarlingdataHolds a commandToasts when the 5-hour or 7-day window crosses a percent, and refuses a new subagent past 95% by default.
All 183 in Usage