All Articles
Using tool_choice to Cut Wasted Inference: Four Modes and Cost Patterns for Production
tool_choice is one of the most underused parameters in the Claude API. The four modes — auto, any, tool, and none — each change both behavior and token cost. Here are the patterns I reach for in production, with runnable code.
Running Claude API Parallel Tool Use in Production — Controlling Concurrency, Designing for Partial Failure, and Cutting Latency
Claude API's parallel tool use can halve perceived latency, but partial failures and duplicate writes arrive just as fast. Concurrency control with asyncio.gather and a Semaphore, three partial-failure policies, idempotency, observability, and a way to measure your real parallel degree.
Turning Claude Skills and Claude Code Plugins Into Products That Actually Sell
How to design, price, distribute, and improve Claude Skills and Claude Code Plugins as real products — with concrete patterns for packaging, billing, churn control, and knowing when to shut it down.
Four Practical Techniques to Keep Claude Conversations Lean Before They Get Heavy
Noticing your Claude Pro limits creeping up during a long working session? Most of the cost comes from dragging one conversation on too long. Here are four techniques I use daily to keep chats light.
Production Prompt-Injection Defense for the Claude API — Detection, Sanitization, and Layered Guardrails
A practical, code-first design guide for defending Claude API applications against prompt injection — covering input sanitization, channel separation, output validation, and red-teaming for long-term safety.
Implementing Progressive Delivery with the Claude Agent SDK: Canary, Feature Flags, and Automatic Rollback Patterns for Production
Production-grade patterns for safely rolling out AI agents built with the Claude Agent SDK. Combines canary traffic splitting, feature flags, and SLO-driven automatic rollback with runnable TypeScript/Hono implementation code.
Auto-Generating Conventional Commits with Claude Code — Letting it Infer Type and Scope from the Diff
Are your commit messages starting to look like a wall of update and fix? Here's a small, stable setup that lets Claude Code read your staged diff and turn it into proper Conventional Commits.
Stop Rewriting Code: Using Claude Code Plan Mode as a Real Design Phase
Claude Code's Plan Mode sounds unremarkable on paper, but treating it as a dedicated design phase dramatically reduces token spend and rework. Here's when to switch into it, the prompt template that produces useful plans, and the pitfalls I kept hitting.
Stabilizing Solo Revenue: A Customer Portfolio Playbook for Claude Code Consultants
After you have raised your rate, the next challenge is revenue volatility. A practical framework for solo Claude Code consultants to design a client portfolio that keeps monthly income predictable.
Building Fault-Tolerant Long-Running AI Workflows with Claude Agent SDK × Temporal.io — A Production Design Guide to Durable Execution and Saga Patterns
A complete production guide to combining Claude Agent SDK with Temporal.io to build AI workflows that survive crashes, restarts, and multi-day human approval gates. Durable Execution, retry policies, saga compensation, and signal integration patterns.
The Claude Design to Claude Code Handoff — A Production-Ready Playbook
A detailed field guide to chaining Claude Design and Claude Code into one workflow — prompt templates, cleanup commands, and the 12-point checklist I run before shipping.
What Claude Design Is (And What It Isn't) — A Practical Look at Anthropic's Figma Challenger
Anthropic launched Claude Design on April 17, 2026. Here's an honest, developer-eye look at what's genuinely new and where it fits alongside Figma and Canva.