What is jr-next-cost?
jr-next-cost is a Claude Code mod by jrlprost that what the next prompt costs before you send it, on /jr-next-cost: the context it resends at the current model's price, read from a warm cache or written to a cold one, at API rates. It is listed under Cost & usage and has 4 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | jrlprost |
| Repository | jrlprost/claude-code-mods |
| Popularity | 4 GitHub stars |
| Category | Cost & usage |
| Security | Low risk (100/100) |
| Rank | #1,579 of 9,397 Claude Code mods; #260 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-25 |
| Hooks | 5 events |
| Sees | only the events it hooks |
| Draws on | AbovePrompt |
Is jr-next-cost safe to install?
jr-next-cost scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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 |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.session.model | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.resolve | draws interface |
How do I install jr-next-cost?
- 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/jrlprost/claude-code-mods claude plugin validate ./claude-code-mods/plugins/jr-next-cost
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add jrlprost/claude-code-mods && claude plugin install jr-next-cost@claude-code-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs jr-next-cost for you:
Install the "jr-next-cost" Claude Code mod from https://github.com/jrlprost/claude-code-mods/tree/main/plugins/jr-next-cost. Run claude plugin validate on it first and show me what it can access before you enable it.
More from jrlprost/claude-code-mods
This repository has at least 9 Claude Code mods on MCPMods.
- jr-awake: Keeps the Mac awake while Claude works, shared by every session on the machine, and warns before the next sleep. (Review before installing)
- jr-badge: A coloured project badge and its branch, on the right above the prompt, so you always know which window you are typing i (Review before installing)
- jr-cache-clock: A toast 30 seconds before the prompt cache goes cold, and on /jr-cache-clock a quiet countdown above the prompt: how lon (Low risk)
- jr-commit-coach: Nudges you toward small atomic commits: when uncommitted changes pass a threshold, a band and a toast suggest a split by (Low risk)
- jr-context: The context window in one quiet row above the prompt: a mini bar coloured by category, the fill and the window, turning (Low risk)
- jr-decisions: A decision journal per project: /jr-decisions or a prompt starting with "decision:" records one, /jr-decisions lists the (Review before installing)
- jr-deploy-guard: Production deploys and pushes to main always come to you for confirmation, even when your rules allow them. Optional: no (Low risk)
- jr-deslop: Flags AI-writing tells (em dashes, "delve", "not X, but Y", stock openers...) in the prose files Claude writes. A toast (Low risk)