npx claudepluginhub dropdevrahul/nexumContext-token and model-cost optimization for Claude Code.
Long Claude Code sessions burn tokens you never meant to spend — the same file read twice, a giant log pasted in full, a planning task quietly running on Opus when Haiku would have done. nexum is a plugin that quietly takes those costs back.
It works along three lines:
It's pure Python standard library, fails open (a broken hook never breaks your session), and keeps all of its state in a single local SQLite file.
nexum is its own Claude Code plugin marketplace. From inside Claude Code:
/plugin marketplace add dropdevrahul/nexum
/plugin install nexum@nexum
/plugin install enables it right away. Pull new releases with /plugin marketplace update nexum. To run from a local checkout instead, point the marketplace at the path: /plugin marketplace add ./path/to/nexum.
Full details — including the status-line setup, which needs one line in your own settings — are in the installation guide.
| Command | What it does |
|---|---|
/nx-plan | Break the current task into ordered steps with contracts and scope, routing each to the cheapest capable model tier. |
/nx-build | Execute a plan: dispatch steps to Haiku/Sonnet/Opus, run acceptance checks, retry and escalate on failure. |
/nx-audit | Scan the repo for context risks — unignored large/binary files, missing ignore rules — and optionally apply fixes. |
/nx-status | Install the nexum session-usage status line into your Claude Code settings. |
/nx-save | Write a session handoff so you can resume cleanly in a fresh session before a context limit bites. |
/nx-load | Resume from the most recent handoff written by /nx-save or the auto-handoff hook. |
The full documentation lives at dropdevrahul.github.io/nexum:
The same pages are in the docs/ directory if you'd rather read them in the repo.
Released under the MIT License.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.