What is cockpit?
cockpit is a Claude Code mod by Showrin that shows the git branch, context, 5-hour and weekly limits, token usage and cost right above the prompt. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Showrin |
| Repository | Showrin/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (72/100) |
| Rank | #8,389 of 9,397 Claude Code mods; #1,662 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-08 |
| Hooks | 5 events |
| Sees | Bash calls |
| Draws on | AbovePrompt |
Is cockpit safe to install?
cockpit scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.env.get | reads env vars |
$.fs.list | reads files |
$.fs.read | reads files |
$.process.run | runs processes |
$.session.cwd | |
$.session.id | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.resolve | draws interface |
How do I install cockpit?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/Showrin/claude-mods claude plugin validate ./claude-mods/mods/cockpit
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Showrin/claude-mods && claude plugin install cockpit@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs cockpit for you:
Install the "cockpit" Claude Code mod from https://github.com/Showrin/claude-mods/tree/main/mods/cockpit. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Showrin/claude-mods
This repository has 3 Claude Code mods on MCPMods.
- on-demand-savior: Pauses Claude before the 5-hour or weekly limit spills into on-demand usage, writes a handoff, and resumes from it once (High risk)
- turn-memo: Prints a one-line memo (tokens, cache, cost) beneath every reply (Low risk)