What is prime-ctbar?
prime-ctbar is a Claude Code mod by settanun-prime that context window breakdown and prompt-cache countdown above the prompt with interactive compact button; /prime-ctbar (or /ctbar) toggles it. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | settanun-prime |
| Repository | settanun-prime/prime-studio-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Low risk (84/100) |
| Rank | #8,321 of 9,397 Claude Code mods; #1,644 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-29 |
| Hooks | 7 events |
| Sees | compaction, every prompt |
| Draws on | AbovePrompt |
Is prime-ctbar safe to install?
prime-ctbar scores 84/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 6 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 no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| 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.after | |
$.clock.every | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.command.run | drives Claude |
$.session.compact | drives Claude |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install prime-ctbar?
- 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/settanun-prime/prime-studio-mods claude plugin validate ./prime-studio-mods/prime-ctbar
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add settanun-prime/prime-studio-mods && claude plugin install prime-ctbar@prime-studio-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs prime-ctbar for you:
Install the "prime-ctbar" Claude Code mod from https://github.com/settanun-prime/prime-studio-mods/tree/main/prime-ctbar. Run claude plugin validate on it first and show me what it can access before you enable it.
More from settanun-prime/prime-studio-mods
This repository has 3 Claude Code mods on MCPMods.
- prime-agents-panel: Side pane listing project, user and plugin agents with a run button each; /prime-agents-panel toggles it. (Low risk)
- prime-guard: Helps reduce personal data sent to Claude: redacts detected Thai and international personal data before sending and mask (Review before installing)