Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Benchling Engineering 7 min read Opinion mediumAdept

The Multi-Model Playbook

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.

Related posts

  • CodeAgents + Structure: A Better Way to Execute Actions

    Hugging Face mediumAdept

    Forcing code-writing agents to emit their reasoning and Python code as a structured JSON blob (thoughts + code) beats both markdown-parsed CodeAgents and JSON tool-calling agents by 2-7 percentage points on GAIA, MATH, SimpleQA and Frames for capable models. An analysis of 15,724 traces shows first-step parsing errors cut success from 51.3% to 42.3% and raise average steps from 3.18 to 4.63, which structured generation eliminates. Smaller models such as Mistral-7B pay a "structure tax", producing broken Python when juggling JSON escaping and code at once, so the approach is recommended for 32B+ or frontier models. In smolagents it is enabled with use_structured_outputs_internally=True.

  • Which Claude model should you build with? Fable, Opus, Sonnet, or Haiku

    claude.dev mediumAdept

    Opus 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.

  • Testing AI coding agents (2025): Cursor vs. Claude, OpenAI, and Gemini

    Render mediumAdept

    Four AI coding agents (Cursor with Claude Sonnet 4, Claude Code, Gemini CLI and OpenAI Codex) were compared on a one-prompt Next.js URL-shortener build with Postgres, Docker and Render MCP deployment, plus real tasks in a large Go API monorepo (Kubernetes pod leader election with go-quartz, NATS retry logic) and an Astro/Keystatic website. Cursor scored highest overall (8/10 average), producing the most complete app, including Docker Compose and a SQL migration, and following codebase-specific patterns. Gemini CLI excelled at large-context refactors but struggled on the greenfield build. Codex's model produced accurate, idiomatic code but was held back by setup friction and a weaker CLI UX. All tools faltered on novel or obscure libraries without targeted guidance, so experienced engineers still need to audit the output.

  • Let your agent cook by giving it the recipe

    Mux mediumAdept

    Mux's prompt library gives coding agents task-specific instructions (which Mux features to use, in what order, with recommended defaults and gotchas) instead of leaving them to infer an approach from docs. In Gauge-sandboxed evals on podcast clipping, agents with no vendor named built their own FFmpeg/Deepgram pipeline (1 of 6 criteria, 69 min). With the recipe they scored 6 of 6 in 18.9 minutes at about 39% lower cost than with public docs alone, and picked Mux for the whole workflow in 15 of 15 advice runs. The recipes encode decisions such as preferring signed playback over DRM, converting Robots' milliseconds to seconds, and asking clarifying questions first, and they open with a checklist because agents skip instructions. They are kept current with CI checks against the API spec and a weekly LLM review, which Mux positions as more maintainable than example apps.

  • CoderForge-Preview: SOTA open dataset for training efficient coding agents

    Together AI hardMaster

    CoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench. The trajectories were generated with Qwen3-Coder-480B in OpenHands Docker environments, filtered by rejection sampling and permissive-license audits, and cost about $130K to produce at a ~90% prompt cache hit rate. Fine-tuning Qwen3-32B on the passing trajectories, using Ulysses sequence parallelism, multipacking and token-level loss normalization at 128K context, reaches 59.4% pass@1 on SWE-Bench Verified, and a 4B model reaches 43.0%. Ablations show a repetition penalty helps only early checkpoints, so later checkpoints should be run without one.

The quest for software engineering knowledge.

Look:
Layout: