danielkremen818/ultracost

8 stars · Last commit 2026-06-21

Cut Claude Code dynamic-workflow costs: pin the right model + effort on every subagent stage, estimate spend before launch, and block scripts that would silently run every stage on Opus.

README preview

<div align="center">

<img src="https://raw.githubusercontent.com/danielkremen818/ultracost/main/assets/banner.png" alt="ultracost — per-stage model routing for Claude Code dynamic workflows" width="880">

Stop a single `ultracode` fan-out from running dozens of subagents on Opus by accident.

[![npm](https://img.shields.io/npm/v/ultracost.svg)](https://www.npmjs.com/package/ultracost)
[![CI](https://github.com/danielkremen818/ultracost/actions/workflows/ci.yml/badge.svg)](https://github.com/danielkremen818/ultracost/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/danielkremen818/ultracost/branch/main/graph/badge.svg)](https://codecov.io/gh/danielkremen818/ultracost)
[![dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](./package.json)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/danielkremen818/ultracost/badge)](https://scorecard.dev/viewer/?uri=github.com/danielkremen818/ultracost)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/13239/badge)](https://www.bestpractices.dev/projects/13239)
[![Known Vulnerabilities](https://snyk.io/test/npm/ultracost/badge.svg)](https://snyk.io/test/npm/ultracost)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
[![node](https://img.shields.io/badge/node-%3E%3D24-brightgreen.svg)](https://nodejs.org)
[![Cite this repository](https://img.shields.io/badge/Cite-CITATION.cff-1f6feb.svg)](./CITATION.cff)
[![Listed on ClaudePluginHub](https://www.claudepluginhub.com/badge/danielkremen818-ultracost)](https://www.claudepluginhub.com/plugins/danielkremen818-ultracost?ref=badge)

</div>

View full repository on GitHub →