Building with Claude Sonnet 5.5
Claude Sonnet 5.5 keeps Sonnet 5's per-token pricing ($2/$10 per million input/output tokens) and runs about 30% faster while using fewer tokens per task. It targets well-scoped coding, documents and repeatable agent tasks, with Opus 5.5 reserved for long-horizon work that needs careful judgment. Migrating from Sonnet 5 involves several breaking API changes: thinking is on by default and `disabled` returns a 400 error (use `between_tools` instead), forced `tool_choice` is replaced by `auto` plus strict tools, computer use moves to a new toolset type, and advisor pairings are restricted. Tuning advice: re-run effort sweeps because effort levels were recalibrated, set max_tokens to 128k for agentic coding, remove old prompt workarounds, and take advantage of the lower 512-token cache minimum.
Related posts
- Which Claude model should you build with? Fable, Opus, Sonnet, or Haiku
claude.dev mediumAdeptOpus 5.5 at medium effort is the recommended starting point for most coding and knowledge work. From there, drop to Sonnet 5.5 for well-scoped tasks, drop to Haiku 5.5 for high-volume classification, extraction and subagent work, or move up to Fable 5.2 for major migrations, research and long unattended runs. Adjust effort before switching models, add self-verification first, and price your hardest tasks: Opus 5.5 at low with failures re-run at high passed about 97% of SWE-bench Pro tasks for about $0.17 each, versus 95.3% at $0.29 when every task ran at high. Practical mechanics include cache-write costs when switching models, which thinking blocks each model can read, routing subagents to Haiku via Claude Code config, and the advisor tool beta.
- Introducing advanced tool use for Claude
Anthropic Engineering mediumAdeptClaude's API gains three tool-use features aimed at agents working with large tool libraries: Tool Search Tool, Programmatic Tool Calling and Tool Use Examples. Tool Search defers loading of tool definitions via `defer_loading` and discovers them on demand with regex, BM25 or custom search. It cuts context use by about 85% and raises MCP eval accuracy, with Opus 4 going from 49% to 74%. Programmatic Tool Calling lets Claude write Python that calls tools inside a sandboxed code execution environment, so only final output enters context. On complex research tasks this lowered tokens by 37% and also reduced inference round-trips and errors. Guidance covers when each feature pays off: search for >10 tools or >10K tokens of definitions, and code orchestration for multi-step or large-data workflows.
- We Got Claude to Build CUDA Kernels and teach open models!
Hugging Face mediumAdeptupskill is a CLI that uses a strong teacher model (Claude Opus 4.5) to turn an agent trace into a portable Agent Skill (SKILL.md), auto-generates test cases, and measures skill lift on cheaper or local student models with and without the skill. Applied to building CUDA kernels with Hugging Face's kernel-builder, a ~520-token skill raised a quantized local GLM-4.7-Flash from 40% to 85% on the generated tests. The gains were not uniform across models. Some models used fewer tokens with the skill, while Opus gained no accuracy and spent more tokens, so each model should be evaluated on both accuracy and token cost before a skill is adopted.
- Designing the hf CLI as an agent-optimized way to work with the Hub
Hugging Face mediumAdeptHugging Face rebuilt its hf CLI to serve both humans and coding agents. It detects agents via environment variables like CLAUDECODE and CODEX_SANDBOX and switches to untruncated, ANSI-free TSV output, sends hints and errors to stderr, fails fast instead of prompting, and supports idempotent retries, --dry-run and consistent resource+verb commands. In a benchmark of ~1,000 graded runs across 18 Hub tasks on Claude Code (Sonnet 4.6) and Codex (GPT-5.5), agents hand-rolling curl or the Python SDK used 1.3-1.8× more tokens overall, and up to 6× on multi-step tasks. On Sonnet they also succeeded less often (84% vs 94%) and falsely reported success more often. A generated skill file covering the full command surface adds a further small reduction in tool calls.
- The Multi-Model Playbook
Benchling Engineering mediumAdept
Production LLM agents that run across multiple providers (Claude, GPT, Gemini, Llama, Nova) work best when tasks are decomposed into either small complex subtasks or large simple ones. For example, parallel MapReduce-style PDF transcription with Haiku 4.5 beat a single Sonnet 4.5 call on accuracy, speed and cost. Keep the system prompt constant and vary only the user prompt so prompt caching hits. Add row and column indexes to CSV data with more than about 20 rows or columns, use JSON for nested data, and wrap source files in XML document tags. Provider comparisons favor Anthropic overall, note Gemini is slow and Llama and Nova struggle with large JSON outputs, and close with plan-then-execute workflows for AI coding assistants.