claude

ultracost

Per-stage model routing + pre-flight cost gate for Claude Code ultracode dynamic workflows. Pins an explicit model + effort on every agent() subagent stage, estimates cost before launch, and ships a static guard + PreToolUse gate that flag stages which would silently inherit the session's Opus model. Zero dependencies, no telemetry, MIT.

3,741 on GitHubby Daniel Kremenv0.3.7MITupdated 2 days agodevelopment
/

Plugin ultracost from marketplace buildwithclaude in davepoon/buildwithclaude. Commands read from the repo's manifest — yesterday.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (1)

  • ultracost

    Quality-first per-stage model routing AND a pre-flight cost gate for Claude Code dynamic workflows. Use when authoring or running ultracode / dynamic-workflow scripts, spawning subagents, or writing agent() stages — pin the right model and effort on every stage, then estimate cost and confirm with t

Slash commands (12)

  • /ultracost:audit

    Audit pin coverage across your real workflow scripts, identify the worst offenders, and offer to check or fix a specific one.

  • /ultracost:calibrate

    Tune the estimator from your real token usage (outlier-filtered prior) so future estimates match your reality, and report what changed.

  • /ultracost:check

    Guard 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.

  • /ultracost:diff

    Diff the estimated cost of two workflow versions and judge whether the change is worth it; add --ci for a PR-comment table.

  • /ultracost:estimate

    Estimate 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.

  • /ultracost:explain

    Explain 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.

  • /ultracost:hud

    Set 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.

  • /ultracost:ledger

    Show cumulative savings vs an all-opus baseline across recorded runs, with the per-run trend and today's spend.

  • /ultracost:reconcile

    Reconcile a real workflow run — estimate vs ACTUAL per stage from local transcripts — and judge whether the routing held up.

  • /ultracost:simulate

    Compare a workflow's cost under all-opus, the tiered pins as written, and aggressive all-sonnet — then recommend the right point on the quality/cost curve.

  • /ultracost:status

    Report how ultracost is delivered (plugin / cli / both / none) and the active policy, and surface any permission-mode caveat that weakens the cost gate.

  • /ultracost:usage

    Report real token cost from local transcripts (main loop vs subagents vs workflow stages) and point out where the spend is concentrated. Offline.

Hooks (4)

  • SessionStart

    node "${CLAUDE_PLUGIN_ROOT}/templates/hooks/reinject.mjs"

  • SessionStart

    node "${CLAUDE_PLUGIN_ROOT}/templates/hooks/hud-setup.mjs"

  • PreToolUse

    node "${CLAUDE_PLUGIN_ROOT}/templates/hooks/workflow-gate.mjs"

  • Stop

    node "${CLAUDE_PLUGIN_ROOT}/templates/hooks/loop-autorun.mjs"

View source on GitHub buildwithclaude.com

More from davepoon/buildwithclaude

All 277 plugins →

Complete collection of ~110 Claude Code skills across document processing, development, automation, CRM, DevOps, and more

200 skills

3,741

Complete collection of 174 slash commands across 22 categories

177 commands

3,741

Complete collection of 117 specialized AI agents across 11 categories

117 agents

3,741

gsd

claude

Get Shit Done -- a structured workflow plugin for Claude Code that adds planning, execution, and verification commands with MCP-backed project state

83 skills · 33 agents · 1 MCP server

3,741

forge

claude

Full-lifecycle SDLC orchestrator: a 12-stage pipeline (SRS, architecture, spec, plan, build, eval, deploy, monitor, release) driven by specialized agents, persistent cross-session memory, auto-reflection, gate enforcement, and semantic skill mining that proposes new skills from recurring workflows.

45 skills · 27 agents · hooks

3,741

suede-skills

claudecodex

74 skills for Claude Code and Codex. A build DAG researches your repo, fans out disjoint lanes, and refutes its own review before anything lands. A blunt A-F ship grade blocks the bad merge instead of complimenting it. The same folder designs the page, writes the copy, and ships native iOS and Android builds.

70 skills · 1 MCP server

3,741

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

career-ops

claudecodex

Open-source AI job search that runs locally in your AI coding CLI: scan job portals, evaluate listings into a structured A-H report with a 1-5 score, tailor your CV, track applications

5 skills · hooks

career-ops-hq/career-ops 82,253

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Automates browser interactions for web testing, form filling, screenshots, and data extraction

12 skills

vercel-labs/agent-browser 50,373

Maintain ultracost?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins277 plugins