CLAUDE LABJP
FORK — Claude Code 2.1.212 changes what /fork does: it copies your conversation into a new background session with its own row in claude agents, so you can keep working. The old in-session subagent is now /subtaskLIMITS — WebSearch calls are now capped at 200 per session by default, and subagent spawns get the same 200 ceiling, so a runaway search or delegation loop stops on its ownMCPBG — MCP tool calls running past two minutes now move to the background automatically, keeping the session usable. Tune the threshold with CLAUDE_CODE_MCP_AUTO_BACKGROUND_MSPLANFIX — Fixed plan mode auto-running file-modifying Bash commands such as touch and rm without a permission prompt or an SDK canUseTool callbackSONNET5 — Claude Sonnet 5 is running on introductory pricing of $2 per million input tokens and $10 per million output. After August 31 it moves to $3 and $15IPO — Bankers are reportedly lining up investor meetings for Anthropic ahead of a possible public listing as soon as OctoberFORK — Claude Code 2.1.212 changes what /fork does: it copies your conversation into a new background session with its own row in claude agents, so you can keep working. The old in-session subagent is now /subtaskLIMITS — WebSearch calls are now capped at 200 per session by default, and subagent spawns get the same 200 ceiling, so a runaway search or delegation loop stops on its ownMCPBG — MCP tool calls running past two minutes now move to the background automatically, keeping the session usable. Tune the threshold with CLAUDE_CODE_MCP_AUTO_BACKGROUND_MSPLANFIX — Fixed plan mode auto-running file-modifying Bash commands such as touch and rm without a permission prompt or an SDK canUseTool callbackSONNET5 — Claude Sonnet 5 is running on introductory pricing of $2 per million input tokens and $10 per million output. After August 31 it moves to $3 and $15IPO — Bankers are reportedly lining up investor meetings for Anthropic ahead of a possible public listing as soon as October
TAG

cost optimization

24 articles
Back to all tags
Related:
Claude API13Claude Code6production3Sonnet 52pricing2automation2Production2Claude Agent SDK2Files API2Automation2headless2indie dev2
API & SDK/2026-06-12Intermediate

Reallocating My Automation Pipeline Ahead of the June 15 Billing Change

On June 15, the Agent SDK, headless Claude Code, and GitHub Actions move to monthly usage credits. I audited every stage of my publishing pipeline against measured token logs and rerouted each one across three execution paths. Here is the reasoning.

API & SDK/2026-05-14Advanced

6 Traps I Hit Building In-App AI Chat with Claude API — A Record of Getting to Production

Six real design mistakes I encountered shipping Claude API in-app chat to production — covering context management, streaming error detection, guardrails, session persistence, model versioning, and cost monitoring. Includes working TypeScript code.

API & SDK/2026-05-12Advanced

Combining Haiku 4.5, Streaming, and Prompt Caching to Cut Costs in a Personal App — An Implementation Record

A hands-on record of combining Claude Haiku 4.5, streaming, and prompt caching to improve both cost and response speed in a personal iOS/Android app — including the mistakes made along the way.

Claude Code/2026-05-04Intermediate

Build a Pipeline Where Docs Update Automatically Every Time Your Code Changes

Build a CI/CD pipeline that auto-generates README, CHANGELOG, and API docs whenever code changes. Use Claude Haiku 4.5 for cost-efficient classification and Sonnet 4.6 for quality output — cutting API costs by up to 70% while keeping documentation accurate.

Claude Code/2026-05-04Advanced

Claude Code vs OpenCode + Gemma 4 — A Strategic Guide for Cloud and Local AI Coding

OpenCode paired with Google Gemma 4 is being marketed as a 'free Claude Code'. After running Claude Code in production for half a year, here is an honest, four-axis framework for choosing between them — or, more often, combining them.

API & SDK/2026-05-02Advanced

Building a Cost-Optimized Multi-Provider AI Gateway with Claude API and LiteLLM — Fallback Design, A/B Testing, and Provider Migration Strategy

Learn how to build a production-grade multi-provider AI gateway centered on Claude API using LiteLLM. Covers fallback chain design, A/B testing, cost-based routing, and provider migration strategy with complete code examples.

Claude AI/2026-04-26Advanced

Claude Sonnet 4.6 vs Opus 4.6 — A Task-by-Task Selection Guide From Daily Use

Choosing between Sonnet 4.6 and Opus 4.6 comes up more often than you'd expect. From someone who uses both daily, here's a task-by-task breakdown of when the cost gap is justified and when it isn't.

API & SDK/2026-04-11Intermediate

Claude API Batch Processing — Reduce API Costs by Up to 90% with Asynchronous Batch Implementation

Master Claude API batch processing for efficient large-scale requests. Learn async batch patterns to reduce costs and avoid rate limits.

API & SDK/2026-04-04Intermediate

Claude API Files API — Persist Documents and Slash API Costs

Learn how to use Claude API's Files API to persist documents and avoid re-uploading costs. Upload PDFs and long documents once, reuse them across multiple API requests with this practical implementation guide.

API & SDK/2026-04-02Intermediate

Anthropic API Cost Optimization Guide: Cut Your Monthly Bill by 50–70%

A complete guide to reducing your Anthropic API costs by 50–70%. Covering model selection, Prompt Caching, batch processing, and token reduction — with production-ready code you can apply to your app today.

API & SDK/2026-04-02Advanced

Claude API Messages Batches: Cutting Production Costs by Up to 50% with Async Processing

An implementation guide for putting the Claude API Messages Batches API into production. Polling design, real cost measurements, and operational gotchas from running 1,920 monthly requests across four Dolice Labs sites.

API & SDK/2026-03-30Beginner

Claude API Pricing Guide 2026 — Complete Cost Breakdown for Every Model, Batch API, and Prompt Caching

A complete guide to Claude API pricing in 2026. Learn the per-token costs for Opus 4.6, Sonnet 4.6, and Haiku 4.5, how to save up to 95% with Batch API and Prompt Caching, and see real-world cost estimates for common use cases.