Skip to content
Back to search

claude-cockpit

MarketplaceWorks with Claude CodeGitHub

Cockpit: a context meter, usage statistics, a focus timer and themes for Claude Code.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/dexipua--claude-cockpit/badge.svg)](/listings/dexipua--claude-cockpit)

HTML

<a href="/listings/dexipua--claude-cockpit"><img src="/api/listings/dexipua--claude-cockpit/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

In a Claude Code terminal session:

/plugin install cockpit --marketplace dexipua/claude-cockpit

Answer `y` to add the marketplace, then press Enter for the user scope. It starts working right away.

From a shell:

claude plugin install cockpit --marketplace dexipua/claude-cockpit

In the Claude desktop app: click **+** next to the prompt box → **Plugins** → **Add marketplace** → `dexipua/claude-cockpit` → **Add plugin**.

> **Had `context-meter` installed?** Cockpit includes it. Remove the old one so you don't get two meters: > `claude plugin uninstall context-meter@claude-context-meter`

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 12 lines
  1. {
  2. "name": "claude-cockpit",
  3. "owner": { "name": "dexipua" },
  4. "description": "Cockpit: a context meter, usage statistics, a focus timer and themes for Claude Code.",
  5. "plugins": [
  6. {
  7. "name": "cockpit",
  8. "source": "./",
  9. "description": "Context meter, plan limits, usage statistics, a focus timer and themes for Claude Code, in one configurable mod."
  10. }
  11. ]
  12. }
