ClaudeCodeMod

All shelves / Mods / Usage

cockpit

By drkokorev

cockpit is a Claude Code usage mod by drkokorev.

Opens a panel beside the transcript with context, rate limits, cost, subagents, tool calls, changed files, and tests, and asks before rm -rf or a force push.

DrawsHolds a command

Install

The marketplace name is cockpit-for-claude.

In Claude Code
/plugin marketplace add drkokorev/cockpit-for-claude
/plugin install cockpit@cockpit-for-claude
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
1.0.2
License
MIT
Repo stars
10
Last change
2026-10-09

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Holds a command
  • Sees tool calls
  • Runs a command when you press
  • Calls another program on this machine

Claude Code v2.1.287 or later. Works in the Claude Code terminal and the desktop app's Code tab; tested on macOS. The panel opens on its own in a wide terminal, docking from 110 columns in fullscreen; anywhere else, type /cockpit. Where the app shows no side panel, a two-line band above the prompt carries the same numbers. In the VS Code chat panel, claude -p, and cloud sessions, the guard and alerts still run and nothing is drawn. Rate-limit windows appear on a Pro or Max subscription. From a shell: claude plugin marketplace add drkokorev/cockpit-for-claude, then claude plugin install cockpit@cockpit-for-claude. /cockpit-demo fills every section with sample data.

The marketplace, cockpit-for-claude, holds only this mod. The context, limits, and cost at the top of the panel are why this page files it under usage. cockpit-tsergeytovarov, another mod named cockpit, draws context weather and the plan limits above the prompt and can stop a dangerous command. token-optimizer draws session quality, context fill, a cache countdown, and the plan limits above the prompt in the desktop app. This one puts twelve sections in one panel, each opening to its details: the biggest tool outputs, a subagent's timeline, a changed file's diff, and the last test runs. Toasts come at 80% and 95% context, near a rate limit, and on a likely loop. The guard stops commands such as rm -rf, git push --force, and terraform destroy with Run it or Block it, and asks Allow or Block it before an edit to a secrets file such as .env. The same author's context-diet is also on the shelf.

Demo

A frame of the author's Cockpit demo, which the README says is rendered from the panel's real UI tree with sample data: context at 66% of 200k, the 5h and 7d limits, a cost of $4.86 covered by the plan, the turn, two agents, tools, four files changed, tests passed, Guard on with 1 blocked, a loop alert and a compaction, input tokens per turn, and buttons from Expand all to Export .md.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.measureWhen usage is measured
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • command.runWhen you run its slash command/cockpit-budget/cockpit-demo/cockpit-cache/cockpit-export/cockpit/cockpit-report/cockpit-guard
  • ui.closeWhen its pane closes
  • ui.renderDraws into the sessionAbovePromptPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 7

  • /cockpitOpen the agent cockpit panel
  • /cockpit-reportPrint a cockpit summary of this session
  • /cockpit-guardTurn the risky-command guard on or off
  • /cockpit-budgetSet a spend budget for this session, in USD
  • /cockpit-exportSave a Markdown report of this session to .cockpit/
  • /cockpit-demoFill the cockpit with sample data to see every section (off restores yours)
  • /cockpit-cacheSet the prompt-cache lifetime the countdown assumes

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
drkokorev
Category
Usage
Marketplace
cockpit-for-claude
Repo
drkokorev/cockpit-for-claude
Folder
plugins/cockpit
Version
1.0.2
License
MIT
Repo stars
10
Last change
2026-10-09
Language
TypeScript
Files
10

Other mods in Usage

cache-refresherolddonkeyDraws a bar above the prompt with the time until the prompt cache expires and what a rebuild would cost, and can refresh the cache while you are away.context-alertnathanonnOpens a question dialog when the context window reaches 40 percent, offering to write a handoff doc and then compact, write one only, or compact now.stintdigital-stoic-orgDraws a band above the prompt with context fill, plan headroom, and the stint count, and /pit saves notes, clears, and starts the fresh context from them.orca-movemutlumehmetMoves a session to a twin account as one nears its usage limit: it runs /exit once the prompt box is empty, or shows a toast asking you to clear it.model-relaycablateOpens a panel above the prompt to switch this window to another model provider, routes subagents to providers, and fails over when Claude returns a 429.rtk-gainrtk-aiDraws what RTK saves while Claude works: a band above the prompt, the saving in the spinner, and a /rtk-gain pane where a viking breaks the saved tokens.tokendoctorrsaryevShows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.catnapLippIncHas Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.pitwallaxlaserDraws live cost, cache, and limits above the prompt and in a side panel, with a card per subagent you can stop, and fourteen themes that repaint Claude Code.jev-routerdominicricoAsks TypeSafe's Jev which Claude model and effort fit each prompt, step, and subagent, runs it there, and draws every pick in a band above the prompt.usage-statsomeerdvrnOpens a /usage-stats pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model, with Linear issues closed.claujev-modCivalskiHolds a commandDraws a status line of the checks and actions TypeSafe's Jev made today for the ClauJev plugin, with the effort Jev suggests, and can apply that effort.
All 183 in Usage