Claude Code 2.1.247 introduces a new `/claude-api cost-optimize` command that profiles your project's Claude API spending and helps you reduce costs by systematically adjusting caching, token usage, batch processing, effort levels, and model selection.