/ultracost:diff <old-script.js> <new-script.js>from ultracost
Diffs the estimated cost of two workflow versions and judges whether the change is worth it. Supports --ci for a PR-comment markdown table.
Ships in ultracost. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
You are running the diff workflow. Goal: explain how an edit changed the cost and whether that is justified.
$ARGUMENTS (old, then new).env -u NO_COLOR FORCE_COLOR=3 node "${CLAUDE_PLUGIN_ROOT}/bin/cli.js" diff <old> <new>
--ci to
emit the Infracost-style markdown table and hand that back.The CLI output is your evidence — its panels, tables, and bars (in color, since
FORCE_COLOR is set) are shown to the user in the command-output view; don't just
re-echo them, and don't strip them either. Lead with your reasoning and the recommended
action. When you offer choices, use the AskUserQuestion tool so the user gets a native
picker, then carry out what they choose. Keep prose tight.
7-day visitors to each command page
12 commands in this plugin
/auditultracost auditAudit pin coverage across your real workflow scripts, identify the worst offenders, and offer to check or fix a specific one./calibrateultracost calibrateTune the estimator from your real token usage (outlier-filtered prior) so future estimates match your reality, and report what changed./checkultracost checkGuard a dynamic-workflow script and fix it: flag agent() stages that would inherit the session model or mismatch the task, propose the right per-stage pins, and offer to apply them./estimateultracost estimateEstimate a workflow before launch and help cut its cost: agent count, model mix, tiered vs all-opus, then surface the costly stages and offer concrete downgrades./explainultracost explainExplain a workflow stage by stage — pinned model, effort, the tier the prompt reads like, est cost, and which guard checks fire — and flag any pin that disagrees with the work./hudultracost hudSet up, preview, or disable the ultracost HUD statusline — a live multi-line panel showing session cost, cumulative savings vs all-opus, the subagents running right now (model + tier + elapsed), and an animated pixel-art ultracost logo.Other plugins' commands for the same job
npx claudepluginhub danielkremen818/ultracost --plugin ultracost