Posts tagged “cost-optimization”
3 posts found
Claude Code Token Usage Introspection in 2026: Reading the `usage` Field and Building Your Own Cost Dashboard
October 22, 2026
Anthropic's usage field returns structured token counts, but no first-party dashboard aggregates them into actionable cost metrics. Build a TypeScript parser, set per-user caps, and instrument the gaps in the official API.
claude-codeaicost-optimization+2
Claude Code Extended Thinking in Agentic Loops: When to Turn It On and What It Costs You
August 23, 2026
Extended thinking in Claude Code multiplies token costs during long agentic sessions. Learn exactly when to enable it, what it costs per loop type, and the practical patterns that prevent budget overruns while preserving code quality.
claude-codeaiextended-thinking+2
Claude Code Cost Control in Production: Token Budgets, Caching Strategies, and What the Billing Dashboard Hides
July 25, 2026
Most Claude Code cost overruns stem from invisible context accumulation and cache misses. Learn token budgets, caching strategies, and production-grade cost control patterns the billing dashboard won't reveal.
claude-codeaicost-optimization+2