README.md · README · 143 lines
  1. # Cockpit for Claude Code
  2. **Everything you want to keep an eye on while working with Claude, in one mod.**
  3. How full the context is, how much of your plan is left, where your tokens went this week, a focus timer, and five themes, all adjustable from one Settings tab.
  4. Roughly how it looks in the terminal:
  5. ```
  6. ╭──────────────────────────────────────────────────────────────────────────────╮
  7. │ Usage ● working stats compact × │
  8. │ Context 42% · 84k of 200k │
  9. │ ███████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │
  10. │ 5-hour limit 70% left · resets in 1h 52m Weekly limit 88% left │
  11. │ ███████████████████████████████░░░░░░░░░░░ ██████████████████████████████░ │
  12. │ This message 12k (1.4k out) · Session 340k · 18 turns · 92% cached │
  13. ╰──────────────────────────────────────────────────────────────────────────────╯
  14. Focus · java lab ████████░░░░ 14:32 left ❚❚ ■
  15. ```
  16. ## Install
  17. In a Claude Code terminal session:
  18. ```
  19. /plugin install cockpit --marketplace dexipua/claude-cockpit
  20. ```
  21. Answer `y` to add the marketplace, then press Enter for the user scope. It starts working right away.
  22. From a shell:
  23. ```
  24. claude plugin install cockpit --marketplace dexipua/claude-cockpit
  25. ```
  26. In the Claude desktop app: click **+** next to the prompt box → **Plugins** → **Add marketplace** → `dexipua/claude-cockpit` → **Add plugin**.
  27. > **Had `context-meter` installed?** Cockpit includes it. Remove the old one so you don't get two meters:
  28. > `claude plugin uninstall context-meter@claude-context-meter`
  29. ## What's inside
  30. ### 📟 Context meter (above the prompt)
  31. - Context fill as a bar, turning yellow and red at the levels you choose
  32. - Your plan's 5-hour and weekly limits: what's left and when they reset
  33. - Tokens of the last message and of the session, turns, cache hit rate
  34. - Three sizes: a full **card**, **one line**, or a tiny **chip**, so it takes as much room as you want
  35. - Optional: the state of your graphify code graph, if you use it
  36. ### 📊 Statistics (`/cockpit`)
  37. A pane with tabs, counting across all your sessions:
  38. | Tab | Shows |
  39. | --- | --- |
  40. | **Today** | tokens in/out, cache share, messages, how long Claude worked, focus time, cost estimate, by project |
  41. | **Week / Month** | a bar per day, totals, average per active day, busiest day |
  42. | **Projects** | the last 30 days, ranked |
  43. | **Tools** | which tools Claude reaches for, edits per read |
  44. | **Habits** | your streak, the hour you work most, weekdays |
  45. | **Focus** | focus minutes, sessions, daily goal, streak, start/stop buttons |
  46. | **Settings** | everything below |
  47. Everything stays on your computer, in Claude Code's own storage for the mod. Nothing is sent anywhere. The cost is an estimate at API prices, not a bill.
  48. ### 🎯 Focus timer (`/pomo`)
  49. - `/pomo` starts 25 minutes, `/pomo 50 java lab` starts 50 with a label
  50. - A progress bar above the prompt with pause and stop
  51. - A pop-up when it's done, then a one-click break; every n-th break is a long one
  52. - Optional: start the break by itself, and a daily goal
  53. - One timer shared by every open session
  54. ### 🎨 Themes (`/look`)
  55. | | |
  56. | --- | --- |
  57. | `coffee` | crema by day, espresso by night |
  58. | `kyiv` | clear blue sky over a wheat field |
  59. | `forest` | moss and pine, a cabin lamp at night |
  60. | `concert` | velvet seats and warm stage light |
  61. | `ocean` | sea foam on top, deep water below |
  62. Each has a light and a dark version. Pick one, or let it change every day or every session. Themes draw in the Claude desktop and mobile apps; the terminal keeps its own colors.
  63. ## Commands
  64. | Command | Does |
  65. | --- | --- |
  66. | `/cockpit` | open the pane (`/cockpit week`, `/cockpit settings`, …) |
  67. | `/cockpit set <key> <value>` | change a setting: `/cockpit set focusMin 50`, `/cockpit set theme kyiv`, `/cockpit set limits off` |
  68. | `/cockpit list` | print every setting with its value |
  69. | `/cockpit reset` | all settings back to defaults |
  70. | `/pomo [min] [label]` | focus timer; also `break`, `pause`, `stop`, `stats` |
  71. | `/meter [small\|detailed\|close]` | resize the meter; `graph` / `all` open the graphify graph (Windows) |
  72. | `/look [name\|next\|random\|daily\|off]` | switch the theme (`/theme` is Claude Code's own terminal theme picker) |
  73. If another plugin already uses `/pomo`, `/meter` or `/look`, Cockpit says so once and you can reach the same thing as `/cockpit pomo …`, `/cockpit meter …`, `/cockpit look …`.
  74. ## Settings
  75. All of them are in the **Settings** tab (toggles, − / + buttons, pickers), or `/cockpit set <key> <value>`:
  76. | Key | Default | |
  77. | --- | --- | --- |
  78. | `meter.enabled` | on | show the meter |
  79. | `meter.view` | card | `detailed` card, `compact` line, `closed` chip |
  80. | `meter.limits` | on | plan limit bars |
  81. | `meter.tokens` | on | the token row |
  82. | `meter.graph` | on | the graphify row |
  83. | `meter.warnAt` / `meter.dangerAt` | 60% / 85% | when the bar turns yellow / red |
  84. | `focus.enabled` | on | the timer row |
  85. | `focus.focusMin` | 25 | focus length, minutes |
  86. | `focus.breakMin` / `focus.longBreakMin` | 5 / 15 | break lengths |
  87. | `focus.longEvery` | 4 | a long break after every n-th session |
  88. | `focus.autoBreak` | off | start the break by itself |
  89. | `focus.toasts` | on | pop-up when a timer ends |
  90. | `focus.dailyGoalMin` | 120 | daily focus goal (0 = none) |
  91. | `stats.enabled` | on | collect statistics |
  92. | `stats.keepDays` | 120 | how much history to keep |
  93. | `stats.cost` | on | show the cost estimate |
  94. | `stats.barWidth` | 24 | bar length in the pane |
  95. | `stats.openAtStart` | off | open the pane when a session starts |
  96. | `theme.look` | app default | `coffee`, `kyiv`, `forest`, `concert`, `ocean`, `off` |
  97. | `theme.rotate` | never | `daily`, `session` |
  98. | `layout.focusFirst` | on | timer above the meter |
  99. The short key works too: `/cockpit set focusMin 50` is `focus.focusMin`.
  100. ## Requirements
  101. - A recent Claude Code (mods are a new feature: update it if the install works but nothing appears)
  102. - Plan limits appear only when Claude Code reports them (a Claude subscription); with an API key the meter shows context and tokens without them
  103. ## Development
  104. ```
  105. claude plugin validate .
  106. claude plugin test .
  107. ```
  108. `hooks/register.tsx` is the mod, `hooks/lib.ts` the settings schema and helpers, `hooks/looks.ts` the themes, `types/index.d.ts` its state contract.
  109. ## License
  110. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.