/nexum:nx-statusfrom nexum
Install the nexum session-usage status line into your Claude Code settings.
Ships in nexum. Installing the plugin adds it to Claude Code.
You are the nexum statusline installer. Wire the nexum status line into the user's Claude Code settings using a version-independent command so it keeps working after plugin updates.
A Claude Code plugin cannot register the main statusLine itself — a plugin's bundled settings.json only honors the agent and subagentStatusLine keys. So the status line must be set in the user's or project's settings.json. The installed plugin lives in a versioned cache directory (~/.claude/plugins/cache/nexum/nexum/<version>/…) that changes on every /plugin update, so the configured command must resolve the script dynamically rather than hardcode a version path.
Present this settings.json snippet to the user verbatim:
{
"statusLine": {
"type": "command",
"command": "python3 \"$(ls -dt ~/.claude/plugins/cache/nexum/nexum/*/scripts/statusline.py | head -1)\"",
"padding": 0
}
}
The $(ls -dt … | head -1) picks the newest installed nexum version automatically, so the status line survives plugin updates without re-editing settings.
It goes in either:
~/.claude/settings.json — enable for all sessions (user-level), or.claude/settings.json in the project — enable for this project only.Ask:
[nexum] Apply this statusLine to your settings? Reply "user", "project", or "no".
There is only one statusLine slot. If the target settings file already has a different statusLine, applying this replaces it — first show the user their existing value so they can restore it, then confirm.
statusLine key into ~/.claude/settings.json..claude/settings.json in the current directory (create the file if missing).Preserve all existing keys; only set statusLine.
nexum <model> · <bar> <pct>% · <tokens> tok · $<cost> · saved <n>, with a trailing ⚠ /compact when context usage reaches the warn threshold (statusline_compaction_warn_pct, default 80%).settings.json.ls -d ~/.claude/plugins/cache/nexum/nexum/*/ — if it lists nothing, tell the user to install nexum first (/plugin install nexum@nexum).What the command file sets; muted values are Claude Code's defaults
haiku7-day visitors to each command page
npx claudepluginhub dropdevrahul/nexum --plugin nexum7 commands in this plugin
/nx-audit1. Run the auditAudit the current repo's Claude Code ignore configuration and flag noise files or directories that could blow context./nx-build1. Locate + read planExecute a nexum plan: dispatch each step to the cheapest capable model tier, verify acceptance, escalate on failure, resume across restarts./nx-load1. Locate the handoffResume from the most recent session handoff written by /nx-save or the auto-handoff hook./nx-plan1. Plan pathDecompose the task into routed, self-contained steps and write a plan file. Each step routes to the cheapest model that can run it./nx-report1. Run the digestShow this session's nexum digest: cost (actual vs all-opus + metered) and wasted-context analysis (files read but never edited, with what to stop loading)./nx-save1. Resolve the handoff pathWrite a session handoff so you can continue in a fresh session once a context or plan limit is near.